Task 17 shell/templates exceeds the 200–350 line estimate (tracking)
Summary
Parent: #433 / #394. Tracking only — not a follow-up implementation.
Issue #433 estimated 200–350 lines and required material scope growth to become a separate issue. The shell/templates branch (task-17-shell-templates, 485 insertions / 28 deletions versus task-16-workspace-paths, excluding generated bindings) is larger because #433 also required absolute cwd on tab.create, skip-root-reuse for template subdirectories, typed JSON pane.send_input as the #397 option-1 workaround, one-shot init_script + startup_commands after create bind, and colocated tests that list/restore/flatten/close never replay that input.
Approximate file-length delta: production +139 (transport.rs +31, herdr.rs +108); tests +318 (transport.rs +71, herdr.rs +247). Most of the extra is colocated tests.
What grew
src-tauri/crates/infra/src/herdr/transport.rs—tab.createsends absolutecwd; typedpane.send_inputrefuses missing newline and does not auto-replay uncertain outcomessrc-tauri/crates/service/src/runtime/herdr.rs— first-tab root reuse only when cwd matches the profile checkout; subdirectory cwdtab.creates; create bind sends init/startup once; list flatten usespersist_sessionwithout send- Colocated tests for cwd fail-closed, one-shot send, flatten/restore/close no-replay, and uncertain send keeping the bound pane
The extra is in-scope Task 17 shell/template mapping, including required tests. Default runtime stays Local. Frontend, Local PTY/shell_init, and docs/herdr-integration.md were not rewritten. No layout.apply, CLI herdr pane run, pane.send_text/pane.send_keys, workspace.create, pane.split, server.stop, or --takeover was added on the create/send path.
Decision
Keep the extra coverage in Task 17. Splitting it into a later issue would leave Herdr create without the cwd + one-shot pane.send_input coverage #433 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), #422 (Task 10 frame bridge), #424 (Task 11 xterm transport), #426 (Task 12 restore), or #430 (Task 15 cleanup).
No further production work belongs on this issue.
Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 17 shell/templates: this task's own stacked range, not origin/main...HEAD and not the #435 squash.
This re-count matches the tracker body's contemporaneous 485 insertions / 28 deletions (excluding generated bindings).
Command (exclude lockfiles + generated files; binary numstat - rows are not summed):
git diff --numstat origin/task-16-workspace-paths...origin/task-17-shell-templates -- . \
':(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-16-workspace-paths=2ba65764648b333c06174459175350a2550fbc4c(feat: profile-scope git branch and wire checkout reconcile) - tip
origin/task-17-shell-templates=a7a4fcf0825a8be4bfb5d06ad0e1e1ce8e19bd64(feat(service): send Herdr init and startup commands once after create) 4commit(s) inorigin/task-16-workspace-paths..origin/task-17-shell-templates
git diff --shortstat with the same range and pathspec:
2 files changed, 485 insertions(+), 28 deletions(-)
+485 / -28 = 513
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.