@deepseek-harness-tui/dsh-tui 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -59
- package/bin/dsh-tui.js +46 -3
- package/cordis.patch.yml +5 -3
- package/cordis.yml +3 -2
- package/guide/dsh-tui-guide/codex-backend.en.md +2 -2
- package/guide/dsh-tui-guide/codex-backend.md +2 -2
- package/guide/dsh-tui-guide/configuration.en.md +7 -2
- package/guide/dsh-tui-guide/configuration.md +7 -2
- package/guide/dsh-tui-guide/getting-started.en.md +168 -4
- package/guide/dsh-tui-guide/getting-started.md +121 -14
- package/guide/dsh-tui-guide/interaction.en.md +11 -10
- package/guide/dsh-tui-guide/interaction.md +5 -4
- package/guide/dsh-tui-guide/user-guide.en.md +12 -6
- package/guide/dsh-tui-guide/user-guide.md +12 -6
- package/lib/settings.json +24 -8
- package/lib/types/adapter/ports/channel-ui.d.ts +10 -7
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +67 -8
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +14 -5
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/agent/session.d.ts +5 -0
- package/lib/types/agent/session.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.js +8 -3
- package/lib/types/backends/claude/translate/core.d.ts +2 -2
- package/lib/types/backends/claude/translate/core.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/core.js +10 -6
- package/lib/types/backends/codex/session/commands.d.ts +2 -0
- package/lib/types/backends/codex/session/commands.d.ts.map +1 -1
- package/lib/types/backends/codex/session/commands.js +8 -4
- package/lib/types/backends/codex/session/input.d.ts +11 -7
- package/lib/types/backends/codex/session/input.d.ts.map +1 -1
- package/lib/types/backends/codex/session/input.js +68 -15
- package/lib/types/backends/codex/session/session.d.ts.map +1 -1
- package/lib/types/backends/codex/session/session.js +2 -3
- package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/presentation.js +5 -2
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/permissions.d.ts +15 -0
- package/lib/types/channel/permissions.d.ts.map +1 -1
- package/lib/types/channel/permissions.js +28 -0
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +89 -11
- package/lib/types/channel/questions.d.ts +45 -3
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/questions.js +43 -0
- package/lib/types/channel/sanitize.d.ts.map +1 -1
- package/lib/types/channel/sanitize.js +8 -4
- package/lib/types/channel/subagent-failure.d.ts +49 -0
- package/lib/types/channel/subagent-failure.d.ts.map +1 -0
- package/lib/types/channel/subagent-failure.js +59 -0
- package/lib/types/channel/transcript.d.ts +17 -0
- package/lib/types/channel/transcript.d.ts.map +1 -1
- package/lib/types/channel/transcript.js +35 -0
- package/lib/types/commands.js +2 -2
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +14 -10
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +61 -6
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +3 -2
- package/lib/types/components/StarPrompt.d.ts +5 -3
- package/lib/types/components/StarPrompt.d.ts.map +1 -1
- package/lib/types/components/StarPrompt.js +56 -6
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +1 -1
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +9 -2
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +126 -25
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts +5 -8
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +7 -4
- package/lib/types/components/questions/PlanReviewPanel.d.ts +3 -6
- package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
- package/lib/types/components/revealScope.d.ts +15 -0
- package/lib/types/components/revealScope.d.ts.map +1 -0
- package/lib/types/components/revealScope.js +17 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +34 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +108 -7
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +1 -1
- package/lib/types/components/smoothReveal.d.ts +36 -6
- package/lib/types/components/smoothReveal.d.ts.map +1 -1
- package/lib/types/components/smoothReveal.js +92 -21
- package/lib/types/components/teamRoster.d.ts +6 -3
- package/lib/types/components/teamRoster.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts +4 -14
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +26 -17
- package/lib/types/dsh-adapter/approvals.d.ts +19 -0
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +17 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +12 -0
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +21 -4
- package/lib/types/dsh-adapter/channel/attached-context.d.ts +15 -2
- package/lib/types/dsh-adapter/channel/attached-context.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/attached-context.js +26 -3
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +43 -2
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +2 -6
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +7 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +2 -6
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.js +3 -26
- package/lib/types/dsh-adapter/channel/emitter.js +1 -1
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +15 -4
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +34 -10
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +14 -5
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +26 -9
- package/lib/types/dsh-adapter/channel/model-selection.d.ts +27 -2
- package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-selection.js +81 -37
- package/lib/types/dsh-adapter/channel/model-switch.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +6 -2
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +8 -4
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +185 -36
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
- package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
- package/lib/types/dsh-adapter/channel/transcript.d.ts +3 -2
- package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/transcript.js +13 -4
- package/lib/types/dsh-adapter/channel/types.d.ts +11 -2
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/messages.js +2 -2
- package/lib/types/dsh-adapter/contract.d.ts +29 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +48 -5
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
- package/lib/types/dsh-adapter/fresh-agent.d.ts +1 -1
- package/lib/types/dsh-adapter/fresh-agent.d.ts.map +1 -1
- package/lib/types/dsh-adapter/fresh-agent.js +60 -11
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +60 -11
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-contract.js +5 -3
- package/lib/types/dsh-adapter/host-dsh.d.ts +2 -8
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +30 -6
- package/lib/types/dsh-adapter/host-entry.js +4 -0
- package/lib/types/dsh-adapter/index.d.ts +9 -1
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +5 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
- package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
- package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
- package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/index.js +44 -0
- package/lib/types/dsh-adapter/oauth/profiles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/profiles.js +14 -1
- package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/service.js +5 -6
- package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +3 -2
- package/lib/types/dsh-adapter/plugin.d.ts +237 -6
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +751 -67
- package/lib/types/dsh-adapter/presets.d.ts +38 -11
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +46 -17
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/questions.d.ts +3 -4
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.js +1 -1
- package/lib/types/dsh-adapter/session-list-metadata.js +2 -2
- package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
- package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/session-projection-store.js +30 -23
- package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessionTree.js +4 -1
- package/lib/types/dsh-adapter/subagents.d.ts +6 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +32 -3
- package/lib/types/dsh-adapter/team-mode.d.ts +46 -27
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +157 -29
- package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
- package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-roster.js +206 -39
- package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
- package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-tools.js +81 -26
- package/lib/types/dsh-adapter/tool-scope.d.ts +24 -0
- package/lib/types/dsh-adapter/tool-scope.d.ts.map +1 -0
- package/lib/types/dsh-adapter/tool-scope.js +127 -0
- package/lib/types/dsh-adapter/types.d.ts +2 -1
- package/lib/types/dsh-adapter/types.d.ts.map +1 -1
- package/lib/types/heldInputs.d.ts +55 -16
- package/lib/types/heldInputs.d.ts.map +1 -1
- package/lib/types/heldInputs.js +277 -41
- package/lib/types/i18n.d.ts +292 -20
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +89 -13
- package/lib/types/ink/components/App.d.ts +2 -0
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +8 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/dom.js +13 -3
- package/lib/types/ink/events/input-event.d.ts.map +1 -1
- package/lib/types/ink/events/input-event.js +7 -6
- package/lib/types/ink/flush-tick.d.ts +6 -0
- package/lib/types/ink/flush-tick.d.ts.map +1 -1
- package/lib/types/ink/flush-tick.js +31 -0
- package/lib/types/ink/hit-test.d.ts +2 -0
- package/lib/types/ink/hit-test.d.ts.map +1 -1
- package/lib/types/ink/hit-test.js +10 -0
- package/lib/types/ink/hooks/use-program-status.d.ts +1 -1
- package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-program-status.js +3 -2
- package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-terminal-title.js +23 -3
- package/lib/types/ink/ink.d.ts +1 -0
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +7 -4
- package/lib/types/ink/jumpback-state.d.ts +33 -0
- package/lib/types/ink/jumpback-state.d.ts.map +1 -0
- package/lib/types/ink/jumpback-state.js +51 -0
- package/lib/types/ink/jumpback.d.ts +78 -0
- package/lib/types/ink/jumpback.d.ts.map +1 -0
- package/lib/types/ink/jumpback.js +515 -0
- package/lib/types/ink/log-update.js +37 -14
- package/lib/types/ink/notify-helper/activate.cs +836 -0
- package/lib/types/ink/notify-helper/compile.d.ts +30 -0
- package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
- package/lib/types/ink/notify-helper/compile.js +235 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +25 -0
- package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.js +14 -21
- package/lib/types/ink/terminal-notification.d.ts +31 -2
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +51 -0
- package/lib/types/ink/terminal.d.ts +15 -3
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +38 -9
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +1 -1
- package/lib/types/screens/Chat.d.ts +4 -3
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +81 -11
- package/lib/types/screens/SessionSupervisor.d.ts +3 -6
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +5 -8
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts +1 -2
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +2 -2
- package/lib/types/screens/sessionSupervisor/model.d.ts +1 -1
- package/lib/types/screens/sessionSupervisor/model.js +1 -1
- package/lib/types/sessionMounts.d.ts +12 -5
- package/lib/types/sessionMounts.d.ts.map +1 -1
- package/lib/types/sessionMounts.js +33 -6
- package/lib/types/settings/definitions.d.ts +12 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +15 -7
- package/lib/types/update.d.ts +412 -20
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +2094 -193
- package/lib/types/updateHost.d.ts +198 -0
- package/lib/types/updateHost.d.ts.map +1 -0
- package/lib/types/updateHost.js +608 -0
- package/lib/types/utils/processName.d.ts +16 -0
- package/lib/types/utils/processName.d.ts.map +1 -0
- package/lib/types/utils/processName.js +27 -0
- package/package.json +114 -111
- package/presets/liangshen/agent.cordis.yml +4 -0
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -142,7 +142,7 @@ the same commands:
|
|
|
142
142
|
|
|
143
143
|
| Command | Purpose |
|
|
144
144
|
| --- | --- |
|
|
145
|
-
| `dsh-tui update` |
|
|
145
|
+
| `dsh-tui update` | Align the whole set (profile TUI, global dsh engine, global launcher) and verify it, without entering or restarting the TUI; same decision as the in-TUI `/update` |
|
|
146
146
|
| `dsh-tui doctor` | Environment checks: dsh/pnpm, profile install and version alignment, whether the API key is set (state only, never the value), config file presence; complements the in-TUI `/doctor` session diagnostics |
|
|
147
147
|
| `dsh-tui safe` | Safe mode: read-only diagnostics, inventory, repair guidance (`safe --rescue` also creates/verifies the clean rescue profile) |
|
|
148
148
|
| `dsh-tui version` | Show the launcher and profile versions (`--version`/`-v` are equivalent) |
|
|
@@ -215,19 +215,162 @@ diagnostics, a profile plugin inventory, and repair guidance.
|
|
|
215
215
|
|
|
216
216
|
## Update to the latest version
|
|
217
217
|
|
|
218
|
-
The project moves fast.
|
|
219
|
-
|
|
218
|
+
The project moves fast. One `/update` (or `dsh-tui update`) aligns **one
|
|
219
|
+
mutually compatible set** across three layers and verifies it; the in-TUI
|
|
220
|
+
`/update` then restarts and resumes the session, while `dsh-tui update` only
|
|
221
|
+
aligns — it neither enters nor restarts the TUI:
|
|
222
|
+
|
|
223
|
+
1. **The TUI inside the profile**: `dsh plugin --profile dsh-tui update @deepseek-harness-tui/dsh-tui@<version>`.
|
|
224
|
+
2. **The global `dsh` engine**: the highest version published on the registry
|
|
225
|
+
inside the target TUI's `dsh-app-boot` peer range, installed into the **same
|
|
226
|
+
global prefix** with the detected package manager (npm `--prefix` /
|
|
227
|
+
`pnpm add -g`). pnpm is auto-updated only when its owning install group is
|
|
228
|
+
proven to contain `dsh` alone: a one-package `pnpm add -g` replaces the whole
|
|
229
|
+
group and removes its other commands, so multi-member groups, shared-store
|
|
230
|
+
installs and unprovable homes are left untouched with `pnpm list -g --depth 0`
|
|
231
|
+
inspection guidance.
|
|
232
|
+
3. **The global `dsh-tui` launcher**: file-by-file atomic replacement for npm
|
|
233
|
+
layouts (`bin/dsh-tui.js` and `package.json` are separate renames, so a
|
|
234
|
+
failure between them leaves only the first replaced); `pnpm add -g` for pnpm
|
|
235
|
+
layouts only when the group is proven to contain just the launcher, with
|
|
236
|
+
multi-member or unprovable groups left untouched (details below).
|
|
237
|
+
|
|
238
|
+
The order is fixed — TUI → engine → launcher. A failed TUI install leaves the
|
|
239
|
+
engine untouched, so the old pair normally still boots; a timeout or
|
|
240
|
+
cancellation can leave a half-installed profile, though (see "Bounded update
|
|
241
|
+
installation" below), and the failure notice prints the recovery command. A
|
|
242
|
+
failed engine install keeps the update restartable while the current pair is
|
|
243
|
+
still inside the new TUI's range, and prints the engine repair command. When the
|
|
244
|
+
engine step cannot be automated at all (unproven pnpm group, unwritable prefix,
|
|
245
|
+
unrecognised layout, unreachable registry), the update still continues while
|
|
246
|
+
the current engine is inside the range, but the reason (with a manual command
|
|
247
|
+
when one is available) is reported and `dsh-tui update` exits non-zero instead
|
|
248
|
+
of claiming a whole-set success. **Launcher alignment is normally best effort,
|
|
249
|
+
but a failure after the engine advances blocks the restart** and prints the
|
|
250
|
+
manual repair command: an old launcher in the same npm prefix may keep the new
|
|
251
|
+
engine from loading the updated profile. When the engine did not advance, a
|
|
252
|
+
launcher failure remains a warning and does not block the restart.
|
|
253
|
+
**Never downgrade**: an engine or launcher ahead of the target is left alone and
|
|
254
|
+
reported as drift at boot and by `/update`.
|
|
255
|
+
There are two refusals. When the preflight sees "the TUI must move, but the
|
|
256
|
+
current engine is outside the new TUI's peer range", nothing is torn down and
|
|
257
|
+
nothing restarts: the official plugin manager validates the new TUI against the
|
|
258
|
+
dsh that is RUNNING, and the engine step runs after the TUI. A **below-range**
|
|
259
|
+
engine that can be upgraded automatically must be aligned first and `/update`
|
|
260
|
+
rerun (the refusal prints that command); an engine **above** the range (newer
|
|
261
|
+
than this TUI validates) is never downgraded and never paired with an
|
|
262
|
+
unvalidated TUI — the refusal only asks to wait for a dsh-tui release that
|
|
263
|
+
declares it, with no install command. When the preflight passes but the engine
|
|
264
|
+
step fails only after the TUI moved (the version did not advance, or the old
|
|
265
|
+
engine is no longer loadable), the new TUI is kept and only the restart is
|
|
266
|
+
refused. "The old engine is still loadable"
|
|
267
|
+
needs positive proof — its `bin.dsh` entry starts in a fresh process and
|
|
268
|
+
`--version` exits 0, or `dsh --version` runs — an existing entry file or a
|
|
269
|
+
readable manifest is not enough. On POSIX, if pnpm keeps the old store tree
|
|
270
|
+
behind a shared runtime fallback link, that link is atomically refreshed only
|
|
271
|
+
when the new entry belongs to the same pnpm home, matches the target version
|
|
272
|
+
and passes the startup probe; both the profile link and PATH are then verified.
|
|
273
|
+
The profile's own dependencies, real directories and links to other installs
|
|
274
|
+
are left untouched. Windows does not attempt a non-atomic junction replacement:
|
|
275
|
+
the old link and unverified result remain, requiring manual inspection and
|
|
276
|
+
recreation of the shared fallback link. A preflight refusal writes the current
|
|
277
|
+
version, target range and next step (with the manual command when one can run)
|
|
278
|
+
into the transcript; when the engine step fails only after the TUI was torn
|
|
279
|
+
down, the same details go to the terminal's stderr (`dsh-tui update` writes
|
|
280
|
+
stderr too). The toast stays a short pointer. A preflight refusal also names its
|
|
281
|
+
next step: an engine below the required range but installable is upgraded first
|
|
282
|
+
(and `/update` rerun afterwards), an engine above the range waits for a TUI
|
|
283
|
+
release that declares it (no downgrade/install), an unreachable registry is a
|
|
284
|
+
retry (not a compatibility verdict), a
|
|
285
|
+
dsh release missing from the declared range is a wait (no impossible install
|
|
286
|
+
command is printed), `DSH_TUI_UPDATE_ENGINE=0` is a switch to drop, and an
|
|
287
|
+
unrecognised/unwritable/ambiguous global install is a repair. When the TUI is
|
|
288
|
+
already current and the registry has a newer dsh outside that TUI's declared
|
|
289
|
+
peer range, `/update` says it is waiting for a dsh-tui release instead of
|
|
290
|
+
silently stopping at the validated line or installing an unvalidated engine.
|
|
291
|
+
After pnpm rotates a global install group, a direct DSH launch re-resolves and
|
|
292
|
+
probes its actual JS entry while preserving host options such as `--profile`
|
|
293
|
+
and `--patch`. An unproven entry refuses the restart and prints the repair
|
|
294
|
+
command instead of executing a deleted path in the old group.
|
|
295
|
+
|
|
296
|
+
Manual fallbacks (the refusal names the matching layout command when one can
|
|
297
|
+
run; an above-range engine only asks you to wait for a TUI release and never to
|
|
298
|
+
downgrade; for an unpublished release it only asks you to wait):
|
|
220
299
|
|
|
221
300
|
```sh
|
|
301
|
+
# TUI only
|
|
222
302
|
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui@latest
|
|
303
|
+
# engine
|
|
304
|
+
npm install -g @deepseek-ai/dsh@0.2.2-rc.2
|
|
305
|
+
# or, for a pnpm global layout (first confirm the global group holds dsh
|
|
306
|
+
# alone; a one-package install replaces the whole group and its other commands):
|
|
307
|
+
pnpm add -g @deepseek-ai/dsh@0.2.2-rc.2
|
|
308
|
+
# global launcher
|
|
309
|
+
npm install -g --legacy-peer-deps @deepseek-harness-tui/dsh-tui@latest
|
|
310
|
+
# or, only after confirming the pnpm global group contains this package alone:
|
|
311
|
+
pnpm add -g --config.auto-install-peers=false @deepseek-harness-tui/dsh-tui@latest
|
|
223
312
|
```
|
|
224
313
|
|
|
314
|
+
When you launch through the global `dsh-tui` command, the launcher is aligned
|
|
315
|
+
automatically after a successful `/update`, and only against a global install it
|
|
316
|
+
can prove: an npm global install is replaced file by file, each write atomic on
|
|
317
|
+
its own (`bin/dsh-tui.js` and `package.json` are separate renames, so a failure
|
|
318
|
+
between them leaves only the first replaced; the launcher step reports that
|
|
319
|
+
failure and blocks the restart if the engine advanced; otherwise it remains
|
|
320
|
+
restartable), and it needs a matching global bin link or shim — project-local
|
|
321
|
+
npm/npx installs are never overwritten. A pnpm global
|
|
322
|
+
install goes through `pnpm add -g` only when its group is proven to contain just
|
|
323
|
+
the launcher, never through the store's symlinks. pnpm 11+ isolates packages
|
|
324
|
+
installed together into a group; recreating a multi-member group can lose other
|
|
325
|
+
tools' required peers even when their direct versions stay unchanged, so such
|
|
326
|
+
groups, and groups that cannot be proven, are left untouched with guidance to
|
|
327
|
+
inspect and preserve their dependencies rather than reinstalled automatically.
|
|
328
|
+
An undetermined install shape is also left untouched, leaving only the boot-time
|
|
329
|
+
notice. For older launchers carrying only a version marker, `dsh-tui` and `dst`
|
|
330
|
+
must not resolve to different installations on PATH. A pnpm logical group or
|
|
331
|
+
owning shim takes precedence over an inherited `PNPM_HOME`; the location of a
|
|
332
|
+
shared store is not ownership evidence. A failed alignment step prints a manual
|
|
333
|
+
install command only when that command is known to be safe.
|
|
334
|
+
|
|
335
|
+
Escape hatches: `DSH_TUI_UPDATE_ENGINE=0` skips the automatic engine install
|
|
336
|
+
(with a pinned engine, a TUI upgrade that no longer supports it is still
|
|
337
|
+
refused); `DSH_TUI_UPDATE_LAUNCHER=0` skips launcher alignment;
|
|
338
|
+
`DSH_TUI_DSH_PM=npm|pnpm` overrides package-manager detection (for diagnosing
|
|
339
|
+
an abnormal prefix).
|
|
340
|
+
|
|
225
341
|
- Without `@latest`, pnpm resolves within the version range already recorded
|
|
226
342
|
in the profile's `package.json` (for example `^0.1.4`), so it may stay on an
|
|
227
343
|
old line. That is the usual reason "re-running the install command" appears
|
|
228
344
|
to change nothing.
|
|
345
|
+
- To repair a version mismatch, prefer the **exact-version** command from the
|
|
346
|
+
refusal/failure notice (for example
|
|
347
|
+
`npm install -g @deepseek-harness-tui/dsh-tui@0.8.3`); use `@latest` only for
|
|
348
|
+
routine upgrades — it may be newer than the profile and stay misaligned.
|
|
349
|
+
- pnpm 11+ global installs are grouped: a one-package `pnpm add -g` replaces the
|
|
350
|
+
whole group and removes its other tools. `/update` never recreates multi-member
|
|
351
|
+
groups; even re-adding every direct version can lose their auto-installed peers.
|
|
352
|
+
Run `pnpm list -g --depth 0` to inspect the group, and preserve every member and
|
|
353
|
+
its installed peers before a manual repair. Use a separate global prefix when
|
|
354
|
+
reinstalling the launcher alone. Do not apply the single-package command above
|
|
355
|
+
to a multi-member group or use `pnpm update -g --latest` (it upgrades every
|
|
356
|
+
member to latest).
|
|
357
|
+
- A pnpm global alignment has two preconditions. It works without an exported
|
|
358
|
+
`PNPM_HOME` — the home is derived from the shim's own directory (`<PNPM_HOME>`
|
|
359
|
+
or `<PNPM_HOME>/bin`) and only accepted when that group provably owns this
|
|
360
|
+
package. And the launcher-only group install resolves **no peers**: every
|
|
361
|
+
`@deepseek-ai/*` package is provided by the profile at runtime, while pnpm's
|
|
362
|
+
peer auto-install follows their peer ranges onto an **unpublished stable
|
|
363
|
+
line** and fails with `ERR_PNPM_NO_MATCHING_VERSION`, so both the alignment
|
|
364
|
+
and the manual command above pass `--config.auto-install-peers=false` — the
|
|
365
|
+
same intent as npm's `--legacy-peer-deps`.
|
|
366
|
+
- pnpm ≥11 refuses versions published within 24 hours (`minimumReleaseAge`).
|
|
367
|
+
`/update` and `dsh-tui update` waive that window for the engine and launcher
|
|
368
|
+
steps (`PNPM_CONFIG_MINIMUM_RELEASE_AGE=0`); add the same prefix when running
|
|
369
|
+
the `pnpm add -g` lines above by hand, or a just-published version will not
|
|
370
|
+
install.
|
|
229
371
|
- To confirm: the startup banner shows the running version
|
|
230
|
-
(`✦ dsh-TUI vX.Y.Z`)
|
|
372
|
+
(`✦ dsh-TUI vX.Y.Z`), and the post-restart `DSH_TUI_UPDATED_FROM` /
|
|
373
|
+
`DSH_TUI_UPDATED_DSH_FROM` checks verify each layer actually advanced.
|
|
231
374
|
- Your `cordis.patch.yml` override layer survives updates untouched.
|
|
232
375
|
- Session storage may move between versions (since 0.3.7, `/resume` uses the
|
|
233
376
|
JSONL session store shared with dsh web), so older sessions missing from the
|
|
@@ -452,3 +595,24 @@ Run `/doctor`, record the terminal and mode, then consult
|
|
|
452
595
|
[Architecture and limitations](architecture.en.md). `DSH_TUI_RENDER_LOG` can
|
|
453
596
|
capture raw frames for rendering bugs, but those frames may contain visible
|
|
454
597
|
conversation content and should be handled as sensitive data.
|
|
598
|
+
|
|
599
|
+
### Git fails throughout a session under Orca (`unable to parse command-line config`)
|
|
600
|
+
|
|
601
|
+
Orca injects git's indexed-config protocol into the agent terminal —
|
|
602
|
+
`GIT_CONFIG_COUNT` plus `GIT_CONFIG_KEY_n` / `GIT_CONFIG_VALUE_n` — to turn off
|
|
603
|
+
credential-manager popups. The engine strips credential-shaped variables **by
|
|
604
|
+
name** (`/KEY|PASSWORD|SECRET|TOKEN/i`) when it spawns children, so every
|
|
605
|
+
`GIT_CONFIG_KEY_n` is dropped while `GIT_CONFIG_COUNT` and
|
|
606
|
+
`GIT_CONFIG_VALUE_n` survive; git receives a broken triple and every command
|
|
607
|
+
fails with `fatal: unable to parse command-line config` (exit 128).
|
|
608
|
+
|
|
609
|
+
The root cause is the engine package's `scrubbedParentEnv()`, not dsh-tui (issue
|
|
610
|
+
#1811). To work around it, drop `GIT_CONFIG_COUNT` before launching dsh-tui —
|
|
611
|
+
without it git ignores the orphaned `KEY`/`VALUE` entries:
|
|
612
|
+
|
|
613
|
+
```sh
|
|
614
|
+
env -u GIT_CONFIG_COUNT dsh-tui
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
The trade-off is losing Orca's credential-popup suppression; use
|
|
618
|
+
`GIT_TERMINAL_PROMPT=0` when you need non-interactive credentials instead.
|
|
@@ -145,7 +145,7 @@ dsh-tui.cmd --resume
|
|
|
145
145
|
|
|
146
146
|
| 命令 | 作用 |
|
|
147
147
|
| --- | --- |
|
|
148
|
-
| `dsh-tui update` |
|
|
148
|
+
| `dsh-tui update` | 一次对齐整套(profile 的 TUI、全局 dsh 引擎、全局启动器)并校验,不进入 TUI、不重启;与 TUI 内 `/update` 同一决策 |
|
|
149
149
|
| `dsh-tui doctor` | 环境检查:dsh/pnpm、profile 安装与版本对齐、API key 是否设置(只报状态不读值)、配置文件存在性;与 TUI 内 `/doctor` 会话诊断互补 |
|
|
150
150
|
| `dsh-tui safe` | 安全模式:只读诊断、插件清单与修复指引(`safe --rescue` 还会创建/校验干净的救援 profile) |
|
|
151
151
|
| `dsh-tui version` | 显示启动器与 profile 版本(`--version`/`-v` 等价) |
|
|
@@ -201,29 +201,119 @@ dsh 意外结束时,安全模式提供只读的环境诊断、profile 插件
|
|
|
201
201
|
|
|
202
202
|
## 更新到最新版本
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
项目迭代很快。一次 `/update`(或 `dsh-tui update`)会把**同一套互相兼容的版本**
|
|
205
|
+
对齐到三层并校验;TUI 内的 `/update` 校验后自动重启并恢复会话,`dsh-tui update`
|
|
206
|
+
只对齐、不进入 TUI、不重启:
|
|
207
|
+
|
|
208
|
+
1. **Profile 里的 TUI**:`dsh plugin --profile dsh-tui update @deepseek-harness-tui/dsh-tui@<version>`。
|
|
209
|
+
2. **全局 `dsh` 引擎**:目标版本 = 目标 TUI 的 `dsh-app-boot` peer 范围里
|
|
210
|
+
registry 上已发布的最高版本;用检测到的包管理器装进**同一个全局前缀**
|
|
211
|
+
(npm `--prefix` / `pnpm add -g`)。pnpm 只在能证明「所属安装组只含 `dsh`」时
|
|
212
|
+
自动安装:单包 `pnpm add -g` 会替换整组并移除同组其他命令,所以多成员组、
|
|
213
|
+
共享 store 或无法确定所属 home 的安装保持原样,只打印 `pnpm list -g --depth 0`
|
|
214
|
+
的检查与保留指引。
|
|
215
|
+
3. **全局 `dsh-tui` 启动器**:npm 布局逐文件原子替换(`bin/dsh-tui.js` 与
|
|
216
|
+
`package.json` 各一次 rename,两次之间失败就只换了前一个文件),pnpm 布局仅在
|
|
217
|
+
确认组内只有启动器时走 `pnpm add -g`,多成员组或无法确定的组保持原样(细节见下)。
|
|
218
|
+
|
|
219
|
+
执行顺序固定为 TUI → 引擎 → 启动器:TUI 安装失败时引擎原样未动,旧组合通常仍
|
|
220
|
+
可启动(超时或取消可能留下半装的 profile,见下文「更新安装的有界等待」,失败
|
|
221
|
+
文案会给恢复命令);引擎失败但当前组合仍在新 TUI 的范围内时继续重启,并打印
|
|
222
|
+
引擎修复命令;引擎步骤根本无法自动执行(pnpm 组不唯一、前缀不可写、安装形态
|
|
223
|
+
无法识别、registry 查不到等)时,更新仍继续(当前引擎在范围内),但会把
|
|
224
|
+
原因(有手工命令时一并)写入转录,`dsh-tui update` 以非零退出,不再静默当作整套成功;
|
|
225
|
+
**启动器对齐通常为 best effort;但引擎已推进后若启动器对齐失败,会拒绝重启**,
|
|
226
|
+
并打印手工修复命令:npm 同前缀里的旧启动器可能让新引擎加载不到更新后的 profile。
|
|
227
|
+
引擎未推进时,启动器失败仍只警告,不阻止重启。**永不降级**:引擎或启动器比目标
|
|
228
|
+
新时保持原样,并在启动期与 `/update` 时提示漂移。
|
|
229
|
+
有两种拒绝:预检发现「TUI 要升级,而当前引擎不在新 TUI 的 peer 范围内」时,
|
|
230
|
+
不拆树、不重启——官方插件管理器用**当前运行**的 dsh 校验新 TUI,而引擎步骤
|
|
231
|
+
排在 TUI 之后。若当前引擎**低于**该范围但可自动安装,拒绝文案给出「先升级引擎,
|
|
232
|
+
再重新 /update」的命令;若当前引擎**高于**该范围(比目标 TUI 验证过的更新),
|
|
233
|
+
不降级、也不安装未验证组合,文案只提示等声明支持它的 dsh-tui 发布后重新
|
|
234
|
+
`/update`,不打印安装命令;若预检通过、TUI 已升级之后引擎步骤才失败
|
|
235
|
+
(版本未前进,或旧引擎已不可用),则保留新 TUI、拒绝重启。
|
|
236
|
+
「旧引擎仍可用」必须由真实启动探测证明(在独立进程里启动 `bin.dsh` 入口且
|
|
237
|
+
`--version` 退出 0,或 `dsh --version` 能跑);入口文件存在、manifest 可读都不算。
|
|
238
|
+
POSIX 上,pnpm 升级后若共享 runtime 回退链接仍指向保留的旧 store,仅当新入口
|
|
239
|
+
属于同一 pnpm home、版本等于目标且启动探测通过时才原子刷新该链接,再按 profile
|
|
240
|
+
链接和 PATH 两处校验;不改 profile 自己的依赖、普通目录或其他安装的链接。
|
|
241
|
+
Windows 不做非原子的 junction 替换:保留旧链接和未验证结果,需手动核对并重建
|
|
242
|
+
共享回退链接。
|
|
243
|
+
预检拒绝会把当前版本、目标范围与下一步(命令可执行时附手工命令)写入会话转录;
|
|
244
|
+
若安装后引擎步骤才失败(TUI 已拆),同一份信息写入终端 stderr(`dsh-tui update`
|
|
245
|
+
也写 stderr),toast 只留一句短提示。拒绝还会按原因给出下一步:当前引擎不在
|
|
246
|
+
范围内但可升级时先升级引擎再重新 `/update`;高于范围时等 TUI 适配(不降级、
|
|
247
|
+
不打印安装命令);registry 查询
|
|
248
|
+
失败(离线/镜像不可达)是重试项,网络恢复后重新 `/update`;范围要求的 dsh 尚未
|
|
249
|
+
发布是等待项,发布后再 `/update`,不会打印一个装不上的命令;
|
|
250
|
+
`DSH_TUI_UPDATE_ENGINE=0` 关闭了自动安装,去掉开关或按命令手工装;全局安装无法
|
|
251
|
+
识别、不可写或 pnpm 组不唯一,按命令修复安装。若 TUI 已是最新、registry 上有更新
|
|
252
|
+
的 dsh 但超出该 TUI 声明的 peer 范围,`/update` 会明确说明「等 dsh-tui 适配」,
|
|
253
|
+
不会静默停在验证线,也不会安装未验证的引擎。
|
|
254
|
+
pnpm 轮换全局安装组后,直接 DSH 启动路径会重新解析并探测实际 JS 入口,保留原来的
|
|
255
|
+
`--profile`、`--patch` 等宿主参数;无法证明入口可启动时拒绝重启并打印修复命令,
|
|
256
|
+
不会继续执行已删除的旧组路径。
|
|
257
|
+
|
|
258
|
+
手动兜底(拒绝文案在命令可执行时给出对应布局的那一条;高于范围时只提示等 TUI
|
|
259
|
+
适配、不降级;版本尚未发布时只提示等待):
|
|
205
260
|
|
|
206
261
|
```sh
|
|
207
|
-
#
|
|
262
|
+
# 只对齐 TUI
|
|
208
263
|
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui@latest
|
|
264
|
+
# 对齐引擎
|
|
265
|
+
npm install -g @deepseek-ai/dsh@0.2.2-rc.2
|
|
266
|
+
# 或(pnpm 全局布局;先确认 dsh 所在全局组只有它自己,
|
|
267
|
+
# 否则单包安装会替换整组并移除同组其他命令)
|
|
268
|
+
pnpm add -g @deepseek-ai/dsh@0.2.2-rc.2
|
|
269
|
+
# 对齐全局启动器
|
|
270
|
+
npm install -g --legacy-peer-deps @deepseek-harness-tui/dsh-tui@latest
|
|
271
|
+
# 或(确认 pnpm 全局组内只有本包时;刚发布的版本见下面「pnpm 延迟」一条)
|
|
272
|
+
pnpm add -g --config.auto-install-peers=false @deepseek-harness-tui/dsh-tui@latest
|
|
209
273
|
```
|
|
210
274
|
|
|
211
|
-
通过全局 `dsh-tui`
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
275
|
+
通过全局 `dsh-tui` 命令启动时,Launcher 会在 `/update` 成功后自动对齐,且只操作
|
|
276
|
+
可证明的全局安装:npm 布局逐文件原子替换(`bin/dsh-tui.js` 与 `package.json` 各
|
|
277
|
+
一次 rename,两次之间失败就只换了前一个文件,启动器步骤按失败报告;引擎已推进时
|
|
278
|
+
拒绝重启,未推进时仍可重启),并且需要匹配的全局 bin 链接或 shim——项目内 npm/npx 安装不会被覆写。
|
|
279
|
+
pnpm 布局仅在确认组内只有启动器时走 `pnpm add -g`,不穿过 store 的符号链接。
|
|
280
|
+
pnpm 11+ 把一起安装的包隔离成组;重建多成员组可能丢失其他工具的必需 peer,
|
|
281
|
+
即使它们的直接版本没有变化,因此多成员组或无法确定的组保持原样,只打印检查与
|
|
282
|
+
保留依赖的指引,不自动重装;无法判定安装形态时同样保持原样、只留启动期提示。
|
|
283
|
+
旧启动器只有版本标记时,`dsh-tui` 与 `dst` 的 PATH 查找若落到不同安装,会跳过
|
|
284
|
+
自动对齐;pnpm 的逻辑组或 shim 归属优先于继承的 `PNPM_HOME`,共享 store 所在
|
|
285
|
+
目录不算归属证据。可证明安全的对齐步骤失败时会打印对应布局的手工命令。
|
|
286
|
+
|
|
287
|
+
逃生开关:`DSH_TUI_UPDATE_ENGINE=0` 跳过引擎自动安装(钉死引擎时,若新 TUI
|
|
288
|
+
不再支持当前引擎,升级仍会被拒绝);`DSH_TUI_UPDATE_LAUNCHER=0` 跳过启动器
|
|
289
|
+
对齐;`DSH_TUI_DSH_PM=npm|pnpm` 覆盖包管理器判定(诊断异常前缀用)。
|
|
219
290
|
|
|
220
291
|
- 不带 `@latest` 时 pnpm 会按 profile `package.json` 里已记录的版本范围
|
|
221
292
|
(如 `^0.1.4`)就地解析,可能停留在旧的主线上——这是"重复执行安装命令
|
|
222
293
|
但版本没变"的常见原因。
|
|
223
|
-
- 修复"版本不一致"
|
|
294
|
+
- 修复"版本不一致"时,优先使用拒绝/失败文案里的**精确版本**命令(例如
|
|
224
295
|
`npm install -g @deepseek-harness-tui/dsh-tui@0.8.3`);日常主动升级才
|
|
225
|
-
使用 `@latest
|
|
226
|
-
-
|
|
296
|
+
使用 `@latest`——`@latest` 可能比 profile 里的版本更新,装上反而继续不一致。
|
|
297
|
+
- pnpm 11+ 的全局安装是分组的:单包 `pnpm add -g` 会替换整组并移除同组其他
|
|
298
|
+
工具。`/update` 不会重建多成员组;只按直接版本重装全部成员也可能丢失其
|
|
299
|
+
自动安装的 peer。先运行 `pnpm list -g --depth 0` 检查组,手工修复前保留
|
|
300
|
+
全部成员及其已安装的 peer;若只重装启动器,使用独立的全局前缀。不要对
|
|
301
|
+
多成员组套用上面的单包命令,也不要使用 `pnpm update -g --latest`
|
|
302
|
+
(它会把整组都升到 latest)。
|
|
303
|
+
- pnpm 全局对齐的两个前提:`PNPM_HOME` 没导出也能对齐——从 shim 所在目录
|
|
304
|
+
(`<PNPM_HOME>` 或 `<PNPM_HOME>/bin`)反推,并核对组内确实有本包;
|
|
305
|
+
启动器单成员组安装**不解析 peer**——`@deepseek-ai/*` 全部由 profile 在运行时提供,
|
|
306
|
+
pnpm 的 peer 自动安装会顺着它们彼此的 peer 范围撞上**未发布的稳定线**,必然以
|
|
307
|
+
`ERR_PNPM_NO_MATCHING_VERSION` 失败,所以启动器的对齐与上面那条启动器手工命令
|
|
308
|
+
都带 `--config.auto-install-peers=false`(npm 那侧对应的开关是
|
|
309
|
+
`--legacy-peer-deps`,两者同口径)。
|
|
310
|
+
- pnpm ≥11 默认不装发布不足 24 小时的版本(`minimumReleaseAge`)。`/update` 与
|
|
311
|
+
`dsh-tui update` 对引擎与启动器这两步会临时放开该窗口
|
|
312
|
+
(`PNPM_CONFIG_MINIMUM_RELEASE_AGE=0`);手工执行上面那两条 `pnpm add -g` 时
|
|
313
|
+
同样要加这个前缀,否则刚发布的版本会装不上。
|
|
314
|
+
- 确认生效:启动横幅右上角显示当前版本(`✦ dsh-TUI vX.Y.Z`),重启后的
|
|
315
|
+
`DSH_TUI_UPDATED_FROM` / `DSH_TUI_UPDATED_DSH_FROM` 校验也会检查各层是否
|
|
316
|
+
真的前进。
|
|
227
317
|
- 用户覆盖层 `cordis.patch.yml` 在更新中原样保留。
|
|
228
318
|
- 会话数据的存放位置可能随版本变化(如 0.3.7 起 `/resume` 改用与 dsh web
|
|
229
319
|
共享的 JSONL 会话库),跨大版本更新后旧会话不在列表属预期,原数据不会被删除。
|
|
@@ -437,3 +527,20 @@ dsh-tui
|
|
|
437
527
|
先运行 `/doctor`,记录终端类型和模式,再参考[交互文档](interaction.md)与
|
|
438
528
|
[架构文档](architecture.md)。渲染问题可使用 `DSH_TUI_RENDER_LOG` 采集原始帧,
|
|
439
529
|
但日志可能包含会话可见内容,应妥善处理。
|
|
530
|
+
|
|
531
|
+
### 在 Orca 终端里会话内的 git 全部失败(`unable to parse command-line config`)
|
|
532
|
+
|
|
533
|
+
Orca 会给 agent 终端注入 git 的索引配置协议 `GIT_CONFIG_COUNT` + `GIT_CONFIG_KEY_n` +
|
|
534
|
+
`GIT_CONFIG_VALUE_n`(用来关闭凭据管理器的弹窗)。引擎在派生子进程时按**变量名**剔除
|
|
535
|
+
凭据形状的变量(`/KEY|PASSWORD|SECRET|TOKEN/i`),于是 `GIT_CONFIG_KEY_n` 被删,
|
|
536
|
+
`GIT_CONFIG_COUNT` 与 `GIT_CONFIG_VALUE_n` 留下;git 只拿到残缺的三元组,任何命令都
|
|
537
|
+
直接 `fatal: unable to parse command-line config`(exit 128)。
|
|
538
|
+
|
|
539
|
+
根因在引擎包的 `scrubbedParentEnv()`,与 dsh-tui 无关(issue #1811)。规避办法是在启动
|
|
540
|
+
dsh-tui 前去掉 `GIT_CONFIG_COUNT`——没有它时 git 会忽略孤立的 `KEY`/`VALUE`:
|
|
541
|
+
|
|
542
|
+
```sh
|
|
543
|
+
env -u GIT_CONFIG_COUNT dsh-tui
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
代价是失去 Orca 对凭据弹窗的抑制;需要非交互凭据时改用 `GIT_TERMINAL_PROMPT=0`。
|
|
@@ -51,7 +51,7 @@ side panel (`Ctrl+B`/`Alt+Z`), subagent dashboard, show-all, and todo fold are r
|
|
|
51
51
|
|
|
52
52
|
- The `Ctrl+<key>` bindings above also work with `⌘<key>` on macOS (e.g. `⌘V` paste, `⌘O` expand details, `⌘Enter` send immediately).
|
|
53
53
|
- Only `Ctrl+C` / `Ctrl+D` (interrupt/exit) stay on Ctrl, to avoid clashing with muscle memory for macOS system-level `⌘C` copy and similar.
|
|
54
|
-
- `⌘` requires terminal support for the extended keyboard protocol (iTerm2 / kitty / WezTerm / ghostty / tmux).
|
|
54
|
+
- `⌘` requires terminal support for the extended keyboard protocol (iTerm2 / kitty / WezTerm / ghostty / rio / Orca / tmux). A terminal outside that list can opt in with `DSH_TUI_FORCE_EXTENDED_KEYS=1`; rio 0.5.x enables the protocol by default.
|
|
55
55
|
- macOS's built-in Terminal.app consumes `⌘` shortcuts itself, so keep using `Ctrl`.
|
|
56
56
|
|
|
57
57
|
`/` has two meanings:
|
|
@@ -341,15 +341,16 @@ While the model is working, three paths have different placement:
|
|
|
341
341
|
Claude CLI that cannot withdraw them, or when the withdrawal request fails,
|
|
342
342
|
the backend still runs them next turn; dsh-TUI stops holding them, says so,
|
|
343
343
|
and never sends them twice.
|
|
344
|
-
- Messages
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
is ended `⏎` sends nothing: `/new` starts
|
|
351
|
-
there, or `/restart` resumes this one
|
|
352
|
-
Images attached to a held message stay with it into the next session
|
|
344
|
+
- Messages dropped without running them (the session ended unexpectedly, or
|
|
345
|
+
the backend discarded them) are held as "not delivered": a loss whose
|
|
346
|
+
delivery is unknown — sent before a connection dropped, or Codex's
|
|
347
|
+
`turn/start` timing out — stays `discarded` and is not held, so nothing
|
|
348
|
+
runs twice. Held messages are never re-sent by themselves and stay for the
|
|
349
|
+
next session; on DSH, a message submitted after the session ended is held
|
|
350
|
+
the same way. While the session is ended `⏎` sends nothing: `/new` starts
|
|
351
|
+
a new session and `⏎` sends them there, or `/restart` resumes this one.
|
|
352
|
+
Images attached to a held message stay with it into the next session and
|
|
353
|
+
across a `/restart`. A held
|
|
353
354
|
message taken back with `↑` while the session is ended is an ordinary draft
|
|
354
355
|
again, and a draft's images do not survive `/new`: to keep the images,
|
|
355
356
|
run `/new` first and edit there.
|
|
@@ -328,10 +328,11 @@ Bracketed paste(右键或终端原生粘贴)保留普通文本与换行。
|
|
|
328
328
|
- 回合正常结束时,排队消息照常进入下一回合;`Ctrl+C` 中断时保留队列。
|
|
329
329
|
- `Esc` 中断时,只有后端确认已撤回的消息才会暂存。旧版 Claude CLI 不支持撤回,或撤回请求失败时,这些
|
|
330
330
|
消息仍由后端在下一回合执行,dsh-TUI 不再暂存它们并给出提示,不会重复发送。
|
|
331
|
-
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
331
|
+
- 会话意外结束、或后端自行丢弃且确定没有执行的消息显示为「未送达」暂存,不会自动重发,并且会留到
|
|
332
|
+
下一个会话;交付不确定的丢弃(断线前已发出、Codex 的 `turn/start` 超时)仍记为「已丢弃」,不暂存,
|
|
333
|
+
以免重复执行。在 DSH 上,会话结束后再提交的消息也同样暂存。会话结束时 `⏎` 不发送,`/new` 开新
|
|
334
|
+
会话后再按 `⏎`,或用 `/restart` 恢复本会话。消息附带的图片随暂存消息留到下一个会话,也随
|
|
335
|
+
`/restart` 带到重启后的进程;
|
|
335
336
|
但会话结束时按 `↑` 取回编辑的消息会变回普通草稿,草稿里的图片在 `/new` 时不保留,要带图片就先 `/new` 再编辑。
|
|
336
337
|
|
|
337
338
|
## 会话工作流
|
|
@@ -30,7 +30,7 @@ dsh-tui
|
|
|
30
30
|
- `dsh-tui safe`: safe mode — read-only environment view, lists profile plugins, suggests fixes, and can create a clean rescue profile (see §5.5).
|
|
31
31
|
- `dsh --profile dsh-tui`: manual launch, equivalent to `dsh-tui` (`/update` only works this way).
|
|
32
32
|
- The `deepseek-official` route needs `DEEPSEEK_API_KEY`; on DSH 0.2.0-rc.1+ the standard profile can use the separate `deepseek-account` browser-authorization route. Other supported subscriptions use built-in OAuth sign-in. Run `/doctor` to check the environment.
|
|
33
|
-
- Primary verified dsh engine version: `0.2.
|
|
33
|
+
- Primary verified dsh engine version: `0.2.2-rc.2`. See `ADAPTER.md` for compatibility lines; versions outside that list show a drift note and the command to align on the logo page.
|
|
34
34
|
- If the logo page shows a ⚠ version-drift warning, align the dsh engine:
|
|
35
35
|
`npm i -g @deepseek-ai/dsh@<版本>`
|
|
36
36
|
|
|
@@ -360,7 +360,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
|
|
|
360
360
|
| `/home` / `/agentview` / `/bg` | none | the same session manager (`/home`=workspace view · `/agentview`=hosted session state · `/bg`=send to background and open, alias `/background`) |
|
|
361
361
|
| `/tree` | none | session fork tree: hover to preview, click to rewind / fork / switch branch |
|
|
362
362
|
| `/fork` | none | copy the current session into a resumable clone (original unaffected); a DSH copy with history records its source and belongs to the same session family |
|
|
363
|
-
| `/restart` | none | restart the process and resume this session. Allowed mid-turn too: the running turn is interrupted and queued input comes back as held messages
|
|
363
|
+
| `/restart` | none | restart the process and resume this session. Allowed mid-turn too: the running turn is interrupted and queued input comes back as held messages with their images (nothing is sent until you press ⏎ on the dock); if a tool ignores the interrupt and the process cannot shut down cleanly, it exits after ~5 s and prints the command that resumes this session |
|
|
364
364
|
| `/kernel` | none | kernel picker: switch between DSH, Codex and the experimental Claude backend; remembers the pick and restarts into a new session (rejected mid-turn); see [Claude backend](claude-backend.en.md) |
|
|
365
365
|
| `/dsh` / `/codex` / `/claude` | none | directly choose the named kernel through the same checks and restart flow as `/kernel`; the current kernel does not restart, a running turn blocks switching, and missing Claude opens the install wizard |
|
|
366
366
|
| `/rename` | `<新名称>` | rename the current session (no arg shows the current title and usage) |
|
|
@@ -387,7 +387,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
|
|
|
387
387
|
| `/migrate` | `[agent] [--dry-run]` | import conversation history from other coding agents (claude-code/codex/omp/zcode/grok-build); runs in a child process — see [Session migration](migrate.en.md) |
|
|
388
388
|
| `/init` | none | create `AGENTS.md` in the working directory (created / exists / failed) |
|
|
389
389
|
| `/agents` | none | subagent list for this session |
|
|
390
|
-
| `/team` | `status` (default) |
|
|
390
|
+
| `/team` | `status` (default) \| `on` \| `off [force]` | Agent Teams: `/team` (or `/team status`) reports the session's saved selection, the service and this session's subagents; `/team on` / `/team off` save the Team selection for this root session and its whole subagent tree (it survives restarts). Switching off neither stops subagents nor deletes tasks; while subagents are still running, `off` asks first — confirm with `/team off force`. On an older host (`0.2.2-rc.1` and earlier) the switch stays `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile`, and `/team` only reports plus points there |
|
|
391
391
|
| `/jobs` | none | background-task panel: status/runtime/exit-code tracking, `↑/↓` select, `k` stop; while open, `Esc` **closes only the panel** and won't interrupt the turn (close the panel first, then `Ctrl+C`) |
|
|
392
392
|
| `/settings` | none | open the plugin settings editor (namespace read/edit) |
|
|
393
393
|
| `/setup` | none | re-run the first-run guide (accounts & models / language+theme / model+workspace / shortcuts) — same screen as the very first launch |
|
|
@@ -424,7 +424,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
|
|
|
424
424
|
| `/mcp` | none | MCP connection state (tools grouped as `mcp__服务器__工具`); shows a `cordis.patch.yml` snippet when unconfigured |
|
|
425
425
|
| `/skills` | none | skill-catalog selector (name+source+blurb); Enter fills a direct-call skill as `/name ` |
|
|
426
426
|
| `/plugin` | `list` · `install <spec>` · `remove <bundle>` · `enable <name\|id>` · `disable <name\|id>` · `check <dsh-plugin.json path>` · `info <id or spec>` · `registries` | `list` shows the plugins you added, without the other installation-supplied bundles, and lists the experimental features this app knows how to drive (off by default) with their switch and usage; bare `/plugin` gives the full diagnostics — trust banner + host descriptor + authorization matrix + ledger + the profile's bundles and rows; `install <spec>` installs a plugin into this profile — a pre-install notice and a trust confirmation, first-party packages on the packaged feed skip the confirmation, `esc` closes the pane (during an install it attempts cancellation and waits for writes to settle; if too late, it waits for completion; exemptions already written remain), blocked build scripts are approved in the pane, and an incompatible version can be exempted for that exact version; `remove` / `enable` / `disable` are the lifecycle actions — a bundle name is matched exactly and before any row identity, which is then `entryId` / `patchId` / module name; a module name matching multiple rows requires a specific row ID; gate 2 refuses the bundle providing this app, the host layer `dsh-base` and this package's own rows, with a reason and no service call at all, while every enable and removal asks first because installed sources cannot be verified. **These three have no cancellation**: `esc` only closes the pane, the write finishes and reports itself into the transcript, and a removal never deletes your own data under `~/.dsh-tui` (any residue is reported once). `check` validates a manifest and reports compatibility, `info` describes an installed bundle or an install spec, `registries` lists where installations ask |
|
|
427
|
-
| `/update` | none |
|
|
427
|
+
| `/update` | none | align the TUI, global dsh engine and global launcher as one set (launcher alignment is normally best effort; a failure after the engine advances blocks the restart and prints a repair command), verify it, then auto-restart and resume the session (only via `dsh --profile`; rejected mid-turn; refuses when the new TUI's peer range does not support the current engine: a below-range engine with a proven install is aligned first (the command is printed; an unavailable install gets repair guidance), while an above-range engine waits for a TUI release that declares it (never downgraded) — see [Update to the latest version](getting-started.en.md#update-to-the-latest-version)) |
|
|
428
428
|
| `/terminal-setup` | none | terminal setup advice (Windows Terminal ≥110 columns, paste keys) |
|
|
429
429
|
|
|
430
430
|
### 3.5 Skills
|
|
@@ -524,6 +524,9 @@ Keys are in §2.7. Key points:
|
|
|
524
524
|
- Plan review **approve must have no feedback text**.
|
|
525
525
|
- When an approval and a questionnaire hang at once, **approval wins**.
|
|
526
526
|
- A background-session approval is tagged `来自后台会话 <会话 id 前 8 位>`.
|
|
527
|
+
- A waiting tool approval follows the Notifications switch to a system notification (title “dsh-TUI · Approval needed”; see `taskNotifications` in §5.3). With `jumpBack` on, clicking that notification returns to the pane; a native toast still queued is cancelled if the switch turns off, the session changes, or the approval is answered first.
|
|
528
|
+
- A pending question follows the Notifications switch the same way (title “dsh-TUI · Waiting for your answer”; the body carries the first question's header and question while the options stay in the panel; see `taskNotifications` in §5.3). Local wizard and sign-in questionnaires announce the same way; a subagent's question stays in the panel in this release; the 0.2.2 approval-intent asks are announced the same way. With `jumpBack` on, clicking that notification returns to the pane; a native toast still queued is cancelled if the switch turns off, the session changes, or the question is answered first.
|
|
529
|
+
- A plan review follows the Notifications switch too (title “dsh-TUI · Plan review”; the body carries the question header and question, never the plan or its options; see `taskNotifications` in §5.3). It is the one notice that does not yield: the external notifier maps approvals and ordinary questions to its own notification but not a plan review, so yielding would leave only its generic idle notice, which never says a plan review is waiting. With `jumpBack` on, clicking that notification returns to the pane; a native toast still queued is cancelled if the switch turns off, the session changes, or the plan review is resolved first.
|
|
527
530
|
|
|
528
531
|
### 4.8 Skills / registry / Goals-Todos
|
|
529
532
|
|
|
@@ -661,6 +664,7 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
|
|
|
661
664
|
| effortDefault | default reasoning effort: Auto plus the current backend/model’s declared tiers (including custom IDs). Saved unsupported values remain readable; only Auto is selectable while loading or unavailable |
|
|
662
665
|
| smoothStreaming | smooth streaming output (default on): replies/thinking/tool-card text reveal at ~30fps; replay/history always direct |
|
|
663
666
|
| toolBackground | tool-card background emphasis: none / subtle / strong; also applies when expanded |
|
|
667
|
+
| taskNotifications | Notifications (default “When unfocused”): one switch for the task-completion, tool-approval, waiting-question and plan-review system notifications. Completions are titled “dsh-TUI · Task complete” with the latest reply as a one-line plain-text preview; approvals are titled “dsh-TUI · Approval needed” and carry the session name, the tool name and the host-provided reason (normalized and length-capped; the model's own justification can appear verbatim, and the tool call's arguments are never read); questions are titled “dsh-TUI · Waiting for your answer” and carry only the first question's header and question, never the options or detail (every questionnaire — including local wizard and sign-in prompts — uses the same notice; the 0.2.2 approval-intent asks do too; a subagent's question stays in the panel in this release); plan reviews are titled “dsh-TUI · Plan review” and carry the question header and question, never the plan, and are the one notice that never yields. A native toast still queued is dropped when the switch turns off, the session changes, or the approval, question or plan review is resolved. Every approval notifies, and only the current session’s does (background sessions and subagents stay quiet). Delivery follows `notificationMethod`; a native toast that cannot be delivered falls back to the bell, and an enabled, active external DSH notification plugin makes dsh-TUI yield for completions, approvals and questions, while a plan review never yields. Applies immediately |
|
|
664
668
|
| turnUsageRow | Turn-usage row (default off): show a per-turn summary of tokens, cache, duration and retries; `/tokens`, `/status` and the footer token hover are unaffected |
|
|
665
669
|
| mermaidDiagrams | Mermaid diagrams (default on): ```` ```mermaid ```` blocks render as character diagrams, forming while streaming; too-wide or unsupported types keep source with the required columns. Applies immediately |
|
|
666
670
|
| mathRendering | LaTeX math (default `auto`; lives on the **Formula** subpage of `/settings`): how `$…$` / `\(…\)` inline and `$$…$$` / `\[…\]` / bare display-environment (`\begin{align}` …) block formulas in replies show. `auto` uses the best available renderer (today Unicode text, with fractions and limits stacked in blocks), `image` typesets formulas with MathJax as terminal images when the terminal has graphics — the Kitty graphics protocol (Kitty, Ghostty, WezTerm, iTerm2…) or Sixel (Windows Terminal 1.22+, xterm, foot, WezTerm) — in the theme's text color (block formulas up to 16 rows; inline formulas as one-row images when a single row can hold them legibly; still-streaming formulas, dimmed thinking, terminals without graphics, formulas too small on one row, and any render failure fall back to Unicode), `unicode` pins Unicode text, `source` keeps the TeX. Unsupported, still-streaming, or too-wide formulas keep their source (a too-wide block first falls back to one line). Prices (`$5`), shell variables (`$HOME`), and `$` in code are left alone. The older `latexMath: false` still means `source`. **Click a formula image** to open the preview card: it re-typesets at twice the cell size, zooms 100–800%, pans, closes on `Esc` or a click outside, and titles itself with the formula's TeX. On Sixel the formulas carry **no backing** (only their strokes), so the terminal background or wallpaper shows through. Illustrations that ship with their own transparent margins — the `whaleGirl` raster — float the same way; photographs, screenshots, and images inside cards still composite onto a colour, because Sixel cannot express soft alpha. Applies immediately |
|
|
@@ -670,6 +674,7 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
|
|
|
670
674
|
| foldTerminalCommand | fold terminal commands (default off): multi-line commands on terminal cards (Bash/PowerShell) fold to first line + count; `Ctrl+O` or click to expand |
|
|
671
675
|
| expandEditor | full-screen draft editor (default on): `⛶` at the input line end or `Ctrl+Shift+E` expands to a full-screen editor; `Ctrl+Enter` send, `Esc` collapse (draft kept); off hides both entries |
|
|
672
676
|
| statusBar.* | all status-bar toggles above (compact/model/thinking/cwd/contextUsage/cache/tokens/cost/tps/gitBranch/sessionTitle/sessionId/mode/contextBar/activity/trajectory/pluginFields/pluginFieldsOrder; statusBar.sessionId is the bottom-bar display toggle, unrelated to cordis startup sessionId; pluginFieldsOrder is the plugin field list: `''`=none, `*`=all, `a,b;c;d`=three groups and three slots) |
|
|
677
|
+
| jumpBack | jump back from notifications (Windows, default off; completion, waiting approval, waiting question and plan review): the pane title gains a `[dsh-tui:<16 hex>]` suffix; clicking this session's completion, waiting-approval, waiting-question or plan-review toast returns to exactly this pane, and layouts it cannot verify fall back to a plain toast. The first toast that can promise a jump registers a per-user HKCU protocol key. Applies immediately |
|
|
673
678
|
|
|
674
679
|
**effortDefault**: when the model lacks that level, choose the nearest lower offered tier or the model default and show a notice. On DSH, priority is settings user layer > the last `/effort`
|
|
675
680
|
(effort.json, the level the last session ran) > cordis `effort` (deployment default) > model default. Claude/Codex apply edits through their own controls and backend preferences; Auto at startup and resumed sessions preserve the selection, while explicitly choosing Auto resets the model default.
|
|
@@ -686,7 +691,8 @@ plus the startup-level `effort` key.
|
|
|
686
691
|
### 5.4 Terminal requirements
|
|
687
692
|
|
|
688
693
|
- Interactive TTY required; Windows Terminal recommended (≥110 columns, monospace, TrueColor).
|
|
689
|
-
- macOS `⌘` modifier needs the extended keyboard protocol (iTerm2 / kitty / WezTerm / ghostty / tmux)
|
|
694
|
+
- macOS `⌘` modifier needs the extended keyboard protocol (iTerm2 / kitty / WezTerm / ghostty / rio / Orca / tmux); a terminal outside that list can opt in with `DSH_TUI_FORCE_EXTENDED_KEYS=1`.
|
|
695
|
+
- rio 0.5.x enables the protocol by default, so no extra configuration is needed; only older rio versions that turned it off need `use-kitty-keyboard-protocol` in the `[keyboard]` section of `~/.config/rio/config.toml`. dsh-tui only sends the enable sequence; it does not write terminal config.
|
|
690
696
|
- Terminal.app: use Ctrl.
|
|
691
697
|
- VS Code: install the companion extension `dsh-tui-vscode` (gets the **IDE selection channel**, needs ≥ 0.7.0).
|
|
692
698
|
- Or run `dsh-tui` directly in the integrated terminal.
|
|
@@ -768,7 +774,7 @@ When dsh exits unexpectedly, safe mode gives a **read-only** environment diagnos
|
|
|
768
774
|
11. Context pressure ≥80% turns amber, ≥95% red — time to `/compact` (unavailable under minimal preset).
|
|
769
775
|
12. Session manager (`/resume`, `/home`, `/agentview`, `/bg`, or `⌸` at the input line start):
|
|
770
776
|
type to filter, `★` pin, `Ctrl+X` stop a background session; switching just parks it.
|
|
771
|
-
13. Mid-turn, `/compact` and `/model` are rejected — `Ctrl+C` first or wait for the turn to end. `/restart` is not gated: it interrupts the running turn (queued input comes back held
|
|
777
|
+
13. Mid-turn, `/compact` and `/model` are rejected — `Ctrl+C` first or wait for the turn to end. `/restart` is not gated: it interrupts the running turn (queued input comes back held with its images, not sent automatically) and restarts; if Esc or `Ctrl+C` cannot stop a turn (a tool ignoring the interrupt) the process exits after ~5 s and prints the command that resumes this session — run it to get back in.
|
|
772
778
|
14. `/model` switches subsequent requests in the same session (ID and history kept); the choice is saved as the default for new sessions, while a resumed session keeps its last recorded request route.
|
|
773
779
|
|
|
774
780
|
**Ask the manual**
|