feat(footer): name the repository and show effort #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "footer-project-name-and-effort"
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?
Why
In a git worktree the folder is named after the branch, so the statusline printed the same string twice:
That first segment was
basename $PWD, faithful to the captured statusline script — but useless in a worktree.What changed
git rev-parse --path-format=absolute --git-common-dir, which reports the main checkout's.gitfrom a linked worktree. Memoized per cwd becauserender()runs every frame. Outside a repo, or if git fails, it falls back to the cwd basename, exactly as before.ctx.getThinkingLevel(); the footer appends it compactly (GPT-5.6 Sol · high), hidden when the level isoffor unavailable. NewfooterEffortboolean row in the Footer section, default on, read at render time so the toggle reflects live without a reinstall.Both are deliberate divergences from Claude Code — its script has no effort segment and shows effort only in banner prose ("Fable 5 with high effort"). Recorded in
docs/plans/2026-07-16-cc-input-box-footer.md.Validation
bun run test— 15/15 suites green, including new coverage forprojectNameFrom(linked worktree, main checkout, bare repo, non-repo, trailing slash), the effort suffix grammar in all three color modes' model segment, and the livefooterEfforttoggle.tsc --strictclean over all four entry points.installClaudeFooterpath against the actual~/Projects/worktrees/simpler/sim-276-badge-dynamic-typeworktree; it renderssimpler │ ⎇ sim-276-badge-dynamic-type │ GPT-5.6 Sol · high │ Ctx: 23%.68b6ff7a7atoa96cfb51be