Repository navigation
Per-pane session background - #647
Merged
Merged
Conversation
Sessions carry left/right/scratch overrides layered over the session background. Overrides follow their terminal across swap and promotion, drop with the split or scratch, persist for left/right, and name their rendered text files by pane identity. Adds the implementation plan.
The dispatcher and CLI pass left/right/scratch (with aliases) through to the override layer, and the tree reports paneBackgrounds next to the session default, overrides only, omitted when none is set.
Each surface resolves its pane and renders that pane's override, else the session default; a pane set applies only to that surface and a default change skips overridden panes, keeping their live OSC color. Inactive-pane dims blend toward the pane's own color, and the floating overlay backdrop layers per-pane colors opaque and mutes them once. Folds the CLI pane cases into one table to stay under the test file length limit.
The backdrop-region and apply docs shrink to their contract, isEmpty regains its godoc, and the two throwing tree polls in the background UI test get their missing try.
Control-API contract, command reference and the bundled agterm skill cover --pane, the override lifecycle and paneBackgrounds read-back. Moves the completed plan.
The agterm skill's command catalog and example intro cover --pane and which backgrounds survive a relaunch, the store comment names the pane PNG reclaim as the only removal on clear --pane, and the background CLI passes pane straight to ControlArgs like the other pane commands.
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.
adds
--pane left|right|scratchtosession background image|text|color|clear, so each pane of a split can carry its own tint or watermark, e.g. DRIVER/PEER labels for the two agents incookbook/two-agent-chat. Discussion: #643a pane override sits on top of the session default, and a pane without one inherits it. Set and clear without
--panetouch only the default, andclear --panereturns that pane to the default.overrides follow the terminal, not the position:
session swap; when left closes, the right override moves to the surviving left pane; closing the split drops only its overridetreereportspaneBackgroundsnext tobackground, overrides only, omitted when none.