Repository navigation
Refresh composer colours when the terminal switches appearance - #1
Merged
Merged
Conversation
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.
A running Codex session keeps its startup foreground/background palette after a terminal light/dark change. The composer and submitted prompts can therefore retain a light fill after the terminal switches to light text, making the input unreadable. The focus handler intentionally avoids the old synchronous probe because it could block input and discard keys.
Refresh the palette through the existing input owner instead:
Dependency: rodchristiansen/crossterm#1. Both Cargo and Bazel lockfiles pin that fork revision. Related upstream reports: openai#54159 and openai#38575.
Validation:
Scope: Unix terminal palette refresh. Already emitted native terminal scrollback is not repainted; the composer and rendered owned-screen content use the updated palette. This PR stays in the fork because upstream's contribution guide does not accept external code PRs. No screenshot or session content is included.
Risk: high — depends on a new public terminal-input API and touches terminal ownership. Leave open for review.