Repository navigation
[FEATURE]: --format json does not print reasoning_content. #7202
Copy link
Copy link
Closed
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
--format json does not print reasoning_content for now:
$ opencode run --log-level DEBUG --format json --model xiaomi/mimo-v2-flash-thinking 'Using browser tool to close the browser.'
{"type":"step_start","timestamp":1767790882247,"sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","part":{"id":"prt_b988c2dc6001bXsFv0OrsMkp8a","sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","messageID":"msg_b988c1a5f001fxnzwEnS8bqiNq","type":"step-start"}}
{"type":"tool_use","timestamp":1767790883443,"sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","part":{"id":"prt_b988c31f9001fsXAlUj7wQVAkN","sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","messageID":"msg_b988c1a5f001fxnzwEnS8bqiNq","type":"tool","callID":"call_d46153bfcf1f4f5c9e90347f","tool":"browser_browser_close","state":{"status":"completed","input":{},"output":"{\n \"message\": \"Browser closed successfully\"\n}","title":"","metadata":{},"time":{"start":1767790883323,"end":1767790883439},"attachments":[]}}}
{"type":"step_finish","timestamp":1767790883443,"sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","part":{"id":"prt_b988c327100194VEblCc5wCY8h","sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","messageID":"msg_b988c1a5f001fxnzwEnS8bqiNq","type":"step-finish","reason":"tool-calls","cost":0.00121912,"tokens":{"input":16954,"output":85,"reasoning":69,"cache":{"read":5,"write":0}}}}
{"type":"step_start","timestamp":1767790885083,"sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","part":{"id":"prt_b988c38db001sNqLOAk31H8Hyn","sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","messageID":"msg_b988c3275001ZD3deWquk5ki3r","type":"step-start"}}
{"type":"text","timestamp":1767790885769,"sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","part":{"id":"prt_b988c3ab3001x6ZfK5RGGaAyze","sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","messageID":"msg_b988c3275001ZD3deWquk5ki3r","type":"text","text":"The browser has been closed successfully.","time":{"start":1767790885768,"end":1767790885768}}}
{"type":"step_finish","timestamp":1767790885769,"sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","part":{"id":"prt_b988c3b88001dZqZV5k9fXzd6P","sessionID":"ses_46773e5bcffergbbCsAcLxPFQh","messageID":"msg_b988c3275001ZD3deWquk5ki3r","type":"step-finish","reason":"stop","cost":0.00106589,"tokens":{"input":15011,"output":41,"reasoning":31,"cache":{"read":2055,"write":0}}}}
I have already verified the reasoning_content can be displayed correctly in TUI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
Activity
github-actions commentedon Jan 7, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
hksdpc255 commentedon Jan 7, 2026
claude-codeuses a different json schema but have thethinkingcontent:hksdpc255 commentedon Jan 7, 2026
If any of the terminal output I upload contains sensitive information, please remind me to remove it.
levabala commentedon Jan 23, 2026
+1 as it would be really nice to have for ralph-loop-like implementations on top of opencode
hksdpc255 commentedon Jan 26, 2026
@levabala Try PR #7434. I don't know why still no maintainers look review this. It just 3 lines additions.
foglerek commentedon Jan 27, 2026
+1, I rely on this in my harness that I'd like to wire opencode to.
github-actions commentedon Mar 29, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.