[PR #5523] fix(session): fix unshare command not clearing share state #11451

Closed
opened 2026-02-16 18:16:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5523

State: closed
Merged: Yes


Summary

Fix sharing-related issues: unshare command not working and wrong share URL displayed

Changes

Commit 1: fix unshare command (Fixes #5493)

  • Fixed code path mismatch: unshare now uses ShareNext.remove() like share does
  • Fixed storage key bug in ShareNext.remove() (was using wrong key)
  • Added toast feedback for unshare command

Commit 2: fix share URL display (Fixes #5522)

  • --share flag was showing hardcoded URL opencode.ai/s/xxx
  • Now shows actual URL from API response opncd.ai/share/xxx
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5523 **State:** closed **Merged:** Yes --- ## Summary Fix sharing-related issues: unshare command not working and wrong share URL displayed ### Changes **Commit 1: fix unshare command** (Fixes #5493) - Fixed code path mismatch: `unshare` now uses `ShareNext.remove()` like `share` does - Fixed storage key bug in `ShareNext.remove()` (was using wrong key) - Added toast feedback for unshare command **Commit 2: fix share URL display** (Fixes #5522) - `--share` flag was showing hardcoded URL `opencode.ai/s/xxx` - Now shows actual URL from API response `opncd.ai/share/xxx`
yindo added the pull-request label 2026-02-16 18:16:17 -05:00
yindo closed this issue 2026-02-16 18:16:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11451