Repository navigation
fix(ui): persist themes across routed surfaces - #1040
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR moves committed theme ownership from individual history and review surfaces into a session-scoped controller.
Confidence Score: 5/5The PR appears safe to merge, with routed theme ownership and preference-baseline behavior covered by focused regression tests. No actionable correctness, security, or repository-rule violations remain; the shared controller preserves launch-scoped theme detection and uses the same theme catalog across the normal history-to-review flow. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Session[HunkSessionHost] --> Controller[ThemeController]
Controller --> History[LogApp theme selector]
Controller --> Review[AppHost / App theme selector]
History -->|commitTheme| Controller
Review -->|commitTheme| Controller
Controller -->|external-store snapshot| History
Controller -->|external-store snapshot| Review
History -->|launch review with current theme| ReviewRoute[Embedded review route]
ReviewRoute -->|quit| History
Reviews (1): Last reviewed commit: "fix(ui): persist themes across routed su..." | Re-trigger Greptile |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Changing the theme inside a commit review launched from history was lost when returning to the history surface. History and review each owned separate committed theme state, so only history-to-review navigation carried the active choice.
Approach
ThemeControllerowned byHunkSessionHostLogControllerThis belongs in core UI routing because theme selection is shared application chrome state for every routed surface, not extension-specific behavior.
Validation
bun run typecheckbun run format:checkbun run lintbun run deps:checkTMPDIR=/var/tmp bun run test(4,084 passed, 12 skipped)bun run test:integration(157 passed, 1 skipped)bun run test:tty-smoke(9 passed)bun run install:binhunk diff --no-extensionsagainst the working-tree diffVisual Evidence
No visual styling changes. The existing selector and themes render unchanged; this PR changes their state lifetime across route transitions.