fix(cli): allow sub-agent confirmation requests in UI while preventing background flicker#20722
fix(cli): allow sub-agent confirmation requests in UI while preventing background flicker#20722abhipatel12 merged 1 commit intomainfrom
Conversation
…g background flicker
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 critical UI issue where subagent tool confirmation requests were not visible to users. It introduces a sophisticated filtering mechanism to ensure that only necessary subagent interactions are displayed, thereby improving user experience by eliminating distracting background tool activity while restoring essential approval prompts. The changes enhance the clarity and responsiveness of the tool scheduler in the UI. Highlights
Changelog
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively addresses a regression where sub-agent tool confirmation requests were not being displayed in the UI. No security vulnerabilities were found. The introduction of a more granular filtering logic in useToolScheduler is a solid improvement, ensuring that only relevant tool calls (those awaiting approval or previously displayed) are shown for sub-agents. This correctly prevents UI flicker from background tasks while re-enabling the crucial confirmation workflow. The accompanying unit tests are comprehensive and validate the new logic thoroughly.
|
Size Change: +396 B (0%) Total Size: 25.8 MB ℹ️ View Unchanged
|
|
THANK U LETS CHECK IT OUT |
…g background flicker (google-gemini#20722)
…g background flicker (google-gemini#20722)
Summary
This PR fixes a regression where subagent tool confirmation requests were not being displayed in the UI. It also refines the tool filtering logic to prevent background "thinking" tools (like
read_fileorgrep_search) from flickering in the UI after a subagent confirmation has been shown.Details
In commit
c914fd0700665790aea3faaf6cdc59ccffd9119c, a blanket filter was added touseToolScheduler.tsthat blocked all updates from non-root schedulers. While this successfully prevented flickering from subagent internal tools, it also suppressed allAwaitingApprovalstatus updates, making it impossible for users to see or respond to subagent confirmation requests.This PR introduces a more granular, per-tool-call filtering strategy:
AwaitingApprovalstatus.This ensures that only the relevant tools requiring user interaction are shown, while all other background activity from the subagent remains hidden, preserving the intended clean UI.
Related Issues
Fixes the regression introduced in c914fd0.
How to Validate
npm test -w @google/gemini-cli -- src/ui/hooks/useToolScheduler.test.tsPre-Merge Checklist