[FEATURE]: add option to Export thinking and tool use inputs/outputs #3042

Open
opened 2026-02-16 17:38:20 -05:00 by yindo · 5 comments
Owner

Originally created by @Ninja3047 on GitHub (Nov 21, 2025).

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

Right now the export to markdown only exports the user and assistant messages and nothing about the reasoning or the tool use information. Only the tools used are exported but nothing about the details of what parameters were used or the output of the tools.

I know it could potentially make the markdown export very large so maybe having it as an option would suffice.

Originally created by @Ninja3047 on GitHub (Nov 21, 2025). ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Right now the export to markdown only exports the user and assistant messages and nothing about the reasoning or the tool use information. Only the tools used are exported but nothing about the details of what parameters were used or the output of the tools. I know it could potentially make the markdown export very large so maybe having it as an option would suffice.
yindo added the discussion label 2026-02-16 17:38:20 -05:00
Author
Owner

@dan-kirberger commented on GitHub (Nov 21, 2025):

I figure it would make troubleshooting issues like this easier: https://github.com/sst/opencode/issues/2464

I'm curious what tool call causes my token count to instantly quadruple, the output i see in the ui looks simple enough!

@dan-kirberger commented on GitHub (Nov 21, 2025): I figure it would make troubleshooting issues like this easier: https://github.com/sst/opencode/issues/2464 I'm curious what tool call causes my token count to instantly quadruple, the output i see in the ui looks simple enough!
Author
Owner

@rekram1-node commented on GitHub (Nov 24, 2025):

@Ninja3047 have u tried opencode export? It is everything u need, just not in markdown

@rekram1-node commented on GitHub (Nov 24, 2025): @Ninja3047 have u tried `opencode export`? It is everything u need, just not in markdown
Author
Owner

@Rom888 commented on GitHub (Dec 20, 2025):

I see this exported markdown with empty assistant and tool.
Is this by design or a bug?

# Debugging npx jest in.service.spec.ts failure

**Session ID:** ses_4d84ff224ffeYhLIVwlrNF5nxB
**Created:** 12/16/2025, 6:03:27 PM
**Updated:** 12/19/2025, 6:38:58 PM

---

## User

this test: npx jest in.service.spec.ts failed, try to understand why

---

## Assistant

'''
Tool: read
'''

---

## Assistant
'''

'''
Tool: read
'''

---

## Assistant

'''
Tool: bash
'''

---
@Rom888 commented on GitHub (Dec 20, 2025): I see this exported markdown with empty assistant and tool. Is this by design or a bug? ``` # Debugging npx jest in.service.spec.ts failure **Session ID:** ses_4d84ff224ffeYhLIVwlrNF5nxB **Created:** 12/16/2025, 6:03:27 PM **Updated:** 12/19/2025, 6:38:58 PM --- ## User this test: npx jest in.service.spec.ts failed, try to understand why --- ## Assistant ''' Tool: read ''' --- ## Assistant ''' ''' Tool: read ''' --- ## Assistant ''' Tool: bash ''' --- ```
Author
Owner

@rekram1-node commented on GitHub (Dec 21, 2025):

i think its “by design” but could be improved for sure

@rekram1-node commented on GitHub (Dec 21, 2025): i think its “by design” but could be improved for sure
Author
Owner

@rektide commented on GitHub (Dec 24, 2025):

Opened #6089 because what we have now makes it basically impossible to reflect on what has happened in a session in any deep capacity.

Longer term I hope that the plugin API can give us hooks to be able to capture & understand the session at a deep level, ideally shunt it into observability systems like MCP Semantic Conventions. But this is an advanced hope! 🚀

@rektide commented on GitHub (Dec 24, 2025): Opened #6089 because what we have now makes it basically impossible to reflect on what has happened in a session in any deep capacity. Longer term I hope that the plugin API can give us hooks to be able to capture & understand the session at a deep level, ideally shunt it into observability systems like [MCP Semantic Conventions](https://github.com/open-telemetry/semantic-conventions/pull/2083). But this is an advanced hope! 🚀
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3042