fix(cli): Hide startup tips until folder trust dialog is resolved #12722
+8
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
#12184 - This PR updates the
AppHeader.tsxsection so that the tips section is not rendered while the trust dialog is active. currently, the tips appear underneath the trust prompt, but they aren’t actionable until the dialog is dismissed.Details
I made the changes as requested in the issue. I also had to take AppHeader out of the
<Static>component since it doesn’t support re-renders.gemini-cli/packages/cli/src/ui/components/MainContent.tsx
Lines 90 to 98 in d6d36c7
Documentation for
<Static/>component in Ink - https://github.com/vadimdemedes/ink?tab=readme-ov-file#staticRelated Issues
#12184
How to Validate
Pre-Merge Checklist