fix(sessions): drop "worktree-" prefix from displayed branch name #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "drop-worktree-branch-prefix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The session DTO's
branchfield is a UI-only label — we don't drive git with it (claude-code's--worktree NAMEis what creates the actual worktree branch on the worker). Theworktree-prefix on the DB column duplicated the concept already implied by the adjacentworktree_namefield and rendered as visual noise in the Sessions list (e.g.worktree-alphainstead of justalpha).This commit drops the prefix in
service.ts:113and updates the three fixture rows inservice.test.ts.Scope: pure cosmetic. No schema change. Existing rows in production databases will keep their old
worktree-*value until the session is deleted and recreated — acceptable sincebranchis display-only.Note: this is independent of #8 (Config Explorer) and branches off
main.Pull request closed