[PR #7381] fix: correct /data API usage and data format for importing share URLs #12378

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

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

State: closed
Merged: Yes


Fixes opencode import failing for valid share URLs which currently return “Not Found” despite being publicly accessible.

Fixes

  • Fetch share data from the correct endpoint: /api/share/:id/data
  • Use ShareNext.url() instead of hardcoding url
  • Transform data returned by API into structure expected for local storage
  • Add unit tests demonstrating expected behavior for URL parsing and data transformation for local storage

Fixes #7106

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7381 **State:** closed **Merged:** Yes --- Fixes `opencode import` failing for valid share URLs which currently return “Not Found” despite being publicly accessible. **Fixes** - Fetch share data from the correct endpoint: `/api/share/:id/data` - Use `ShareNext.url()` instead of hardcoding url - Transform data returned by API into structure expected for local storage - Add unit tests demonstrating expected behavior for URL parsing and data transformation for local storage Fixes #7106
yindo added the pull-request label 2026-02-16 18:17:17 -05:00
yindo closed this issue 2026-02-16 18:17: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#12378