Skip to content

Per-pane session background - #647

Merged
umputun merged 8 commits into
masterfrom
pane-background
Sep 24, 2026
Merged

umputun merged 8 commits into
masterfrom
pane-background

Conversation

@umputun

@umputun umputun commented Sep 24, 2026

Copy link
Copy Markdown
Owner

adds --pane left|right|scratch to session 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 in cookbook/two-agent-chat. Discussion: #643

a pane override sits on top of the session default, and a pane without one inherits it. Set and clear without --pane touch only the default, and clear --pane returns that pane to the default.

overrides follow the terminal, not the position:

  • left/right survive relaunch and follow session swap; when left closes, the right override moves to the surviving left pane; closing the split drops only its override
  • a scratch override survives hide/show and ends when that scratch terminal closes, it is never persisted

tree reports paneBackgrounds next to background, overrides only, omitted when none.

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.
Copilot AI lite review requested due to automatic review settings September 24, 2026 04:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit 72c1efd into master Sep 24, 2026
8 checks passed
@umputun
umputun deleted the pane-background branch September 24, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants