Skip to content

[FEATURE]: Implement /share and /unshare for v2 sessions (documented but hardcoded stubs in v2.0.21) #52575

Closed as not planned

Description

@DEAD1nsane

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

Implement /share and /unshare for v2 sessions — or, if implementation isn't imminent, gate the docs page, keybind schema, and TUI command entries per major version so v2 users aren't advertised a feature that cannot work.

Current state (v2.0.21): both commands are hardcoded stubs. packages/tui/src/routes/session/index.tsx:

// L897-902 — /share
{ title: "Share session", id: "session.share", slash: { name: "share" },
  run: () => unavailable("Sharing") },        // hardcoded stub

// L975-981 — /unshare (also enabled: false)
run: () => unavailable("Unsharing"),

// L682-685 — the toast both hit
toast.show({ message: `${feature} is not implemented for V2 sessions yet`, ... })

Running /share toasts Sharing is not implemented for V2 sessions yet. Meanwhile:

  • opencode.ai/docs/share documents sharing as fully functional (manual/auto/disabled modes, privacy guidance, enterprise policy)
  • the v2 keybind schema (opencode.ai/v2/cli.json) exposes session.share ("Share current session") and session.unshare with no unavailability note

Why it matters: the phantom-feature problem — nothing in docs, keybinds, or the command palette marks the feature unavailable for v2. Users only discover it's missing by trying it. This is the same class as #52491 (tabs.layout: vertical documented but silently ignored on narrow terminals): documented surface, v2 runtime doesn't deliver, no upfront signal.

Preferred outcome: implement sharing for v2 sessions — the v1 backend exists (share links at opncd.ai/s/<id>, API referenced in #45525). Fallback acceptable: honest per-version gating ("not yet available in v2") in docs, keybind schema, and the command entries.

Existing share-related issues (#45525, #41124, #48305) concern the v1 backend's security/retention behavior, not v2 missing the feature entirely. No workaround exists on v2 today; the only path is v1 if still installed.

Activity

  1. added
    needs:compliance
    on Oct 1, 2026
  2. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • This is framed as a feature request, but the title must start with [FEATURE]: and the Feature Request template's verification checkbox is missing. Please use that template and account for the existing related request below.

    Please edit this issue to address the above within 72 hours, or it will be automatically closed.


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

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. changed the title [-]docs/tui: /share and /unshare documented as working in v2 but are hardcoded stubs[/-] [+][FEATURE]: Implement /share and /unshare for v2 sessions (documented but hardcoded stubs in v2.0.21)[/+] on Oct 1, 2026
  4. removed
    needs:compliance
    on Oct 1, 2026
  5. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the Feature Request template details and clear context. This now meets the issue requirements.

  6. nexxeln commented on Oct 2, 2026

    @nexxeln
    Contributor

    share is in the roadmap. will be added soon

  7. DEAD1nsane commented on Oct 15, 2026

    @DEAD1nsane
    Author

    share is in the roadmap. will be added soon

    Hey that sounds amazing! if you need any help on this, my Telegram is in my profile, send me a message and I'll do anything I can to make this happen!

  8. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the detailed write-up, @DEAD1nsane!

    You're asking for /share and /unshare to work in v2 sessions, or, if they can't yet, for the docs, keybind schema and command palette to say so.

    Since v2.0.21, session sharing has been retired on purpose (#55716):

    • The v2 /share command was removed.
    • The share docs pages were taken down.
    • The session.share and session.unshare keybinds are still accepted so existing configs don't error. Their descriptions now read "Deprecated: session sharing was removed".

    From v2.1.0 onwards, v2 no longer advertises sharing, which covers your fallback. If you upgrade, you shouldn't see the old "not implemented yet" stubs.

    I'll leave the request to bring sharing back for maintainers to consider.

    Related:

  9. DEAD1nsane commented on Oct 28, 2026

    @DEAD1nsane
    Author

    @nexxeln Thanks for the update! That's great news that it's on the roadmap.

    share is in the roadmap. will be added soon

    I'll keep an eye out for it. My offer still stands - if you need any help implementing this, feel free to reach out (Telegram is in my profile).

  10. neriousy commented on Nov 19, 2026

    @neriousy
    Member

    Session sharing was retired in #55716, which removed the V2 /share command and the share docs and marked the share keybinds deprecated, so the stubs this issue describes are gone. If sharing comes back it will be tracked separately.

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