fix(tui): preserve Code Mode row background after truncation - #684
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.
Problem
Refs #683. Truncating a Code Mode Bash preview clears the row background after the command, exposing terminal-colored ellipsis and right padding.
Value
Main and child Code Mode cards retain an uninterrupted background, including long or wrapped evidence.
Approach
Reapply the owning background after Pi's full SGR reset, preserving the reset's foreground/style semantics.
Summary
Evidence
docs/research/CODEMODE_TUI_PRESENTATION_2026-10-04.md, dated background-continuity appendix.Validation
bun run checkand the documentation contract passed. One fullbun run testpassed: Node 2296 passed / 9 skipped in 326.49s, UI 1158 passed in 32.79s. All 17 exact-head CI jobs passed, including the three required merge checks. Installed dirty source was preserved; current running terminal pixels after reload remain unverified.Impact
User-visible: continuous card background. Model-visible tools/results, execution/lifecycle, persisted configuration and truncation budgets: unchanged. Uses the existing public Theme background API; no host modification.
Merge Danger
Door: two-way. Small presentation-only change, reversible without data migration.
Blast Radius: CodeMode.