Skip to content

fix(ai-chat-ui): Highlight referenced tools in users' chat messages#16812

Merged
eneufeld merged 1 commit intomasterfrom
fix/16722
Jan 13, 2026
Merged

fix(ai-chat-ui): Highlight referenced tools in users' chat messages#16812
eneufeld merged 1 commit intomasterfrom
fix/16722

Conversation

@eneufeld
Copy link
Contributor

@eneufeld eneufeld commented Jan 9, 2026

What it does

Tool function references (~functionName) in chat messages are now displayed with badge styling matching agents and variables, with hover tooltips showing tool descriptions.

  • Add rendering support for ParsedChatRequestFunctionPart in ChatRequestRender
  • Extend CSS selector to include .theia-RequestNode-FunctionLabel
  • Fix kind property assignments in ParsedChatRequest*Part classes
  • Add tests for kind property runtime assignments

Fixes #16722

How to test

Provide a tool as part of the user message. the tool label should be highlighted.

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

@eneufeld eneufeld requested a review from lucas-koehler January 9, 2026 14:28
@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Jan 9, 2026
@ndoschek
Copy link
Member

Hi @eneufeld could you please have a look at the @theia/ai-chat ChatRequestParserImpl tests, as they are failing the CI? TIA

Tool function references (~functionName) in chat messages are now
displayed with badge styling matching agents and variables, with
hover tooltips showing tool descriptions.

- Add rendering support for ParsedChatRequestFunctionPart in ChatRequestRender
- Extend CSS selector to include .theia-RequestNode-FunctionLabel
- Fix kind property assignments in ParsedChatRequest*Part classes
- Add tests for kind property runtime assignments

Fixes #16722
@eneufeld eneufeld requested a review from ndoschek January 13, 2026 13:54
@ndoschek ndoschek removed the request for review from lucas-koehler January 13, 2026 14:55
Copy link
Member

@ndoschek ndoschek left a comment

Choose a reason for hiding this comment

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

Thanks Eugen, code LGTM and it works fine for me! 👍

@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog Jan 13, 2026
@eneufeld eneufeld merged commit 010a7d8 into master Jan 13, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Jan 13, 2026
@eneufeld eneufeld deleted the fix/16722 branch January 13, 2026 15:34
@github-actions github-actions bot added this to the 1.68.0 milestone Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

ai-chat-ui: Highlight referenced tools in users' chat messages

2 participants