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

41 lines
1.3 KiB
Markdown

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