cc-haha/docs/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.7 KiB
Raw Blame History

layout hero features
home
name text tagline image actions
Claude Code Haha 本地可运行的 Claude Code 基于泄露源码修复,支持接入任意 Anthropic 兼容 APIMiniMax、OpenRouter 等)
src alt
/images/logo-horizontal.png Claude Code Haha
theme text link
brand 快速开始 /guide/quick-start
theme text link
alt GitHub https://github.com/NanmiCoder/cc-haha
icon title details
🖥 完整 TUI 交互 与官方 Claude Code 一致的 Ink 终端界面,支持 --print 无头模式
icon title details link
🧠 记忆系统 跨会话持久化记忆自动提取、智能检索、AutoDream 做梦整合 /memory/
icon title details link
🤖 多 Agent 系统 多代理编排、并行任务执行、Teams 协作、Worktree 隔离 /agent/
icon title details link
🧩 Skills 系统 可扩展能力插件、自定义工作流、条件激活 /skills/01-usage-guide
icon title details link
🌐 第三方模型支持 接入 OpenAI、DeepSeek、Ollama 等任意兼容模型 /guide/third-party-models
icon title details link
💬 IM 接入 在桌面端 webapp 配置 Telegram / 飞书,并通过独立 adapter 进程远程对话 Claude Code /im/
icon title details link
💻 Computer Use 桌面控制功能 — 截屏、鼠标、键盘操作Python Bridge 实现) /features/computer-use
icon title details link
🖥 桌面端 基于 Tauri 2 + React 的图形化客户端多标签、多会话、IM 适配器接入,支持 macOS 和 Windows /desktop/