- Inicio
- Plugins
- Mejoras de UI
- dsh-team-switch-place
dsh-team-switch-place
zrrrrrrr77/dsh-team-switch-place
Puts the Agent Teams switch above the model and reasoning rows in the composer menu, out of mis-tap range. UI-only, no tokens; Tab lands on the reasoning row.
Instalar
dsh plugin --profile web add github:zrrrrrrr77/dsh-team-switch-placeREADME
Team switch on top (dsh-team-switch-place)
Moves the Agent Teams switch to the first row of the composer model menu, above Model and Reasoning.
The menu renders the Model and Reasoning rows itself and appends the Teams switch through the conversation.input.model.options slot, so the switch always lands third — right where the pointer enters the menu, one stray click away from turning the team on. This bundle lifts that row in the browser and leaves everything else alone: same switch, same state, same request.
- No tokens: the host half is empty — no tools, no prompt text, no model requests.
- No language matching: the row is found by structure (the only
role="switch"row in the menu), so it works in every UI language. - No official files touched: no patching, no forking, no overriding shipped packages.
- Reversible: disabling or removing the bundle puts the row back third, and the menu re-applies the order on every open.
Install
dsh plugin --profile web add dsh-team-switch-place
In the desktop app you can also use Plugins → Add plugin with the package name, or a local absolute path while developing. Reload the page afterwards (Ctrl+Shift+R): the boot manifest is generated per page load, so a newly installed client bundle arrives on refresh. If it does not, restart DSH once and reload.
Use
Nothing to switch on. Open the model menu under the composer and the Teams switch is the first row. On the keyboard the two paths differ on purpose: Tab skips the switch and lands on the reasoning row at the bottom (the Model row when the model publishes no effort levels), while ↑/↓ follow the visual order and start at the switch.
Limitations
- Scoped to the composer model menu on a root session. The
/modeldialog, subagent sessions, and the drilled-in model and reasoning panes are untouched. - It reads the official menu structure (
role="menuitem"rows plus arole="switch"row insiderole="menu"). A large upstream redesign may need an update; when the structure is not recognized the plugin does nothing and the menu stays as shipped. - The
Tabrule deliberately overrides the official focus order, which would otherwise handTabto the first row (now the switch). It applies only while the menu is open, focus sits on its trigger, and the key isTab; when the trigger cannot be identified the official behaviour stands. - It lifts the first row that carries a switch. If another plugin later adds its own switch to this menu, only the one found first is lifted.
- If upstream moves the switch out of the menu, this bundle stops applying.
Development
node --check client.js
node simulate.mjs
client.js is the browser half: a MutationObserver watches for the portaled menu and moves the Teams row to the front of its row container. index.js is an empty host half. tools/asar.mjs is a read-only helper used to read shipped package sources from the installation's app.asar; it is not published.
License
MIT
Plugins relacionados
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui