@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
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Resuming a DSH session preserves its recorded reasoning effort (or its live sele
|
|
|
44
44
|
- **Pixel whale pet** — three startup intros, click to wake; freezes after the first task.
|
|
45
45
|
- **Launchpad and first-run guide** — every ordinary launch lands on a landing page with a **real input box** (big text + whale + quick actions, dropping whole blocks on short/narrow terminals; whale-girl images use a compact native-canvas footprint instead of leaving a large gap before the title; on by default — /settings `launchpad` off boots straight into chat); command completion matches chat: `Tab` fills the input, `Enter` runs the command and clears it. The first run walks a four-step wizard (accounts & models / language+theme / model+workspace / shortcuts), re-runnable with `/setup`; its first step signs in to a subscription and catches the models it brings in (none → no question, one → that one, several → you choose), or adds an API key through the `/provider` wizard, which asks which of the enabled models to switch to or keeps the current one.
|
|
46
46
|
- **Terminal-native UI** — streaming Markdown, tool cards, `/` and `@` completion, `#L12-14` ranges, history search, zh/en UI.
|
|
47
|
-
- **
|
|
47
|
+
- **Notifications** — one switch covers four system notifications: task completion, a tool approval waiting for your decision, a question waiting for your answer, and a plan review waiting for your decision. Task completion: DSH, Claude and Codex notify after successful live work settles, with no queued follow-up or active goal. The title is “dsh-TUI · Task complete”; the body shows the latest settled reply as a single-line plain-text preview (Markdown formatting removed, up to 200 characters). OSC 777/9 apply an additional 2048-byte sequence budget, including title and protocol bytes, preserving whole graphemes. No reply shows only the title; BEL only rings. `/settings` → Conversation: `taskNotifications` = `unfocused` (default), `always`, or `off`; `notificationMethod` = `auto` (default), `osc9`, `bel`, or `windows`. Auto uses separate title/body fields on Ghostty/WezTerm (OSC 777) and Kitty (OSC 99); iTerm2/Warp and explicit `osc9` use a title prefix; other terminals ring the bell; delivery follows your terminal's notification/bell settings. On local Windows, `auto` resolves to `windows`, the system's native notifications: a task-completion toast. The first toast registers that user's AppUserModelID under HKCU, the toast appears about 3 seconds after the task ends (the PowerShell cold start that buys the no-extra-install route), and for DSH sessions an enabled, active external DSH notification plugin in the running profile makes dsh-TUI yield to it (no toast, no bell); an installed but disabled plugin does not suppress notifications; if that AppUserModelID cannot be written, the notification falls back to the bell instead of going silent. `jumpBack` (Windows, off by default) turns these toasts into a way back to the pane that raised them; it needs the native toast path (`notificationMethod` = `windows`, which `auto` picks on local Windows). With `/settings` → Conversation → `jumpBack` on, the pane title ends with `[dsh-tui:<16 hex>]`, one marker for the life of the process; switching it off removes the suffix at once. While it is on, this process refreshes a marker file at `~/.dsh-tui/notify/jumpback/<session>.json` (`schemaVersion: 1`, `marker`, `pid`, `startedAt`) when the setting is turned on and before each notification it sends, and the first toast that can promise a jump registers the per-user protocol handler (`URL Protocol` plus `shell\open\command`) under `HKCU\Software\Classes\dsh-tui`; a normal exit removes the file, and removes the key once no other live instance still needs it. Only a pre-send probe that finds exactly one target pane (or tab title) puts an activation URI on the toast; clicking it re-runs five checks — same pane, keyboard focus, marker still in the title, foreground window, not minimized — and refuses rather than jumping anywhere else when any of them fails. A click whose target has gone away changes nothing. Layouts that cannot be verified — a pane in an unselected tab that is not that tab's focused pane, profiles using `suppressApplicationTitle`, and terminals other than Windows Terminal (tested on Windows Terminal 1.24) — get a plain toast whose click changes nothing. The probe adds about half a second before each toast; the first one after enabling can also wait for the helper to compile (a few seconds, once), and a machine whose in-box compiler keeps failing retries it at most every five minutes. External notification senders can read the same marker file and point their own toast at `dsh-tui:activate?m=<marker>`; the URI and file format are a read-only contract, and this release ships no plugin-side implementation. SSH sessions keep the attached terminal's notification protocol in `auto` mode; explicit `windows` still selects the host's native transport. tmux requires `set -g allow-passthrough on` for OSC notifications and `set -g focus-events on` for focus reporting. Terminals without focus reporting need `always`. Replay, cancellation and failures do not notify. Works in inline and fullscreen modes. A tool approval adds its own notification: the title is “dsh-TUI · Approval needed”; the body carries the session name, the tool name and the asker's reason. The reason is host-provided text (the model's own justification can appear verbatim), so it is normalized to one plain line and length-capped, but the body makes no redaction promise; the tool call's arguments are never read for it. A native toast still being prepared is dropped if the switch turns off, the session is no longer the attached one, or the approval, question or plan review is no longer waiting. Every approval notifies, and only the current session’s does; background sessions and subagents stay quiet. The switch covers all four, so `off` silences approvals, questions and plan reviews along with completions. An enabled, active external DSH notification plugin still makes dsh-TUI yield for completions, approvals and questions; a plan review never yields, and outside local Windows (or in SSH) the existing terminal notification protocol or bell is used. An ordinary question adds its own notification: the title is “dsh-TUI · Waiting for your answer” and the body carries the first question's header and question; options and detail stay in the panel. 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 as an ordinary question. A plan review is announced as “dsh-TUI · Plan review” and carries the question header and question, never the plan itself, and it is the one notice that does not yield: an 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.
|
|
48
48
|
- **Native cursor** — focused text inputs inherit your terminal's cursor shape, color, blinking, and enabled animation or trail effects in both inline and fullscreen modes. The `/model` picker shows the same cursor during movement between provider tabs, model rows, and effort levels, then hides it after **0.5 seconds at rest**; clipped regions fall back to the model row. The session manager also moves this cursor between the workspace rail, session rows, and search box; typing claims the search caret, and navigation returns it to the focused row. Configure animation and trail effects in your terminal.
|
|
49
49
|
- **Images** — Kitty/Sixel thumbnails, centered preview with zoom and pan, paste-time fitting, text fallback. Kitty images scale to the reserved cells' physical pixels, including on HiDPI terminals.
|
|
50
50
|
- **Mermaid diagrams** — ````mermaid ```` fences drawn as Unicode diagrams.
|
|
@@ -54,6 +54,7 @@ Resuming a DSH session preserves its recorded reasoning effort (or its live sele
|
|
|
54
54
|
- **Live state** — activity animation, context bar, TPS, cache hit rate, effort, tokens, session cost estimate (main + subagents), Git and session metadata. Title, trajectory-strip and session-state animations update independently of the transcript and pause when idle or unfocused.
|
|
55
55
|
Context-bar fill follows backend occupancy; colors estimate content composition. Compaction clears obsolete estimates, and missing composition displays a single used block with a measured used count in both hover details.
|
|
56
56
|
- **One session manager** — `/resume` `/home` `/agentview` `/bg` `⌸`.
|
|
57
|
+
- Live Compact partial checkpoints appear as folded summaries in chat and summary entries in `/tree`; they do not reset the whole context composition. Occupancy follows the host token meter. Folded previews use the durable summary with the same compactionId; expansion retains the complete text, which is also the fallback when the summary event is missing.
|
|
57
58
|
- **Session workflow** — `/new` `/compact` `/export` `/btw`, model hot-switch, fork, rewind, vim, fullscreen draft editor.
|
|
58
59
|
`/btw` uses an overlay when its sidebar cannot render. Main-task questionnaires and the fullscreen draft editor take priority while preserving the side question and draft.
|
|
59
60
|
- **IDE selection channel** — a VS Code selection lands in the prompt.
|
|
@@ -129,10 +130,18 @@ The `deepseek-official` API-key route needs `DEEPSEEK_API_KEY`. On DSH
|
|
|
129
130
|
and select the separate account route through `/model`. Other supported
|
|
130
131
|
accounts can sign in through `/provider` or `/auth` after startup.
|
|
131
132
|
|
|
132
|
-
The primary compatibility target is DSH `0.2.
|
|
133
|
+
The primary compatibility target is DSH `0.2.2-rc.2`. This adapter supports its
|
|
133
134
|
Shell API, V4 session messages, declarative presets, and profile-backed settings;
|
|
134
135
|
older supported hosts retain their compatibility paths. See [configuration](docs/configuration.en.md).
|
|
135
136
|
|
|
137
|
+
DSH account notices use the existing account card. A notification with complete
|
|
138
|
+
coupon metadata keeps the coupon presentation; otherwise the card shows the
|
|
139
|
+
server's title and message without inventing an amount. The card refreshes its
|
|
140
|
+
language and follows the server's display deadline. Enter or Esc dismisses it;
|
|
141
|
+
account-page actions point to the official DSH account page and are not executed
|
|
142
|
+
inside this TUI. Older hosts keep their original bonus API.
|
|
143
|
+
|
|
144
|
+
|
|
136
145
|
On DSH 0.2.1-rc.2 and later, `/settings` also selects DeepSeek Search / Fetch APIs and edits their
|
|
137
146
|
endpoint and result limits, supporting custom Loader entry IDs and a masked API
|
|
138
147
|
key input saved through DSH's credential store. Official Flash model labels show the `1017` release
|
|
@@ -175,8 +184,16 @@ Afterwards `dsh-tui` and `dsh --profile dsh-tui` are equivalent.
|
|
|
175
184
|
> [Getting started](docs/getting-started.en.md#pnpm-install-script-blocks-and-foreign-platform-natives).
|
|
176
185
|
|
|
177
186
|
After startup the TUI checks for newer versions in the background. It never
|
|
178
|
-
blocks the first frame. Type `/update` for a one-shot upgrade
|
|
179
|
-
|
|
187
|
+
blocks the first frame. Type `/update` for a one-shot upgrade of the whole set
|
|
188
|
+
— TUI, dsh engine and global launcher. It restarts automatically and resumes
|
|
189
|
+
the current session, and refuses instead of leaving an incompatible or
|
|
190
|
+
unbootable TUI/engine combination. Launcher alignment is normally best effort,
|
|
191
|
+
but a failure after the engine advances blocks the restart and prints a repair
|
|
192
|
+
command. If the registry has a newer dsh release outside the TUI's
|
|
193
|
+
validated line, it says so and waits for a TUI update rather than installing an
|
|
194
|
+
unvalidated engine. Launcher alignment only touches proven global installs;
|
|
195
|
+
local npm/npx packages, ambiguous aliases and multi-member pnpm groups stay
|
|
196
|
+
unchanged. See
|
|
180
197
|
[Getting started](docs/getting-started.en.md) for the profile lifecycle,
|
|
181
198
|
source builds, and troubleshooting, including migration from the former
|
|
182
199
|
`dsh-cc-tui` package.
|
|
@@ -193,7 +210,7 @@ and Node/Python/PowerShell integration examples.
|
|
|
193
210
|
| Command | Purpose |
|
|
194
211
|
| --- | --- |
|
|
195
212
|
| `dsh-tui` / `dst` | Start the TUI; `dst` is a short alias for the same program |
|
|
196
|
-
| `dsh-tui --resume [id]` · `dsh-tui update` · `dsh-tui doctor` | Resume a session ·
|
|
213
|
+
| `dsh-tui --resume [id]` · `dsh-tui update` · `dsh-tui doctor` | Resume a session · align the TUI, dsh engine and global launcher as one set · pre-flight environment checks |
|
|
197
214
|
| `dsh-tui safe` | Read-only diagnostics, plugin inventory and repair guidance; `safe --rescue` builds a clean rescue profile |
|
|
198
215
|
| `dsh-tui version` · `dsh-tui help` | Launcher and profile versions and usage; both work even without a `dsh` install |
|
|
199
216
|
|
|
@@ -341,57 +358,58 @@ Using ChatGPT subscription tokens in third-party clients is subject to
|
|
|
341
358
|
OpenAI’s terms. Full instructions and current boundaries:
|
|
342
359
|
[Codex backend](docs/codex-backend.en.md).
|
|
343
360
|
|
|
344
|
-
###
|
|
345
|
-
|
|
346
|
-
DSH
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
361
|
+
### DSH Agent Teams
|
|
362
|
+
|
|
363
|
+
DSH Agent Teams lets the session's agent (the Lead) delegate to named
|
|
364
|
+
subagents that share the working directory, message each other and coordinate
|
|
365
|
+
on a shared task board. Since DSH `0.2.2-rc.2` it ships inside `dsh-base`:
|
|
366
|
+
there is no plugin to install and no bundle to enable. It is off by default
|
|
367
|
+
per root session — `/team on` enables it for this session and its whole
|
|
368
|
+
subagent tree (the choice survives restarts), and `/team off` switches it off
|
|
369
|
+
while keeping the subagents and the task board. `/team` (or `/team status`)
|
|
370
|
+
reports the saved selection, the service and this session's subagents. When
|
|
371
|
+
subagents are still running, `/team off` asks first (`/team off force`): they
|
|
372
|
+
keep running — only the task tools and the Team guidance stop.
|
|
373
|
+
|
|
374
|
+
Members are the root session's named subagents: `subagent` / `subagent_fork`
|
|
375
|
+
take an optional `name` (the root is `lead`, descendants are paths such as
|
|
376
|
+
`reviewer/checker`) and are the delegation tools — there is no
|
|
377
|
+
`spawn_teammate` any more. The four `team_task_*` tools are the shared task
|
|
378
|
+
board. Control tools address agents by name: `send_message({agent, message})`,
|
|
379
|
+
`interrupt_agent({agent})`, `list_agents` rows `{name, status, description?}`,
|
|
380
|
+
and `wait_agent` reports `{timedOut}`. Their calls and results render as
|
|
381
|
+
one-line cards (`send_message` with its target and `sent`, `list_agents` with
|
|
382
|
+
named rows), and a message between agents as a `✉ <sender>` bubble in the
|
|
383
|
+
receiving session. The agents dashboard (Ctrl+A) and the agents side panel
|
|
384
|
+
show a team view: the Lead line, members under their catalog name with
|
|
385
|
+
`running` / `idle` status, the remaining subagents, a read-only task board
|
|
386
|
+
(status, owner, `blocked`, write-scope warnings) and a banner when the team
|
|
387
|
+
record was rejected. A root with Team off still shows its read-only board with
|
|
388
|
+
a note, and an empty one falls back to the plain subagent view.
|
|
389
|
+
|
|
390
|
+
An older DSH line (`0.2.2-rc.1` and earlier) mounts the retired experimental
|
|
391
|
+
bundle instead, and TUI keeps that behavior there: the switch stays
|
|
392
|
+
`/plugin enable|disable @deepseek-ai/dsh-experimental-agent-team-profile`
|
|
393
|
+
(`/team` points at it; a launch without the profile plugin service gets the
|
|
394
|
+
`dsh plugin --profile dsh-tui add <bundle>@<dsh-version>` CLI route), the
|
|
395
|
+
durable roster comes from the projection, `spawn_teammate` is the delegation
|
|
396
|
+
tool (with `subagent` / `subagent_fork` removed while it is present), and
|
|
397
|
+
disabling the bundle while teammates run asks first. Those packages ship in
|
|
398
|
+
lockstep with DSH and pin their peers exactly, so the version must match.
|
|
399
|
+
|
|
400
|
+
Limits: on `0.2.2-rc.1` and earlier the switch covers the whole profile, not
|
|
401
|
+
one session; there is no "enter teammate session" yet, and `/export` leaves
|
|
402
|
+
team messages out. Upstream limits apply: teammates share one working
|
|
403
|
+
directory, a team lives in one process, and a task owner is never released
|
|
404
|
+
automatically. Upgrade every process that opens the same session store
|
|
405
|
+
together: catalogs written by `0.2.2-rc.2` subagents cannot be opened by older
|
|
406
|
+
DSH.
|
|
407
|
+
|
|
408
|
+
A delegation provider whose settled runs fail at least twice and at least half
|
|
409
|
+
the time gets one degraded-channel line above the agents list; the built-in
|
|
410
|
+
`subagent` route, workflow members and per-type Claude children are excluded
|
|
411
|
+
because there is no provider to switch to.
|
|
354
412
|
|
|
355
|
-
The switch enables or disables the bundle in the profile, so it persists
|
|
356
|
-
across restarts, and on a `dsh --profile` launch it applies at once — running
|
|
357
|
-
sessions included: the model is told which tools came and went. `/team` appears
|
|
358
|
-
in Help and `/` completion only once the team service is mounted, and only
|
|
359
|
-
reports: `/team` (or `/team status`) shows the bundle, the service and this
|
|
360
|
-
session's teammates. `/team on|off` was removed; typing it points at
|
|
361
|
-
`/plugin enable|disable`. Turning the bundle off while teammates run asks
|
|
362
|
-
first, and switching off stops them: the team service releases the teammates
|
|
363
|
-
still running as it unloads. Inside a teammate session the other teammates'
|
|
364
|
-
runs are not visible, so the question counts them as possibly running. The
|
|
365
|
-
team record stays in the session and comes back when the bundle is enabled
|
|
366
|
-
again.
|
|
367
|
-
|
|
368
|
-
If the running DSH does not ship the bundle (`/plugin list` stays silent),
|
|
369
|
-
switch DSH to one of the supported lines first (`0.2.1-rc.5`, `0.2.1-rc.4`, `0.2.1-rc.3`, `0.2.1-rc.2`, `0.2.1-alpha.5`,
|
|
370
|
-
`0.2.0-rc.1` or `0.2.0-rc.2`). To install it into the profile explicitly,
|
|
371
|
-
run `dsh plugin --profile dsh-tui add @deepseek-ai/dsh-experimental-agent-team-profile@<your-dsh-version>`:
|
|
372
|
-
the team packages ship in lockstep with DSH and pin their DSH peers exactly,
|
|
373
|
-
so the version must match.
|
|
374
|
-
|
|
375
|
-
While a request carries `spawn_teammate`, dsh-TUI drops `subagent` /
|
|
376
|
-
`subagent_fork` from it, and the team's `send_message` / `list_agents` /
|
|
377
|
-
`interrupt_agent` / `wait_agent` take the place of the legacy controls of the
|
|
378
|
-
same names, so `spawn_teammate` is the delegation tool; with the team off
|
|
379
|
-
the legacy tools are back. Subagents that are not team members (workflow,
|
|
380
|
-
ralph) keep `subagent`. A teammate shows up as a subagent row, a message between
|
|
381
|
-
members as a `✉ <sender>` bubble in the receiving session (a teammate's
|
|
382
|
-
received messages show on its subagent detail as agent messages), and the
|
|
383
|
-
other team tools as one-line cards (`send_message` with its target and
|
|
384
|
-
`sent`). The agents dashboard (Ctrl+A) and the agents side
|
|
385
|
-
panel switch to a team view: each teammate under its member name with
|
|
386
|
-
`running` / `idle` / `provisioning` / `failed` (a teammate whose turn ended
|
|
387
|
-
is idle — a message wakes it — not done), the Lead line, the remaining
|
|
388
|
-
subagents, a read-only task board (status, owner, `blocked`, write-scope
|
|
389
|
-
warnings) and a banner when the team record was rejected.
|
|
390
|
-
|
|
391
|
-
Limits: the switch covers the whole profile, not one session (a launch
|
|
392
|
-
without the profile plugin service, or without hot reload, needs `dsh plugin`
|
|
393
|
-
and a restart); there is no "enter teammate session" yet, and `/export` leaves team messages out. Upstream limits apply: teammates share one working directory, a
|
|
394
|
-
team lives in one process, and a task owner is never released automatically.
|
|
395
413
|
Subagent failure badges and the Companion error state share session-scoped unread
|
|
396
414
|
status. Opening that child’s detail or main view acknowledges only that failure;
|
|
397
415
|
a new run or failure alerts again. Acknowledgements survive panel remounts and
|
|
@@ -409,15 +427,20 @@ In the launchpad input, `Shift+Enter` (or `Option+Enter`) opens chat and inserts
|
|
|
409
427
|
|
|
410
428
|
In both the launchpad and chat, `Alt/Option+←/→` moves by whitespace-delimited words and `Alt/Option+Backspace` deletes the previous word, like `Ctrl+W`. On macOS, configure your terminal to send Option as Meta.
|
|
411
429
|
|
|
412
|
-
Use `Alt+Up` / `Alt+Down` to page through question text and details, or approval previews on very short terminals, without moving the choice focus; these keys are remappable in `/settings` → `Shortcuts`. Fullscreen also supports the wheel over the preview. Complete OAuth links remain readable when browser and clipboard helpers are unavailable.
|
|
430
|
+
Use `Alt+Up` / `Alt+Down` to page through question text and details, or approval previews on very short terminals, without moving the choice focus; these keys are remappable in `/settings` → `Shortcuts`. Fullscreen also supports the wheel over the preview. Complete OAuth links remain readable when browser and clipboard helpers are unavailable. Fixed-action permission questions offer only the caller's choices; ordinary questionnaires still accept free text.
|
|
413
431
|
|
|
414
432
|
Text, cursor position and staged image attachments on the launchpad or in chat while the backend starts are preserved when the session becomes ready. Press `Enter` after it is ready to send; an earlier `Enter` preserves the draft without queuing it. Opening a new session while startup is pending clears the previous draft and its images.
|
|
415
433
|
|
|
416
434
|
The goal bar stays on one summary line: hovering truncated goal text in fullscreen or split shows the whole objective, and a bare `/goal` prints the full status — objective, phase, rounds or budget, available commands — as a transcript block in the `/plugins` shape. Inline mode sees no pointer events, so that block is how its users read a long objective.
|
|
417
435
|
|
|
418
436
|
While the model is working: `Enter` steers, `Tab` queues a follow-up, `Ctrl+Enter` interrupts and sends. Input that names a command is still a command — with or without arguments — so `/model` or `/new` reach their own gate (and the `/` overlay sinks the commands that affect the running conversation) instead of silently becoming an interruption; only text that is not a command — and a direct skill gesture such as `/skill-name …` — steers.
|
|
437
|
+
|
|
438
|
+
When DSH ends a turn because its session was disposed, the transcript shows “Session stopped”; user interruption keeps its existing prompt for what to do next. This describes the reported stop reason and does not recover a stuck session or its queued inputs.
|
|
439
|
+
|
|
419
440
|
Windows Neovim/Vim terminals identified by `NVIM` or `VIM_TERMINAL` retain VT input instead of enabling ConPTY mode 9001. For another incompatible embedded host, set `DSH_TUI_DISABLE_WIN32_INPUT_MODE=1` before launch (PowerShell: `$env:DSH_TUI_DISABLE_WIN32_INPUT_MODE="1"`). The same gate applies at startup and after resume. Native Windows Terminal, conhost and VS Code keep their existing mode unless disabled; the opt-out can remove modified-Enter reporting.
|
|
420
441
|
|
|
442
|
+
Extended key reporting (Kitty keyboard protocol and xterm `modifyOtherKeys`) is enabled for a fixed terminal list: iTerm2, kitty, WezTerm, Ghostty, rio, Orca, tmux, Warp and Windows Terminal. A terminal missing from that list can opt in with `DSH_TUI_FORCE_EXTENDED_KEYS=1`, and `DSH_TUI_DISABLE_EXTENDED_KEYS=1` opts an allowlisted terminal back out for SSH or nested xterm.js hosts (it wins when both are set). Outside native Windows, where win32-input-mode reports Enter's modifiers instead and is not touched by this switch, a terminal without extended keys cannot tell `Shift+Enter` from `Enter`, and `Ctrl+J` is the newline fallback.
|
|
443
|
+
|
|
421
444
|
|
|
422
445
|
On native Windows, fragmented Win32 input records are reassembled across short input delays instead of appearing as numeric protocol text. The platform check only reports that this machine might run the private mode (win32-input-mode); a bare `ESC[` fragment is held only after one record has actually been decoded, while a fragment whose own shape is already record-specific holds on its own (which is how even the first record can survive a split). Windows terminals that never enter the mode (mintty, GitBash) therefore keep the classic VT path: a lone `Esc` keeps its normal response time, and a letter typed after a timed-out `ESC[` is not swallowed.
|
|
423
446
|
|
|
@@ -482,11 +505,19 @@ In `/provider`'s model list, focus a model and press `Tab` to edit its context w
|
|
|
482
505
|
The session manager focuses the most recently used session in the current workspace; if there is no history, it focuses the new-session card. Moving between the workspace rail and session list preserves the selected session, including when the mouse enters the list. Switching to another workspace selects its latest session; switching back also starts from its latest session instead of restoring an earlier selection. Press `←` to move to the workspace rail. DST preloads the session list in the background after startup and updates the cache on success. The manager paints the last successful list immediately. Opening `/resume` while that read is pending shares the request and receives results that have already arrived. This first-paint snapshot survives restarts on DSH, Claude and Codex and is isolated by backend and storage directory. With or without a snapshot, all three backends prioritize the current workspace before filling in other workspaces. Fresh sessions and titles merge into the list immediately; cached rows from other workspaces remain until the full read finishes. Background updates preserve a session the user has selected manually. Claude and Codex first request up to 32 recent sessions within their native cwd scope: Claude's SDK includes Git worktrees in the same repository, while Codex matches the session cwd exactly. Codex listings reuse the running connection and read the first 32 regular results alongside the state DB shortcut, then fill in later pages. The browser groups sessions by their own cwd. DSH resolves the current workspace's metadata first and publishes it before reading other workspaces' logs, even when it has fewer than 32 sessions. Titles that require a deeper DSH log scan appear first with a fallback name and update in place when recovery finishes.
|
|
483
506
|
The session manager shows the selected workspace's absolute path once, beneath the source tabs (wrapping when needed; hover reveals exceptionally long paths). Session rows show their title and essential status/time instead of repeating the directory; DSH size and model remain in the title tooltip.
|
|
484
507
|
With DSH's current JSONL backend, startup and `/new` keep initial permission events in memory until further session activity saves the complete log. Flushing a session that holds only initialization leaves it unstored. Restarting an unstored empty session starts fresh.
|
|
508
|
+
The project rail uses one line per directory on every backend and source tab; the selected project’s path appears once above the panes.
|
|
509
|
+
|
|
485
510
|
Removing a workspace registration keeps its sessions accessible under a "History only" directory in the rail.
|
|
486
511
|
History-only directories offer edit and new-session actions; rename and remove are available for registered workspaces.
|
|
487
512
|
|
|
488
513
|
If a `/resume` attempt fails or is cancelled before switching, it releases any session occupancy acquired by that attempt so the session can be retried.
|
|
489
514
|
|
|
515
|
+
On Linux, stale TUI occupancy and mount locks can be reclaimed when the old PID
|
|
516
|
+
has been reused by a non-leader thread. This requires readable `/proc` identity
|
|
517
|
+
data in the same PID namespace; uncertain identities remain occupied. Reuse by
|
|
518
|
+
another process can still retain a stale claim, so this is not a general fix for
|
|
519
|
+
PID reuse across platforms.
|
|
520
|
+
|
|
490
521
|
**Background jobs**: card headers open the focused task panel. Click the card body or use `Ctrl+O` to toggle the command between its first statement and full script. Commands and output use separate colored edges with `❯` (`>` on Windows) and `≡` on their first rows; output always stays at the latest two visible rows. `/jobs` and the side panel keep the full output scrollable, while `e` toggles the focused command. Consecutive blank script lines collapse to one.
|
|
491
522
|
|
|
492
523
|
**Background sessions**: On the DSH backend, `/bg` or `←` on an empty prompt backgrounds the current session and opens the session manager; `Esc` returns to it. Background sessions run in this process and stop when the TUI exits. Logs survive. On Claude/Codex, those entries open the session manager without backgrounding the session.
|
|
@@ -515,7 +546,7 @@ Runtime path, module boundaries, performance notes and persistence locations: [A
|
|
|
515
546
|
## Known Limitations
|
|
516
547
|
|
|
517
548
|
- Injected plugin context has no standalone display; it counts into the context segments.
|
|
518
|
-
- `/model` changes the next request’s route in the same session; history and session ID are preserved. The last used route is recorded when the next request starts. DSH versions before `0.1.2-alpha.3` refuse switching and prompt an upgrade because their subagents inherit the original route.
|
|
549
|
+
- `/model` changes the next request’s route in the same session; history and session ID are preserved. The last used route is recorded when the next request starts. On DSH 0.2.2, API/plugin selections also update the next-model readout; late events from a previously fixed step do not overwrite the selected model's capacity metadata. DSH versions before `0.1.2-alpha.3` refuse switching and prompt an upgrade because their subagents inherit the original route.
|
|
519
550
|
- `Ctrl+V` needs platform clipboard tools; unsupported bitmap formats are rejected.
|
|
520
551
|
- Windows Terminal/ConPTY sixel frames check the last transmitted raster’s cursor position before parking, using measured cell geometry and encoded band controls. Detected drift uses the same physical clear and redraw as `Ctrl+L`. Probes allow one pending reply (500 ms), skip resize/handoff, and pause for 60 seconds after an unanswered query or three repairs within 10 seconds. Set `DSH_TUI_SIXEL_CURSOR_HEAL=0` to disable; `DSH_TUI_DEBUG` records probe/recovery decisions. This bounded mitigation cannot detect every kind of pixel corruption or repair ConPTY itself.
|
|
521
552
|
|
|
@@ -617,7 +648,7 @@ Managing what is installed: `/plugin remove <bundle>`, `/plugin enable <name | r
|
|
|
617
648
|
|
|
618
649
|
These three actions have no cancellation — the service offers none — so `esc` only closes the pane while the write finishes and reports itself into the transcript. Enable and disable have no CLI verb either (the service writes them into the profile's own files). **Grants follow the lifecycle**: `enable` enables and grants the declared permissions, `disable` disables and revokes the permissions that component declared, and `remove` **deletes the component's `grants`/`denies` entries** after the removal — grants are keyed by component id, so leaving them behind lets any later package reusing that id inherit them silently; a reinstall asks again. Backend data directories, storage namespaces and the effect ledger stay, and the residue report names each source by its path. A failed grant write never blocks an install or enable — it is reported instead. Grants are behavioural constraints, not a security boundary.
|
|
619
650
|
|
|
620
|
-
`/plugin list` also advertises the experimental features DSH ships, leaves off by default, and this app knows how to drive (currently
|
|
651
|
+
`/plugin list` also advertises the experimental features DSH ships, leaves off by default, and this app knows how to drive (currently Auto review, Session search and Git worktrees), each with its switch and usage line. A DSH installation that does not ship one shows no such section. Agent Teams is no longer one of them: `0.2.2-rc.2` builds it into `dsh-base`, so it is switched per session with `/team on|off` instead of a bundle.
|
|
621
652
|
|
|
622
653
|
## Documentation
|
|
623
654
|
|
|
@@ -729,7 +760,7 @@ after an intentional lockfile update, then review the cohort diff.
|
|
|
729
760
|
|
|
730
761
|
### Bounded update installation
|
|
731
762
|
|
|
732
|
-
`/update` and `dsh-tui update` give each
|
|
763
|
+
`/update` and `dsh-tui update` give each installer invocation (profile and engine) a **30-minute
|
|
733
764
|
wall-clock limit**. Set `DSH_TUI_UPDATE_TIMEOUT_MS` to a positive integer in
|
|
734
765
|
milliseconds to change it (invalid values use the default). Output activity does
|
|
735
766
|
not reset this deadline; a quiet but healthy installation can use the full limit.
|
package/bin/dsh-tui.js
CHANGED
|
@@ -28,11 +28,26 @@
|
|
|
28
28
|
* `DSH_TUI_LANG` 显式指定时从其值,否则默认中文(同 src/i18n.ts 的缺省)。
|
|
29
29
|
*/
|
|
30
30
|
import { spawn, spawnSync } from 'node:child_process'
|
|
31
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync } from 'node:fs'
|
|
31
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, writeFileSync } from 'node:fs'
|
|
32
32
|
import { homedir } from 'node:os'
|
|
33
33
|
import { dirname, isAbsolute, join, resolve } from 'node:path'
|
|
34
34
|
import { fileURLToPath, pathToFileURL } from 'node:url'
|
|
35
35
|
|
|
36
|
+
// 进程名(issue #1831):Linux 的 ps/top/桌面进程监视器显示的是主线程名
|
|
37
|
+
// (/proc/<pid>/stat 的 comm 字段),Node 启动时把它设成 "MainThread",启动器
|
|
38
|
+
// 这两层进程同样认不出来。写 /proc/self/comm 只改线程名、不动 argv——cmdline
|
|
39
|
+
// 保留入口路径,工具与回归(verify-installed-startup)靠它识别进程;只读 /proc
|
|
40
|
+
// 的环境里静默保持原名。本文件必须零 lib/ 依赖,所以这十行内联,语义与
|
|
41
|
+
// src/utils/processName.ts 一致(两边改动同步)。不带换行:内核原样存字节,
|
|
42
|
+
// comm 里混入换行会让 ps 显示成 dsh-tui? 并弄坏 /proc/<pid>/stat 的字段。
|
|
43
|
+
if (process.platform === 'linux') {
|
|
44
|
+
try {
|
|
45
|
+
writeFileSync('/proc/self/comm', 'dsh-tui')
|
|
46
|
+
} catch {
|
|
47
|
+
// 只读 /proc:保持 Node 的原名。
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
36
51
|
if (process.platform === 'win32' && process.env.DSH_TUI_STANDALONE_BINARY && process.argv[2] !== 'safe') {
|
|
37
52
|
try {
|
|
38
53
|
const oldBinary = `${process.env.DSH_TUI_STANDALONE_BINARY}.old`
|
|
@@ -523,7 +538,7 @@ const MSG = {
|
|
|
523
538
|
` run / -p Run one non-interactive DSH task (dst cli --help)\n` +
|
|
524
539
|
` cli <command> Independent automation CLI and management commands\n` +
|
|
525
540
|
` dsh <argv...> Forward native DSH arguments unchanged\n` +
|
|
526
|
-
` update
|
|
541
|
+
` update Align the TUI, dsh engine and global launcher as one set\n` +
|
|
527
542
|
` migrate [agent] Import conversations from claude-code/codex/omp/zcode/grok-build (--dry-run to preview)\n` +
|
|
528
543
|
` doctor Pre-flight environment checks (dsh/pnpm/profile/key)\n` +
|
|
529
544
|
` safe Safe mode: read-only diagnostics, inventory, repair guidance\n` +
|
|
@@ -545,7 +560,7 @@ const MSG = {
|
|
|
545
560
|
` run / -p 无界面运行单个 DSH 任务(dst cli --help)\n` +
|
|
546
561
|
` cli <命令> 独立自动化 CLI 与管理命令\n` +
|
|
547
562
|
` dsh <参数...> 原样转交官方 DSH CLI\n` +
|
|
548
|
-
` update
|
|
563
|
+
` update 一次对齐 TUI、dsh 引擎与全局启动器\n` +
|
|
549
564
|
` migrate [agent] 迁移 claude-code/codex/omp/zcode/grok-build 的对话(--dry-run 预览)\n` +
|
|
550
565
|
` doctor 启动前环境诊断(dsh/pnpm/profile/密钥)\n` +
|
|
551
566
|
` safe 安全模式:只读诊断、插件清单与修复指引\n` +
|
|
@@ -1498,6 +1513,20 @@ if (subcommand === 'update') {
|
|
|
1498
1513
|
process.exit(1)
|
|
1499
1514
|
}
|
|
1500
1515
|
}
|
|
1516
|
+
// 本进程就是启动器自己,argv[1] 指向本副本(npm 符号链接经 realpath 落到
|
|
1517
|
+
// bin/dsh-tui.js):cliUpdate 里的对齐逻辑必须按本次 argv[1] 找目标。
|
|
1518
|
+
// 从另一个安装启动的 TUI 里运行本命令时,shell 会继承那个会话的
|
|
1519
|
+
// DSH_TUI_LAUNCHER_*;不覆盖的话 alignGlobalLauncher() 会改写另一个安装
|
|
1520
|
+
// (review R2)。委托分支才需要把本代际写进 env,见下方瘦壳分支。
|
|
1521
|
+
delete process.env.DSH_TUI_LAUNCHER_PATH
|
|
1522
|
+
delete process.env.DSH_TUI_LAUNCHER_VERSION
|
|
1523
|
+
const launcherSelf = process.argv[1]
|
|
1524
|
+
if (launcherSelf !== undefined && launcherSelf !== '') {
|
|
1525
|
+
process.env.DSH_TUI_LAUNCHER_PATH = resolve(launcherSelf)
|
|
1526
|
+
}
|
|
1527
|
+
if (ownVersion !== undefined) {
|
|
1528
|
+
process.env.DSH_TUI_LAUNCHER_VERSION = ownVersion
|
|
1529
|
+
}
|
|
1501
1530
|
let cliUpdate
|
|
1502
1531
|
try {
|
|
1503
1532
|
;({ cliUpdate } = await import(pathToFileURL(join(profilePkgDir, 'lib', 'types', 'update.js')).href))
|
|
@@ -1549,6 +1578,12 @@ if (!runningInsideProfile && ownVersion !== undefined && process.env.DSH_TUI_NO_
|
|
|
1549
1578
|
process.exit(1)
|
|
1550
1579
|
}
|
|
1551
1580
|
process.env.DSH_TUI_LAUNCHER_VERSION = ownVersion
|
|
1581
|
+
// 启动器自己的 bin 路径:TUI 进程里的 argv[1] 是 profile 副本,/update
|
|
1582
|
+
// 只能靠这个标记找到要覆写的全局安装(#1844)。与 VERSION 同一处交代。
|
|
1583
|
+
const launcherSelf = process.argv[1]
|
|
1584
|
+
if (launcherSelf !== undefined && launcherSelf !== '') {
|
|
1585
|
+
process.env.DSH_TUI_LAUNCHER_PATH = resolve(launcherSelf)
|
|
1586
|
+
}
|
|
1552
1587
|
const child = spawn(process.execPath, [profileBin, ...process.argv.slice(2)], {
|
|
1553
1588
|
stdio: 'inherit',
|
|
1554
1589
|
env: process.env,
|
|
@@ -1708,6 +1743,14 @@ if (!runningInsideProfile && ownVersion !== undefined && process.env.DSH_TUI_NO_
|
|
|
1708
1743
|
if (process.env.DSH_TUI_LAUNCHER_VERSION === undefined && ownVersion !== undefined) {
|
|
1709
1744
|
process.env.DSH_TUI_LAUNCHER_VERSION = ownVersion
|
|
1710
1745
|
}
|
|
1746
|
+
// 只有本副本是 PATH 上那一个(未被委托)时才交代 bin 路径:委托链里
|
|
1747
|
+
// argv[1] 指向 profile 副本,写进 env 会把 profile 自己当成全局安装。
|
|
1748
|
+
if (!runningInsideProfile && process.env.DSH_TUI_LAUNCHER_PATH === undefined) {
|
|
1749
|
+
const launcherSelf = process.argv[1]
|
|
1750
|
+
if (launcherSelf !== undefined && launcherSelf !== '') {
|
|
1751
|
+
process.env.DSH_TUI_LAUNCHER_PATH = resolve(launcherSelf)
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1711
1754
|
|
|
1712
1755
|
// DSH consumes its own --; only the app tail belongs behind it. Preserve
|
|
1713
1756
|
// the app-level separator too, and replay this same argv on a safe retry.
|
package/cordis.patch.yml
CHANGED
|
@@ -381,7 +381,8 @@
|
|
|
381
381
|
const require = process.getBuiltinModule('node:module').createRequire(ctx.baseUrl)
|
|
382
382
|
try { require.resolve('@deepseek-ai/dsh-host-webserver/package.json') } catch { return true }
|
|
383
383
|
const entries = [...ctx.loader.entries()]
|
|
384
|
-
return !entries.some(entry => entry.options.name === '@deepseek-ai/dsh-deepseek-account
|
|
384
|
+
return !entries.some(entry => (entry.options.name === '@deepseek-ai/dsh-deepseek-account'
|
|
385
|
+
|| entry.options.name === '@deepseek-ai/dsh-deepseek-account-platform') && !entry.disabled)
|
|
385
386
|
|| entries.some(entry => entry.options.id === 'webserver' && entry.options.name === '@deepseek-ai/dsh-host-webserver' && !entry.disabled)
|
|
386
387
|
})()
|
|
387
388
|
config:
|
|
@@ -437,11 +438,12 @@
|
|
|
437
438
|
terminalImages: true
|
|
438
439
|
# diffLayout: auto
|
|
439
440
|
# mermaidDiagrams: true
|
|
440
|
-
#
|
|
441
|
+
# 通知(任务完成、等待授权、等待回答与计划评审):off / unfocused(默认)/ always;方式:auto(默认)/ osc9 / bel / windows。
|
|
441
442
|
# taskNotifications: unfocused
|
|
442
443
|
# notificationMethod: auto
|
|
443
444
|
# windows 档:Windows 主机原生 toast(首次注册当前用户的 HKCU 标识,约延迟 3 秒)。
|
|
444
|
-
# auto 在 Windows 本地会话用此档,SSH
|
|
445
|
+
# auto 在 Windows 本地会话用此档,SSH 改走客户端终端;DSH 会话遇到已启用、正在运行的 cc-dsh-notifier 时,完成、审批与提问让位,计划评审不让位。
|
|
446
|
+
# jumpBack: false(默认关);开启后窗格标题末尾追加 [dsh-tui:<16 hex>] 标记,完成、等待授权、等待回答与计划评审通知都可点击跳回,第一条能承诺跳回的 toast 注册 HKCU 协议键。
|
|
445
447
|
# 回复中 LaTeX 公式的显示方式:auto(默认,目前为 Unicode)/ image(支持图形的终端里块级公式显示为图片)/ unicode / source(保留源码)。/settings 可实时改。
|
|
446
448
|
# mathRendering: auto
|
|
447
449
|
# 每个请求实际生效的推理强度,按当前路由的 adapter 档位校验
|
package/cordis.yml
CHANGED
|
@@ -64,11 +64,12 @@
|
|
|
64
64
|
# 以下为 /settings 可改的显示设置;每项说明与默认值见应用内 /settings 屏。
|
|
65
65
|
terminalImages: true
|
|
66
66
|
# mermaidDiagrams: true
|
|
67
|
-
#
|
|
67
|
+
# 通知(任务完成、等待授权、等待回答与计划评审):off / unfocused(默认)/ always;方式:auto(默认)/ osc9 / bel / windows。
|
|
68
68
|
# taskNotifications: unfocused
|
|
69
69
|
# notificationMethod: auto
|
|
70
70
|
# windows 档:Windows 主机原生 toast(首次注册当前用户的 HKCU 标识,约延迟 3 秒)。
|
|
71
|
-
# auto 在 Windows 本地会话用此档,SSH
|
|
71
|
+
# auto 在 Windows 本地会话用此档,SSH 改走客户端终端;DSH 会话遇到已启用、正在运行的 cc-dsh-notifier 时,完成、审批与提问让位,计划评审不让位。
|
|
72
|
+
# jumpBack: false(默认关);开启后窗格标题末尾追加 [dsh-tui:<16 hex>] 标记,完成、等待授权、等待回答与计划评审通知都可点击跳回,第一条能承诺跳回的 toast 注册 HKCU 协议键。
|
|
72
73
|
# 回复中 LaTeX 公式的显示方式:auto(默认,目前为 Unicode)/ image(支持图形的终端里块级公式显示为图片)/ unicode / source(保留源码)。/settings 可实时改。
|
|
73
74
|
# mathRendering: auto
|
|
74
75
|
# Reasoning effort applied to every request, validated against the live
|
|
@@ -200,11 +200,11 @@ changes during a turn apply to the next one, not to reasoning already in progres
|
|
|
200
200
|
| `Esc` / `Ctrl+C` | Dismiss the focused panel or interrupt. Cancelling a blocking question interrupts its turn; dismissing an async question only closes that question |
|
|
201
201
|
| `/review` | Review uncommitted changes inline; requires idle state and consumes model usage |
|
|
202
202
|
| `/review base <branch>` / `/review commit <sha>` | Review against a branch or commit; other arguments are custom review instructions |
|
|
203
|
-
| `/diff` | Latest turn’s aggregated diff; otherwise try Git diff against the remote, then show an empty-state notice |
|
|
203
|
+
| `/diff` | Latest turn’s aggregated diff; otherwise try Git diff against the remote, then show an empty-state notice. Output is shown line by line and truncated with a notice past 200 lines; tabs and trailing whitespace are normalized for display |
|
|
204
204
|
| `/<skill-name> [arguments]` | Invoke a discovered, enabled Codex skill; completion updates as skills change. Local commands take precedence on name collisions |
|
|
205
205
|
| `/init` | Submit Codex’s AGENTS.md initialization prompt, not the DSH template generator; a model turn with normal approvals/usage |
|
|
206
206
|
| `/mcp` | Codex MCP status and tool counts, with reconnect but no runtime toggle |
|
|
207
|
-
| `/usage` | Server-reported quota windows, utilization, reset times and credits; relays may not provide them |
|
|
207
|
+
| `/usage` | Server-reported quota windows, utilization, reset times and credits, one row per window; relays may not provide them |
|
|
208
208
|
| `/status`, `/context`, `/compact` | Status, raw context readings, Codex compaction; unavailable category details are not invented |
|
|
209
209
|
| `/new`, `/clear`, `/export` | New thread, clear the view only, export the current transcript. `/clear` **does not reset context** |
|
|
210
210
|
| `!cmd` / `!!cmd` | dsh-TUI’s local shell / include output in a follow-up, not a verbatim copy of the official `!` persistence semantics |
|
|
@@ -162,11 +162,11 @@ Chat Completions 端点当作 Responses 使用。通过 `/channel` 选择/新建
|
|
|
162
162
|
| `Esc` / `Ctrl+C` | 按当前焦点关闭面板或中断;取消阻塞提问会中断相应回合,取消异步提问只关闭该题 |
|
|
163
163
|
| `/review` | 审查未提交改动,结果 inline 展示;需要空闲,消耗模型用量 |
|
|
164
164
|
| `/review base <branch>` / `/review commit <sha>` | 按分支基线或提交审查;其他参数作为自定义审查说明 |
|
|
165
|
-
| `/diff` | 最近回合的聚合 diff;没有时尝试相对远端的 Git diff
|
|
165
|
+
| `/diff` | 最近回合的聚合 diff;没有时尝试相对远端的 Git diff,再无内容则提示。输出逐行显示,超过 200 行时截断并标明;制表符与行尾空白按渲染需要归一 |
|
|
166
166
|
| `/<skill-name> [参数]` | 使用 Codex 发现且启用的 skill;补全随 skills 变化刷新,本地同名命令优先 |
|
|
167
167
|
| `/init` | 提交 Codex 的 AGENTS.md 初始化提示,不走 DSH 的模板生成器;这是模型回合,仍需审批/用量 |
|
|
168
168
|
| `/mcp` | 查看 Codex MCP 服务器状态与工具数,支持 reconnect,不提供运行时 toggle |
|
|
169
|
-
| `/usage` | 服务端额度窗口、使用百分比、重置时间与 credits
|
|
169
|
+
| `/usage` | 服务端额度窗口、使用百分比、重置时间与 credits,每个窗口一行;中转站可能不提供 |
|
|
170
170
|
| `/status`、`/context`、`/compact` | 状态、上下文原始读数、Codex 压缩;没有分类明细时不会编造 |
|
|
171
171
|
| `/new`、`/clear`、`/export` | 新 thread、仅清视图、导出当前转录;`/clear` **不重置上下文** |
|
|
172
172
|
| `!cmd` / `!!cmd` | dsh-TUI 的本地 shell / 把输出作为后续消息带入上下文;不是直接照搬官方 `!` 的持久化语义 |
|
|
@@ -407,13 +407,18 @@ for the complete field reference.
|
|
|
407
407
|
| `DSH_TUI_DISABLE_MOUSE` | Temporarily disable mouse handling in fullscreen mode |
|
|
408
408
|
| `DSH_TUI_PROGRAM_STATUS` | Set to `0` (or `false`/`no`/`off`) to stop reporting session state to the terminal with [OSC 7501](https://www.superlogical.com/rex/docs/build/program-status); on by default and a no-op on terminals that do not implement it |
|
|
409
409
|
| `DSH_TUI_DISABLE_TERMINAL_IMAGES` | Set to `1` to force Kitty/Sixel probing, preview reads/decoding, and terminal image rendering off, overriding config and /settings; text metadata remains visible |
|
|
410
|
+
| `DSH_TUI_FORCE_EXTENDED_KEYS` | Set to `1` (or `true`/`yes`/`on`) to send the extended-key enable sequence (`CSI >1u` / `CSI >4;2m`) for a terminal missing from the built-in allowlist. Only useful for a terminal that actually implements the protocol: one that ignores the sequence is unchanged, while one that honors the enable but emits codepoints the parser does not handle turns keys into unbound forms — turn it back off if keys stop working |
|
|
411
|
+
| `DSH_TUI_DISABLE_EXTENDED_KEYS` | Set to `1` (or `true`/`yes`/`on`) to skip extended keys even for an allowlisted terminal, for SSH or nested xterm.js hosts that rewrite input; wins when both switches are set |
|
|
410
412
|
| `DSH_TUI_IMAGE_PROTOCOL` | `auto` (default), `kitty`, `sixel`, or `none`; override protocol selection without bypassing the preview preference, disable switch, non-fullscreen, accessibility or multiplexer guards |
|
|
411
413
|
| `DSH_TUI_RESUME_SESSION` | Resume a session at startup, normally set by a launcher |
|
|
412
414
|
| `DSH_TUI_RESUME_BACKEND` | The backend `DSH_TUI_RESUME_SESSION` was read from; set only when the launcher **derived** the target (a bare `--resume` reading that backend's last session, or the safe-mode retry following the last-run record). When the boot lands on another backend — an uninstalled id falling back to `dsh`, or the remembered kernel when `DSH_TUI_BACKEND` is absent — that target **refuses with a non-zero exit**: never carried across, never a silent cold start, never a new session (the safe-mode retry is the one exception, degrading to a warning plus a cold start). An id the user passed explicitly carries no mark and is handed over as it is |
|
|
413
415
|
| `DSH_TUI_RESUME_RETRY` | One-shot marker: this boot is safe mode's "retry normal startup". A retry derives its target from the last-run record, whose backend may no longer be registered, so a launch carrying this marker degrades a revoked resume target to a warning plus a cold start instead of failing. The boot deletes it from `process.env` as soon as it reads it |
|
|
414
|
-
| `DSH_TUI_HELD_INPUTS` | The queued-message file a `/restart` hands its replacement (`~/.dsh-tui/held-inputs-<pid>-<random>.json`); the replacement removes the variable from `process.env` at boot and deletes the file once the texts are back as held messages (a replacement that exits before that leaves it). It appears in the printed resume command when a restart stalls or fails to start (on Windows in the PowerShell form `$env:DSH_TUI_HELD_INPUTS='…'; …`); a file nobody resumed within 7 days is removed at a later launch |
|
|
416
|
+
| `DSH_TUI_HELD_INPUTS` | The queued-message file a `/restart` hands its replacement (`~/.dsh-tui/held-inputs-<pid>-<random>.json`); the replacement removes the variable from `process.env` at boot and deletes the file once the texts and their images are back as held messages (a replacement that exits before that leaves it). It appears in the printed resume command when a restart stalls or fails to start (on Windows in the PowerShell form `$env:DSH_TUI_HELD_INPUTS='…'; …`); a file nobody resumed within 7 days is removed at a later launch |
|
|
415
417
|
| `DSH_TUI_BACKEND` | Session backend (built-in `dsh` / `claude` / `codex`, or an installed plugin backend), normally set by `dsh-tui --backend`; an uninstalled or misspelled id starts on `dsh` with a warning (with a resume request in play it refuses instead, see above) |
|
|
416
418
|
| `DSH_TUI_HOST_ENTRY` | Set to `0` to start both kernels through `dsh --profile` (by default both start from the package's own entry). When the entry cannot use the installed dsh (the `dsh` on `PATH` is not `@deepseek-ai/dsh`, its launcher script cannot be followed, or a module or export it needs is missing), a DSH launch falls back to `dsh --profile` by itself and says why in the terminal and on screen |
|
|
419
|
+
| `DSH_TUI_UPDATE_LAUNCHER` | Set to `0` to skip global-launcher alignment in `/update` and `dsh-tui update` (pinned launchers, or when diagnosing an alignment failure); enabled by default |
|
|
420
|
+
| `DSH_TUI_UPDATE_ENGINE` | Set to `0` to skip the automatic global dsh engine install/upgrade in `/update` and `dsh-tui update` (pinned engines). A TUI upgrade whose peer range does not support the current engine is still refused: a below-range engine with a proven install gets the upgrade-first command (an unavailable install gets repair guidance instead), while an above-range engine waits for a dsh-tui release that declares it (no downgrade, no install command) |
|
|
421
|
+
| `DSH_TUI_DSH_PM` | `npm` or `pnpm`, overriding how the global dsh install is classified (abnormal prefixes, diagnosis). A layout that is not recognized is still never written to by guesswork. A pnpm layout must also prove that its install group contains only `dsh`; otherwise it gets `pnpm list -g --depth 0` inspection guidance instead of a one-package command that would replace the whole group |
|
|
417
422
|
| `DSH_TUI_CLAUDE_PERMISSION_MODE` | Start permission mode of the Claude backend (`default`/`acceptEdits`/`plan`/`dontAsk`/`bypassPermissions`); wins over the mode `/permission` remembered |
|
|
418
423
|
| `DSH_TUI_WORKSPACE_TARGET` | Workspace path or URI resolved at startup, normally set by `dsh-tui <target>` |
|
|
419
424
|
| `DSH_TUI_SESSION_ROOT` | Override the JSONL session root; profile default `$DSH_HOME/sessions`, bare `cordis.yml` default `~/.dsh-tui/sessions` |
|
|
@@ -477,7 +482,7 @@ The `/provider` add branch signs in to ChatGPT/Codex (`openai-codex`), Claude
|
|
|
477
482
|
(`anthropic`), or Grok (`xai`) subscriptions. When the installed host's pi-ai
|
|
478
483
|
catalog ships the corresponding flows, it also offers OpenAI direct ChatGPT sign-in
|
|
479
484
|
(`openai`, using the OpenAI API rather than the legacy Codex backend) and Meta
|
|
480
|
-
Muse (`meta`). The primary validated DSH `0.2.
|
|
485
|
+
Muse (`meta`). The primary validated DSH `0.2.2-rc.2` development fixture resolves pi-ai
|
|
481
486
|
`1.2.0`, which includes Meta Muse and OpenAI direct sign-in.
|
|
482
487
|
`/auth status`, `/auth login [provider]`, and `/auth logout <provider>` use
|
|
483
488
|
that credential store for these pi-ai routes. Browser authorization tries to open the page
|
|
@@ -358,13 +358,18 @@ Profile 模式不再使用旧的 `DSH_TUI_COMPACT_RATIO`、`DSH_TUI_COMPACT_RETA
|
|
|
358
358
|
| `DSH_TUI_DISABLE_MOUSE` | 在 fullscreen 模式临时关闭鼠标处理 |
|
|
359
359
|
| `DSH_TUI_PROGRAM_STATUS` | 设为 `0`(或 `false`/`no`/`off`)可停止用 [OSC 7501](https://www.superlogical.com/rex/docs/build/program-status) 向终端报告会话状态;默认开启,未实现该协议的终端上无副作用 |
|
|
360
360
|
| `DSH_TUI_DISABLE_TERMINAL_IMAGES` | 设为 `1` 时强制关闭 Kitty/Sixel 探测、预览读取/解码与终端图片渲染,优先于 config 和 /settings;保留文字信息 |
|
|
361
|
+
| `DSH_TUI_FORCE_EXTENDED_KEYS` | 设为 `1`(或 `true`/`yes`/`on`)时让不在内建白名单里的终端也发送扩展键开启序列(`CSI >1u` / `CSI >4;2m`)。只对确实实现了协议的终端有意义:忽略该序列的终端行为不变,而响应了开启序列却发出解析器不认识的码位的终端会让按键变成未绑定形式——试过不对就关掉 |
|
|
362
|
+
| `DSH_TUI_DISABLE_EXTENDED_KEYS` | 设为 `1`(或 `true`/`yes`/`on`)时对白名单内的终端也停用扩展键,用于 SSH、嵌套 xterm.js 等会重写输入的场合;与 `DSH_TUI_FORCE_EXTENDED_KEYS` 同时设置时以本项为准 |
|
|
361
363
|
| `DSH_TUI_IMAGE_PROTOCOL` | `auto`(默认)、`kitty`、`sixel` 或 `none`;覆盖协议选择,但不绕过图片预览偏好、禁用开关、非全屏、无障碍和多路复用器限制 |
|
|
362
364
|
| `DSH_TUI_RESUME_SESSION` | 启动时恢复指定会话,通常由启动器设置 |
|
|
363
365
|
| `DSH_TUI_RESUME_BACKEND` | `DSH_TUI_RESUME_SESSION` 的来源后端,只在启动器**派生**恢复目标时(裸 `--resume` 读该后端的上次会话、安全模式重试按最后运行记录)设置;boot 若落在别的后端(未装的 id 回落 `dsh`、没给 `DSH_TUI_BACKEND` 时跟随记住的内核),该目标一律**明确报错并非零退出**——不跨后端恢复、不静默冷启动、不新建会话(安全模式重试是唯一例外,降级为告警 + 冷启动)。用户显式给出的 id 不带此标记、原样透传 |
|
|
364
366
|
| `DSH_TUI_RESUME_RETRY` | 一次性标记:本次启动是安全模式的「重试正常启动」。重试的目标派生自最后运行记录,记录里的内核可能已经不在注册表里,所以带此标记的那次启动在恢复目标被撤销时降级为告警 + 冷启动,而不是报错退出。boot 读到即从 `process.env` 删除 |
|
|
365
|
-
| `DSH_TUI_HELD_INPUTS` | `/restart` 交给替身进程的排队消息文件(`~/.dsh-tui/held-inputs-<pid>-<random>.json
|
|
367
|
+
| `DSH_TUI_HELD_INPUTS` | `/restart` 交给替身进程的排队消息文件(`~/.dsh-tui/held-inputs-<pid>-<random>.json`),替身启动时把其中的文字和图片作为暂存消息放回、启动时从 `process.env` 移除,放回为暂存消息后删除文件(就绪前退出则文件保留);重启卡住或启动失败时会出现在打印的恢复命令里(Windows 上是 PowerShell 形式 `$env:DSH_TUI_HELD_INPUTS='…'; …`),超过 7 天没人恢复的文件会在之后某次启动时清理 |
|
|
366
368
|
| `DSH_TUI_BACKEND` | 会话后端(内置 `dsh` / `claude` / `codex`,或已装的插件后端),通常由 `dsh-tui --backend` 设置;未安装或写错的 id 按 `dsh` 启动并告警(若同时带了 `--resume` 请求则改为报错退出,见上) |
|
|
367
369
|
| `DSH_TUI_HOST_ENTRY` | 设为 `0` 时两个内核都经 `dsh --profile` 启动(默认两个内核都从本包入口启动)。入口用不了已安装的 dsh(`PATH` 上的 `dsh` 不是 `@deepseek-ai/dsh`、启动脚本跟不进去、所需模块或导出缺失)时,DSH 启动自动回退到 `dsh --profile`,并在终端与界面里说明原因 |
|
|
370
|
+
| `DSH_TUI_UPDATE_LAUNCHER` | 设为 `0` 时 `/update` 与 `dsh-tui update` 跳过全局启动器对齐(钉住启动器、或排查对齐失败时用);默认开启 |
|
|
371
|
+
| `DSH_TUI_UPDATE_ENGINE` | 设为 `0` 时 `/update` 与 `dsh-tui update` 跳过全局 dsh 引擎的自动安装与升级(钉住引擎时用);若新 TUI 的 peer 范围不支持当前引擎,升级仍会被拒绝:当前引擎**低于**范围且安装可自动执行时附引擎升级命令(安装不可自动执行时给修复指引),**高于**范围时只提示等声明支持该引擎的 dsh-tui 发布(不降级、不打印安装命令) |
|
|
372
|
+
| `DSH_TUI_DSH_PM` | `npm` 或 `pnpm`,覆盖 dsh 全局安装形态的判定(异常前缀、诊断时用);无法识别的布局仍不会被猜着写入。pnpm 布局还要求能证明所属安装组只含 `dsh`,否则只给 `pnpm list -g --depth 0` 检查指引,不用单包命令替换整组 |
|
|
368
373
|
| `DSH_TUI_CLAUDE_PERMISSION_MODE` | Claude 后端的起始权限模式(`default`/`acceptEdits`/`plan`/`dontAsk`/`bypassPermissions`),优先于 `/permission` 记住的选择 |
|
|
369
374
|
| `DSH_TUI_WORKSPACE_TARGET` | 启动时解析的工作区路径或 URI,通常由 `dsh-tui <目标>` 设置 |
|
|
370
375
|
| `DSH_TUI_SESSION_ROOT` | 覆盖 JSONL 会话根目录;profile 默认 `$DSH_HOME/sessions`,裸 `cordis.yml` 默认 `~/.dsh-tui/sessions` |
|
|
@@ -416,7 +421,7 @@ Profile 模式不再使用旧的 `DSH_TUI_COMPACT_RATIO`、`DSH_TUI_COMPACT_RETA
|
|
|
416
421
|
`dsh-auth` 插件包**。`/provider` 的添加分支提供 ChatGPT/Codex(`openai-codex`)、
|
|
417
422
|
Claude(`anthropic`)、Grok(`xai`)订阅账号登录。宿主 pi-ai catalog 提供相应流程
|
|
418
423
|
时还可使用 OpenAI 直连 ChatGPT 登录(`openai`,使用 OpenAI API 而非旧版 Codex
|
|
419
|
-
后端)和 Meta Muse(`meta`)。当前主验证线 DSH `0.2.
|
|
424
|
+
后端)和 Meta Muse(`meta`)。当前主验证线 DSH `0.2.2-rc.2` 的开发依赖解析到 pi-ai
|
|
420
425
|
`1.2.0`,包含 Meta Muse 与 OpenAI 直连登录。`/auth status`、`/auth login [provider]`、
|
|
421
426
|
`/auth logout <provider>` 对这些 pi-ai 路由操作同一套凭据。浏览器授权会尝试自动打开页面,并在同一
|
|
422
427
|
问卷中提供授权链接与手动粘贴回调 URL/代码的输入;设备码流程在轮询期间显示可复制的
|