Skip to content

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

Closed

Description

@dataf3l

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.

Activity

  1. adamdotdevin commented on Jun 24, 2025

    @adamdotdevin
    Member

    prs welcome

  2. thdxr commented on Jun 25, 2025

    @thdxr
    Member

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

  3. self-assigned this
    on Jun 25, 2025
  4. dataf3l commented on Jun 25, 2025

    @dataf3l
    Author
    ➜  ~ 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
    ➜  ~ 
    
    
    
  5. ndraiman commented on Jun 27, 2025

    @ndraiman
    Contributor

    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

  6. ndraiman commented on Jun 28, 2025

    @ndraiman
    Contributor

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

    Screen.Recording.2025-06-28.at.15.56.43.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions