/export-session-locally is obviously missing, but is there a hidden idea behind that? #268

Closed
opened 2026-02-16 17:26:00 -05:00 by yindo · 5 comments
Owner

Originally created by @dataf3l on GitHub (Jun 24, 2025).

Originally assigned to: @thdxr on GitHub.

the feature request:

the /export takes as input the current session, and instead of sending it over the network, it just makes a file ./$date/session-export-agentcode.html which contains.

  1. all the input and the output of the model, debugable
  2. small toggle on div on js so we can expand and contract the model's output
  3. some link somewhere to agentcode maybe at the beginning or the end
  4. all the diffs, the patches, and the command executions
  5. all the user prompts, since these are key to preserve, so we can have repeatable processes, and project documentation
  6. ideally, a summary of the whole thing, so we can easily share it, but like, within our teams.

or some version of that.

I agree with the philosophy of open source and open code, but we can't force our users to share their work, we should be open and free to the idea that our users may not want to share the code everywhere, git doesn't force me to share my code with others, neither does vscode, why does this tool have no /export, that's a pretty basic feature.

I think the self-serving interests should be subservient to a greater good, if this is truly open source, why require users to share with a single domain? why not offer our users the same freedom and affordances offered to us by previous open source tool makes like linus et al? we stand in the shoulders of giants, let's not mess it up for those that come after us.

the main issue is ethics here, not the feature.
let's make a statement, we care about open source, we care about our users, we care that they can /export their work freely.

Originally created by @dataf3l on GitHub (Jun 24, 2025). Originally assigned to: @thdxr on GitHub. the feature request: the /export takes as input the current session, and instead of sending it over the network, it just makes a file ./$date/session-export-agentcode.html which contains. 1. all the input and the output of the model, debugable 2. small toggle on div on js so we can expand and contract the model's output 3. some link somewhere to agentcode maybe at the beginning or the end 4. all the diffs, the patches, and the command executions 5. all the user prompts, since these are key to preserve, so we can have repeatable processes, and project documentation 6. ideally, a summary of the whole thing, so we can easily share it, but like, within our teams. or some version of that. I agree with the philosophy of open source and open code, but we can't force our users to share their work, we should be open and free to the idea that our users may not want to share the code everywhere, git doesn't force me to share my code with others, neither does vscode, why does this tool have no /export, that's a pretty basic feature. I think the self-serving interests should be subservient to a greater good, if this is truly open source, why require users to share with a single domain? why not offer our users the same freedom and affordances offered to us by previous open source tool makes like linus et al? we stand in the shoulders of giants, let's not mess it up for those that come after us. the main issue is ethics here, not the feature. let's make a statement, we care about open source, we care about our users, we care that they can /export their work freely.
yindo closed this issue 2026-02-16 17:26:00 -05:00
Author
Owner

@adamdotdevin commented on GitHub (Jun 24, 2025):

prs welcome

@adamdotdevin commented on GitHub (Jun 24, 2025): prs welcome
Author
Owner

@thdxr commented on GitHub (Jun 24, 2025):

your data is already available at ~/.local/share/opencode/project - you can implement a custom renderer for it

@thdxr commented on GitHub (Jun 24, 2025): your data is already available at `~/.local/share/opencode/project` - you can implement a custom renderer for it
Author
Owner

@dataf3l commented on GitHub (Jun 24, 2025):

➜  ~ cd ~/.local/share/opencode/projects                                
cd: no such file or directory: /Users/b/.local/share/opencode/projects
➜  ~ uname -a               
Darwin m1machine.local 23.6.0 Darwin Kernel Version 23.6.0: Thu Dec 19 20:47:33 PST 2024; root:xnu-10063.141.1.703.2~1/RELEASE_ARM64_T8103 arm64
➜  ~ cd ~/.local/share/opencode/projects
cd: no such file or directory: /Users/b/.local/share/opencode/projects
➜  ~ 


@dataf3l commented on GitHub (Jun 24, 2025): ``` ➜ ~ cd ~/.local/share/opencode/projects cd: no such file or directory: /Users/b/.local/share/opencode/projects ➜ ~ uname -a Darwin m1machine.local 23.6.0 Darwin Kernel Version 23.6.0: Thu Dec 19 20:47:33 PST 2024; root:xnu-10063.141.1.703.2~1/RELEASE_ARM64_T8103 arm64 ➜ ~ cd ~/.local/share/opencode/projects cd: no such file or directory: /Users/b/.local/share/opencode/projects ➜ ~ ```
Author
Owner

@ndraiman commented on GitHub (Jun 27, 2025):

I wanted the ability to export and view exported sessions in the web UI.
so I opened a PR here: #466

Still in Draft mode since I'm looking for feedback @thdxr @adamdotdevin 🙏🏻
There's a video example inside.

Edit (06/28):

Fixed conflicts with the new SDKs.
But now I need the Client SDK to be regenerated to support the Export commands

@ndraiman commented on GitHub (Jun 27, 2025): I wanted the ability to export and view exported sessions in the web UI. so I opened a PR here: #466 Still in Draft mode since I'm looking for feedback @thdxr @adamdotdevin 🙏🏻 There's a video example inside. Edit (06/28): Fixed conflicts with the new SDKs. But now I need the Client SDK to be regenerated to support the Export commands
Author
Owner

@ndraiman commented on GitHub (Jun 28, 2025):

With adding streaming support to the messages API we can invoke the agent from the Web UI:

https://github.com/user-attachments/assets/693714e4-7cc9-49a1-a275-55f9ecb376e4

@ndraiman commented on GitHub (Jun 28, 2025): With adding streaming support to the messages API we can invoke the agent from the Web UI: https://github.com/user-attachments/assets/693714e4-7cc9-49a1-a275-55f9ecb376e4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#268