ZHOU-ZHIZHEN/dsh-terminal-context

dsh-terminal-context turns a text selection in DSH's built-in sidebar terminal into a native @file reference chip in the composer with one click (or Ctrl/Cmd+L): the captured text is written to a provenance-stamped capture file under the workspace and expanded to full text on send, instead of inlining long terminal logs.

dsh-terminal-context turns a text selection in DSH's built-in sidebar terminal into a native @file reference chip in the composer with a single click - or Ctrl+L (Cmd+L on macOS) while the selection is live. Selecting terminal text and focusing the composer reveals an 'Add to context' button docked above the composer (anchored there because xterm's highlight overlay cannot give a reliable bounding box once a selection collapses). The selected text is saved to <workspace>/.dsh/term-captures/terminal-<timestamp>.txt with a provenance header and inserted as a chip that expands to the full file on send, so long terminal logs do not bury the question, waste context tokens or lose provenance. Trailing padding that xterm adds to every row is stripped while visible text is preserved verbatim, and clearing the selection hides the button immediately so no stale capture is sent.

Web UI Enhancements ★ 2
View on GitHub ↗

Install

dsh plugin --profile web add github:ZHOU-ZHIZHEN/dsh-terminal-context

Copied verbatim from the README's 'Option 2: Web Profile / CLI Install' block; the README also documents a desktop-GUI route (enter github:ZHOU-ZHIZHEN/dsh-terminal-context in Add Plugin) and a local tarball form.

Compatibility

A DeepSeek Harness Web client plugin; the README notes the desktop profile is managed exclusively by the Electron application, so CLI installs target the web profile while desktop users install via the GUI. The shortcut uses command ID dsh-terminal-context.add and can be rebound under Settings -> Keyboard shortcuts, and it does not claim Ctrl+L when no valid terminal selection exists.

Details

Alternatives

0lidaxiang/dsh-plugin-greet · 147228/dsh-black-whale · 15828148/dsh-portable-launcher

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins