Skip to content

T5859: Pane: after a teamrig update, the events follower restarts on the old CLI until the tab restarts - #261

Merged
GeneralA6 merged 2 commits into
mainfrom
fix/t5859-pane-when-its-events-follower-ends-ended
Nov 28, 2026
Merged

GeneralA6 merged 2 commits into
mainfrom
fix/t5859-pane-when-its-events-follower-ends-ended

Conversation

@GeneralA6

Copy link
Copy Markdown
Collaborator

What and why

The pane found the teamrig CLI once, when the tab loaded. After an update installs teamrig in a new folder, the newer
teamrig ends the old teamrig events follower, and the pane started it again from the same old path, so every read,
act and follower ran the old version until the tab restarted. The pane now holds where the CLI is (CliHolder) and
finds it again at each follow; reads and acts run the CLI found last, and a find that fails keeps the one before.

Closes #260

Tests

  • tests/spawn-feed.test.ts: a follow ends after the plugin list moved to a new install, and the next follow spawns
    the new install's dist/cli/main.js. On the old wiring (cli: () => Promise.resolve(cli)) the second follow spawns
    the old path.
  • tests/teamrig-cli.test.ts (CliHolder): start finds once, refind holds the new find, a rejecting find keeps the last.
  • Pane specs 1909 pass / 0 fail on the head; npm run check passed.

Checklist

  • Every behaviour change has a test; a bug fix has a regression test that fails before the fix.
  • The pre-push hook passed on the pushed head (the local gate, every CI check; never --no-verify).
  • npm run check passes locally (typecheck, the tools and plugin tests under the coverage gate, the plugin test gate, scrub).
  • npm run pane-test passes locally.
  • No skipped, focused or todo tests, and no floor lowered in tools/ci/coverage.json.
  • Every commit is signed off (git commit -s).
  • hooks/core/ changed only through scripts/sync-core.ts, never by hand, and scripts/golden.ts rerun after a sync.

🤖 Generated with Claude Code

Commits

  • feat(pane): a CLI holder that finds the teamrig CLI again on refind (T5859)
  • fix(pane): a follow after an update's end runs the newly installed teamrig CLI (T5859)

🤖 Generated with Claude Code

GeneralA6 and others added 2 commits November 28, 2026 11:14
…T5859)

CliSource is where the CLI is now; fixedCli wraps one found once, and CliHolder finds it again on
refind, keeping the last one found when a find rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: GeneralA6 <29929643+GeneralA6@users.noreply.github.com>
…amrig CLI (T5859)

The tab found the CLI once, so after an update the newer teamrig ended the old events follower
(ENDED) and the pane started it again from the same old path, until the tab restarted. The
follower now finds the CLI again at each follow, and every read and act runs the one found last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: GeneralA6 <29929643+GeneralA6@users.noreply.github.com>
@GeneralA6 GeneralA6 added the bug Something isn't working label Nov 28, 2026
@GeneralA6
GeneralA6 merged commit 18abe84 into main Nov 28, 2026
10 checks passed
@GeneralA6
GeneralA6 deleted the fix/t5859-pane-when-its-events-follower-ends-ended branch November 28, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pane: after a teamrig update, the events follower restarts on the old CLI until the tab restarts

1 participant