cc-haha/docs/en/index.md
程序员阿江(Relakkes) 6d40b2befa fix: Keep desktop chats on selected provider runtimes
Desktop sessions can switch provider and model while a CLI subprocess is already alive, so the server now serializes runtime restarts and marks provider-managed launches to prevent stale settings env from overriding the selected provider. Provider settings also write API key env consistently and clear stale managed keys before syncing.

This includes the related desktop/docs brand asset refresh and keeps the desktop locale default in Chinese, with tests updated to match the current provider semantics.

Constraint: Session-scoped model selection must win over cc-haha/settings.json and inherited ANTHROPIC_* values.
Rejected: Store the selected model as a global provider activeModel | chat runtime selection is per session.
Confidence: high
Scope-risk: moderate
Directive: Do not remove CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST without validating Desktop provider switching against stale settings env.
Tested: bun test src/server/__tests__/conversation-service.test.ts src/server/__tests__/conversations.test.ts src/server/__tests__/providers.test.ts src/server/__tests__/providers-real.test.ts
Tested: cd desktop && bun run test src/stores/settingsStore.test.ts
Tested: cd desktop && bun run lint
Tested: git diff --check
Not-tested: Full desktop production package/signing.
2026-04-24 13:24:31 +08:00

1.3 KiB

layout hero features
home
name text tagline image actions
Claude Code Haha Locally Runnable Claude Code Repaired from leaked source, supports any Anthropic-compatible API endpoint (MiniMax, OpenRouter, etc.)
src alt
/images/logo-horizontal.png Claude Code Haha
theme text link
brand Quick Start /en/guide/quick-start
theme text link
alt GitHub https://github.com/NanmiCoder/cc-haha
icon title details
🖥 Full TUI Experience Ink terminal UI matching the official Claude Code interface, with --print headless mode
icon title details
🧠 Memory System Cross-session persistent memory with auto-extraction, smart retrieval, and AutoDream consolidation
icon title details
🤖 Multi-Agent System Agent orchestration, parallel tasks, Teams collaboration, Worktree isolation
icon title details
🧩 Skills System Extensible capability plugins, custom workflows, conditional activation
icon title details link
💻 Computer Use Desktop control — screenshots, mouse, and keyboard automation /en/features/computer-use
icon title details link
🌐 Third-Party Models Support for OpenAI, DeepSeek, Ollama, and any compatible model /en/guide/third-party-models