How to use dsh-ui-web
Provides a git branch selector and Git commit graph panel for DSH Web dialogs, with the host process actually executing git switch/create.
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
dsh-ui-web
— source: plugin_wiki.wiki_content
Install & verify
dsh plugin --profile web add @captain1275/dsh-client-ui-git-graph
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- 毛玻璃输入框:高斯模糊(backdrop-filter 30px)+ 半透明玻璃底 + 细边框 + 内高光
- 自定义背景:URL / 本地图片 / 动图(GIF/WebP)/ 视频(mp4/webm) / 透明度 / 模糊调节,
- 仿Claude Code推理等级滑块:点击模型菜单的「推理等级」弹出 Effort 滑块面板——无极拖动、松手吸附、
- 用户消息气泡毛玻璃:与输入框统一的玻璃质感
- 图片资源(社区同人资源,codex-pet-DeepSeek-girl)
— source: plugin_wiki.readme_en (fallback readme_raw)
FAQ
What does this plugin do?
Adds a git branch selection capsule and searchable branch list above the DSH Web dialog, and provides a Git commit graph panel, allowing users to switch/create branches and view history without leaving DSH.
Will it appear in the model context as git operation records?
No. git switch/create is executed by the host process directly on the disk working tree, does not write to session logs, nor is it fed to the model as a tool call (see src/index.ts:7-9 comments).
Which sessions are affected by switching branches?
Affects the entire workspace: the plugin executes git switch --no-guess <branch> at the repository root, all sessions in the workspace share the same working tree; it does not change the cwd for existing sessions (see src/host/git-service.ts:152-159).
Will branch chips appear in non-git directories?
No. The plugin hides branch chips when the workspace is not a git repository; they will appear after switching to a git directory on the next refresh (see src/client/chips/BranchChip.tsx:85).
What are common reasons for switch prevention?
Common reasons include unresolved merge conflicts in the repository, ongoing git operations (merge/rebase/cherry-pick etc.), the target branch being checked out by another worktree, or local modifications that would be overwritten by the target branch. The plugin provides human-readable error messages (see src/client/chips/error-copy.ts).
How to uninstall?
Simply remove the plugin package from the web profile: dsh plugin --profile web remove @captain1275/dsh-client-ui-git-graph (see README.md:65-66).
— source: plugin_wiki.faq_json
Compatibility
- DSH: 0.1.0-rc.6+
- Node: ^22.19.0 || >=24.0.0
- Platforms: 跨平台
— source: plugin_wiki.compatibility_json
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule