Overview
What It Fixes
- Preserves Haiku manual thinking.
- Rebuilds the final request body into a 3-block Claude Code-style system shape.
- Moves the original OpenCode system prompt into the opening messages so local instructions survive the rewrite.
- Adds Claude Code-style metadata and request/session IDs.
- Leaves Sonnet and Opus untouched.
Verification
Bash
npm test
opencode run -m anthropic/claude-haiku-4-5-20251001 "Reply OK only."
中文简介
具体修复
- 保住 Haiku manual thinking。
- 将最终请求改成 Claude Code 风格三段 system。
- 将原始 OpenCode system prompt 移入开头 messages,避免本地指令丢失。
- 补齐 Claude Code 风格 metadata、request ID 和 session ID。
- 对非 Haiku 模型提前退出,不影响 Sonnet 和 Opus。












