Repository navigation
feat(core): 升级 DSH 0.2.2-rc.1 并复用官方桌面能力 - #276
Merged
Merged
Conversation
freedomkk-qfeng
marked this pull request as ready for review
November 5, 2026 06:11
freedomkk-qfeng
added a commit
that referenced
this pull request
Nov 26, 2026
…0.2.2 tool pipeline (#367) Since the upgrade to DSH 0.2.2 (#276), ctx.tools.execute takes only a model batch ({ calls, signal, agent, toolSet }). The runner behind browser_read and browser_act still passed one call ({ callId, name, arguments, parent }), so every page read or action in the desktop app failed with "Tool batch execution failed". The plugin's test replaced ctx.tools.execute with a hand-written stand-in and was not in CI, so it kept passing. The runner now prepares, dispatches and completes each Playwright MCP call through ToolExecutionPipeline, as DSH's program tool calls do (tool-executor-ptc): under the run's root call, Agent, step tool set, signal and token as parent, so the browser permission still lets the run's own calls through without asking again. Context that hooks add to those calls is deferred to the run's result, and a call that concludes the turn concludes it. read-act.test.mjs now runs the tools in DSH's real registry, executor and pipeline from the pinned Runtime, with only Playwright MCP's tools as stand-ins, and installs the plugin's guard, permission and screenshot note as its apply does. It checks each MCP call's place in the run's call tree, one approval per run, a rejected run not running, step admission, stopping a run, and hook context reaching the batch. CI runs it next to the Sidebar launch test. Co-authored-by: Feng_Qi <[email protected]>
freedomkk-qfeng
added a commit
that referenced
this pull request
Nov 26, 2026
* feat(browser): give Sidebar pages a right-click menu A page in the Sidebar browser showed nothing on a right click. The desktop bridge now opens a native menu for what was clicked, in the application's language: link items (new tab, system browser, copy address), image items (copy image, copy address), editing or copy for fields and selected text, and back, forward and reload elsewhere. New tabs and the system browser go through the same paths as the Sidebar's own toolbar and DSH's popup checks. The broker marks a page whose latest input came from its Agent, so the Agent's right clicks and menu keys reach the page's own handlers without showing a menu on the user's screen. Closes #358 * fix(browser): run browser_read and browser_act calls through the DSH 0.2.2 tool pipeline Since the upgrade to DSH 0.2.2 (#276), ctx.tools.execute takes only a model batch ({ calls, signal, agent, toolSet }). The runner behind browser_read and browser_act still passed one call ({ callId, name, arguments, parent }), so every page read or action in the desktop app failed with "Tool batch execution failed". The plugin's test replaced ctx.tools.execute with a hand-written stand-in and was not in CI, so it kept passing. The runner now prepares, dispatches and completes each Playwright MCP call through ToolExecutionPipeline, as DSH's program tool calls do (tool-executor-ptc): under the run's root call, Agent, step tool set, signal and token as parent, so the browser permission still lets the run's own calls through without asking again. Context that hooks add to those calls is deferred to the run's result, and a call that concludes the turn concludes it. read-act.test.mjs now runs the tools in DSH's real registry, executor and pipeline from the pinned Runtime, with only Playwright MCP's tools as stand-ins, and installs the plugin's guard, permission and screenshot note as its apply does. It checks each MCP call's place in the run's call tree, one approval per run, a rejected run not running, step admission, stopping a run, and hook context reaching the batch. CI runs it next to the Sidebar launch test. * feat(browser): let the user and the Agent clear the Sidebar browser's data The Sidebar browser keeps sign-ins and site data for each workspace, in memory, and nothing short of restarting the app cleared them. Clearing now lives in one place in the main process (sidebar-browser-data.mjs), reached from three entries: - "Clear data for this site…" on a page's menu, for that site in the page's workspace; - a row in Settings → General, for every workspace; - the Agent's browser_clear_data, for the site of the page it last read or its whole workspace, asked for outside Full Access. A site's cookies go on every subdomain, the storage of each of its origins the workspace loaded, and the workspace's HTTP cache, which Electron cannot clear by origin for resources other pages loaded. The open pages concerned then reload, bypassing what their renderers hold in memory, and clearing answers once they have. Closes #359 --------- Co-authored-by: 冯骐 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将公版默认内核从 DSH 0.2.1-rc.5 升到 0.2.2-rc.1,锁定上游提交
66491b05e3f05ad35bcdd4f6cd7ed26041d9e3db与 npm 输入。既有设置、账号、会话和插件选择继续迁移。验证:最新版主线整合后 41 项针对性检查通过,干净源码快照审计通过。Host、已发布 npm 组合、Windows Electron、设置/OIDC 恢复、浏览器、Office、批注和侧聊已有本机专项证据;身份、模型和网页使用合成夹具,不宣称真实学校服务验收。当前桌面桥接、Host、插件适配和构建代码与已验收组合一致。Windows/macOS CI 在本 PR 重新检查。
最新版 head 的全部检查通过,包括 Windows/macOS Host 与真实 Electron、Windows/Apple Silicon/Intel 构建合约及 Local Web。文献 #274、批注 #275 已合入并发布,精确锁与 CI 原包、registry 及 provenance 一致。六项可选插件开关由独立 PR #271 接续,使用相同 npm 原包开展组合验收。
0.4.11 桌面发布说明、三平台安装包及升级验收另行完成;此 PR 不发布桌面版本或机构更新源。