2code icon indicating copy to clipboard operation
2code copied to clipboard

Task 3 Herdr profile list exceeds the 350–600 line estimate (tracking)

Open AkaraChen opened this issue 2 months ago • 1 comments

Summary

Parent: #441 / #436. Tracking only — not a follow-up implementation.

Issue #441 estimated 350–600 lines and required material scope growth to become a separate issue. The profile-list branch (task-3-herdr-profile-list, 1880 insertions / 235 deletions versus task-2-herdr-default-runtime, ~2115 changed lines, excluding generated bindings) is larger because #441 also required inverted Local-flag list tests, live workspace_id resolve for Git/FS/notes/delete/New Tab, leftover sqlite FK bind so New Tab works for unmapped wN, frontend cache/navigation that must not inject sqlite UUIDs, and contract docs.

What grew

  • src-tauri/crates/service/src/project.rs (Herdr-derived list_with_runtime, live checkout, colocated fake-client tests)
  • src-tauri/crates/service/src/runtime/herdr.rs (live workspace_id checkout for terminals; New Tab leftover sqlite FK; list sessions accept workspace_id)
  • src-tauri/crates/service/src/profile.rs + filesystem/handlers (notes/delete/file-tree identity; unmapped notes keep live is_default)
  • src-tauri/crates/repo/src/runtime_mapping.rs (mapping lookup for notes overlay / leftover bind, not list membership)
  • src/features/profiles/hooks.ts / CreateProfileDialog.tsx / hooks.test.tsx (refetch; do not cache sqlite ids)
  • docs/herdr-integration.md (Task 3 done on this branch)

All of that is the Task 3 list rewrite plus tests and docs. It is not Task 4+ scope: create/delete still INSERT/DELETE sqlite profiles; mapping tables stay; no HerdrRuntimeSync / events.subscribe; no launch/adopt; no Local PTY deletion; pin stays v0.9.0.

Decision

Keep the extra coverage in Task 3. Splitting live checkout resolve or the create-cache fix into a later issue would leave the GUI workspace_id list without working Git/file-tree/notes/New Tab clicks.

No production work belongs on this issue.

AkaraChen avatar Sep 16 '26 04:09 AkaraChen

Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 3 Herdr profile list: this task's own stacked range, not origin/main...HEAD and not the #457 squash.

This re-count matches the tracker body's contemporaneous 1880 insertions / 235 deletions (~2115 changed lines, excluding generated bindings).

Command (exclude lockfiles + generated files; binary numstat - rows are not summed):

git diff --numstat origin/task-2-herdr-default-runtime...origin/task-3-herdr-profile-list -- . \
  ':(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-2-herdr-default-runtime = eb609193603e0466dd5858e019056bdcad8a281c (fix(terminal): document unbound ids as the Herdr default)
  • tip origin/task-3-herdr-profile-list = 4b364b43776183245914d44bae47c35152387164 (fix(profiles): keep live is_default on unmapped Herdr notes)
  • 6 commit(s) in origin/task-2-herdr-default-runtime..origin/task-3-herdr-profile-list

git diff --shortstat with the same range and pathspec:

11 files changed, 1880 insertions(+), 235 deletions(-)

+1880 / -235 = 2115

This work is already on task-10-launch-adopt and PR #457. Closing as superseded by #457. No remaining unshipped work on this tracker.

AkaraChen avatar Sep 16 '26 19:09 AkaraChen