Task 11 xterm transport exceeds the 350–600 line estimate (tracking)
Summary
Parent: #423 / #394. Tracking only — not a follow-up implementation.
Issue #423 estimated 350–600 lines and required material scope growth to become a separate issue. The xterm-transport branch (task-11-xterm-transport, 967 insertions / 43 deletions versus task-10-frame-bridge, excluding generated bindings) is larger because #423 also required a per-session backend_for IPC, verified full vs incremental frame application, DSR/DA parser guards, Local-vs-Herdr stream selection tests, and Task 1 fixture coverage later tasks must depend on. A tech-lead review of an earlier tip counted 913 non-generated lines before the attach-then-resize follow-up. Most of the extra is colocated frontend tests plus the thin get_session_backend handler.
What grew
src/features/terminal/lib/herdrFrames.ts(full=replace, incremental=append, monotonicseq)src/features/terminal/lib/herdrQueryGuard.ts(swallow CSI6n/ CSIcon Herdr)src/features/terminal/lib/terminalTransport.ts(getSessionBackend→ one ofstreamPtyOutput/streamHerdrOutput)src/features/terminal/Terminal.tsx(adapter, skip Local history on Herdr, attach-then-resize)- Colocated tests (
Terminal.test.tsx,herdrFrames.test.ts,herdrQueryGuard.test.ts,terminalTransport.test.ts, fixture helper) src-tauri/src/handler/pty.rs+src-tauri/src/lib.rs(thinget_session_backend)
The extra is in-scope Task 11 xterm transport, including required tests. Default runtime stays Local. docs/herdr-integration.md, Task 10 CLI attach, detector rules, and restore-by-reattachment were not rewritten. No pane.send_*, pane.split, worktree, server.stop, or --takeover was added.
Decision
Keep the extra coverage in Task 11. Splitting it into a later issue would leave Task 12 without the xterm adapter #423 asked it to depend on. This is not #400 (Task 1 tests/docs), #405 (Task 3 packaging), #408 (Task 4 discovery), #410 (Task 5 transport), #412 (Task 6 sync), #415 (Task 7 mapping), #418 (Task 8 adoption), #420 (Task 9 lifecycle), or #422 (Task 10 frame bridge).
No further production work belongs on this issue.
Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 11 xterm transport: this task's own stacked range, not origin/main...HEAD and not the #435 squash.
This re-count matches the tracker body's contemporaneous 967 insertions / 43 deletions (excluding generated bindings).
Command (exclude lockfiles + generated files; binary numstat - rows are not summed):
git diff --numstat origin/task-10-frame-bridge...origin/task-11-xterm-transport -- . \
':(exclude)src/generated/' \
':(exclude)src/paraglide/' \
':(exclude)**/Cargo.lock' \
':(exclude)bun.lock' \
':(exclude)**/bun.lock' \
':(exclude)bun.lockb' \
':(exclude)**/bun.lockb' \
':(exclude)package-lock.json' \
':(exclude)**/package-lock.json' \
':(exclude)src-tauri/binaries/'
Resolved SHAs:
- base
origin/task-10-frame-bridge=50d6788e4e7ffcfaff13de45c4c1e38facd9c918(feat(service): stream Herdr frames through the CLI helper) - tip
origin/task-11-xterm-transport=2e282984c35af56dbd769babc08e29da1f93920f(test(terminal): expose mock cols/rows for attach-then-resize assertions) 9commit(s) inorigin/task-10-frame-bridge..origin/task-11-xterm-transport
git diff --shortstat with the same range and pathspec:
13 files changed, 967 insertions(+), 43 deletions(-)
+967 / -43 = 1010
This work is already on task-17-shell-templates / task-10-launch-adopt and PR #435. Closing as superseded by #435. No remaining unshipped work on this tracker.