Repository navigation
T5464: Pane cannot load: the tasks read runs past the run output cap, then the tab says it is tied to no session - #259
Merged
Conversation
A team's tasks document can outgrow the pane's 4 MiB run cap, which fails the whole read. When a run asking tasks is cut, the pane reads the other documents in one run and the tasks by --max-bytes pages with --after, all at one revision or restarted, three tries at most; a repeated cursor is a failure. A teamrig without the paging flags refuses them and the pane names that refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: GeneralA6 <29929643+GeneralA6@users.noreply.github.com>
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
A team's tasks document can outgrow the pane's 4 MiB run cap (teamrig-github's register is 6.1 MB), which fails the
whole
teamrig readand leaves the pane without tasks or sessions. When a run asking tasks is cut, the pane now readsthe other documents in one run and the tasks in
--max-bytespages with--after, all at one revision or restarted,three tries at most; a repeated cursor is a failure. A teamrig older than interface 1.10 refuses the paging flags and
the pane names that refusal. Needs teamrig core with
teamrig read --max-bytes/--after(teamrig #2479). Refs #242.Tests
tests/tasks-pages.test.ts:nextOfnames the next page's cursor and is null on the last page;joinedPagesjoinstasks and cuts in order, tells each problem once and keeps the first page's envelope.
tests/read-port.test.ts: a cut run that asked tasks reads the others in one run and tasks page by page; tasksalone page with no other run; a page of another revision restarts, a register changing on every try fails after
bounded tries; a teamrig too old to page, a cursor served twice and a failed read of the other documents are each a
failure; a cut run asking no tasks stays a failure. Without the fallback the cut run fails the read, so these specs
fail on the old code.
npm run pane-testruns lostpane.test.tsspecs to their 5 s timeout under host load, the known flake (T2782).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