Skip to content

Conversation

@rSnapkoOpenOps
Copy link
Collaborator

Fixes OPS-3293

@linear
Copy link

linear bot commented Jan 16, 2026

@sonarqubecloud
Copy link

@rSnapkoOpenOps rSnapkoOpenOps marked this pull request as ready for review January 16, 2026 08:27
Copilot AI review requested due to automatic review settings January 16, 2026 08:27
Copy link
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 refactors tool handling by removing custom UI tool prefix checks and simplifying the code to use built-in functionality from the ai library. The changes eliminate the need for manual tool call detection logic in favor of standardized approaches.

Changes:

  • Removed custom stopWhen condition that checked for UI tool prefixes in the LLM stream handler
  • Replaced custom sendAutomaticallyWhen logic with the built-in lastAssistantMessageIsCompleteWithToolCalls function
  • Cleaned up unused imports related to UI tool detection

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/server/api/src/app/ai/chat/llm-stream-handler.ts Simplified stopWhen conditions by removing UI tool prefix check and cleaned up related imports
packages/react-ui/src/app/features/ai/lib/assistant-ui-chat-hook.ts Replaced custom auto-send logic with built-in lastAssistantMessageIsCompleteWithToolCalls function

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

@rSnapkoOpenOps rSnapkoOpenOps merged commit 29c9be3 into main Jan 16, 2026
25 checks passed
@rSnapkoOpenOps rSnapkoOpenOps deleted the fix/ui-tool-cancelling branch January 16, 2026 12:59
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