anomalyco / anomalyco/opencode
Unsharing or deleting a session leaves /api/share/:id/data publicly visible
@jlongster is already working on this.
Since Aug 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
After a session is unshared (via /unshare) or deleted, the conversation data is still publicly visible. The share page may show "Not Found", but the raw conversation remains readable at /api/share/:id/data with no authentication.
Steps to reproduce
- Create a shared session.
- Run
/unshare(orDELETE /api/share/:idwith the share secret). - The share page shows "Not Found", but
GET /api/share/:id/datastill returns the full conversation JSON.
Observed behavior
- The delete/unshare endpoint returns
500 Internal Server Errorin this state. GET /api/share/:id/datacontinues to serve the entire conversation (hundreds of messages) to anyone with the link.- The data endpoint is cached with
stale-while-revalidate=86400, so the CDN can keep serving the content long after the unshare.
Expected behavior
Unsharing or deleting a session should fully remove both the share page and the backing /api/share/:id/data payload — including CDN invalidation — so the conversation is no longer publicly accessible.
Impact
Privacy issue: conversation content can remain publicly accessible after the user believes they have unshared or deleted it.
Request
- Fix unshare/delete so it reliably removes both the page and the data (with CDN purge).
- Provide a private channel (DM / email) where an affected share ID can be reported for urgent server-side purge, since the ID should not be posted publicly.
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.