Toolbar picture button in the DSH Web composer: click to pick multiple images through the native file dialog — they join the same draft-image rail as drag-and-drop and paste, with the host image-format, per-message-count and per-image-size limits enforced inline.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-attach-picker
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:qwerty-k-de/dsh-attach-picker
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Adds a picture button to the DeepSeek Harness Web composer toolbar. Click it to open the system file dialog and pick one or more images — no drag-and-drop or paste needed. The chosen images land in the same draft-image rail that drag-and-drop and paste fill, and send with the message like any other attachment.
中文说明见 README.zh.md
Features
- One-click picture icon in the composer tool row (slot
conversation.input.left) - Native OS file picker, multi-select, filtered to the host's supported image types
- Honours the host's
imageLimits: supported formats, max images per message, max bytes per image — with inline error toasts (e.g.单张图片不能超过 X MB) - Uses the same draft-attachment pipeline as drag-and-drop and paste —
conversation.createDrafts(sessionId, files)theninputActions.addAttachments(ids)— so no special handling anywhere else - Works on both composer generations (DSH 0.2 and 0.1) from one build; the available pipeline is probed at render time
- Browser-side only; zero dependencies, tiny footprint
Install
From npm (recommended, prebuilt):
dsh plugin --profile web add dsh-attach-picker
From GitHub:
dsh plugin --profile web add github:qwerty-k-de/dsh-attach-picker
Restart dsh web (or just refresh the page — hot reload usually applies it).
Usage
- Open a conversation in DSH Web.
- Click the picture button in the composer tool row — the OS file dialog opens.
- Pick one or more images. They appear in the draft-image rail.
- Send the message; the images are attached like any others.
The button is disabled while a request is in flight.
How it works
- Client plugin registered via
package.json→dsh.client(platform: "web",exports["./client"]). - Injects into the composer slot
conversation.input.leftwithorder: -50. - On selection: limits come from the host projection
imageLimits(mediaTypes,maxImagesPerMessage,maxImageBytes) and are checked locally first; admitted files then go through the host's own intake path:- DSH 0.2 (
dsh0.2.x, the published contract):conversation.createDrafts(sessionId, files)yields draft descriptors, theninputActions.addAttachments(ids)fills the rail. WhenaddAttachmentsanswersfalse(adjudicating/submitting),conversation.releaseDraftAttachments(drafts)releases the drafts so nothing leaks. - Fallback: the parent composer entry's injected
addFiles(files, directories)— a host-internal channel, used only when that verb pair is absent. - DSH 0.1: the legacy
conversation.createDraftImages(files)+inputActions.addImages(...).
- DSH 0.2 (
- The outer element carries
data-dsh-attach-picker="<build>:<pipeline>"so the active path is identifiable from the DOM. - The Node side (
lib/index.js) is intentionally empty — all logic is browser-side.
Screenshots
Storefronts (e.g. dsh-market) show App-Store style screenshots. Declare them in this repo:
// screenshots.json
["assets/screenshot-1.png", "assets/screenshot-2.png"]
(1–8 images; paths relative to the file, inside this repo. Without it, storefronts fall back to images found in this README.)
Requirements
- DSH Web (
dsh web) with the standard conversation / slots client services. - Both 0.1.x and 0.2.x work; 0.1.1 onwards targets the 0.2 attachment API.
- No runtime dependencies.
Changelog
See CHANGELOG.md.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8978
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8978
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 5292
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
ccch1mneyyy/dsh-TUI★ 4819
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4290
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1478
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.