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