sandbox-agent/research/opencode-compat/snapshots/native/message-2-response.json
Nathan Flurry 6a3345b954
fix: opencode compat tool call rendering and default to no-token (#95)
- Fix tool name lost on ToolResult events (persist via tool_name_by_call)
- Fix tool input lost on ToolResult events (persist via tool_args_by_call)
- Fix tool output in wrong field (error -> output)
- Fix text doubling in streaming (defer emit to ItemCompleted)
- Fix missing delta field in text streaming events
- Default server mode to no-token when --token not specified
- Add install-fast-sa and install-fast-gigacode justfile targets
2026-02-06 02:57:23 -08:00

52 lines
No EOL
1.5 KiB
JSON

{
"info": {
"id": "msg_c31b349c3001C3jUz57fj5vRae",
"sessionID": "ses_3ce4cbd76ffeHVa3mLvB00FXDV",
"role": "assistant",
"time": {
"created": 1770360359363,
"completed": 1770360359565
},
"error": {
"name": "APIError",
"data": {
"message": "Unauthorized: {\"type\":\"error\",\"error\":{\"type\":\"AuthError\",\"message\":\"Invalid API key.\"}}",
"statusCode": 401,
"isRetryable": false,
"responseHeaders": {
"cf-placement": "local-SJC",
"cf-ray": "9c98b01658355024-SJC",
"connection": "keep-alive",
"content-length": "74",
"content-type": "text/plain;charset=UTF-8",
"date": "Fri, 06 Feb 2026 06:45:59 GMT",
"server": "cloudflare"
},
"responseBody": "{\"type\":\"error\",\"error\":{\"type\":\"AuthError\",\"message\":\"Invalid API key.\"}}",
"metadata": {
"url": "https://opencode.ai/zen/v1/models/gemini-3-pro:streamGenerateContent?alt=sse"
}
}
},
"parentID": "msg_c31b349c2001kJD7I7MRSAVo57",
"modelID": "gemini-3-pro",
"providerID": "opencode",
"mode": "build",
"agent": "build",
"path": {
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
"root": "/home/nathan/sandbox-agent"
},
"cost": 0,
"tokens": {
"input": 0,
"output": 0,
"reasoning": 0,
"cache": {
"read": 0,
"write": 0
}
}
},
"parts": []
}