[PR #11809] feat(share): add message query param for deep linking to specific messages #13937

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

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

State: closed
Merged: No


Closes #11808

This change allows users to share links to specific messages in a shared session by adding a ?message=msgId query parameter.

Changes:

  • Replaced local store state with useSearchParams from SolidJS router
  • Added messageId memo to handle the query param value (handling both string and array cases)
  • Links like https://opncd.ai/share/some-code?message=abc123 will now load that specific message directly

Example:

  • https://opncd.ai/share/xyz789 → opens first message
  • https://opncd.ai/share/xyz789?message=msg_456 → opens message with ID msg_456
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11809 **State:** closed **Merged:** No --- Closes #11808 This change allows users to share links to specific messages in a shared session by adding a `?message=msgId` query parameter. **Changes:** - Replaced local store state with `useSearchParams` from SolidJS router - Added `messageId` memo to handle the query param value (handling both string and array cases) - Links like `https://opncd.ai/share/some-code?message=abc123` will now load that specific message directly **Example:** - `https://opncd.ai/share/xyz789` → opens first message - `https://opncd.ai/share/xyz789?message=msg_456` → opens message with ID `msg_456`
yindo added the pull-request label 2026-02-16 18:18:45 -05:00
yindo closed this issue 2026-02-16 18:18:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13937