Repository navigation
T5859: Pane: after a teamrig update, the events follower restarts on the old CLI until the tab restarts - #261
Merged
GeneralA6 merged 2 commits intoNov 28, 2026
Conversation
…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
deleted the
fix/t5859-pane-when-its-events-follower-ends-ended
branch
November 28, 2026 09:44
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.
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 eventsfollower, 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) andfinds 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 spawnsthe new install's
dist/cli/main.js. On the old wiring (cli: () => Promise.resolve(cli)) the second follow spawnsthe old path.
tests/teamrig-cli.test.ts(CliHolder): start finds once, refind holds the new find, a rejecting find keeps the last.npm run checkpassed.Checklist
--no-verify).npm run checkpasses locally (typecheck, the tools and plugin tests under the coverage gate, the plugin test gate, scrub).npm run pane-testpasses locally.tools/ci/coverage.json.git commit -s).hooks/core/changed only throughscripts/sync-core.ts, never by hand, andscripts/golden.tsrerun after a sync.🤖 Generated with Claude Code
Commits
🤖 Generated with Claude Code