mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
Empty active session tabs were still using the old directory-only picker, so sessions created from the sidebar lost the branch and worktree controls even when their workDir was a Git repository. Reuse the launch controls below the existing composer and replace only the empty session when the user changes repository launch options. Constraint: Sidebar-created sessions land in ActiveSession, not the EmptySession landing view Rejected: Reshape the whole session layout | the intended surface is only the controls below the composer Confidence: high Scope-risk: narrow Directive: Keep repository launch controls shared between EmptySession and empty ActiveSession composer flows Tested: bun run test -- --run src/__tests__/pages.test.tsx src/components/chat/ChatInput.test.tsx Tested: bun run check:desktop Tested: agent-browser sidebar new-session smoke at http://127.0.0.1:4790/ with screenshot /tmp/cc-haha-after-sidebar-new-session-controls.png Not-tested: root bun run verify remains blocked by pre-existing root coverage gate outside desktop