Skip to content

Fix done pane focus reset - #15

Merged
accessd merged 1 commit into
mainfrom
agent/fix-done-pane-focus-reset
Aug 14, 2026
Merged

accessd merged 1 commit into
mainfrom
agent/fix-done-pane-focus-reset

Conversation

@accessd

@accessd accessd commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What changed

  • Preserve each done pane's pending reset marker until that pane receives focus.
  • Extend the focus reset test with two done panes in the same window.

Why

Focusing one done pane cleared PENDING_RESET for every done pane in the window while resetting only the focused pane's background. A sibling pane could remain green with no state marker left to clear it on later focus.

The regression appeared after pane styling moved from select-pane -P to pane-scoped set-option -p. The old focus side effect happened to recreate each pane's pending reset marker after the window-wide cleanup.

Impact

Each done pane now keeps its deferred background until it receives focus, then resets to the default background.

Validation

  • ./tests/run-all.sh
  • bash -n agent-indicator.tmux scripts/*.sh install.sh setup.sh
  • shellcheck scripts/pane-focus-in.sh tests/test-focus-reset-done.sh
  • git diff --check

@accessd
accessd marked this pull request as ready for review August 14, 2026 11:10
@accessd
accessd merged commit 553c3cc into main Aug 14, 2026
2 checks passed
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.

1 participant