Repository navigation
Desktop: open a specific session from a dsh://open?session= deep link #13820
Replies: 6 comments 4 replies
Status: the producer side now existsThe consumer half of this proposal is no longer hypothetical. Agent HUD merged the session-level link: jazzenchen/agent-hud-open#132 (merge commit That means every current DSH install on Windows can already receive this link — and, without the patch, silently ignore the What was verified on a real machineRun today on Windows x64, with a local build of this patch:
One contract detail worth pinning down
The parser in this proposal accepts both The patch itself is still generated against a 2026-11-04 base ( |
Patch refreshed against current masterThe patch in the gist has been rebased from its 2026-11-04 base onto https://gist.github.com/FGBKILO-AGS/6c50bc1d22f95b3aa314fb9c59208e27 14 files, +366/−14. Gates on the rebased tree
One caveat about the fixtures: The rebased branch is also available locally at |
|
补充一个会话内定位的插件用例。我们在回答旁做了「回看路径」,已经可以按 请问 rc.5 或当前主线是否已有供外部插件调用的桌面导航接口?如果有,请指一下接口名或最小示例;如果目前只支持定位到会话或轮次,也想确认这个边界,方便我们决定是否继续在插件面板内展示原文。 |
Proposal: carry an event anchor in the link (
|
回应 @shiqiqingxi 关于 一、真实压缩实现(ToolResultPruner):seq 不位移,原文不丢用仓库里真实的
同一会话(真实压缩之后)的 surface 标记,用 即:压缩写了一个 二、v3→v4 迁移:只有插入合成事件时才位移(a)中断场景(turn 1 结束后直接 (b)平衡场景( 所以准确的说法是:迁移需要插入合成事件时,从插入点起整体后移;不需要插入时映射不变。 三、对你们用例的结论
四、依据出处实测跑在本地检出(base
|
|
补充一个 macOS 插件用例。Workbench 希望在会话菜单里复制一条链接,让用户从浏览器、笔记或其他应用打开同一个会话。我们核对了日常 Desktop 0.2.2-rc.5 和 0.2.3-alpha.2 标签( 如果可以优先落地一版,能否先支持文档化的会话级链接?验收用例是 macOS 上完全退出和已经运行两种情况下,从外部打开指向另一工作区会话的链接,均导航到该会话。会话 ID 无效或不可访问时,希望保持当前会话并给出明确反馈。会话内消息定位可以后续单独演进。 |
Uh oh!
There was an error while loading. Please reload this page.
What
The desktop app handles
dsh://openby focusing its main window. Nothing in the URL says which session to show, so an external tool that knows a session id (Agent HUD's "return to session", a notification, a script) can only bring the app forward — not land on the conversation the user asked for.This proposes a session parameter:
dsh://open?session=<id>. The main process parses it on cold start (argv), onsecond-instance(argv) and on macOSopen-url, hands the id to the focused workspace through a smalldeepLink.take()/subscribe()product bridge, and the workspace drains it once itssessions/workspacessnapshots are ready and callsuiWorkspace.openSession(id).Why this shape
uiWorkspace.openSessionalready exists and is the one place that switches the main view; the deep link only decides when to call it.take(), then cleared. A running window gets it throughsubscribe().session-<uuid>(dashed 36 or compact 32 lowercase hex) andorchestrator-<8–64 lowercase hex>pass. Unknown or malformed ids are ignored, so the app keeps its current view instead of blanking.dsh://openwithout a session, any other host or path, and builds without the desktop bridge all behave exactly as today.Patch
The change is 14 files (+366/−14) on top of
fcc0ad4621(the merge ofrelease-dsh-0.2.2-rc.1-to-master). It has not been rebased onto currentmaster.apps/desktop/src/deep-link.ts— strict parser (dsh://, hostopen, empty path, onesessionparam, whitelisted id) plusparseDeepLinkSession(argv).apps/desktop/src/main.ts— module-level pending id,notifyDeepLink,deepLinkTakeIPC, cold-start drain when the window enters the workspace,open-urlandsecond-instancewiring.apps/desktop/src/single-instance.ts— listener now receivesargvand passes it tofocusOwner(argv).apps/desktop/src/ipc.ts/preload-app.ts—deepLink.take()/subscribe()bridge.packages/client/ui-workspace/src/client/deep-link.ts—installDeepLinkNavigation: wait for snapshots, open, archived notice, unknown-id warning, no-op without the bridge.Patch (applies with
git am): https://gist.github.com/FGBKILO-AGS/6c50bc1d22f95b3aa314fb9c59208e27I kept it out of a pull request because
CONTRIBUTING.mdsays external pull requests are not accepted at the moment; happy to turn it into a PR, split it, or adjust the parsing/bridge design if you'd rather take it another way.Consumer
Agent HUD builds
dsh://open?session=<id>only on Windows and only when the registry owns thedsh://scheme, and falls back to the plaindsh://openfocus link otherwise; an older Harness that ignores the parameter therefore keeps working. That side is proposed separately in jazzenchen/agent-hud-open#132.All reactions