mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
The empty-session launch surface needed to behave like a real coding-agent entry point: project, branch, and worktree choices are now visible together, and branch choices that cannot safely run in-place force an isolated worktree before session creation. Constraint: Desktop launch flows must preserve repository safety when a target branch is dirty or checked out elsewhere Rejected: Keep branch and worktree controls as detached chips | the selection state was easy to miss and visually inconsistent with the launcher Confidence: high Scope-risk: moderate Directive: Do not remove the automatic worktree requirement without rechecking dirty and checked-out branch launches through the desktop UI Tested: cd desktop && bun run test -- --run src/components/shared/DirectoryPicker.test.tsx src/pages/EmptySession.test.tsx Tested: cd desktop && bun run lint Tested: bun run check:desktop Tested: browser-driven desktop smoke on ports 4789/4790 Not-tested: bun run verify still has the pre-existing agent-utils coverage ratchet failure outside desktop