mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
The composer context rail should read as one compact group, not three stretched controls. This change removes flex growth from the repository picker, caps branch width by content, softens the active worktree state, and removes hover borders that made secondary state controls look primary. Constraint: Keep the existing composer and session layout unchanged. Rejected: Use a prominent active outline for worktree | it made the state look like the primary action. Confidence: high Scope-risk: narrow Directive: Keep this rail content-sized; long names should truncate inside chips instead of spreading across the bar. Tested: cd desktop && bun run test -- --run src/components/shared/DirectoryPicker.test.tsx src/components/chat/ChatInput.test.tsx src/pages/EmptySession.test.tsx Tested: bun run check:desktop Tested: agent-browser desktop screenshot /tmp/cc-haha-repo-controls-compact-worktree-active-final.png and mobile overflow check /tmp/cc-haha-repo-controls-compact-mobile-final.png Not-tested: Native Tauri packaged window visual check