Replies: 3 comments
-
|
incorrect model names i think try claude-opus-4-5-thinking |
Beta Was this translation helpful? Give feedback.
-
|
@xitex the model name is correctly set. |
Beta Was this translation helpful? Give feedback.
-
|
@xitex may i see your models opencode config? or where i can get the models template? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it a request payload issue?
Describe the bug
OpenCode session title generation fails when using Claude models through the Antigravity provider. Sessions show "New session - 2026-02-02T13:00:43.469Z" instead of descriptive titles like "Friendly greeting".
This affects only Claude models routed through CLIProxyAPI. Gemini and OpenAI models through the same proxy generate titles correctly.
Root Cause Analysis:
After investigating both OpenCode and CLIProxyAPI codebases, the issue appears related to:
ac802a4) that removedselectInstructionsand OpenCode User-Agent handlingcode_handlers.go:176-195attempted to address this but doesn't fully resolve itOpenCode's title generation flow:
packages/opencode/src/session/summary.ts:summarizeMessage()triggers the "title" agentLLM.stream()with a small model (defaults to Claude Haiku or similar)CLI Type
Antigravity (Claude Code compatible)
Model Name
gemini-claude-opus-4-5-thinkinggemini-claude-sonnet-4-5-thinkinggemini-claude-sonnet-4-5(Any Claude model routed through Antigravity provider)
LLM Client
OpenCode v1.1.48
Request Information
The title generation request is a simple streaming request to
/v1/messageswith:stream: trueThe request originates from OpenCode's Vercel AI SDK integration hitting
http://localhost:8317/v1/messages.Expected behavior
Session titles should be generated and displayed (e.g., "Friendly greeting", "TypeScript math utility functions") instead of "New session - {timestamp}".
OS Type
Additional context
Workaround: Setting
"small_model": "google/gemini-3-flash-preview"in OpenCode'sopencode.jsonbypasses the issue by routing title generation requests directly to Google instead of through CLIProxyAPI.Relevant CLIProxyAPI files to investigate:
sdk/api/handlers/claude/code_handlers.go-handleStreamingResponse()andhandleNonStreamingResponse()internal/runtime/executor/claude_executor.go-ExecuteStream()internal/translator/claude/gemini/claude_gemini_response.go- streaming response translationThe issue likely started after recent refactors to the translator layer. The fact that the gzip fix specifically mentions "title generation" suggests awareness of this issue area.
Beta Was this translation helpful? Give feedback.
All reactions