Introduction¶
The common approach to making an Agent operate web pages in DSH is to open a separate browser tab or rely on an extension to scrape the DOM. This often results in two different interfaces and two sets of states compared to the “official browser” in the chat sidebar. After a conversation switch, the iframe operated by the Agent and the page you see in the sidebar can also easily get out of sync.
dsh-webview-mode (maintainer vb2250158) connects the Agent to the official Sidebar Browser: tabs, the address bar, forward/back, refresh, and layout are still managed by the official UI. The plugin provides conversation_browser, allowing the Agent to operate the same browser instance as the iframe currently visible in the sidebar. The current version is 0.3.6 (consistent between package.json and the README).
- Catalog page: https://www.skillhub.cn/plugins/vb2250158/dsh-webview-mode
- Source code: https://github.com/vb2250158/dsh-webview-mode
What Is This¶
In one sentence: dsh-webview-mode is a DSH browser operation bridge plugin (description: Agent bridge for the official DSH Sidebar Browser), MIT licensed, author vb2250158.
What it solves: with the official Sidebar Browser enabled, it lets the Host-side Agent manage browser tabs within a conversation through a unified remote interface, and perform snapshots and DOM-level operations on the currently visible official iframe (the Web side is validated via the Chrome extension; the Desktop side has clear capability boundaries, see below).
Core Features¶
Integration with the Official Sidebar Browser¶
Since 0.3.4, the plugin reuses the official package @deepseek-ai/dsh-client-ui-sidebar-browser. The bundle automatically enables ui-sidebar-browser; the patch does not replace the official UI. Tab lifecycle and local storage follow the official Sidebar rules. After a refresh, restoration is handled according to the official explicit restoration rules; forms, scroll positions, or page memory are not restored.
conversation_browser Remote Capabilities¶
The operations listed in the README are retained as:
| Category | Methods |
|---|---|
| State and tabs | status, new, navigate, select, close, reload |
| Page understanding and interaction | snapshot, click, text, choose, scroll |
Recommended workflow: first call status, then snapshot the currently visible tab, execute actions using the latest snapshotId and element ref, and then re-read to verify. Navigation information cannot be taken as proof of successful page loading.
Constraints (all from the README):
- DOM operations only accept the currently visible official iframe belonging to the on-screen conversation; background tabs must be
selected first. - The Web extension validates identity by Chrome’s
tabId/frameId/documentId. - A snapshot contains at most 200 elements and 24000 characters; password fields and file controls are excluded; no reading of cookies, browser storage, or files; no arbitrary JavaScript is provided.
- DOM actions are synthetic events; Canvas, nested frames, closed Shadow DOM, or trusted physical keyboard/mouse are not supported; cancellation and timeout may occur after an action, and there is no automatic retry.
Old Tab Migration (0.3.6)¶
When a conversation is first opened, old tab IDs are copied one by one into the official sidebar; after success, a migration record is written. If the write fails, the newly created tabs are closed and the original archive is retained. Repeat visits do not re-import, and closed tabs are not automatically rebuilt. Old tabIds are mapped to official IDs via migration records; different browsers are migrated separately.
Since 0.3.6, the browser bridge follows the conversation displayed in the official sidebar, and migration errors in the global panel are fixed; if you leave the conversation during reading, migration progress is preserved, and actual storage failures are still reported.
Migration and operation polling are driven by the official sidebar’s conversation mount state: wait before the conversation is displayed; after leaving the conversation, stop taking new operations and release the mount subscription. The old ArchiveStore files are retained in their original directory as the migration source; reading the old archive supports conversations that have not yet been loaded without waking the Agent; operation queues and old archive writes still require loaded conversations.
Desktop vs. Web Differences (0.3.5)¶
Desktop uses the official Sidebar Browser’s tab creation, selection, closing, navigation, and refresh interfaces. status returns carrier: desktop, dom.state: unsupported, extension.state: not-applicable, and does not probe the Chrome extension.
On Desktop, web page snapshots, clicks, text input, selection, and scrolling still require the official controlled guest DOM interface, and these operations are currently explicitly rejected; the Web extension flow is unchanged. Desktop can continue to browse manually; the DOM bridge only supports Web iframes.
Installation and Activation¶
The fetched README does not provide a one-click install command like dsh plugin add …; the following are all conditions and steps from the original materials. Please do not assemble install commands yourself based on the repository name.
Environment Requirements¶
- The DSH version must satisfy the plugin’s peer requirements and the README requirements (the README states that DSH 0.2.1-alpha.1 is required).
- The Official Sidebar Browser must be enabled, and the runtime must have the
ctx.sidebarBrowserinterface. According to the materials: the currently publicly released official Client does not yet include this interface; a source-code runtime environment requires applying the in-package patch and rebuilding the Client:
patches/sidebar-browser-bridge.patch
After applying the patch, rebuild the Client package; the bundle will automatically enable ui-sidebar-browser.
- The Chrome extension version remains 0.2.3. Check the installation directory on the plugin detail page, load the extension, and authorize it for the current DSH origin. The extension does not need to be reloaded if only the plugin is modified this time; refresh the DSH page after a Host update.
The plugin runs with the permissions of the current DSH process; before installation, you should review the source code and MIT license yourself to confirm the patch scope and trust boundary.
Typical Usage (Agent Side)¶
The materials do not provide a complete JSON request example, but give a reproducible operation order. After the Host integrates conversation_browser, the Agent can call in the following order:
- Call
statusto confirm the carrier (Web / Desktop) and whether DOM is available. - If a non-current tab needs to be operated, first
selectand thensnapshot. snapshotthe currently visible tab, and takesnapshotIdand each element’sreffrom the result.- Use
click,text,choose,scroll, etc. to complete interactions; if necessary, usenavigate,reload,new,closeto manage tabs. - After the action completes,
snapshotagain or read the page state to verify.
The Web-side DOM bridge depends on the authorized extension; the Desktop side only guarantees official sidebar-level tabs and navigation, and DOM automation follows the rejection policy described above.
Use Cases and Notes¶
Suitable for:
- DSH developers who are already using or plan to use the official Sidebar Browser and want the Agent and the user to collaborate on the same visible iframe.
- Upgrade scenarios that need smooth migration from old ArchiveStore tabs to official sidebar storage.
- Teams willing to apply
sidebar-browser-bridge.patchper the documentation and sync the environment from a fixed Git commit (the verification workflow is in the README’s “Verification and Release”).
Notes:
- The community catalog SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer; the plugin is community-maintained and is not a built-in capability of the official app store.
- Restrictions on website embedding, third-party logins, etc. follow the official browser and Chrome policies; ordinary form values may enter the conversation log when the task requires it.
- Development verification:
pnpm test; optional environment variablesDSH_DOM_TEST_RESOLVE_FROMandDSH_EXTENSION_BROWSER_EXECUTABLEpoint to an existing jsdom/Playwright workspace and Chromium (not auto-downloaded).
Conclusion¶
dsh-webview-mode anchors the Agent’s browser capability to the official Sidebar Browser, unifies tabs and (Web-side) DOM operations via conversation_browser, and handles old tab migration and conversation visibility. If your Harness needs “the sidebar is what the Agent sees”, you can check the version 0.3.6 notes and the integration design in docs/sidebar-consolidation.md from the catalog page and GitHub.
- Catalog page: https://www.skillhub.cn/plugins/vb2250158/dsh-webview-mode
- Repository: https://github.com/vb2250158/dsh-webview-mode