@deepseek-harness-tui/dsh-tui 0.16.1 → 0.17.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.
Files changed (394) hide show
  1. package/README.md +208 -31
  2. package/assets/plugin-icon.svg +13 -0
  3. package/assets/windows-installer.cs +308 -0
  4. package/assets/windows-installer.ps1 +17 -0
  5. package/bin/dsh-tui.js +64 -5
  6. package/cli/adapters/dsh/index.mjs +111 -0
  7. package/cli/adapters/dsh/locate.mjs +73 -0
  8. package/cli/adapters/dsh/management-plugin.mjs +111 -0
  9. package/cli/args.mjs +154 -0
  10. package/cli/contracts.d.ts +48 -0
  11. package/cli/engine.mjs +92 -0
  12. package/cli/entry.mjs +48 -0
  13. package/cli/process.mjs +118 -0
  14. package/cli/protocol.mjs +23 -0
  15. package/cli/schema-v1.json +33 -0
  16. package/cordis.patch.yml +3 -1
  17. package/cordis.yml +3 -1
  18. package/guide/dsh-tui-guide/SKILL.md +1 -0
  19. package/guide/dsh-tui-guide/cli.en.md +114 -0
  20. package/guide/dsh-tui-guide/cli.md +114 -0
  21. package/guide/dsh-tui-guide/configuration.en.md +6 -5
  22. package/guide/dsh-tui-guide/configuration.md +6 -5
  23. package/guide/dsh-tui-guide/getting-started.en.md +27 -1
  24. package/guide/dsh-tui-guide/getting-started.md +19 -1
  25. package/guide/dsh-tui-guide/interaction.en.md +22 -10
  26. package/guide/dsh-tui-guide/interaction.md +18 -8
  27. package/guide/dsh-tui-guide/plugins.en.md +35 -4
  28. package/guide/dsh-tui-guide/plugins.md +23 -2
  29. package/guide/dsh-tui-guide/user-guide.en.md +30 -23
  30. package/guide/dsh-tui-guide/user-guide.md +29 -22
  31. package/lib/settings.json +83 -40
  32. package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
  33. package/lib/types/adapter/channel/plugins.js +8 -0
  34. package/lib/types/adapter/channel/ui-policy.d.ts +1 -1
  35. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  36. package/lib/types/adapter/channel/ui-policy.js +3 -0
  37. package/lib/types/adapter/ports/channel-display.d.ts +10 -0
  38. package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
  39. package/lib/types/adapter/ports/channel-session.d.ts +2 -0
  40. package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
  41. package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
  42. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
  43. package/lib/types/adapter/ports/channel-ui.d.ts +17 -2
  44. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  45. package/lib/types/adapter/ports/channel-view.d.ts +8 -1
  46. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  47. package/lib/types/adapter/ports/channel.d.ts +7 -0
  48. package/lib/types/adapter/ports/channel.d.ts.map +1 -1
  49. package/lib/types/agent/capabilities.d.ts +2 -0
  50. package/lib/types/agent/capabilities.d.ts.map +1 -1
  51. package/lib/types/agent/events.d.ts +8 -0
  52. package/lib/types/agent/events.d.ts.map +1 -1
  53. package/lib/types/api.d.ts +2 -2
  54. package/lib/types/api.d.ts.map +1 -1
  55. package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
  56. package/lib/types/backends/claude/translate/events.js +2 -1
  57. package/lib/types/backends/codex/auth/status.js +1 -1
  58. package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
  59. package/lib/types/backends/codex/session/controls.js +6 -5
  60. package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
  61. package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
  62. package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
  63. package/lib/types/backends/codex/translate/events.js +3 -1
  64. package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
  65. package/lib/types/backends/shared/channel-tokens.js +9 -8
  66. package/lib/types/channel/history-restore.d.ts.map +1 -1
  67. package/lib/types/channel/history-restore.js +2 -0
  68. package/lib/types/channel/interaction.d.ts.map +1 -1
  69. package/lib/types/channel/interaction.js +1 -0
  70. package/lib/types/channel/projection.d.ts +1 -1
  71. package/lib/types/channel/projection.d.ts.map +1 -1
  72. package/lib/types/channel/projection.js +19 -4
  73. package/lib/types/channel/questions.d.ts +2 -0
  74. package/lib/types/channel/questions.d.ts.map +1 -1
  75. package/lib/types/channel/sanitize.d.ts +14 -0
  76. package/lib/types/channel/sanitize.d.ts.map +1 -1
  77. package/lib/types/channel/sanitize.js +55 -0
  78. package/lib/types/channel/working-directory.d.ts +9 -0
  79. package/lib/types/channel/working-directory.d.ts.map +1 -0
  80. package/lib/types/channel/working-directory.js +7 -0
  81. package/lib/types/commands.d.ts +8 -1
  82. package/lib/types/commands.d.ts.map +1 -1
  83. package/lib/types/commands.js +13 -4
  84. package/lib/types/components/ChatTitle.d.ts +7 -0
  85. package/lib/types/components/ChatTitle.d.ts.map +1 -0
  86. package/lib/types/components/ChatTitle.js +15 -0
  87. package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
  88. package/lib/types/components/CodeBlockFrame.js +10 -5
  89. package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
  90. package/lib/types/components/CompactionStatusRow.js +24 -3
  91. package/lib/types/components/GoalTodoPanel.d.ts +3 -1
  92. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  93. package/lib/types/components/GoalTodoPanel.js +2 -2
  94. package/lib/types/components/Markdown.d.ts +9 -1
  95. package/lib/types/components/Markdown.d.ts.map +1 -1
  96. package/lib/types/components/Markdown.js +5 -4
  97. package/lib/types/components/MessageList.d.ts.map +1 -1
  98. package/lib/types/components/MessageList.js +17 -12
  99. package/lib/types/components/PromptInput.d.ts +13 -5
  100. package/lib/types/components/PromptInput.d.ts.map +1 -1
  101. package/lib/types/components/PromptInput.js +189 -107
  102. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  103. package/lib/types/components/SplitDiffView.js +232 -22
  104. package/lib/types/components/SubagentDetailScene.d.ts +3 -1
  105. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  106. package/lib/types/components/SubagentDetailScene.js +5 -1
  107. package/lib/types/components/Whale.d.ts.map +1 -1
  108. package/lib/types/components/Whale.js +8 -5
  109. package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
  110. package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
  111. package/lib/types/components/approvals/ApprovalPanel.js +93 -11
  112. package/lib/types/components/bigfont.d.ts.map +1 -1
  113. package/lib/types/components/bigfont.js +2 -1
  114. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  115. package/lib/types/components/messages/AssistantToolUseMessage.js +13 -6
  116. package/lib/types/components/previewRows.d.ts +19 -0
  117. package/lib/types/components/previewRows.d.ts.map +1 -0
  118. package/lib/types/components/previewRows.js +46 -0
  119. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  120. package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
  121. package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
  122. package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
  123. package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
  124. package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
  125. package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
  126. package/lib/types/components/sessions/SessionListRow.js +18 -10
  127. package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
  128. package/lib/types/components/sidePanel/InfoPanel.js +4 -3
  129. package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
  130. package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
  131. package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
  132. package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
  133. package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
  134. package/lib/types/components/sidePanel/builtinPanels.js +22 -16
  135. package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
  136. package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
  137. package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
  138. package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
  139. package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
  140. package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
  141. package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
  142. package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
  143. package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
  144. package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
  145. package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
  146. package/lib/types/components/sidePanel/useSidePanel.js +24 -6
  147. package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
  148. package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
  149. package/lib/types/components/trajectory/MiniWake.js +7 -3
  150. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
  151. package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
  152. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  153. package/lib/types/dsh-adapter/backend/translate.js +11 -1
  154. package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
  155. package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
  156. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  157. package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
  158. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
  159. package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
  160. package/lib/types/dsh-adapter/channel/composer-images.d.ts +9 -1
  161. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
  162. package/lib/types/dsh-adapter/channel/composer-images.js +111 -111
  163. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
  164. package/lib/types/dsh-adapter/channel/composer-mentions.js +16 -10
  165. package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
  166. package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
  167. package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
  168. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +4 -1
  169. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
  170. package/lib/types/dsh-adapter/channel/core/binding-feed.js +13 -2
  171. package/lib/types/dsh-adapter/channel/core/compose.d.ts +4 -1
  172. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  173. package/lib/types/dsh-adapter/channel/core/compose.js +2 -0
  174. package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
  175. package/lib/types/dsh-adapter/channel/core/files.js +2 -1
  176. package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
  177. package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
  178. package/lib/types/dsh-adapter/channel/core/host.js +192 -13
  179. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
  180. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
  181. package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
  182. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  183. package/lib/types/dsh-adapter/channel/extensions.js +31 -5
  184. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  185. package/lib/types/dsh-adapter/channel/input-actions.js +4 -0
  186. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +4 -1
  187. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  188. package/lib/types/dsh-adapter/channel/input-delivery.js +24 -1
  189. package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
  190. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  191. package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
  192. package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
  193. package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
  194. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
  195. package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
  196. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
  197. package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
  198. package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
  199. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  200. package/lib/types/dsh-adapter/channel/session-reset.js +4 -0
  201. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
  202. package/lib/types/dsh-adapter/channel/session-resume.js +46 -33
  203. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  204. package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
  205. package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
  206. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  207. package/lib/types/dsh-adapter/channel/state.js +2 -2
  208. package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
  209. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  210. package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
  211. package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
  212. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
  213. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  214. package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
  215. package/lib/types/dsh-adapter/contract.d.ts +6 -5
  216. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  217. package/lib/types/dsh-adapter/contract.js +7 -5
  218. package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
  219. package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
  220. package/lib/types/dsh-adapter/effect-ledger.js +1 -0
  221. package/lib/types/dsh-adapter/experimental-bundles.d.ts +26 -0
  222. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
  223. package/lib/types/dsh-adapter/experimental-bundles.js +11 -0
  224. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  225. package/lib/types/dsh-adapter/host-contract.js +1 -1
  226. package/lib/types/dsh-adapter/host-dsh.js +3 -3
  227. package/lib/types/dsh-adapter/index.d.ts +8 -4
  228. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  229. package/lib/types/dsh-adapter/index.js +9 -7
  230. package/lib/types/dsh-adapter/panels.d.ts +21 -7
  231. package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
  232. package/lib/types/dsh-adapter/panels.js +11 -56
  233. package/lib/types/dsh-adapter/plugin.d.ts +81 -0
  234. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  235. package/lib/types/dsh-adapter/plugin.js +318 -70
  236. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  237. package/lib/types/dsh-adapter/plugins-info.js +65 -10
  238. package/lib/types/dsh-adapter/presets.d.ts +15 -6
  239. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  240. package/lib/types/dsh-adapter/presets.js +51 -12
  241. package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
  242. package/lib/types/dsh-adapter/process-exit.js +1 -1
  243. package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
  244. package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
  245. package/lib/types/dsh-adapter/session-tools.js +39 -0
  246. package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
  247. package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
  248. package/lib/types/dsh-adapter/settings-sections.js +73 -0
  249. package/lib/types/dsh-adapter/status.d.ts +88 -1
  250. package/lib/types/dsh-adapter/status.d.ts.map +1 -1
  251. package/lib/types/dsh-adapter/status.js +318 -3
  252. package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
  253. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  254. package/lib/types/dsh-adapter/team-mode.js +76 -112
  255. package/lib/types/extensions.d.ts +1 -1
  256. package/lib/types/extensions.d.ts.map +1 -1
  257. package/lib/types/force-production-react.js +3 -3
  258. package/lib/types/i18n.d.ts +195 -52
  259. package/lib/types/i18n.d.ts.map +1 -1
  260. package/lib/types/i18n.js +96 -30
  261. package/lib/types/ink/colorize.d.ts +7 -1
  262. package/lib/types/ink/colorize.d.ts.map +1 -1
  263. package/lib/types/ink/colorize.js +29 -8
  264. package/lib/types/ink/components/App.d.ts +2 -1
  265. package/lib/types/ink/components/App.d.ts.map +1 -1
  266. package/lib/types/ink/components/App.js +10 -3
  267. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  268. package/lib/types/ink/components/ScrollBox.js +1 -0
  269. package/lib/types/ink/dom.d.ts +1 -0
  270. package/lib/types/ink/dom.d.ts.map +1 -1
  271. package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
  272. package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
  273. package/lib/types/ink/hooks/use-program-status.js +96 -0
  274. package/lib/types/ink/ink.d.ts +13 -4
  275. package/lib/types/ink/ink.d.ts.map +1 -1
  276. package/lib/types/ink/ink.js +119 -25
  277. package/lib/types/ink/output.d.ts +17 -2
  278. package/lib/types/ink/output.d.ts.map +1 -1
  279. package/lib/types/ink/output.js +85 -2
  280. package/lib/types/ink/parse-keypress.d.ts +1 -0
  281. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  282. package/lib/types/ink/parse-keypress.js +5 -4
  283. package/lib/types/ink/render-node-to-output.d.ts +2 -0
  284. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  285. package/lib/types/ink/render-node-to-output.js +79 -10
  286. package/lib/types/ink/root.d.ts +8 -0
  287. package/lib/types/ink/root.d.ts.map +1 -1
  288. package/lib/types/ink/root.js +12 -3
  289. package/lib/types/ink/screen.d.ts +11 -0
  290. package/lib/types/ink/screen.d.ts.map +1 -1
  291. package/lib/types/ink/screen.js +44 -0
  292. package/lib/types/ink/selection.d.ts +7 -2
  293. package/lib/types/ink/selection.d.ts.map +1 -1
  294. package/lib/types/ink/selection.js +187 -44
  295. package/lib/types/ink/shutdown-input.d.ts +15 -0
  296. package/lib/types/ink/shutdown-input.d.ts.map +1 -0
  297. package/lib/types/ink/shutdown-input.js +28 -0
  298. package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
  299. package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
  300. package/lib/types/ink/sixel-cursor-heal.js +62 -0
  301. package/lib/types/ink/sixel-graphics.d.ts +6 -0
  302. package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
  303. package/lib/types/ink/sixel-graphics.js +18 -0
  304. package/lib/types/ink/styles.d.ts +8 -1
  305. package/lib/types/ink/styles.d.ts.map +1 -1
  306. package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
  307. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
  308. package/lib/types/ink/terminal-notification-windows.js +433 -0
  309. package/lib/types/ink/terminal-notification.d.ts +3 -1
  310. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  311. package/lib/types/ink/terminal-notification.js +4 -1
  312. package/lib/types/ink/terminal-querier.d.ts +9 -1
  313. package/lib/types/ink/terminal-querier.d.ts.map +1 -1
  314. package/lib/types/ink/terminal-querier.js +32 -1
  315. package/lib/types/ink/terminal.d.ts +23 -2
  316. package/lib/types/ink/terminal.d.ts.map +1 -1
  317. package/lib/types/ink/terminal.js +32 -2
  318. package/lib/types/ink/termio/osc.d.ts +2 -1
  319. package/lib/types/ink/termio/osc.d.ts.map +1 -1
  320. package/lib/types/ink/termio/osc.js +37 -8
  321. package/lib/types/ink/termio/osc7501.d.ts +102 -0
  322. package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
  323. package/lib/types/ink/termio/osc7501.js +229 -0
  324. package/lib/types/ink/termio/tokenize.js +5 -7
  325. package/lib/types/panels.d.ts +1 -1
  326. package/lib/types/panels.d.ts.map +1 -1
  327. package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
  328. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  329. package/lib/types/screens/AgentTranscriptScene.js +5 -1
  330. package/lib/types/screens/Chat.d.ts +6 -6
  331. package/lib/types/screens/Chat.d.ts.map +1 -1
  332. package/lib/types/screens/Chat.js +304 -111
  333. package/lib/types/screens/Launchpad.d.ts +8 -2
  334. package/lib/types/screens/Launchpad.d.ts.map +1 -1
  335. package/lib/types/screens/Launchpad.js +32 -12
  336. package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
  337. package/lib/types/screens/SessionSupervisor.js +31 -21
  338. package/lib/types/screens/Settings.d.ts +5 -1
  339. package/lib/types/screens/Settings.d.ts.map +1 -1
  340. package/lib/types/screens/Settings.js +528 -51
  341. package/lib/types/screens/StatusLine.d.ts +9 -3
  342. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  343. package/lib/types/screens/StatusLine.js +91 -15
  344. package/lib/types/screens/StatusMetrics.d.ts +2 -11
  345. package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
  346. package/lib/types/screens/StatusMetrics.js +20 -14
  347. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
  348. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
  349. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
  350. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
  351. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
  352. package/lib/types/sessionMounts.d.ts +14 -0
  353. package/lib/types/sessionMounts.d.ts.map +1 -1
  354. package/lib/types/sessionMounts.js +20 -9
  355. package/lib/types/sessions/format.d.ts +39 -0
  356. package/lib/types/sessions/format.d.ts.map +1 -1
  357. package/lib/types/sessions/format.js +83 -0
  358. package/lib/types/sessions/resumeFailure.d.ts +4 -0
  359. package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
  360. package/lib/types/sessions/resumeFailure.js +12 -4
  361. package/lib/types/sessions/workspaceCounts.d.ts +6 -0
  362. package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
  363. package/lib/types/sessions/workspaceCounts.js +24 -0
  364. package/lib/types/settings/definitions.d.ts +24 -0
  365. package/lib/types/settings/definitions.d.ts.map +1 -1
  366. package/lib/types/settings/definitions.js +38 -13
  367. package/lib/types/tips.js +2 -2
  368. package/lib/types/tuiDisplayPrefs.d.ts +113 -5
  369. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  370. package/lib/types/tuiDisplayPrefs.js +276 -14
  371. package/lib/types/update.d.ts +15 -14
  372. package/lib/types/update.d.ts.map +1 -1
  373. package/lib/types/update.js +163 -115
  374. package/lib/types/updateProcess.d.ts +28 -0
  375. package/lib/types/updateProcess.d.ts.map +1 -0
  376. package/lib/types/updateProcess.js +135 -0
  377. package/lib/types/utils/inputWordBoundary.d.ts +5 -0
  378. package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
  379. package/lib/types/utils/inputWordBoundary.js +18 -0
  380. package/lib/types/utils/keymap.d.ts +1 -1
  381. package/lib/types/utils/keymap.d.ts.map +1 -1
  382. package/lib/types/utils/keymap.js +6 -1
  383. package/lib/types/windowsInstaller.d.ts +4 -0
  384. package/lib/types/windowsInstaller.d.ts.map +1 -0
  385. package/lib/types/windowsInstaller.js +237 -0
  386. package/locale/en.json +6 -0
  387. package/locale/zh.json +6 -0
  388. package/package.json +127 -111
  389. package/presets/liangshen/custom-bash.mjs +13 -1
  390. package/presets/liangshen/instruction-hint.mjs +4 -1
  391. package/presets/liangshen/skill-search.mjs +14 -2
  392. package/presets/winbash.mjs +16 -4
  393. package/tui-profile/feed/README.md +17 -8
  394. package/tui-profile/feed/first-party.json +1 -1
@@ -1,6 +1,10 @@
1
1
  # 交互与命令
2
2
 
3
3
  [文档索引](README.md) · [English](interaction.en.md)
4
+ `Ctrl+Q` 在运行中折叠待办;空闲时隐藏/恢复目标与待办底部面板,也可点击空闲待办标题隐藏。新目标/待办数据或切换会话后重新显示。已完成目标在空闲后退出底部面板,历史仍可在 Todo 侧栏查看。
5
+
6
+
7
+ 全屏文本选区属于起始栏(聊天、侧栏或 diff 的一侧)。跨行对角拖选、双击选词和三击选行保持同一归属。复制跳过装饰列,只拼接该栏软换行,保留原文硬换行。另一栏滚动不移动或失效当前选区;分隔线拖动只调整宽度。
4
8
 
5
9
  ## 输入与全局快捷键
6
10
 
@@ -17,7 +21,7 @@
17
21
  | `Ctrl+G` | 用外部编辑器(`$VISUAL` → `$EDITOR`)编辑当前输入,保存退出后回填;`:cq` 或非零退出保留原稿;未设置变量时提示配置,无 `vi` 兜底 |
18
22
  | `Ctrl+Shift+E` | 展开全屏草稿编辑器(也可点输入行尾 `⛶`):行号 + 当前行高亮 + 行/字统计,`Enter` 换行、`Ctrl+Enter` 或「发送」按钮发送、`Esc` 或「收起」按钮收起(草稿保留);滚轮自由滚动、点击定位/拖选/双击选词与输入框一致;可经 `/settings` 重映射 |
19
23
  | `Ctrl+Z` | 撤销输入框草稿的上一步「词级」编辑(文本、光标、图片一起回退)。只作用于草稿:提交、历史召回(`Ctrl+R`/`↑`)或换会话后即结束;`Esc Esc` 的会话/消息回溯与它不是一回事。可经 `/settings` 重映射 |
20
- | `Esc` | 层级:关帮助 → 关图片预览 → 关命令菜单 → 关文件菜单(仅当前 `@` token)→ **输入框内有选区时仅清选区(文本不动)** → 排队选择器开着时仅退出选择器 → 中断回合并暂存排队消息(不自动重发,见「消息投递语义」)→ 有输入时清空 → 空输入连续两次 = 时间回溯 rewind;fullscreen 下有鼠标选区时优先取消选区(不复制) |
24
+ | `Esc` | 层级:关帮助 → 关图片预览 → 关命令菜单 → 关文件菜单(仅当前 `@` token)→ 排队选择器开着时仅退出选择器 → **输入框内有选区时仅清选区(文本不动)** → 收起草稿编辑器 → 展开粘贴折叠块 → 移除上下文附件 → 中断回合并暂存排队消息(保留普通草稿,不自动重发,见「消息投递语义」)→ 空闲有输入时清空 → 空闲空输入连续两次 = 时间回溯 rewind;fullscreen 下有鼠标选区时优先取消选区(不复制) |
21
25
  | 图片预览打开时 `Esc` / `Ctrl+C` / `Enter` | 关闭预览,恢复下层界面;其余按键不透传 |
22
26
  | 图片弹窗中的 `←` / `→` | 上一张 / 下一张;首尾不循环,临时光标预览不抢输入框方向键 |
23
27
  | `←`(输入框为空) | 打开会话管理界面;DSH 内核会先把当前会话转入后台,Claude/Codex 内核保持当前会话运行 |
@@ -97,8 +101,9 @@
97
101
  历史会话与工作区合并成一个入口)· `设置`(`/settings`)· `内核 · <当前内核>`(`/kernel`,打开内核选择器,见「命令」一节)· **条件位**(优先级:有后台任务在跑 →
98
102
  `后台任务`;检测到新版本 → `有新版本`;用量到档且从未 star → `投喂一颗 Star`;兜底 `帮助`)。
99
103
  从落地页打开的整屏界面(会话与工作区 / 设置 / 后台任务 / 家谱 / 引导向导)都**盖在落地页之上**,
100
- `Esc` 退出回到落地页(草稿/参数/焦点原样保留);**离开落地页进对话页的唯一方式是回车提交一条
101
- 非命令消息**。落地页这一侧的浮层(选择器/命令面板)是**干净的镂空**——矩形内空格占位
104
+ `Esc` 退出回到落地页(草稿/参数/焦点原样保留);离开落地页进对话页有两条路:**回车提交一条
105
+ 非命令消息**,或输入框里按 `Shift+Enter`(`Option+Enter`)带着未发送的草稿进对话页、在光标处换行。
106
+ 落地页这一侧的浮层(选择器/命令面板)是**干净的镂空**——矩形内空格占位
102
107
  遮掉宿主屏的字形(绝不重影)、不发背景色(无白底;Kitty 立绘图像仍从终端默认背景透出;
103
108
  聊天页同款选择器不受影响)。
104
109
  - **Tips 行**:可点击轮换(三条 Tips 循环;首启那一句优先级最高、不参与轮换),键盘路径 = 焦点环 + `Enter`;
@@ -126,12 +131,12 @@
126
131
  | 按键 | 行为 |
127
132
  | --- | --- |
128
133
  | `Left/Right` | 按字符移动光标;**有选区时坍缩到选区对应边缘** |
129
- | `Ctrl+Left/Right` | 按单词移动 |
134
+ | `Ctrl+Left/Right` / `Alt/Option+Left/Right` | 按空白分隔的单词移动;启动页也支持 |
130
135
  | `Home/End` | 移到当前逻辑行首/行尾 |
131
136
  | `Ctrl+A` / `Ctrl+E` | `Ctrl+A` 打开子代理面板(编辑器内 `Mod+A` 仍移到行首);`Ctrl+E` 移到行尾,还会展开或折叠长会话中隐藏的旧消息 |
132
- | `Ctrl+U` | 删除光标前内容 |
137
+ | `Ctrl+U` | 删除光标至当前行首,保留右侧文字;启动页输入框聚焦时也支持,图片 chip 整体删除 |
133
138
  | `Ctrl+K` | 删除光标后内容 |
134
- | `Ctrl+W` | 删除前一个单词 |
139
+ | `Ctrl+W` / `Alt/Option+Backspace` | 删除前一个单词;已暂存的图片附件整体删除 |
135
140
  | `Backspace` / `Delete` | 删前一 / 后一字符;**有选区时删除整个选区** |
136
141
  | 打字 | **有选区时替换整个选区**,光标落在插入文本之后 |
137
142
 
@@ -457,7 +462,7 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
457
462
  `/btw <问题>` 发起一次不打扰主任务的快速侧问。
458
463
 
459
464
  - 复用当前会话上下文(system prompt + 已有历史)。
460
- - 做一次**无工具、单轮**的模型调用,答案显示在可滚动的浮层面板里。
465
+ - 做一次**无工具、单轮**的模型调用,答案显示在可滚动的面板(侧栏面板或聊天流里的浮层)里。
461
466
  - **不进会话历史**:问答不写入 session log,也不会出现在主上下文与 token 计数里(关闭面板即消失)。
462
467
  - **不打断主回合**:模型正在流式输出时也可以触发,主任务继续运行。
463
468
  - 面板内 `↑`/`↓` 滚动,`Space`/`Enter`/`Esc` 关闭,`c` 复制答案;等待答案时 `Esc` 取消。
@@ -469,6 +474,8 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
469
474
  - 点**消息区**(问题/答案正文)跟点面板其它地方一样,只把列焦点交给面板,不会注入任何东西——注入只有 `s` 一个入口。
470
475
  - `⤢` 全屏场景与侧栏面板同一套键位与选中态(线程 store 共享),区别只是送完聊天后整屏场景让位、回到主输入框。
471
476
  - 再次触发 `/btw` 会中止上一个侧问。
477
+ - 答案落在**哪块屏**由分栏能不能渲出来决定:`fullscreen`、内容区 ≥93 列、`sidePanel.splitEnabled` 开着、没展开整屏草稿编辑器,且 btw 面板已启用时进侧栏面板;否则退到聊天流里的浮层。同一个问答只在一处显示;分栏回来时,只有侧栏正在显示 **btw** 面板,浮层才让位(侧栏停在别的面板上时浮层留在原处)。屏被别的浮层或整屏界面占着时,侧问照常发出,但只在通知通道里说一句——整屏草稿编辑器会盖住这条提示。
478
+ - 已打开的侧问浮层会让位给后来到达的主任务问卷或全屏草稿编辑器;回答问卷或收起编辑器后按当前布局恢复侧问,不取消在途侧问,也不清空编辑器草稿。问卷上屏时,`Enter` 回答问卷。
472
479
 
473
480
  ### 轨迹场景(/trace / Ctrl+T)
474
481
 
@@ -645,6 +652,7 @@ dsh-tui 不修改 `~/.claude/settings.json`;会话启动时若其中的 `ANTHR
645
652
  - **双击/三击**:选择单词/整行并复制。
646
653
  - `scrollGutter: scrollbar` 的轨道例外:轨道是拖拽目标,其上多击不再选行。
647
654
  - **`Esc`**:取消正在进行的拖拽(或现有选区),不复制。
655
+ - **代码块**:从正文开始拖选时,light 与 full 代码框的软换行直接拼接,不额外复制边框内边距或换行。硬换行与硬行行首间距保留既有屏幕复制行为,不提供逐字节源码导出。
648
656
  - **单击消息行**:纯文本行(用户/assistant)无操作——转录是阅读区,鼠标职责是选字。
649
657
  - **单击工具卡 / thinking / compact 摘要**:展开 / 收起(hover 时标题提亮指示,行右侧空白不触发)。
650
658
  - **单击子代理卡**:打开该子代理的详情场景(hover 时状态符号提亮)。
@@ -712,6 +720,7 @@ dsh-tui 不修改 `~/.claude/settings.json`;会话启动时若其中的 `ANTHR
712
720
  | `Esc`(第 1 题) | 取消整批提问,模型收到 `ASK_CANCELLED` |
713
721
  | `Ctrl+C` | 从任意题取消整批提问,模型收到 `ASK_CANCELLED`(harness 侧中止仍报 `ASK_ABORTED`) |
714
722
  | `Ctrl+K` | 折叠/展开 ask_user_question 问卷面板 |
723
+ | `Alt+Up` / `Alt+Down` | 在固定高度区域内翻阅问题正文和说明,保留回答焦点;可在 `/settings` → `Shortcuts` 改键。全屏可在正文区域使用滚轮 |
715
724
 
716
725
  **最后一行是自由输入行**:
717
726
 
@@ -751,7 +760,7 @@ dsh-tui 不修改 `~/.claude/settings.json`;会话启动时若其中的 `ANTHR
751
760
 
752
761
  权限层发起 `approval/request` 时,审批面板暂时拥有键盘(同时挂起问卷时审批优先)。
753
762
 
754
- - 显示工具名、从配对 tool call 提取的完整命令与原因。
763
+ - 显示工具名、从配对 tool call 提取的命令与原因预览;极矮终端自动压缩间距,并在固定高度区域保留完整预览。
755
764
 
756
765
  | 按键 | 行为 |
757
766
  | --- | --- |
@@ -759,6 +768,7 @@ dsh-tui 不修改 `~/.claude/settings.json`;会话启动时若其中的 `ANTHR
759
768
  | `1` / `2` | 允许(仅本次)/ 拒绝 |
760
769
  | `Enter` | 提交当前焦点项 |
761
770
  | `Esc` / `Ctrl+C` | 拒绝(fail closed) |
771
+ | `Alt+Up` / `Alt+Down` | 在极矮终端的紧凑审批面板中翻阅完整预览,不移动选项焦点;全屏可在预览区域使用滚轮 |
762
772
 
763
773
  协议只有「允许一次 / 拒绝」两种结果,**没有「总是允许」**。
764
774
 
@@ -36,10 +36,22 @@ reference**, not a promise:
36
36
 
37
37
  | Tier | Seams |
38
38
  | --- | --- |
39
- | Stable candidate (shape frozen; breaking changes go through a minor-version deprecation warning before removal) | VI settings sections · VIII full-screen scenes · X managed dialogs · XI status line · XII keyboard shortcuts · XIII entry renderers |
39
+ | Stable candidate (shape frozen; breaking changes go through a minor-version deprecation warning before removal) | VI settings sections · VIII full-screen scenes · X managed dialogs · XI status line (+ footer fields via `setField`) · XII keyboard shortcuts · XIII entry renderers |
40
40
  | Experimental (may still shift with dsh-std / the TUI Profile) | IX decision events · toast notifications (`ctx.tuiToast`, new) · **Side panels (`ctx.tuiPanels`, full panel + compact row, experimental)** |
41
41
  | Upstream-tracked (stability owned by the cordis / dsh mechanisms underneath) | I session events · II official prompt slots · III bundled skills · IV themes · V system-prompt sections · VII profile composition |
42
42
 
43
+ **Footer fields (an addition to seam XI)**: `ctx.tuiStatus.setField(key, text,
44
+ options?)` joins one keyed text cell into the footer's existing left/right
45
+ groups (three slots — `left-tail` / `right-head` / `right-tail` — with an
46
+ optional hover detail and a fullscreen-only click) without adding a row;
47
+ `/settings → statusBar.pluginFields` turns every plugin field off at once, and
48
+ `statusBar.pluginFieldsOrder` lets the user tick fields individually and order
49
+ them by slot group: `build,ci;git;pet` — three groups, three slots, and a
50
+ **listed field follows its group** (overriding the declared slot). Once the user
51
+ pins a list, fields registered later stay hidden until ticked.
52
+ Contract, rule table, and example: seam XI "footer fields" in the
53
+ [admission & development guide](../tui-profile/docs/plugin-admission-and-development.md).
54
+
43
55
  Also an experimental public surface:
44
56
 
45
57
  - `@deepseek-harness-tui/dsh-tui/api` (types-only entry).
@@ -57,6 +69,22 @@ Also an experimental public surface:
57
69
  requires the `panels.chat.attach` grant (a later version) and currently
58
70
  always returns `false` with a one-time hint. Types live at
59
71
  `@deepseek-harness-tui/dsh-tui/panels` and `./api`.
72
+ Panel bodies can use `ui.Markdown` / `ui.CodeBlock` (experimental, narrowed
73
+ wrappers): the first takes a markdown string, the second raw code plus an
74
+ optional language tag (fence length, language-tag sanitising and syntax
75
+ highlighting are the host's job). `ui.Markdown` keeps chat parity: the host
76
+ first strips `<commit_analysis>` / `<context>` / `<function_analysis>` /
77
+ `<pr_analysis>` tag blocks (inside code fences too), while `ui.CodeBlock`
78
+ skips that pass and keeps the raw code line for line. Four limits: ① **no
79
+ highlighting on the first frame** (`cli-highlight` loads asynchronously,
80
+ same as host prose);
81
+ ② panels are **not selectable/copyable** (the whole sidebar column is
82
+ `noSelect`; a copy capability is a separate proposal); ③ block `$$` math
83
+ **follows the user's `mathRendering` setting** (an image when the terminal
84
+ supports graphics); inline math never becomes an image and stays Unicode;
85
+ ④ keep the body content **unchanged** to hit `React.memo` (strings compare
86
+ by value, so a fresh string with the same content still hits; only changed
87
+ content re-runs formatting and layout, while lexing is cached by content).
60
88
  - The `@deepseek-harness-tui/dsh-tui/test-utils` subpath and
61
89
  `ctx.tuiPluginHost.grants.corrupt` were removed in the adapter layering
62
90
  refactor (#705).
@@ -94,9 +122,12 @@ Also an experimental public surface:
94
122
  for the current write and stops subsequent grants and the retry; exemptions
95
123
  already written remain. **Known gaps**:
96
124
  provenance is only a one-vote-to-veto seam with no online check at all (the
97
- host service exposes no such API), and with no service the transcript reports
98
- the CLI command and the reason instead of **running `dsh plugin` on the user's
99
- behalf** (no pane opens: there is no flow to drive).
125
+ host service exposes no such API; the clause and its six evidence levels are
126
+ written up in the [admission and development
127
+ guide](https://github.com/ccch1mneyyy/dsh-TUI/blob/main/tui-profile/docs/plugin-admission-and-development.md)), and with no
128
+ service the transcript reports the CLI command and the reason instead of
129
+ **running `dsh plugin` on the user's behalf** (no pane opens: there is no flow
130
+ to drive).
100
131
  - **Lifecycle actions are available in the terminal itself (C-5)**: `/plugin remove
101
132
  <bundle>`, `/plugin enable <name|id>` and `/plugin disable <name|id>` go through the
102
133
  same host service. **A bundle and a row are two levels**: a bundle is a composition
@@ -31,12 +31,20 @@
31
31
 
32
32
  | 分级 | 接缝 |
33
33
  | --- | --- |
34
- | 稳定候选(形态冻结;如有破坏性变更,先在次版本弃用告警再移除) | 六 设置区块 · 八 全屏场景 · 十 托管对话框 · 十一 状态行 · 十二 键盘快捷键 · 十三 条目渲染器 |
34
+ | 稳定候选(形态冻结;如有破坏性变更,先在次版本弃用告警再移除) | 六 设置区块 · 八 全屏场景 · 十 托管对话框 · 十一 状态行(+ 底栏字段 `setField`) · 十二 键盘快捷键 · 十三 条目渲染器 |
35
35
  | 实验性(仍可能随 dsh-std / TUI Profile 演进调整) | 九 决策事件 · toast 通知(`ctx.tuiToast`,新增) · **侧栏 Panel(`ctx.tuiPanels`,full 面板与 compact 行,实验性)** |
36
36
  | 跟随上游(稳定性由 cordis / dsh 官方机制决定) | 一 会话事件 · 二 官方 prompt 槽位 · 三 技能打包 · 四 主题 · 五 system prompt 段 · 七 profile 组合 |
37
37
 
38
38
  另:
39
39
 
40
+ - **底栏插件字段(接缝十一的加法)**:`ctx.tuiStatus.setField(key, text,
41
+ options?)` 把一段键控文本并进底栏既有的左右组(`left-tail` /
42
+ `right-head` / `right-tail` 三槽,可选 hover 详情与全屏点击),不新增行;
43
+ `/settings → statusBar.pluginFields` 可一键关掉全部插件字段,另有
44
+ `statusBar.pluginFieldsOrder` 让用户逐字段启停、按「槽组」排序:
45
+ `build,ci;git;pet` 三组即三槽,**列进名单的字段跟随所在组**(覆盖插件声明的槽)。
46
+ 用户把名单固定后,之后新注册的字段默认不出现,直到用户勾选。契约、规则表与
47
+ 示例见[准入与开发指南](../tui-profile/docs/plugin-admission-and-development.md)接缝十一「底栏字段」。
40
48
  - `@deepseek-harness-tui/dsh-tui/api`(纯类型入口)为实验性公开面。
41
49
  - **preset 内的行(实验性,接缝七)**:bundle 用 `@deepseek-harness-tui/dsh-tui/preset-patch`
42
50
  行改 dsh-TUI 注册的 preset 里某一行的 `config`(例如关掉 `standard` 的
@@ -49,6 +57,17 @@
49
57
  descriptor、尚不挂载渲染**;`sendToChat` 需要 `panels.chat.attach`
50
58
  授权(后续版本),当前恒返回 `false` 并提示一次。类型见
51
59
  `@deepseek-harness-tui/dsh-tui/panels` 与 `./api`。
60
+ 面板正文可用 `ui.Markdown` / `ui.CodeBlock`(实验性,收窄包装):前者收一段
61
+ markdown 字符串,后者收原始代码与可选语言标签(围栏长度、语言标签清洗与
62
+ 语法高亮由宿主负责)。`ui.Markdown` 与聊天正文同一口径:宿主会先剥离
63
+ `<commit_analysis>` / `<context>` / `<function_analysis>` / `<pr_analysis>`
64
+ 标签块(代码围栏内也会);`ui.CodeBlock` 不做这层剥离,原始代码逐行保留。
65
+ 四条限制:① **首帧无语法高亮**(`cli-highlight` 异步
66
+ 加载完成后补上,与宿主正文同理);② 面板**不可选择/复制**(侧栏整列
67
+ `noSelect`,复制能力位另议);③ 块级 `$$` 公式**跟随用户的 `mathRendering`
68
+ 偏好**(终端支持图形时走图片),行内公式不走图片、仍排成 Unicode;④ 正文
69
+ 内容**保持不变**才能命中 `React.memo`(字符串按值比较,内容相同的新字符串
70
+ 一样命中;只有内容变化才重跑格式化与排版,分词按内容缓存)。
52
71
  - `@deepseek-harness-tui/dsh-tui/test-utils` 子路径与
53
72
  `ctx.tuiPluginHost.grants.corrupt` 已随 adapter 分层重构(#705)移除。
54
73
  - **后端贡献族(`tui.dsh/v1alpha1` `Backend`,接缝十四)的公开面已随第一版 apiVersion 冻结**:类型面
@@ -69,7 +88,9 @@
69
88
  已进入应用阶段而来不及时则等待安装完成。构建脚本被拦时在面板里批准,
70
89
  版本不兼容可登记 **精确版本豁免**;登记期间取消会等待当前写入、停止后续登记和重试,
71
90
  已写入的豁免保留。**已知缺口**:provenance 只留了「一票否决」的缝、
72
- 没有任何在线校验(宿主服务不暴露这类 API);服务缺席时由转录给出 CLI 命令与原因
91
+ 没有任何在线校验(宿主服务不暴露这类 API;条款与六档 evidence 的写法见
92
+ [准入与开发指南](https://github.com/ccch1mneyyy/dsh-TUI/blob/main/tui-profile/docs/plugin-admission-and-development.md)的「供应链证据与
93
+ provenance」);服务缺席时由转录给出 CLI 命令与原因
73
94
  (不弹面板:没有可驱动的流程),**不在 TUI 内代跑 `dsh plugin`**。
74
95
  - **生命周期动作已在终端里可用(C-5)**:`/plugin remove <bundle>`、`/plugin enable
75
96
  <名称|id>`、`/plugin disable <名称|id>` 走同一套宿主服务。**bundle 与行是两级语义**:
@@ -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.1-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.
33
+ - Primary verified dsh engine version: `0.2.1-rc.3`. 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
 
@@ -66,9 +66,10 @@ dsh-tui
66
66
  whole blocks (quick actions → hint line → input only) and narrow ones climb down the ladder in
67
67
  5.1. Full screens opened from this screen (sessions & workspaces / settings / background jobs /
68
68
  the first-run guide) render **above the launchpad** — `Esc` closes them back onto the launchpad
69
- (draft, params and focus intact); the only way off the launchpad into the chat is submitting a
70
- non-command line with Enter. When the dsh engine is out of the verified range, a **⚠
71
- version-drift warning** appears with the align command.
69
+ (draft, params and focus intact); there are two ways off the launchpad into the chat: submit a
70
+ non-command line with Enter, or press `Shift+Enter` (`Option+Enter`) in the input to carry the
71
+ unsent draft over and start a new line at the caret. When the dsh engine is out of the verified
72
+ range, a **⚠ version-drift warning** appears with the align command.
72
73
  3. **Bottom status bar**: working-status row, context bar, TPS gauge, and other live
73
74
  indicators (see [5. UI and status bar](#5-ui-and-status-bar)).
74
75
  4. **Startup hint line**: one fixed line under the logo:
@@ -130,10 +131,10 @@ While a turn is running, the `/` overlay groups commands by their impact on the
130
131
  | Key | Action |
131
132
  |---|---|
132
133
  | `←` / `→` | move the cursor by character (with a selection, collapse to that edge) |
133
- | `Ctrl+←` / `Ctrl+→` (⌘←/→) | jump by word |
134
+ | `Ctrl+←` / `Ctrl+→` (⌘←/→) / `Alt/Option+←/→` | jump by whitespace-delimited words; also supported on the launchpad |
134
135
  | `Home` / `End`, `Ctrl+E` | logical line start / end (`Ctrl+A` now opens the subagent panel, see §2.7) |
135
136
  | `Ctrl+U` / `Ctrl+K` | delete before the cursor (to line start) / after the cursor (to line end) |
136
- | `Ctrl+W` | delete the previous word |
137
+ | `Ctrl+W` / `Alt/Option+Backspace` | delete the previous word; staged image attachments are removed whole |
137
138
  | `Ctrl+Z` | undo the draft's last word-level edit (caret and images included); draft-only — a submit or a history recall (`Ctrl+R`/`↑`) ends it, and it is unrelated to the `Esc Esc` conversation/message rewind; remappable via `/settings` |
138
139
  | `Backspace` / `Delete` | delete previous / next character; **with a selection, delete the whole selection** |
139
140
  | `↑` / `↓` | move between lines when multi-line; browse input history when single-line (scoped per project, last 200 entries each, kept across restarts; history from before the upgrade shows in every project) |
@@ -144,8 +145,8 @@ While a turn is running, the `/` overlay groups commands by their impact on the
144
145
  | `/vim` | **vim editing mode toggle** (per-session, not persisted): shows an `INSERT` badge, `Esc` to `NORMAL`, `i/I/a/A/o/O` back to INSERT. NORMAL keys below |
145
146
  | typing | **replaces the whole selection when one exists** (like a standard editor), cursor lands after the inserted text |
146
147
  | right-click / `Ctrl+Shift+V` | terminal-native paste (newlines inserted as-is) |
147
- | `Esc` (input) | closes layer by layer: help → **image preview** → command menu → file menu (only the current `@` token) → **clear selection if any (text stays)** → re-send interrupt → clear input → double-press = time-travel |
148
- | double-press `Esc` (empty input) | **time-travel rewind** (press twice within 3 s) |
148
+ | `Esc` (input) | closes layer by layer: help → **image preview** → command menu → file menu (only the current `@` token) → leave the held-queue selector → **clear selection if any (text stays)** → collapse the draft editor → unfold a pasted block → remove context chips → interrupt and hold queued messages (ordinary draft kept; no automatic re-send) → clear non-empty idle input → double-press on empty idle input = time-travel |
149
+ | double-press `Esc` (empty idle input) | **time-travel rewind** (press twice within 3 s) |
149
150
 
150
151
  **vim NORMAL keys**: move `h/l` `j/k` `0/^/$` `w/b`;
151
152
  delete `x/X` `dd`/`d$`/`d0`/`d^`/`dw`; `u` undo, `Enter` send.
@@ -179,6 +180,7 @@ Unrecognized keys are ignored, `Esc` does nothing, clear with `Ctrl+C`/`dd`.
179
180
  **Questionnaire (model ask_user_question)**
180
181
 
181
182
  - `↑/↓` select, `Space` multi-select, `Tab` jump to custom answer, `Enter` submit; `←/→` switch question (no submit, draft kept); `Ctrl+V` paste, `Ctrl+K` fold.
183
+ - Page through question text and details with `Alt+Up` / `Alt+Down` (remappable in `/settings`), or use the wheel over the body in fullscreen. Options and answer focus stay in place, and OAuth links remain readable in full.
182
184
  - `Esc` back from question 2 onward, cancel the whole batch on question 1; `Ctrl+C` cancel on any question. On the input row, `←/→` move the caret first and switch questions only at the text edge.
183
185
 
184
186
  **Plan review**
@@ -188,6 +190,7 @@ Unrecognized keys are ignored, `Esc` does nothing, clear with `Ctrl+C`/`dd`.
188
190
  **Tool approval**
189
191
 
190
192
  - `↑/↓` move, `1` allow (this time only), `2` deny, `Enter` submit; `Esc`/`Ctrl+C` deny.
193
+ - Very short terminals use a compact layout that preserves decision rows and the footer; `Alt+Up` / `Alt+Down` pages through the full title, command and reason.
191
194
 
192
195
  **Session manager** (`/resume`, `/home`, `/agentview`, `/bg`, `⌸` at the input line start — the same screen)
193
196
 
@@ -233,6 +236,7 @@ Lists only inputs from the current project (the session's working directory), pl
233
236
 
234
237
  **/settings panel**
235
238
  `↑/↓` move · `Enter` expand/toggle/edit · `←/→` cycle a field that has options (booleans still only respond to `Enter`) ·
239
+ `Tab` / `Shift+Tab`, or a click on the tab strip in fullscreen, switch **pages** (General plus the pages a plugin declares; hidden when only one page exists) ·
236
240
  changes save automatically, `Esc` exits
237
241
 
238
242
  **/btw panel**
@@ -280,7 +284,7 @@ one-column seam between the two surfaces.
280
284
  at least 64 columns and the panel at least 28. Dragging exits zoom, preserves keyboard focus,
281
285
  and keeps the width for the current session. Text drags starting in chat select only chat;
282
286
  drags starting inside the panel can select panel text.
283
- - **Panels**: all eight built-in panels are enabled by default and can be changed in `sidePanel.panels`. `todo` (Goals/Todos — with a split it moves here from above the input), `jobs`
287
+ - **Panels**: by default (`sidePanel.panels: '*'`) every panel is enabled — the eight built-ins plus plugin panels registered later; change it in `sidePanel.panels` or the `/settings` checkboxes. `todo` (Goals/Todos — with a split it moves here from above the input), `jobs`
284
288
  (background jobs; clicking a job card in the transcript focuses that job here), `agents`
285
289
  (subagent dashboard and detail: Enter opens the detail, Esc steps back), `companion`
286
290
  (the pet — its mood follows
@@ -321,6 +325,7 @@ one-column seam between the two surfaces.
321
325
  workspace panel; the `⤢` on the panel bar puts them back on the whole screen (`⤢` is the mouse
322
326
  path — the keyboard equivalents are each view's own full-screen shortcut: `Ctrl+T` trajectory,
323
327
  `Ctrl+A` agents, `/jobs` jobs, `/home` the workspace home).
328
+ - Temporary plugin panels show their readable title and a unique number for this run. Their checkboxes change only the running UI, without saving a preference. Remove old `actN:panel` placeholders and select the current panel again.
324
329
  - Settings: the **Side panel** group in `/settings`, or
325
330
  `dsh-tui.sidePanel.{splitEnabled,open,ratio,panels}` (see the
326
331
  [configuration reference](configuration.en.md#tui-configuration)).
@@ -340,8 +345,8 @@ The command menu = built-in commands (aliases included) + DSH registry commands
340
345
  | `/resume` | none | open the **session manager** (workspace + session columns, live filter, pins, cross-workspace): switching just **parks** the outgoing session — it keeps running in the background and the active turn is not interrupted (like `/tree`: neither browsing nor switching cuts a running turn short; on the Claude backend a mid-turn switch is refused instead) |
341
346
  | `/home` / `/agentview` / `/bg` | none | the same session manager (`/home`=workspace view · `/agentview`=hosted session state · `/bg`=send to background and open, alias `/background`) |
342
347
  | `/tree` | none | session fork tree: hover to preview, click to rewind / fork / switch branch |
343
- | `/fork` | none | copy the current session into a resumable clone (original unaffected) |
344
- | `/restart` | none | restart the process and resume this session (rejected mid-turn, `Ctrl+C` first) |
348
+ | `/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 |
349
+ | `/restart` | none | restart the process and resume this session. Allowed mid-turn too: the running turn is interrupted and queued input is not kept; 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 |
345
350
  | `/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) |
346
351
  | `/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 |
347
352
  | `/rename` | `<新名称>` | rename the current session (no arg shows the current title and usage) |
@@ -349,7 +354,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
349
354
  | `/workspace` | `resume` / `rename <名称>` / `open <路径或URI>` | manage workspaces; `open` accepts an absolute path, file URI, or plugin scheme |
350
355
  | `/clear` | none | clear the current session view (reset expand/selection state) |
351
356
  | `/compact` | none | compact session history (prompts when nothing to compact) |
352
- | `/export` | none | export the session as Markdown to the working directory |
357
+ | `/export` | none | export the session as Markdown to the project the session opened in (an Agent `working_directory` cd does not move it) |
353
358
  | `/btw` | `<问题>` | side question: single turn, no tools, doesn't interrupt the main turn, not written to history |
354
359
  | `/trace` | none | open the trace scene (same as `Ctrl+T`) |
355
360
  | `/rewind` | none | rewind selector (same as double-press Esc on empty input); **a running turn is cancelled first** |
@@ -368,7 +373,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
368
373
  | `/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) |
369
374
  | `/init` | none | create `AGENTS.md` in the working directory (created / exists / failed) |
370
375
  | `/agents` | none | subagent list for this session |
371
- | `/team` | `status` (default) / `on` / `off` | switch experimental Agent Teams: enables or disables the team bundle, live when the profile hot-reloads; `status` reports the bundle, the service and this session's teammates |
376
+ | `/team` | `status` (default) | experimental Agent Teams status; appears in Help and `/` completion only while the team service runs, reporting the bundle, the service and this session's teammates. Switch with `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile` (a typed `/team` while the service is absent gives the enable route) |
372
377
  | `/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`) |
373
378
  | `/settings` | none | open the plugin settings editor (namespace read/edit) |
374
379
  | `/setup` | none | re-run the first-run guide (API key / language+theme / model+workspace / shortcuts) — same screen as the very first launch |
@@ -404,7 +409,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
404
409
  | `/hooks` | none | placeholder: notes when DSH hooks aren't mounted in the composition |
405
410
  | `/mcp` | none | MCP connection state (tools grouped as `mcp__服务器__工具`); shows a `cordis.patch.yml` snippet when unconfigured |
406
411
  | `/skills` | none | skill-catalog selector (name+source+blurb); Enter fills a direct-call skill as `/name ` |
407
- | `/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 installation-supplied bundles, and points at the detail / remove / enable / disable forms; 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 |
412
+ | `/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 |
408
413
  | `/update` | none | update the TUI and auto-restart to resume the session (only via `dsh --profile`; rejected mid-turn) |
409
414
  | `/terminal-setup` | none | terminal setup advice (Windows Terminal ≥110 columns, paste keys) |
410
415
 
@@ -437,7 +442,7 @@ dsh-TUI ships no generic skills; `/skills` browses skills DSH discovers, and a d
437
442
  | Resume | `/resume` (same as `/home` `/agentview` `/bg` and `⌸` at the input line start) | the three-in-one **session manager**: `←/→` switch column, type to filter, `Enter` enter, `Ctrl+N` new, `Ctrl+X` stop background session, `★`/`☆` pin. Switching just parks the session, the turn keeps running; a session taken by another terminal shows red and can't be entered (see §2.7) |
438
443
  | Rename | `/rename <标题>` | rename immediately and persist (writes a session/title event, readable back in the session manager) |
439
444
  | Compact | `/compact` | trigger DSH compaction manually; **rejected mid-turn**; unavailable under minimal preset; the compaction point renders as a Divider summary row |
440
- | Export | `/export` | export Markdown from the full session log (thinking and tool-call sections), file `dsh-tui-export-<时间戳>.md` in the current session cwd |
445
+ | Export | `/export` | export Markdown from the full session log (thinking and tool-call sections), file `dsh-tui-export-<时间戳>.md` in the session's opening project cwd (an Agent `cd` does not move it) |
441
446
  | Clear | `/clear` | clears the view only, never the session log |
442
447
  | Stop | session manager `Ctrl+X` | stop the **background** session under the cursor; the session the current terminal is using can't be stopped (exit the whole TUI with `/exit` or double-press `Ctrl+C`) |
443
448
  | Exit | `/exit` (or `/quit` `/q`) | double-press `Ctrl+C` or `Ctrl+D` also exits when idle; mid-work, press `Ctrl+C`/`Ctrl+D` again to force quit when the interrupt won't settle |
@@ -599,9 +604,11 @@ An empty session shows the whale logo area at the top (scrolls away with the con
599
604
  each agent's model × peak/idle × cache components; hover splits main ¥ / subagent ¥ / unpriced N tok;
600
605
  unofficial or unlisted models show tokens only and are marked unpriced;
601
606
  **the platform bill is authoritative**)
602
- - right group: git branch → working directory (basename only in compact mode) → session title → short session ID (`#` + first 8 chars, for `--resume`)
607
+ - right group: git branch (**follows the workspace HEAD** — a checkout elsewhere reaches it within about a second, and a detached HEAD clears it) → working directory (compact mode shows the project name until the session moves, then `project›relative` for an in-project move and `project→path` for a move outside) → session title → short session ID (`#` + first 8 chars, for `--resume`)
603
608
  - `statusBar.compact` merges the two sides into one row.
604
- - Default on: compact, model, thinking, cwd, contextUsage, cache, cost, goal, contextBar.
609
+ - **Plugin footer fields**: plugins may contribute fields via `ctx.tuiStatus.setField` (three slots: left group's tail / right group's head / right group's tail, with optional hover detail and fullscreen click); `statusBar.pluginFields` (default on) hides every plugin field at once without uninstalling anything.
610
+ - **Per-field control and order**: `/settings → Status bar → Plugin field list` (`statusBar.pluginFieldsOrder`) lists the fields in their three slot groups for individual ticking, with an `Advanced` row at the bottom for ordering. The value looks like `build,ci;git;pet` — exactly three `;`-separated groups, group index = slot, order inside a group = display order; a listed key follows its group (overriding the plugin-declared slot). Empty = show none; `*` (default) = all of them (future registrations included, in their declared slots and registration order). Entering the advanced row from `*` pre-fills the three-group skeleton, and saving it untouched keeps the mode; once a list is fixed, newly registered fields stay hidden until ticked.
611
+ - Default on: compact, model, thinking, cwd, contextUsage, cache, cost, goal, contextBar, pluginFields.
605
612
  - Default off: tokens, tps, gitBranch, sessionTitle, sessionId, mode, activity, trajectory.
606
613
 
607
614
  **Row 3 — hints / working activity + mini trace bar**
@@ -632,12 +639,12 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
632
639
  | whaleIdle | whale welcome idle animation (default on): fin/tail/blink, sleeps with Z after 10 s idle; click for a heart. Freezes after the first task |
633
640
  | splashFont | big-text face on the header splash: Daily rotation (default, changes with the local date) / bold / square / bevel / wide / dot matrix / stencil / thin (classic) / slab. Picking a face pins it; picking Daily rotation restores the rotation. Applies immediately |
634
641
  | whaleGirl | maid portrait (default off): under the DeepSeek brand, enable with `companion.skin=whale`; the `deepy` and `whaleGirl` skins override it. Claude uses its own artwork; Codex uses its own raster portrait or the maid character-art fallback. Both brands ignore these settings for splash artwork. Real raster (Kitty/Sixel), with character-art fallback. See the [precedence table](configuration.en.md) |
635
- | diffLayout | Edit/Write diff layout: auto (two columns ≥110 cols) / split / unified |
642
+ | diffLayout | Edit/Write diff layout: auto (two columns ≥110 cols) / split / unified; in two columns (auto at ≥110 cols, or an explicit split) a collapsed card still keeps one line per change, clipping a too-wide line and ending with a `… folded N chars (ctrl+o to expand)` hint; once expanded (`Ctrl+O` or a click), a too-wide line wraps to its own column width and the two columns stay aligned row by row (the same change line starts at the same row on both sides) |
636
643
  | thinkingFold | thinking block: preview (2-3 line preview + folded when settled) / full (expanded to end of turn) |
637
644
  | btw.contextBudget | Total character budget of recent Q/A pairs carried into a `/btw` follow-up (default 24000, range 1000-200000); oldest whole pairs are dropped first. Applies immediately |
638
645
  | btw.contextTurns | Number of most recent completed Q/A pairs explicitly carried into a `/btw` follow-up (default 4, range 1-8); older pairs stay in the thread and panel but are omitted from the request. Applies immediately |
639
646
  | jobGroupFold | consecutive background-job cards: auto (default — runs of 2+ group, a settled run of 3+ folds into its summary line) / always (any run of 2+ folds right away, live jobs included) / never (never folds on its own, every card stays). The group header summarizes status and total time; click it or press Ctrl+O to expand |
640
- | effortDefault | default reasoning effort: auto / off / low / high / max. Start level for new sessions (details below) |
647
+ | 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 |
641
648
  | smoothStreaming | smooth streaming output (default on): replies/thinking/tool-card text reveal at ~30fps; replay/history always direct |
642
649
  | toolBackground | tool-card background emphasis: none / subtle / strong |
643
650
  | 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 |
@@ -648,10 +655,10 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
648
655
  | pageMargin | page margin: inset from all four terminal edges. Presets none / slim / normal (default) / roomy, or custom `NxM` (details below). Applies immediately |
649
656
  | 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 |
650
657
  | 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 |
651
- | statusBar.* | all status-bar toggles above (compact/model/thinking/cwd/contextUsage/cache/tokens/cost/tps/gitBranch/sessionTitle/sessionId/mode/contextBar/activity/trajectory; statusBar.sessionId is the bottom-bar display toggle, unrelated to cordis startup sessionId) |
658
+ | 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) |
652
659
 
653
- **effortDefault**: when the model lacks that level, drop one level and show a notice; priority settings user layer > the last `/effort`
654
- (effort.json, the level the last session ran) > cordis `effort` (deployment default) > model default.
660
+ **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`
661
+ (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.
655
662
 
656
663
  **scrollGutter**: the scrollbar track can be dragged directly; `Shift`/`Alt`/`Ctrl`+drag is still text selection.
657
664
 
@@ -747,7 +754,7 @@ When dsh exits unexpectedly, safe mode gives a **read-only** environment diagnos
747
754
  11. Context pressure ≥80% turns amber, ≥95% red — time to `/compact` (unavailable under minimal preset).
748
755
  12. Session manager (`/resume`, `/home`, `/agentview`, `/bg`, or `⌸` at the input line start):
749
756
  type to filter, `★` pin, `Ctrl+X` stop a background session; switching just parks it.
750
- 13. Mid-turn, `/compact`, `/model`, `/restart` are rejected — `Ctrl+C` first or wait for the turn to end.
757
+ 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 is not kept) 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.
751
758
  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.
752
759
 
753
760
  **Ask the manual**