fix(ui): fix issue with box edges#26148
Conversation
|
Size Change: +224 B (0%) Total Size: 33.9 MB
ℹ️ View Unchanged
|
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a visual bug in the ToolGroupMessage component where the top border of a tool group was missing if it immediately followed an update_topic tool. By identifying the previous tool as a topic tool, the component now correctly applies the necessary border styling to maintain visual separation. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the ToolGroupMessage component to correctly handle the rendering of topic tools when they appear between other tool calls. It introduces logic to identify previous topic tools and adjusts the isFirstProp property to ensure proper visual separation. A new test case and corresponding snapshot have been added to verify this behavior. I have no feedback to provide.
|
@gemini-cli please critique this PR: Does it correctly identify and fix the case that leads to the split box or incomplete outer edge? |
|
I've investigated PR #26148 and confirmed that it correctly identifies and fixes the root cause of the split box edges. Findings
Recommendations
Overall, the PR is technically sound and addresses the reported bug effectively. |
Summary
Fixes an issue with box edges in
ToolGroupMessagewhere a tool appearing immediately after anupdate_topictool would be missing its top border.Details
Added
prevIsTopiccheck to ensure the top border is drawn when the previous tool group was a topic tool, correctly separating the new tool group from the topic message. Included a new snapshot testrenders update_topic in the middle of other toolsto prevent regressions.Related Issues
None
How to Validate
npm test -w @google/gemini-cli -- src/ui/components/messages/ToolGroupMessage.test.tsxPre-Merge Checklist