Skip to content

Fix CLI new chat handling#1591

Merged
alexandrudanpop merged 2 commits intomainfrom
fix/cli-new-chat
Nov 11, 2025
Merged

Fix CLI new chat handling#1591
alexandrudanpop merged 2 commits intomainfrom
fix/cli-new-chat

Conversation

@alexandrudanpop
Copy link
Copy Markdown
Contributor

Fixes OPS-2979

@linear
Copy link
Copy Markdown

linear Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes CLI new chat handling by improving the chat ID management when creating new chats in step settings mode. The key improvement is ensuring that when a new chat is created, the chat ID is properly updated and propagated.

Key Changes:

  • Extracted step ID logic into a reusable helper function
  • Added chat ID update after opening a new conversation in step settings mode
  • Fixed dependency array to include stepDetails to ensure proper cleanup behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-ui/src/app/features/ai/lib/assistant-ui-chat-hook.ts
@sonarqubecloud
Copy link
Copy Markdown

@alexandrudanpop alexandrudanpop merged commit 242bdc8 into main Nov 11, 2025
21 checks passed
@alexandrudanpop alexandrudanpop deleted the fix/cli-new-chat branch November 11, 2025 12:58
maor-rozenfeld pushed a commit that referenced this pull request Nov 11, 2025
<!--
Ensure the title clearly reflects what was changed.
Provide a clear and concise description of the changes made. The PR
should only contain the changes related to the issue, and no other
unrelated changes.
-->

Fixes OPS-2979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants