Skip to content

Open a stash from a stashpad://stash link - #38

Merged
EarMaster merged 2 commits into
mainfrom
develop
Nov 5, 2026
Merged

EarMaster merged 2 commits into
mainfrom
develop

Conversation

@EarMaster

Copy link
Copy Markdown
Owner

The cloud's show_stash now hands an agent in a terminal a stashpad://stash/ link instead of the stash's text, and the MCP Apps card has an "Open in Stashpad" button that opens the same link. The app registered the scheme but only answered the sign-in callback.

deep-link.ts parses the link and listens both for the one the app was launched with (getCurrent) and for later ones (onOpenUrl, reached through the single-instance plugin on Windows and Linux, which also brings the window forward). Queue holds the id until the stash is loaded - a launch link arrives before the first load - then switches context if needed and reveals it, the same way following a reference does.

Tests cover the parser and both delivery paths; the full suite and tsc pass.

EarMaster and others added 2 commits November 5, 2026 02:52
The cloud's show_stash now hands an agent in a terminal a stashpad://stash/<id>
link instead of the stash's text, and the MCP Apps card has an "Open in
Stashpad" button that opens the same link. The app registered the scheme but
only answered the sign-in callback.

deep-link.ts parses the link and listens both for the one the app was launched
with (getCurrent) and for later ones (onOpenUrl, reached through the
single-instance plugin on Windows and Linux, which also brings the window
forward). Queue holds the id until the stash is loaded - a launch link arrives
before the first load - then switches context if needed and reveals it, the
same way following a reference does.

Tests cover the parser and both delivery paths; the full suite and tsc pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@EarMaster
EarMaster merged commit ba2e4a1 into main Nov 5, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant