mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
Non-Git folders are valid launch targets for desktop sessions, so the composer should not render them as an inline repository warning. The branch and worktree controls remain hidden outside Git repositories while server-side repository validation still protects actual branch-launch requests. Constraint: Non-Git directories must remain usable as ordinary session workdirs. Rejected: Keep the inline not-Git warning | it reads like an error even though the user can continue normally. Confidence: high Scope-risk: narrow Directive: Keep dirty-worktree and checked-out-branch warnings visible because those still require a launch-mode decision. Tested: cd desktop && bun run test -- --run src/pages/EmptySession.test.tsx src/components/chat/ChatInput.test.tsx Tested: bun run check:desktop Tested: git diff --check -- desktop/src/components/shared/RepositoryLaunchControls.tsx desktop/src/pages/EmptySession.test.tsx desktop/src/i18n/locales/en.ts desktop/src/i18n/locales/zh.ts Not-tested: Native Tauri packaged window visual check