Skip to content

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
GeneralA6 merged 1 commit into
mainfrom
fix/t5464-pane-reads-tasks-page-by-page
Nov 26, 2026
Merged

GeneralA6 merged 1 commit into
mainfrom
fix/t5464-pane-reads-tasks-page-by-page

Conversation

@GeneralA6

Copy link
Copy Markdown
Collaborator

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 read and leaves the pane without tasks or sessions. When a run asking tasks is cut, the pane now reads
the other documents in one run and the tasks in --max-bytes pages 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: nextOf names the next page's cursor and is null on the last page; joinedPages joins
    tasks 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; tasks
    alone 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.
  • The pre-push hook ran the whole plugin suite on this head: pass (12/12). Queued npm run pane-test runs lost
    pane.test.ts specs to their 5 s timeout under host load, the known flake (T2782).

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): read tasks a page at a time when one run is cut (T5464)

🤖 Generated with Claude Code

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>
@GeneralA6 GeneralA6 added the bug Something isn't working label Nov 26, 2026
@GeneralA6
GeneralA6 merged commit b35fe92 into main Nov 26, 2026
10 checks passed
@GeneralA6
GeneralA6 deleted the fix/t5464-pane-reads-tasks-page-by-page branch November 26, 2026 22:24
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.

1 participant