-
Notifications
You must be signed in to change notification settings - Fork 13.2k
fix: Restore footer configuration settings (#8041) #8053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
miguelsolorio
merged 20 commits into
google-gemini:main
from
Lyonk71:fix/8041-footer-config-regression
Sep 12, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0a36530
fix: Restore footer configuration settings (#8041)
Lyonk71 2821d45
style: Apply prettier formatting to Footer.tsx
Lyonk71 9162085
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio 73dee32
fix: Restore footer configuration settings (#8041)
Lyonk71 e023663
style: Apply prettier formatting to Footer.tsx
Lyonk71 c52fc84
fix(cli): Restore context summary alignment tweaks
Lyonk71 19b38b7
Merge branch 'fix/8041-footer-config-regression' of https://github.co…
miguelsolorio ba6e27f
Adjust alignment for accept/yolo/shell mode
miguelsolorio cdaafb3
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio f78a964
Format
miguelsolorio 7626cbe
Merge branch 'fix/8041-footer-config-regression' of https://github.co…
miguelsolorio a0fd00a
test(cli): Add golden snapshot tests for footer
Lyonk71 67fbd4c
Merge remote-tracking branch 'origin/main' into pr/Lyonk71/8053
miguelsolorio b10168b
Fix conflict override
miguelsolorio bf3cf48
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio 4dd9e7d
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio cbbd0d4
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio 4e6dae1
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio 1e98695
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio 4436252
Merge branch 'main' into fix/8041-footer-config-regression
miguelsolorio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/cli/src/ui/components/__snapshots__/Footer.test.tsx.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
|
||
| exports[`<Footer /> > footer configuration filtering (golden snapshots) > renders complete footer in narrow terminal (baseline narrow) > complete-footer-narrow 1`] = ` | ||
| "long (main*) | ||
|
|
||
| no sandbox (see /docs) | ||
|
|
||
| gemini-pro (100% context left)" | ||
| `; | ||
|
|
||
| exports[`<Footer /> > footer configuration filtering (golden snapshots) > renders complete footer with all sections visible (baseline) > complete-footer-wide 1`] = ` | ||
| "...bar/and/some/more/directories/to/make/it/long no sandbox (see gemini-pro (100% context | ||
| (main*) /docs) left)" | ||
| `; | ||
|
|
||
| exports[`<Footer /> > footer configuration filtering (golden snapshots) > renders footer with CWD and model info hidden to test alignment (only sandbox visible) > footer-only-sandbox 1`] = `" no sandbox (see /docs)"`; | ||
|
|
||
| exports[`<Footer /> > footer configuration filtering (golden snapshots) > renders footer with all optional sections hidden (minimal footer) > footer-minimal 1`] = `""`; | ||
|
|
||
| exports[`<Footer /> > footer configuration filtering (golden snapshots) > renders footer with only model info hidden (partial filtering) > footer-no-model 1`] = `"...bar/and/some/more/directories/to/make/it/long (main*) no sandbox (see /docs)"`; |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines repeatedly access the nested
settings.merged.ui?.footerobject. This violates the DRY (Don't Repeat Yourself) principle and creates a maintenance concern. If the path to the footer settings were to change, it would require updates in multiple places, increasing the risk of introducing inconsistencies or bugs. It would be more robust to retrieve thefooterobject once into a local variable before definingfooterProps.For example: