Skip to content

Can't unshare vanished session #8397

Closed
Closed

Description

@catalinpit

Description

Hey!

I was using the plan mode in Opencode and I shared the session so I can show the conversation to one of my friends. However, Opencode became buggy and I had to close Opencode altogether (I regret not taking pics so I can share them here).

Now, the issue is that I can't find the session in my list of sessions. So I can't unshare it. Can you help me, please?

Random thought: wouldn't be useful to have a /shares or some similar command that shows all the active shared links? From there you could unshare/delete them.

Activity

  1. github-actions commented on Jan 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. MartinEmilJakobsen commented on Jan 15, 2026

    @MartinEmilJakobsen

    I had the same problem using the desktop version where unshare is not implemented - I was able to manually delete the share like this:

    1. locate the session-share {id} and {secret}. On windows this was located in ../users/{user}/.local/share/opencode/storage/session_share/,
    2. run curl -X DELETE "https://opncd.ai/api/share/{id}" -H "Content-Type: application/json" -d "{\"secret\": \"{secret}\"}"
  3. catalinpit commented on Jan 16, 2026

    @catalinpit
    Author

    I had the same problem using the desktop version where unshare is not implemented - I was able to manually delete the share like this:

    1. locate the session-share {id} and {secret}. On windows this was located in ../users/{user}/.local/share/opencode/storage/session_share/,
    2. run curl -X DELETE "https://opncd.ai/api/share/{id}" -H "Content-Type: application/json" -d "{\"secret\": \"{secret}\"}"

    Thank you!

  4. LeadroyaL commented on Mar 21, 2026

    @LeadroyaL

    I had the same problem using the desktop version where unshare is not implemented - I was able to manually delete the share like this:

    1. locate the session-share {id} and {secret}. On windows this was located in ../users/{user}/.local/share/opencode/storage/session_share/,
    2. run curl -X DELETE "https://opncd.ai/api/share/{id}" -H "Content-Type: application/json" -d "{\"secret\": \"{secret}\"}"

    I don't have this file. (OpenCode 1.2.27)
    But everything is in ~/.local/share/opencode/opencode.db.

    sqlite3 -line /private/tmp/opencode.db "SELECT * FROM session_share;"
    

    But when session is deleted, this record will also be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions