mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The detached worktree implementation adds a Settings terminal for command-based setup flows. The merge keeps the target branch's current adapter/runtime dependencies while adding the new portable-pty backend, xterm frontend, UTF-8 output handling, and host-shell environment propagation. Constraint: Target branch had newer desktop dependency changes, including anyhow in the Tauri crate. Constraint: Existing uncommitted work in the main worktree had to stay out of this merge commit. Rejected: Fast-forward the checked-out branch under a dirty worktree | would risk mixing unrelated local changes into the branch state. Confidence: high Scope-risk: moderate Directive: Treat the terminal as host-shell integration; keep PATH and UTF-8 locale handling together when changing startup behavior. Tested: cargo fmt --check Tested: cargo test --lib Tested: cargo check Tested: cd desktop && bun run lint Tested: cd desktop && bun run test src/pages/TerminalSettings.test.tsx Tested: git diff --check Not-tested: Rebuilt macOS DMG from the target branch after merge.