Repository navigation
fix(tui): use focused action token for question form border - #50037
Merged
Merged
Conversation
kitlangton
enabled auto-merge (squash)
September 19, 2026 19:05
jinhuang712
pushed a commit
to jinhuang712/opencode
that referenced
this pull request
Sep 26, 2026
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.
Why
In light mode the question form (
FormPrompt) has no visible left border. #49820 flipped hue steps to run mode-relative — light themes now go dark at100to light at900— and removed themode === "light" ? 800 : 200conditionals from the other raw-hue call sites, but missed this one:Before the flip, light
interactive[800]was the dark end (#1e40af). After it,800is#d4e5fd, which disappears against the#fafafaraised background. Dark mode was unaffected because its200branch was already the foreground step.What Changes
The border now uses
theme.background.action.primary.focused, the same semantic token the sibling permission panel (permission.tsx) already uses for its identicalborder={["left"]}+SplitBordertreatment. In the built-in theme that resolves to$hue.interactive.200in both modes, so dark mode renders identically to before and light mode gets its border back. The now-unuseduseThemes/themeModebindings are removed.This also clears the last mode-conditional raw hue lookup in the TUI. The remaining raw
theme.hue.*reads are all fixed-step (200,500, or the terminal palette).Demo
Both halves run the same Drive script (built-in
opencodetheme, light mode, 100×30, simulated model calling thequestiontool). Left:origin/v2atb81e10a. Right: this branch.form-border-demo.mp4
Zoomed on the panel's left edge — left before, right after:
Scope
One call site plus its dead imports. No theme schema or asset changes.
Verification
Pre-push hook ran
bun run lintand repo-widetypecheck(35/35).test/app-lifecycle.test.tsxhas a pre-existing wait-timeout failure that reproduces identically on unmodifiedorigin/v2; not related. End to end: the Drive before/after recording above.