@markusylisiurunen/tau 0.3.100 → 0.3.102

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 (267) hide show
  1. package/dist/core/code_mode/agents.js +60 -14
  2. package/dist/core/code_mode/agents.js.map +1 -1
  3. package/dist/core/config/ownership.js +3 -1
  4. package/dist/core/config/ownership.js.map +1 -1
  5. package/dist/core/config/schema.js +3 -1
  6. package/dist/core/config/schema.js.map +1 -1
  7. package/dist/core/history/agent_history_recorder.js.map +1 -1
  8. package/dist/core/history/migrations.js +6 -1
  9. package/dist/core/history/migrations.js.map +1 -1
  10. package/dist/core/runtime/chat_runtime.js +5 -5
  11. package/dist/core/runtime/chat_runtime.js.map +1 -1
  12. package/dist/core/runtime/session_prompt_composer.js +2 -6
  13. package/dist/core/runtime/session_prompt_composer.js.map +1 -1
  14. package/dist/core/static/code_mode/history/documentation.md +1 -1
  15. package/dist/core/static/index.js +22 -11
  16. package/dist/core/static/index.js.map +1 -1
  17. package/dist/core/static/prompts/subagent-prefix.md +13 -5
  18. package/dist/core/static/tau_docs/code-mode.md +1 -1
  19. package/dist/core/static/tau_docs/config-reference.md +19 -7
  20. package/dist/core/static/tau_docs/credentials.md +4 -4
  21. package/dist/core/static/tau_docs/history.md +3 -3
  22. package/dist/core/static/tau_docs/image-generation.md +27 -20
  23. package/dist/core/static/tau_docs/index.md +2 -1
  24. package/dist/core/static/tau_docs/manifest.json +1 -0
  25. package/dist/core/static/tau_docs/node-sdk.md +6 -6
  26. package/dist/core/static/tau_docs/personas.md +1 -1
  27. package/dist/core/static/tau_docs/prompts-and-project-context.md +6 -6
  28. package/dist/core/static/tau_docs/remote-sessions.md +1 -1
  29. package/dist/core/static/tau_docs/session-protocol-methods.md +49 -1
  30. package/dist/core/static/tau_docs/session-protocol.md +22 -3
  31. package/dist/core/static/tau_docs/sessions.md +3 -1
  32. package/dist/core/static/tau_docs/subagents.md +65 -48
  33. package/dist/core/static/tau_docs/telegram-commands.md +55 -0
  34. package/dist/core/static/tau_docs/telegram.md +10 -38
  35. package/dist/core/static/tau_docs/tools.md +1 -1
  36. package/dist/core/static/tau_docs/troubleshooting.md +3 -3
  37. package/dist/core/static/tau_docs/tui.md +22 -18
  38. package/dist/core/subagents/agent_supervisor.js +192 -15
  39. package/dist/core/subagents/agent_supervisor.js.map +1 -1
  40. package/dist/core/subagents/claude_code_runner.mjs +61 -60
  41. package/dist/core/subagents/native_subagent_runtime.js +37 -13
  42. package/dist/core/subagents/native_subagent_runtime.js.map +1 -1
  43. package/dist/core/subagents/prompt.js.map +1 -1
  44. package/dist/core/subagents/registry.js +1 -0
  45. package/dist/core/subagents/registry.js.map +1 -1
  46. package/dist/core/subagents/runtime.js.map +1 -1
  47. package/dist/core/subagents/types.js +2 -1
  48. package/dist/core/subagents/types.js.map +1 -1
  49. package/dist/core/telegram/adapter.js +178 -61
  50. package/dist/core/telegram/adapter.js.map +1 -1
  51. package/dist/core/telegram/cli.js +1 -3
  52. package/dist/core/telegram/cli.js.map +1 -1
  53. package/dist/core/telegram/config.js +3 -1
  54. package/dist/core/telegram/config.js.map +1 -1
  55. package/dist/core/telegram/runtime.js +1 -1
  56. package/dist/core/telegram/runtime.js.map +1 -1
  57. package/dist/core/tool/cli.js +1 -1
  58. package/dist/core/tool/image_generate.js +6 -2
  59. package/dist/core/tool/image_generate.js.map +1 -1
  60. package/dist/core/tools/catalog.js +24 -14
  61. package/dist/core/tools/catalog.js.map +1 -1
  62. package/dist/core/tools/wait_for_agents.js.map +1 -1
  63. package/dist/core/utils/scribe_transcription.js +283 -0
  64. package/dist/core/utils/scribe_transcription.js.map +1 -0
  65. package/dist/core/utils/speech_cleanup.js +198 -0
  66. package/dist/core/utils/speech_cleanup.js.map +1 -0
  67. package/dist/core/utils/speech_to_text.js +3 -3
  68. package/dist/core/utils/speech_to_text_keywords.js +5 -4
  69. package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
  70. package/dist/core/version.js +1 -1
  71. package/dist/diff_tool/app/dist/assets/andromeeda-DW8vo71h.js +1 -0
  72. package/dist/diff_tool/app/dist/assets/aurora-x-rMvKqtYI.js +1 -0
  73. package/dist/diff_tool/app/dist/assets/ayu-dark-CwczpL8O.js +1 -0
  74. package/dist/diff_tool/app/dist/assets/ayu-light-DSh22xiD.js +1 -0
  75. package/dist/diff_tool/app/dist/assets/ayu-mirage-JE6hAyHG.js +1 -0
  76. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-pyXErRRU.js +1 -0
  77. package/dist/diff_tool/app/dist/assets/catppuccin-latte-BILSUICr.js +1 -0
  78. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
  79. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-C_2G67cS.js +1 -0
  80. package/dist/diff_tool/app/dist/assets/{core-3PFMkRLP.js → core-Cnp6wBC7.js} +1 -1
  81. package/dist/diff_tool/app/dist/assets/dark-plus-CHgc6GYj.js +1 -0
  82. package/dist/diff_tool/app/dist/assets/dracula-Cf1PG3MT.js +1 -0
  83. package/dist/diff_tool/app/dist/assets/dracula-soft-DXuNm1Kq.js +1 -0
  84. package/dist/diff_tool/app/dist/assets/engine-oniguruma-ConHyUk6.js +1 -0
  85. package/dist/diff_tool/app/dist/assets/everforest-dark-CjdfwUBe.js +1 -0
  86. package/dist/diff_tool/app/dist/assets/everforest-light-CfVwwCBP.js +1 -0
  87. package/dist/diff_tool/app/dist/assets/github-dark-BL6HSl_n.js +1 -0
  88. package/dist/diff_tool/app/dist/assets/github-dark-default-zacuWV-M.js +1 -0
  89. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
  90. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
  91. package/dist/diff_tool/app/dist/assets/github-light-default-DVlCqP3X.js +1 -0
  92. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
  93. package/dist/diff_tool/app/dist/assets/github-light-mYhEBkPo.js +1 -0
  94. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
  95. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
  96. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
  97. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
  98. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
  99. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
  100. package/dist/diff_tool/app/dist/assets/highlights-DeO0fGqQ.js +7 -0
  101. package/dist/diff_tool/app/dist/assets/horizon-Ba2cwkSy.js +1 -0
  102. package/dist/diff_tool/app/dist/assets/horizon-bright-DaEDgBmR.js +1 -0
  103. package/dist/diff_tool/app/dist/assets/houston-B6x0XVpU.js +1 -0
  104. package/dist/diff_tool/app/dist/assets/index-BDuQ2wXS.js +221 -0
  105. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
  106. package/dist/diff_tool/app/dist/assets/kanagawa-lotus--m8sdOxn.js +1 -0
  107. package/dist/diff_tool/app/dist/assets/kanagawa-wave-D-tTv4k2.js +1 -0
  108. package/dist/diff_tool/app/dist/assets/langs-DDFHLNuJ.js +1 -0
  109. package/dist/diff_tool/app/dist/assets/laserwave-HSLx0L75.js +1 -0
  110. package/dist/diff_tool/app/dist/assets/light-plus-CUjWrTSi.js +1 -0
  111. package/dist/diff_tool/app/dist/assets/loader-DrwOwtvp.js +1 -0
  112. package/dist/diff_tool/app/dist/assets/material-theme-CnthUGfg.js +1 -0
  113. package/dist/diff_tool/app/dist/assets/material-theme-darker-DUi03Qre.js +1 -0
  114. package/dist/diff_tool/app/dist/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
  115. package/dist/diff_tool/app/dist/assets/material-theme-ocean-CWR-LogA.js +1 -0
  116. package/dist/diff_tool/app/dist/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
  117. package/dist/diff_tool/app/dist/assets/min-dark-EXoM-6Xo.js +1 -0
  118. package/dist/diff_tool/app/dist/assets/min-light-DVOTDhnA.js +1 -0
  119. package/dist/diff_tool/app/dist/assets/monokai-DkggTbGy.js +1 -0
  120. package/dist/diff_tool/app/dist/assets/night-owl-Bdcs0PMi.js +1 -0
  121. package/dist/diff_tool/app/dist/assets/night-owl-light-RoU30LE0.js +1 -0
  122. package/dist/diff_tool/app/dist/assets/nord-u7hMircQ.js +1 -0
  123. package/dist/diff_tool/app/dist/assets/one-dark-pro-08PdtLzi.js +1 -0
  124. package/dist/diff_tool/app/dist/assets/one-light-DgvUEtgI.js +1 -0
  125. package/dist/diff_tool/app/dist/assets/pierre-dark-B2jZWvHG.js +1 -0
  126. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
  127. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
  128. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
  129. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
  130. package/dist/diff_tool/app/dist/assets/pierre-light-Vf__O3ev.js +1 -0
  131. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
  132. package/dist/diff_tool/app/dist/assets/pierre-light-soft-C3QCXKvN.js +1 -0
  133. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
  134. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
  135. package/dist/diff_tool/app/dist/assets/plastic-B8mE6BxX.js +1 -0
  136. package/dist/diff_tool/app/dist/assets/poimandres-DUFjrgxT.js +1 -0
  137. package/dist/diff_tool/app/dist/assets/{preload-helper-CRzLMJPS.js → preload-helper-DclECHGd.js} +1 -1
  138. package/dist/diff_tool/app/dist/assets/red-BJvdDEUx.js +1 -0
  139. package/dist/diff_tool/app/dist/assets/rose-pine-BSqRqUae.js +1 -0
  140. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-U6TBE82u.js +1 -0
  141. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CAU7u1h4.js +1 -0
  142. package/dist/diff_tool/app/dist/assets/{shiki-BArE1NVK.js → shiki-CwKGJZFi.js} +2 -2
  143. package/dist/diff_tool/app/dist/assets/slack-dark-CMu0smFa.js +1 -0
  144. package/dist/diff_tool/app/dist/assets/slack-ochin-BBne7cjw.js +1 -0
  145. package/dist/diff_tool/app/dist/assets/snazzy-light-CV8HUEmk.js +1 -0
  146. package/dist/diff_tool/app/dist/assets/solarized-dark-CmYmhSgI.js +1 -0
  147. package/dist/diff_tool/app/dist/assets/solarized-light-CjLLwxRp.js +1 -0
  148. package/dist/diff_tool/app/dist/assets/{stream-tokenizer-DFTZfQ1S.js → stream-tokenizer-D4-m26wx.js} +1 -1
  149. package/dist/diff_tool/app/dist/assets/synthwave-84-wQeDKbzQ.js +1 -0
  150. package/dist/diff_tool/app/dist/assets/{themes-Dzo-2cM5.js → themes-Do3waJhf.js} +2 -2
  151. package/dist/diff_tool/app/dist/assets/tokyo-night-D4ZgDiA7.js +1 -0
  152. package/dist/diff_tool/app/dist/assets/vesper-sUHevyKv.js +1 -0
  153. package/dist/diff_tool/app/dist/assets/vitesse-black-CfklMpOb.js +1 -0
  154. package/dist/diff_tool/app/dist/assets/vitesse-dark-CJkzwmKT.js +1 -0
  155. package/dist/diff_tool/app/dist/assets/vitesse-light-BxMp8E1Y.js +1 -0
  156. package/dist/diff_tool/app/dist/index.html +2 -2
  157. package/dist/history/worker/index.js +77 -51
  158. package/dist/history/worker/index.js.map +1 -1
  159. package/dist/history/worker/migrations/0003_digest_schedule.sql +36 -0
  160. package/dist/history/worker/migrations/0004_recent_sessions.sql +1 -0
  161. package/dist/host/local_session_host.js +233 -125
  162. package/dist/host/local_session_host.js.map +1 -1
  163. package/dist/host/session_host.js +2 -0
  164. package/dist/host/session_host.js.map +1 -1
  165. package/dist/host/session_protocol_handler.js +11 -1
  166. package/dist/host/session_protocol_handler.js.map +1 -1
  167. package/dist/protocol/session_protocol.d.ts +18 -1
  168. package/dist/protocol/session_protocol.js +27 -0
  169. package/dist/protocol/session_protocol.js.map +1 -1
  170. package/dist/sdk/session.js +12 -0
  171. package/dist/sdk/session.js.map +1 -1
  172. package/dist/sdk/types.d.ts +6 -0
  173. package/dist/store/session_snapshot_migrations.js +35 -1
  174. package/dist/store/session_snapshot_migrations.js.map +1 -1
  175. package/dist/tui/chat_view.js +3 -1
  176. package/dist/tui/chat_view.js.map +1 -1
  177. package/dist/tui/listen_capture.js +7 -5
  178. package/dist/tui/listen_capture.js.map +1 -1
  179. package/dist/tui/session_chat_controller.js +93 -15
  180. package/dist/tui/session_chat_controller.js.map +1 -1
  181. package/dist/tui/ui/custom_editor.js +3 -0
  182. package/dist/tui/ui/custom_editor.js.map +1 -1
  183. package/dist/tui/ui/subagent_panel.js +45 -14
  184. package/dist/tui/ui/subagent_panel.js.map +1 -1
  185. package/package.json +8 -7
  186. package/dist/core/utils/gemini_transcription.js +0 -566
  187. package/dist/core/utils/gemini_transcription.js.map +0 -1
  188. package/dist/diff_tool/app/dist/assets/andromeeda-BJLMrMlp.js +0 -1
  189. package/dist/diff_tool/app/dist/assets/aurora-x-BCChoRpm.js +0 -1
  190. package/dist/diff_tool/app/dist/assets/ayu-dark-DzFZPuMV.js +0 -1
  191. package/dist/diff_tool/app/dist/assets/ayu-light-DSkcX_XD.js +0 -1
  192. package/dist/diff_tool/app/dist/assets/ayu-mirage-DSve0zuE.js +0 -1
  193. package/dist/diff_tool/app/dist/assets/catppuccin-frappe-DbLkF0J2.js +0 -1
  194. package/dist/diff_tool/app/dist/assets/catppuccin-latte-b6208YQK.js +0 -1
  195. package/dist/diff_tool/app/dist/assets/catppuccin-macchiato-CNNBbV1L.js +0 -1
  196. package/dist/diff_tool/app/dist/assets/catppuccin-mocha-DHkNF0Mp.js +0 -1
  197. package/dist/diff_tool/app/dist/assets/dark-plus-BVZ_4wTZ.js +0 -1
  198. package/dist/diff_tool/app/dist/assets/dracula-BoZgXveB.js +0 -1
  199. package/dist/diff_tool/app/dist/assets/dracula-soft-D-Kgh5gw.js +0 -1
  200. package/dist/diff_tool/app/dist/assets/engine-oniguruma-C5P09Ghe.js +0 -1
  201. package/dist/diff_tool/app/dist/assets/everforest-dark-Y6tr-2zD.js +0 -1
  202. package/dist/diff_tool/app/dist/assets/everforest-light-CA0Ol4Qu.js +0 -1
  203. package/dist/diff_tool/app/dist/assets/github-dark-C895GGrm.js +0 -1
  204. package/dist/diff_tool/app/dist/assets/github-dark-default-CM8LCIj6.js +0 -1
  205. package/dist/diff_tool/app/dist/assets/github-dark-dimmed-jPx1V1fR.js +0 -1
  206. package/dist/diff_tool/app/dist/assets/github-dark-high-contrast-UN5YjL_Z.js +0 -1
  207. package/dist/diff_tool/app/dist/assets/github-light-B4HDwToD.js +0 -1
  208. package/dist/diff_tool/app/dist/assets/github-light-default-CfC59JYV.js +0 -1
  209. package/dist/diff_tool/app/dist/assets/github-light-high-contrast-C3edEHcK.js +0 -1
  210. package/dist/diff_tool/app/dist/assets/gruvbox-dark-hard-BdGOuxq8.js +0 -1
  211. package/dist/diff_tool/app/dist/assets/gruvbox-dark-medium-CmygtSMi.js +0 -1
  212. package/dist/diff_tool/app/dist/assets/gruvbox-dark-soft-BJH4XuY9.js +0 -1
  213. package/dist/diff_tool/app/dist/assets/gruvbox-light-hard-BkSILF4E.js +0 -1
  214. package/dist/diff_tool/app/dist/assets/gruvbox-light-medium-DiZUfgdz.js +0 -1
  215. package/dist/diff_tool/app/dist/assets/gruvbox-light-soft-CRCTnbIj.js +0 -1
  216. package/dist/diff_tool/app/dist/assets/highlights-Bi-VwGCO.js +0 -3
  217. package/dist/diff_tool/app/dist/assets/horizon-DUI96lQn.js +0 -1
  218. package/dist/diff_tool/app/dist/assets/horizon-bright-COxh1lHf.js +0 -1
  219. package/dist/diff_tool/app/dist/assets/houston-DduE73P7.js +0 -1
  220. package/dist/diff_tool/app/dist/assets/index-DhaXI7F3.js +0 -221
  221. package/dist/diff_tool/app/dist/assets/kanagawa-dragon-BHDhSKDf.js +0 -1
  222. package/dist/diff_tool/app/dist/assets/kanagawa-lotus-NJjGXXql.js +0 -1
  223. package/dist/diff_tool/app/dist/assets/kanagawa-wave-DsGe2Uqk.js +0 -1
  224. package/dist/diff_tool/app/dist/assets/langs-CDbZNx2R.js +0 -1
  225. package/dist/diff_tool/app/dist/assets/laserwave-DYV0fvJ_.js +0 -1
  226. package/dist/diff_tool/app/dist/assets/light-plus-FTnIShls.js +0 -1
  227. package/dist/diff_tool/app/dist/assets/loader-DYYMIDWx.js +0 -1
  228. package/dist/diff_tool/app/dist/assets/material-theme-IcIb8QNx.js +0 -1
  229. package/dist/diff_tool/app/dist/assets/material-theme-darker-B_f2vxdL.js +0 -1
  230. package/dist/diff_tool/app/dist/assets/material-theme-lighter-CR2Q-4Hp.js +0 -1
  231. package/dist/diff_tool/app/dist/assets/material-theme-ocean-BX6hAJ_y.js +0 -1
  232. package/dist/diff_tool/app/dist/assets/material-theme-palenight-B6DWAotd.js +0 -1
  233. package/dist/diff_tool/app/dist/assets/min-dark-DECtZcqS.js +0 -1
  234. package/dist/diff_tool/app/dist/assets/min-light-qRIVcaqf.js +0 -1
  235. package/dist/diff_tool/app/dist/assets/monokai-CLmrJ-8t.js +0 -1
  236. package/dist/diff_tool/app/dist/assets/night-owl-eR4AsyAP.js +0 -1
  237. package/dist/diff_tool/app/dist/assets/night-owl-light-C74n5ti-.js +0 -1
  238. package/dist/diff_tool/app/dist/assets/nord-D4wy7NEP.js +0 -1
  239. package/dist/diff_tool/app/dist/assets/one-dark-pro-28TLzoS8.js +0 -1
  240. package/dist/diff_tool/app/dist/assets/one-light-C0UY_Fh7.js +0 -1
  241. package/dist/diff_tool/app/dist/assets/pierre-dark-fPlffE7i.js +0 -1
  242. package/dist/diff_tool/app/dist/assets/pierre-dark-protanopia-deuteranopia-BmjibgrW.js +0 -1
  243. package/dist/diff_tool/app/dist/assets/pierre-dark-soft-Cng2SYKc.js +0 -1
  244. package/dist/diff_tool/app/dist/assets/pierre-dark-tritanopia-DneQ5i7L.js +0 -1
  245. package/dist/diff_tool/app/dist/assets/pierre-dark-vibrant-BUK9Y-N_.js +0 -1
  246. package/dist/diff_tool/app/dist/assets/pierre-light-BvcXQJIj.js +0 -1
  247. package/dist/diff_tool/app/dist/assets/pierre-light-protanopia-deuteranopia-Cd5nk0bp.js +0 -1
  248. package/dist/diff_tool/app/dist/assets/pierre-light-soft-BvU23vks.js +0 -1
  249. package/dist/diff_tool/app/dist/assets/pierre-light-tritanopia-BSHccQzI.js +0 -1
  250. package/dist/diff_tool/app/dist/assets/pierre-light-vibrant-BgMZEwQI.js +0 -1
  251. package/dist/diff_tool/app/dist/assets/plastic-B2V_PDVk.js +0 -1
  252. package/dist/diff_tool/app/dist/assets/poimandres-DB9-pI6r.js +0 -1
  253. package/dist/diff_tool/app/dist/assets/red-CqYzoXtd.js +0 -1
  254. package/dist/diff_tool/app/dist/assets/rose-pine-C3zjVKxG.js +0 -1
  255. package/dist/diff_tool/app/dist/assets/rose-pine-dawn-C72QYfqa.js +0 -1
  256. package/dist/diff_tool/app/dist/assets/rose-pine-moon-CSM8ewhO.js +0 -1
  257. package/dist/diff_tool/app/dist/assets/slack-dark-Dtzi51su.js +0 -1
  258. package/dist/diff_tool/app/dist/assets/slack-ochin-Bb7oPExa.js +0 -1
  259. package/dist/diff_tool/app/dist/assets/snazzy-light-DXgiwzKu.js +0 -1
  260. package/dist/diff_tool/app/dist/assets/solarized-dark-BKOT3ICq.js +0 -1
  261. package/dist/diff_tool/app/dist/assets/solarized-light--Lk5pOfE.js +0 -1
  262. package/dist/diff_tool/app/dist/assets/synthwave-84-BJJFg-sc.js +0 -1
  263. package/dist/diff_tool/app/dist/assets/tokyo-night-DvpptEDd.js +0 -1
  264. package/dist/diff_tool/app/dist/assets/vesper-C1rBZbON.js +0 -1
  265. package/dist/diff_tool/app/dist/assets/vitesse-black-Sqvrs2Sw.js +0 -1
  266. package/dist/diff_tool/app/dist/assets/vitesse-dark-BWf_ZQtP.js +0 -1
  267. package/dist/diff_tool/app/dist/assets/vitesse-light-Cqenv4Qv.js +0 -1
@@ -1,17 +1,25 @@
1
1
  <subagent-role>
2
- You are a headless subagent. The main agent is working on the user's task and has delegated the assignment in the first user message to you. Complete that assignment autonomously, within its scope and constraints. The main agent stays responsible for the overall task and decides what to do with your result.
2
+ You are a headless subagent. Your parent agent is working on part or all of the user's task and has delegated the assignment in the first user message to you. Complete that assignment autonomously, within its scope and constraints. Your parent agent stays responsible for its wider work and decides what to do with your result.
3
3
 
4
- Later user messages also come from the main agent. They may change the assignment you are working on, or give you new work after you have answered.
4
+ Later user messages also come from an agent above you, usually your parent agent. They may change the assignment you are working on, or give you new work after you have answered.
5
5
 
6
6
  Make reasonable assumptions about minor details without stopping to ask. If missing information or a real blocker prevents safe progress, stop and report it. Do not try brittle or risky workarounds.
7
7
 
8
8
  Other agents may be changing the same files at the same time. Never revert or overwrite changes you did not make.
9
9
 
10
- Nothing wakes you after your final response, not even a background job that finishes. If your answer depends on a background command or program, wait for it before you answer.
10
+ Nothing wakes you after your final response, not even a background job or an agent you started that finishes. If your answer depends on a background command, a program, or an agent you started, wait for it before you answer.
11
11
 
12
- You cannot start other agents. Leave contact with the user to the main agent, and include in your final response anything it should show or ask the user.
12
+ You can start other agents only if you have `tau.agents`, and only when your assignment or other active instructions explicitly ask for delegation. Agents you start can keep running after your final response.
13
13
 
14
- Your final response is your handoff to the main agent. Make it self-contained, with the outcome, the details needed to use or check it, and anything left unfinished.{{parent_context}}
14
+ Leave contact with the user to your parent agent, and include in your final response anything it should show or ask the user.
15
+
16
+ Your final response is your handoff to your parent agent. Make it self-contained, with the outcome, the details needed to use or check it, and anything left unfinished.
17
+
18
+ Your agent chain, from the main agent down to you:
19
+
20
+ {{agent_chain}}
21
+
22
+ The user works with the main agent, so the main agent's conversation holds what the user actually said. You see only what reached you through this chain.{{history_guidance}}
15
23
 
16
24
  The system instructions that follow apply to your work. Where they assume you are the main agent, follow the subagent role and boundaries defined in this section.
17
25
  </subagent-role>
@@ -72,6 +72,6 @@ Code jobs have the same lifecycle and ownership as background Bash jobs: each jo
72
72
  - `tau.mcp`: finding and calling tools and resources on configured MCP servers. When the persona allows MCP, enabled server names and optional configured descriptions are visible in the initial tool definition, before any tool call. Disabled servers and connection settings are omitted. These summaries guide discovery and do not grant permission to act. The agent reads each tool's description and schema before calling it. The capability is missing from sessions on a remote execution environment. A session and its subagents share connections, which open on first use, and calls that change data are never retried. An `isError` result is returned as data, while protocol failures throw. MCP server configuration and trust rules apply. See [configuration reference](config-reference.md#mcpservers) and [security](security.md#trust-mcp-servers).
73
73
  - `tau.bash`: `run`, `start`, `list`, `read`, `wait`, and `stop`. `run` returns stdout, stderr, and exit and termination fields, capturing up to 24 MiB. Beyond that it keeps the end, so check `truncated` before parsing. Optional UTF-8 `stdin` is limited to 16 MiB and closed after writing. Without `stdin` the command has no stdin at all, while `""` gives it an empty one. `start` takes no stdin. Background jobs are the same jobs that the agent's Bash job tools show, and each keeps the last 24 MiB of output. `read`, `wait`, and `stop` return that retained output as a string, without the job tools' token budget. `list` leaves out output and execution error messages. Jobs survive the program ending and interruption, while foreground commands are cancelled. The [Bash rules](tools.md#bash) apply.
74
74
  - `tau.models`: lists a fixed set of OpenRouter models and runs standalone chats or typed decisions with them. The initial tool definition names the chat and decision model IDs, so the agent can see them before any tool call. These calls do not see the session's conversation or tools. A chat can include a JSON Schema. Tau then requests structured output from the provider, and a complete answer is the parsed JSON. The agent uses that answer directly for ordinary extraction and analysis. How strictly the schema is enforced varies by provider, so the agent adds targeted checks when a constraint matters for a consequential action. Chat and decision media can be paths on the agent's machine or inline padded base64 with a matching MIME type. Inline media counts toward the 64 MiB request limit, so large files go by path. Credentials stay on the host. Provider usage data is returned, but these charges are not included in the session's cost or usage logs. Requests can be cancelled and are never retried automatically. Limits on input, models, media, responses, and requests are the same as in [OpenRouter](openrouter.md). Tau holds concurrent model requests to a shared memory budget, so a large request can wait for earlier ones to finish. Check whether a response completed or was refused instead of assuming it is a full answer.
75
- - `tau.agents`: starts subagents, sends them queued or steering input, interrupts them, waits until they are idle, and reads pages of their conversation traces. Only the main agent has it, and only when the persona selects `agents`. Subagents keep working when the program that started or waits for them ends. See [subagents](subagents.md#managing-subagents).
75
+ - `tau.agents`: starts subagents, sends them queued or steering input, interrupts them, waits until they are idle, and reads pages of their conversation traces. The main agent has it when the persona selects `agents`, and so do native Tau subagents at depth 1. Each agent reaches only its own descendants. Subagents keep working when the program that started or waits for them ends. See [subagents](subagents.md#managing-subagents).
76
76
 
77
77
  SDK and command client tools built on code mode use the same sandbox functions and output rules, with their own declared APIs. They take only inline code, without saved files, input, or background mode. Their programs time out after 60 seconds unless configured otherwise.
@@ -22,7 +22,7 @@ Project and global content can change which persona ids exist. A configured defa
22
22
  | --- | --- | --- | --- | --- |
23
23
  | `apiKeys` | Object of string values | Global only | Provider-keyed map | Owning host or feature process; restart after changes |
24
24
  | `defaultPersona` | Non-empty string | Global, project | Most-specific wins | Session host; new session |
25
- | `speech` | Object with optional `voiceId`, `recordingShortcut`, and `vocabulary` | Global, project | Merge by field; vocabulary is additive | `voiceId` and `recordingShortcut`: TUI client or Telegram runner; process restart. `vocabulary`: session host; `/reload` or new session. Global `vocabulary` terms are also read by the client; process restart |
25
+ | `speech` | Object with optional `voiceId`, `recordingShortcut`, `cleanupStyle`, and `vocabulary` | Global, project | Merge by field; vocabulary is additive | `voiceId`, `recordingShortcut`, and `cleanupStyle`: client; process restart. `vocabulary`: session host; `/reload` or new session. Global `vocabulary` terms are also read by the client; process restart |
26
26
  | `defaultTheme` | Non-empty string | Global, project | Most-specific wins | TUI client; client restart |
27
27
  | `markdownExport` | Object with `url` and optional `token`, `tokenEnv` | Global only | One global object | TUI client; client restart |
28
28
  | `clientTools` | Array of objects | Global only | One global definition list | Owning client; TUI restart or new Telegram session client |
@@ -72,7 +72,7 @@ Each entry must use `<provider>/<model>:<effort>` and resolve against the merged
72
72
  }
73
73
  ```
74
74
 
75
- A more specific list replaces the broader one. Subagents inherit instructions and tools from the main persona. Custom subagent definitions are not supported. See [subagents](subagents.md).
75
+ A more specific list replaces the broader one. Subagents inherit instructions and tools from their parent agent. Custom subagent definitions are not supported. See [subagents](subagents.md).
76
76
 
77
77
  ### `modelSystemNotices`
78
78
 
@@ -155,6 +155,18 @@ For terminal recording, `recordingShortcut` replaces Ctrl+Y. Its required `key`
155
155
 
156
156
  A double tap must arrive within 300 ms. For printable double-tap bindings, an unmatched first tap inserts the character after that delay; another key inserts it immediately before processing the new input. A single-press binding reserves its character, so it can no longer be typed. Bracketed paste never triggers recording. Keyboard auto-repeat can count as repeated taps. Recording shortcuts apply only to the TUI, not Telegram.
157
157
 
158
+ For terminal dictation, `cleanupStyle` sets the initial [cleanup style](tui.md#cleanup-styles) for each recording. It accepts `"off"` (the default) or `"default"`. Tab changes the style for the current recording only. Enabling cleanup prepares the OpenAI connection and instructions during recording.
159
+
160
+ ```json
161
+ {
162
+ "speech": {
163
+ "cleanupStyle": "default"
164
+ }
165
+ }
166
+ ```
167
+
168
+ Telegram uses its separate per-bot `speechCleanupStyle` setting.
169
+
158
170
  For dictation, `vocabulary` supplies spelling hints for recurring names, identifiers, and short phrases:
159
171
 
160
172
  ```json
@@ -165,11 +177,11 @@ For dictation, `vocabulary` supplies spelling hints for recurring names, identif
165
177
  }
166
178
  ```
167
179
 
168
- Define personal terms in `~/.config/tau/config.json` and project terms in `.tau/config.json`. Tau combines the nearest project's entries first, then parent projects, then global entries, preserving each list's order. An omitted list or `[]` adds nothing and does not clear inherited terms. Entries are trimmed and deduplicated case-insensitively, preserving the first spelling. Invalid entries produce a configuration warning: each entry must be a non-empty string of at most 100 Unicode characters, without angle brackets or internal line breaks.
180
+ Define personal terms in `~/.config/tau/config.json` and project terms in `.tau/config.json`. Tau combines the nearest project's entries first, then parent projects, then global entries, preserving each list's order. An omitted list or `[]` adds nothing and does not clear inherited terms. Entries are trimmed and deduplicated case-insensitively, preserving the first spelling. Invalid entries produce a configuration warning. Each entry must be a non-empty string of at most 50 Unicode characters and 5 words, without line breaks or any of the characters `<`, `>`, `{`, `}`, `[`, `]`, and `\`.
169
181
 
170
- Tau appends keywords extracted from the recent conversation after configured terms. The combined list is limited to 100 terms and 10,000 Unicode characters, so explicit project terms take priority. These are Tau's limits. [Gemini's custom vocabulary](https://ai.google.dev/gemini-api/docs/transcribe) supports up to 1,000 terms and recommends up to 100 for best results; it cannot be combined with speaker diarization or word-level timestamps, which Tau does not request.
182
+ Tau appends keywords extracted from the recent conversation after configured terms. The combined list is limited to 1,000 terms and 50,000 Unicode characters, so explicit project terms take priority. Live dictation sends only the first 50 terms that have at most 20 characters, because ElevenLabs limits realtime hints more strictly. Recording retries and Telegram audio send the full list. For file transcription, [ElevenLabs charges](https://elevenlabs.io/docs/api-reference/speech-to-text/convert) 20% more when keyterms are present, and bills a request with more than 100 terms for at least 20 seconds of audio.
171
183
 
172
- Vocabulary goes directly to Gemini as transcription hints for live dictation, recording retries, and Telegram audio. It does not instruct the model to insert words or replace text afterward. Configured terms still work without conversation context, without OpenAI credentials, or when keyword extraction fails. With no vocabulary configured, Tau uses only context-derived hints.
184
+ Vocabulary goes directly to ElevenLabs Scribe as keyterms for live dictation, recording retries, and Telegram audio. It does not instruct the model to insert words or replace text afterward. When speech cleanup is on in the [TUI](tui.md#cleanup-styles) or [Telegram](telegram.md#bots-and-access-control), the cleanup model also receives the terms, only to correct spelling. It gets recent conversation too: the session's last two user messages and the agent's final replies after them, without tool calls or results. This context is limited to about 8,192 tokens, keeping the newest text. The model is instructed to use this context only to fix words that were likely misheard. It is told not to add facts, answer the dictated request, or turn a vague reference into a guessed name, and to keep the transcript's word when unsure. Configured terms still work without conversation context, without OpenAI credentials, or when keyword extraction fails. With no vocabulary configured, Tau uses only context-derived hints.
173
185
 
174
186
  Without an override, Tau looks up Maisie (`QtY3JBOUKEB5xzrRfOKc`) before synthesis and tries Caleb (`AaOhDHYJ1XLZk74lXhdE`) only if ElevenLabs reports that Maisie was not found. If neither is available, speech fails. A configured voice is the only voice Tau tries. If it is unavailable, speech fails without falling back to a default.
175
187
 
@@ -177,7 +189,7 @@ Authentication, permission, rate-limit, and network errors during voice lookup d
177
189
 
178
190
  Speech uses Eleven v4 Turbo, the delivery note `[Brisk but relaxed, speaking naturally to a colleague]`, and a 1.15× tempo adjustment. GPT-6 Luna rewrites the text with reasoning disabled before ElevenLabs synthesis, so both OpenAI and ElevenLabs credentials are required. Voice Library API access may require a paid ElevenLabs plan, and shared voices can become unavailable.
179
191
 
180
- `voiceId` and `recordingShortcut` come from the client's own configuration. The TUI reads them from its startup directory's configuration, also when attached to a remote host, and Telegram reads `voiceId` from the runner's startup configuration. Restart the respective process after changes. `voiceId` does not affect the explicit voices supplied to `tau tool speech-generate`.
192
+ `voiceId`, `recordingShortcut`, and `cleanupStyle` come from the client's own configuration. The TUI reads them from its startup directory's configuration, also when attached to a remote host, and Telegram reads `voiceId` from the runner's startup configuration. Restart the respective process after changes. `voiceId` does not affect the explicit voices supplied to `tau tool speech-generate`.
181
193
 
182
194
  Vocabulary follows the session. The host resolves it from the global and project levels of the session's working directory, on the execution environment. The client that transcribes the audio then adds the terms from its own global configuration, after the session's terms. Project configuration in the client's startup directory is not used. For example:
183
195
 
@@ -221,7 +233,7 @@ Each session on a local execution environment uses the servers from the global c
221
233
  - The global level applies only when the session's working directory is inside the home directory. See [configuration](configuration.md).
222
234
  - Each session has its own servers and connections. Subagents use their parent's, even in another working directory.
223
235
  - A session on a remote execution environment, such as a Fly Sprite, has no MCP servers. Tau does not use definitions from that environment or from the host. Servers would run on the host, and Tau cannot tell which of them expose the host's files. [Security](security.md#trust-mcp-servers) explains the trade-off.
224
- - The host reads definitions when it creates or recovers a session, and they stay fixed while the session is loaded. `/reload` does not change them, but it warns if the definitions on disk differ. To apply a change, start a new session, or reopen the session after the host has unloaded it. The host unloads a session when its last client has detached and its work has finished, and when the host shuts down.
236
+ - The host reads definitions when it creates or recovers a session, and they stay fixed while the session is loaded. `/reload` does not change them, but it warns if the definitions on disk differ. To apply a change, start a new session, or reopen the session after the host has unloaded it. The host unloads a session when no client is attached, its work has finished, and no [retention](session-protocol.md#keep-a-session-loaded-without-clients) period is active, and when the host shuts down.
225
237
  - Restart the host after changing the environment variables that servers use. OAuth credentials updated through `tau mcp login` take effect without restarting.
226
238
 
227
239
  ```json
@@ -51,13 +51,13 @@ Features check the environment variable first, then global configuration:
51
51
  | Feature | Resolution order |
52
52
  | --- | --- |
53
53
  | Exa web search and fetch | `EXA_API_KEY`, then `apiKeys.exa` |
54
- | Google image generation, speech-to-text, and Telegram transcription | `GEMINI_API_KEY`, then `apiKeys.google` |
54
+ | Google image generation | `GEMINI_API_KEY`, then `apiKeys.google` |
55
55
  | Mistral PDF OCR | `MISTRAL_API_KEY`, then `apiKeys.mistral` |
56
56
  | OpenRouter decisions and chat | `OPENROUTER_API_KEY`, then `apiKeys.openrouter` |
57
- | OpenAI image generation, speech rewriting, and transcription spelling hints | `OPENAI_API_KEY`, then `apiKeys.openai` |
58
- | ElevenLabs speech generation, `/speak` synthesis, Telegram voice synthesis, and voice listing | `ELEVENLABS_API_KEY`, then `apiKeys.elevenlabs` |
57
+ | OpenAI image generation, speech rewriting, transcription spelling hints, and transcript cleanup | `OPENAI_API_KEY`, then `apiKeys.openai` |
58
+ | ElevenLabs speech generation, `/speak` synthesis, Telegram voice synthesis, voice listing, speech-to-text, and Telegram transcription | `ELEVENLABS_API_KEY`, then `apiKeys.elevenlabs` |
59
59
 
60
- `web.discover` does not require Exa. `web.search` and `web.fetch` do. `/speak` and Telegram `/tts_on` voice responses require OpenAI for text rewriting and ElevenLabs for synthesis. `/listen` and incoming Telegram voice notes use Google, with optional OpenAI spelling hints. PDF OCR through `tau tool pdf-unpack` uses Mistral.
60
+ `web.discover` does not require Exa. `web.search` and `web.fetch` do. `/speak` and Telegram `/tts_on` voice responses require OpenAI for text rewriting and ElevenLabs for synthesis. `/listen` and incoming Telegram voice notes use ElevenLabs, with optional OpenAI spelling hints and transcript cleanup. PDF OCR through `tau tool pdf-unpack` uses Mistral.
61
61
 
62
62
  Set these on the process that runs the feature. For example, `/speak` in an attached TUI reads `OPENAI_API_KEY` and `ELEVENLABS_API_KEY` on the client machine, while a session that uses a Google model reads its key on the host.
63
63
 
@@ -47,7 +47,7 @@ These rules differ from how the session itself behaves. Use [sessions](sessions.
47
47
 
48
48
  Each native Tau [subagent](subagents.md) has its own history session for its whole lifetime, including its assignment, later input, and all its work. The session ID is the subagent's ID from `tau.agents`. Recording happens even when no agent has the `history` tool. Claude Code subagents are not recorded.
49
49
 
50
- A subagent's session is a child of the session that started it:
50
+ A subagent's session is a child of the session of the agent that started it, so a subagent started by another subagent is a child of that subagent's session:
51
51
 
52
52
  - `parentSessionId` names the parent. Tau sets it when it creates the child, and it never changes. Sessions without a parent do not have this field.
53
53
  - `childCount` is the number of direct children, and every session has it.
@@ -87,7 +87,7 @@ Because composite values are comma-separated, a substring filter on `repository`
87
87
 
88
88
  ## Agent access is explicit and read-only
89
89
 
90
- A persona can enable the read-only `tau.history` capability in the `code` tool. It searches and reads the configured history collection, across all repositories and execution environments. Because it can see so much, the agent uses it only when the request or active instructions directly ask for past transcripts, not to look for possibly related earlier work on its own initiative. Native Tau subagents follow the same rule, and an assignment that asks for past transcripts counts as a direct request. They also have one standing permission: as a last resort, a subagent may read its parent session when its assignment leaves out context it needs. See [subagents](subagents.md#spawn).
90
+ A persona can enable the read-only `tau.history` capability in the `code` tool. It searches and reads the configured history collection, across all repositories and execution environments. Because it can see so much, the agent uses it only when the request or active instructions directly ask for past transcripts, not to look for possibly related earlier work on its own initiative. Native Tau subagents follow the same rule, and an assignment that asks for past transcripts counts as a direct request. They also have one standing permission: a subagent may read the sessions of its ancestors, including the main session, when its assignment leaves out context it needs. See [subagents](subagents.md#spawn).
91
91
 
92
92
  Automatic compaction archives are different. They hold the current session's context from before a compaction, in the execution environment. `history` searches a separate collection on the host, which may be out of date, truncated, unavailable, or copied to a remote service. After a compaction, the agent is therefore pointed to the archive files to recover details, and history entry IDs have nothing to do with archive lookups.
93
93
 
@@ -97,7 +97,7 @@ Attributes, snippets, digests, entries, tool arguments, and tool results from hi
97
97
 
98
98
  Without remote history, the capability searches and reads the host's local database. With a remote target, it uses only the remote service and never mixes in local results. A remote search can therefore fail even while local recording keeps working.
99
99
 
100
- A read can instead ask for the host's local database explicitly with `source: "local"` in `tau.history.read`. It then reads only local history, even when a remote target is configured, and never contacts the service. This avoids waiting for replication when reading a session that this host recorded, such as the current session or its parent. Local reads see the same best-effort recording as the rest of local history. Search has no such option.
100
+ A read can instead ask for the host's local database explicitly with `source: "local"` in `tau.history.read`. It then reads only local history, even when a remote target is configured, and never contacts the service. This avoids waiting for replication when reading a session that this host recorded, such as the current session or an ancestor's. Local reads see the same best-effort recording as the rest of local history. Search has no such option.
101
101
 
102
102
  ## Add a shared remote collection
103
103
 
@@ -5,7 +5,7 @@
5
5
  ```bash
6
6
  tau tool image-generate --help
7
7
  tau tool image-generate \
8
- --model gpt-image-2.5-flare \
8
+ --model gpt-image-2.6-flare \
9
9
  --prompt 'A quiet lakeside sauna at dusk, editorial photograph, no text' \
10
10
  --size 1536x1024 --quality medium --output ./sauna.png
11
11
  ```
@@ -16,17 +16,17 @@ Requires an OpenAI or Google API key for the selected model. See [feature-specif
16
16
 
17
17
  ## Models and capabilities
18
18
 
19
- `--model` is required; there is no default. Start with `gpt-image-2.5-flare` at `--quality medium` for everyday generation and editing, balancing quality and cost.
19
+ `--model` is required; there is no default. Start with `gpt-image-2.6-flare` at `--quality medium` for everyday generation and editing, balancing quality and cost.
20
20
 
21
- For demanding generation and editing where image quality is the priority, choose `gemini-nano-banana-2.1` or `gpt-image-2.5-sunburst`. Nano Banana supports very wide aspect ratios and resolution tiers up to `4K`. Sunburst supports exact dimensions, transparent backgrounds, and PNG/JPEG/WebP output. See [approximate cost](#approximate-cost) before choosing settings.
21
+ For demanding generation and editing where image quality is the priority, choose `gemini-nano-banana-2.1` or `gpt-image-2.6-sunburst`. Nano Banana supports very wide aspect ratios and resolution tiers up to `4K`. Sunburst supports exact dimensions, transparent backgrounds, and PNG/JPEG/WebP output. See [approximate cost](#approximate-cost) before choosing settings.
22
22
 
23
23
  Choose size, resolution, and aspect ratio for the intended use; no single size fits everything. The sizes in the examples are for those particular cases. Options you leave out use the provider's defaults, except `--format`, which defaults to `png`. Unsupported options fail before anything is generated.
24
24
 
25
25
  | Model | Resolution | Aspect ratios | Thinking | Other controls |
26
26
  | --- | --- | --- | --- | --- |
27
27
  | `gemini-nano-banana-2.1` | `1K`, `2K`, `4K` | Standard and wide | `minimal`, `medium`, `high` | PNG |
28
- | `gpt-image-2.5-flare` | Exact `--size` | Through dimensions | Not exposed | Quality, background, encoding, compression |
29
- | `gpt-image-2.5-sunburst` | Exact `--size` | Through dimensions | Not exposed | Quality, background, encoding, compression |
28
+ | `gpt-image-2.6-flare` | Exact `--size` | Through dimensions | Not exposed | Quality, complexity, background, encoding, compression |
29
+ | `gpt-image-2.6-sunburst` | Exact `--size` | Through dimensions | Not exposed | Quality, complexity, background, encoding, compression |
30
30
 
31
31
  Google's defaults are `1K` resolution and `medium` thinking. Use `--thinking minimal` for faster generation and lower thinking-token usage.
32
32
 
@@ -35,7 +35,8 @@ Standard `--aspect-ratio` values are `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `
35
35
  OpenAI controls:
36
36
 
37
37
  - `--size auto` or `WIDTHxHEIGHT`: both dimensions must be multiples of 16, neither above 3840, aspect ratio between 1:3 and 3:1, and total pixels between 655,360 and 8,294,400. Above 2560×1440 total pixels is experimental at the provider.
38
- - `--quality auto|low|medium|high|xhigh|max`: generation effort. Flare favors speed; Sunburst favors demanding editing and quality.
38
+ - `--quality auto|low|medium|high|xhigh|max`: rendering quality. Flare favors speed; Sunburst favors demanding editing and quality.
39
+ - `--complexity low|medium|high`: planning effort, separate from rendering quality. Omit it to use the provider default, `high`. Start with `low` for focused edits; use `medium` or `high` for dense text, complex layouts, or many constraints. Higher complexity can increase latency and introduce unwanted changes.
39
40
  - `--background auto|opaque|transparent`: `transparent` requires PNG or WebP.
40
41
  - `--format png|jpeg|webp`: the output extension must match (`.jpg` or `.jpeg` for JPEG).
41
42
  - `--compression 0..100`: an integer, only with JPEG or WebP.
@@ -52,7 +53,7 @@ Create an asset:
52
53
 
53
54
  ```bash
54
55
  tau tool image-generate \
55
- --model gpt-image-2.5-flare \
56
+ --model gpt-image-2.6-flare \
56
57
  --prompt 'A friendly otter mascot, isolated, no lettering' \
57
58
  --size 1024x1024 --quality medium --background transparent \
58
59
  --output ./otter.png
@@ -62,9 +63,9 @@ Edit an existing image:
62
63
 
63
64
  ```bash
64
65
  tau tool image-generate \
65
- --model gpt-image-2.5-flare --reference ./otter.png \
66
+ --model gpt-image-2.6-flare --reference ./otter.png \
66
67
  --prompt 'Give the otter a blue scarf. Preserve its face, pose, proportions, and transparent background.' \
67
- --quality high --background transparent --output ./otter-scarf.png
68
+ --quality high --complexity low --background transparent --output ./otter-scarf.png
68
69
  ```
69
70
 
70
71
  Generate at a higher resolution using a reference:
@@ -80,7 +81,7 @@ Generate inexpensive draft variants:
80
81
 
81
82
  ```bash
82
83
  for i in 1 2 3 4; do
83
- tau tool image-generate --model gpt-image-2.5-flare \
84
+ tau tool image-generate --model gpt-image-2.6-flare \
84
85
  --size 1024x1024 --quality low \
85
86
  --prompt-file ./prompt.txt --output "./variant-$i.png" || break
86
87
  done
@@ -106,18 +107,24 @@ For OpenAI models, start at `--quality medium`, use `low` for inexpensive explor
106
107
 
107
108
  ### OpenAI: cost per image
108
109
 
109
- Both `gpt-image-2.5-flare` and `gpt-image-2.5-sunburst` charge $30 per million image-output tokens. The [OpenAI output-cost calculator](https://developers.openai.com/api/docs/guides/image-generation#gpt-image-25-and-gpt-image-2-output-tokens) groups both models under GPT Image 2.5 and gives these approximate USD image-output costs:
110
+ Both `gpt-image-2.6-flare` and `gpt-image-2.6-sunburst` charge $30 per million image-output tokens. Text input costs $5 per million tokens and reference images cost $8 per million image-input tokens.
110
111
 
111
- | Size | `low` | `medium` | `high` | `xhigh` | `max` |
112
- | ----------- | -------- | -------- | -------- | -------- | -------- |
113
- | `1024x1024` | $0.00588 | $0.01317 | $0.05268 | $0.09366 | $0.21072 |
114
- | `1536x1024` | $0.00474 | $0.01029 | $0.04116 | $0.07377 | $0.16464 |
115
- | `2048x2048` | $0.01191 | $0.02676 | $0.10704 | $0.19029 | $0.42816 |
116
- | `3840x2160` | $0.01113 | $0.02595 | $0.10008 | $0.17790 | $0.40026 |
112
+ OpenAI gives one estimate for both models. These are its approximate USD image-output costs per image, excluding input:
117
113
 
118
- These are calculator estimates, not fixed prices or a guarantee that Flare and Sunburst cost the same per request. OpenAI notes that actual token consumption can differ by model and quality. The calculator accounts for aspect ratio as well as pixel count, so estimates need not increase with pixel count alone. Sizes above 2560×1440 total pixels are experimental.
114
+ | Size | `low` | `medium` | `high` | `xhigh` | `max` |
115
+ | ----------- | ------ | -------- | ------ | ------- | ------ |
116
+ | `1024x1024` | $0.025 | $0.043 | $0.053 | $0.094 | $0.211 |
117
+ | `1536x1024` | $0.020 | $0.034 | $0.041 | $0.074 | $0.165 |
118
+ | `2048x2048` | $0.050 | $0.088 | $0.107 | $0.190 | $0.428 |
119
+ | `3840x2160` | $0.047 | $0.086 | $0.100 | $0.178 | $0.400 |
119
120
 
120
- For example, 100 square 1024-pixel drafts at `low` have an estimated output cost of $0.59, compared with $1.32 at `medium`, $5.27 at `high`, or $21.07 at `max`. Text input adds $5 per million tokens and reference images add $8 per million image-input tokens. A request with 1,000 text-input tokens and 2,000 image-input tokens adds $0.021 to the output cost. Direct Images API requests do not receive cached-input pricing. The manifest records provider `usage` for checking actual consumption.
121
+ Quality has the largest effect. At `1024x1024`, `high` costs about twice as much as `low`, and `max` costs about 8.5 times as much. For example, 100 images cost about $2.47 at `low`, $4.35 at `medium`, $5.27 at `high`, or $21.07 at `max`.
122
+
123
+ Cost does not follow pixel count alone. `1536x1024` costs less than `1024x1024` because the estimate also depends on aspect ratio, and `2048x2048` has four times the pixels of `1024x1024` but costs about twice as much.
124
+
125
+ Input adds to these costs. For example, 1,000 text-input tokens and 2,000 image-input tokens add $0.021.
126
+
127
+ Actual cost can differ from these estimates because OpenAI notes that the two models can use different token counts at the same quality. The estimates do not vary with `--complexity`. The manifest records provider `usage` for checking actual consumption. For other sizes, OpenAI's guide includes an [interactive calculator](https://developers.openai.com/api/docs/guides/image-generation#calculating-costs).
121
128
 
122
129
  ### Google: cost per image
123
130
 
@@ -129,6 +136,6 @@ Approximate USD image-output costs from [Google pricing](https://ai.google.dev/g
129
136
 
130
137
  Input costs $1.50 per million tokens. Text and thinking output cost $7.50 per million tokens, in addition to image output. The manifest records provider-reported usage.
131
138
 
132
- Use OpenAI when transparent backgrounds or JPEG/WebP output are required. Compare the quality needed for the task, not just matching tier names across providers. Check [OpenAI pricing](https://developers.openai.com/api/docs/guides/image-generation#gpt-image-25-costs) and Google pricing for current rates before large batches.
139
+ Use OpenAI when transparent backgrounds or JPEG/WebP output are required. Compare the quality needed for the task, not just matching tier names across providers. Check [OpenAI pricing](https://developers.openai.com/api/docs/guides/image-generation#gpt-image-26-costs) and Google pricing for current rates before large batches.
133
140
 
134
141
  See [command-line tools](tools.md) for the other tools and where commands run.
@@ -36,7 +36,8 @@ These pages describe how to install, configure, operate, and integrate the versi
36
36
  - [Sessions](sessions.md): creating sessions, turns, queueing, compaction, rewind, recovery, and storage.
37
37
  - [Remote sessions](remote-sessions.md): `serve`, `attach`, remote paths, and authentication.
38
38
  - [History](history.md): searchable local history, optional remote replication, and the history tool.
39
- - [Telegram](telegram.md): running the Telegram runner, bot access, chat commands, attachments, and recovery.
39
+ - [Telegram](telegram.md): running the Telegram runner, bot access, attachments, and recovery.
40
+ - [Telegram chat commands](telegram-commands.md): commands for projects, sessions, personas, effort, prompts, and compaction, and how to use them in groups.
40
41
  - [Telegram projects and workspaces](telegram-projects.md): repository, persistent-directory, and composite projects, workspace lifecycle, and provision hooks.
41
42
 
42
43
  ## Run command-line tools
@@ -27,6 +27,7 @@
27
27
  "sdk-diff-review.md",
28
28
  "history.md",
29
29
  "telegram.md",
30
+ "telegram-commands.md",
30
31
  "telegram-projects.md",
31
32
  "security.md",
32
33
  "troubleshooting.md"
@@ -147,8 +147,6 @@ try {
147
147
  }
148
148
  ```
149
149
 
150
- `client.sessions.create(input)` sends `session.create`. `client.sessions.list()` returns `{ sessionId, lifecycle }` for each session.
151
-
152
150
  Creating a session requires the full execution environment and the creation attributes, which never change afterward. Tau sets the `machine` and `cwd` attributes itself and replaces any values you send for them. The `cwd` of the execution environment must be absolute and is a path in the chosen environment, which may not be where the SDK runs. A Fly Sprite session refers to an existing Sprite that the host is configured to reach. See [sessions](sessions.md) for creation attributes and [ownership and scope](ownership-and-scope.md) for which machine owns which paths.
153
151
 
154
152
  To set the main conversation's automatic-compaction threshold at creation, pass `autoCompactThresholdTokens` as a safe integer of at least 50,000. Omit it or pass `null` to use the persona default, falling back to the model's context window minus 16,384 tokens. Applying a persona resets the threshold to `null`, even when reapplying the same persona, unless the call supplies a new threshold. The effective threshold cannot exceed this model-based limit.
@@ -163,7 +161,9 @@ The connected `TauSdkClient` exposes:
163
161
  | --- | --- |
164
162
  | `ready` | The validated server `ready` message and advertised methods. |
165
163
  | `sessions.create(input)` | Create and observe a session, and return its object. |
166
- | `sessions.list()` | List hosted session summaries. |
164
+ | `sessions.list()` | List each session's `{ sessionId, lifecycle }`. |
165
+ | `sessions.setRetention(id, durationMs)` | [Keep a session loaded without clients](session-protocol.md#keep-a-session-loaded-without-clients), or clear with `null`. |
166
+ | `sessions.collect(id)` | Unload a session if nothing holds it, and return `{ disposed }`. |
167
167
  | `sessions.observe(sessionId)` | Observe an existing session and return its object. |
168
168
  | `subscribe(listener)` | Receive deltas for every observed session on this connection. |
169
169
  | `subscribePendingUserMessages(listener)` | Receive pending-state replacements across observed sessions. |
@@ -201,7 +201,7 @@ Each subscription returns an unsubscribe function.
201
201
  | `createEphemeralContext(options)` | Create an agent context on the host that is not saved. |
202
202
  | `submitEphemeralThread(options)` | Run or continue one ephemeral thread. |
203
203
  | `closeEphemeralContext(contextId)` | Close an ephemeral context and its threads. |
204
- | `unobserve()` | Stop observing; this object can no longer be used. |
204
+ | `unobserve()` | Stop observing. |
205
205
 
206
206
  `submit`, `queue`, and `record` accept `{ historyEntryId?: string }`; without it, Tau generates the ID. Use `getTauSdkSessionTurnRecord(snapshot, id)` to tell whether an accepted turn is unknown, running, or finished, or `getTauSdkSessionTurnOutcome(snapshot, id)` when you only need the final outcome.
207
207
 
@@ -393,9 +393,9 @@ The SDK also exports `executeTauCodeMode` for standalone runs. The separate `@ma
393
393
 
394
394
  Most turn and session-changing methods do not accept an `AbortSignal`. Call `session.interrupt()` to stop running work on the host. `session.exec()` is the exception: its optional signal cancels only that command.
395
395
 
396
- `client.close()` ends the connection: it rejects open requests, aborts client tool handlers, waits for them to finish, and closes the transport. For the default in-process client, it also saves sessions and shuts down the host. Over WebSocket, the remote host and its sessions keep running.
396
+ `client.close()` ends the connection: it rejects open requests, aborts client tool handlers, waits for them to finish, and closes the transport. For the default in-process client, it also saves sessions and shuts down the host.
397
397
 
398
- Always close clients in `finally`. Never use a session object after `unobserve()`, or a client after `close()`.
398
+ Always close clients in `finally`. Never use a client after `close()`.
399
399
 
400
400
  ## Handle errors
401
401
 
@@ -161,7 +161,7 @@ After editing personas, skills, or project context, run `/reload` while the sess
161
161
 
162
162
  If the current persona ID still exists, Tau applies its newly loaded definition and keeps the session's current settings, including reasoning and service tier. Selecting the persona again applies its declared defaults. If the ID is gone, Tau selects the first available persona. Existing messages stay as they are; a persona change never rewrites earlier history.
163
163
 
164
- The TUI refuses to reload while a turn is running. Subagents that are already running keep the setup they started with. Subagents started after the reload use the reloaded persona. See [subagents](subagents.md).
164
+ The TUI refuses to reload while a turn is running. Existing subagents keep the setup they started with, and children they launch later inherit that setup. Subagents that the main agent starts after the reload use the reloaded persona. See [subagents](subagents.md).
165
165
 
166
166
  ## Validation and common mistakes
167
167
 
@@ -52,13 +52,13 @@ The session stores only each prompt's ID and label. Tau reads the body from the
52
52
 
53
53
  If the file is missing or invalid when Tau reads it, the command fails. Tau never falls back to an older copy of the body. An attached client always gets the prompt from the session's execution environment, never from a file with the same name on the client machine.
54
54
 
55
- ### Telegram prompt picker
55
+ ### Telegram prompts
56
56
 
57
- In [Telegram](telegram.md), `/prompt` lists the active session's saved prompts, split into pages when there are many. Selecting one reads its current body and adds it to the session as a user message, without starting a turn. You can select a prompt only while the session is idle. Otherwise, wait for Tau to finish or use `/interrupt` first.
57
+ In [Telegram](telegram.md), `/prompt` opens a picker with the active session's saved prompts, split into pages when there are many. `/prompt <id>` chooses a prompt [directly](telegram-commands.md#choose-a-persona-effort-or-prompt). Either way, Tau reads the prompt's current body and adds it to the session as a user message, without starting a turn. You can add a prompt only while the session is idle. Otherwise, wait for Tau to finish or use `/interrupt` first.
58
58
 
59
- After a prompt is added, the picker's buttons stop working and it shows the prompt text, split across more messages if needed. Send a normal message, such as details or “go”, to start the next turn with the prompt in context. In groups, that message must mention the bot as usual. Selecting another prompt adds another message; it does not replace the first. Added prompts survive session recovery.
59
+ After a prompt is added, any open picker's buttons stop working and the bot shows the prompt text, split across more messages if needed. Send a normal message, such as details or “go”, to start the next turn with the prompt in context. In groups, that message must mention the bot as usual. Adding another prompt adds another message and does not replace the first. Added prompts survive session recovery.
60
60
 
61
- Only the newest picker in a chat works. A picker belongs to the session that opened it and expires after a selection, when the session is replaced, or when the runner restarts. Tapping twice does not add the prompt twice. Selecting a prompt does not use up pending attachments or group context.
61
+ Only the newest picker in a chat works. A picker belongs to the session that opened it and expires after a prompt is added, when the session is replaced, or when the runner restarts. Tapping twice does not add the prompt twice. Adding a prompt does not use up pending attachments or group context.
62
62
 
63
63
  ## `AGENTS.md` provides standing context
64
64
 
@@ -111,13 +111,13 @@ The option works for local TUI sessions and for hosts started with `tau serve`.
111
111
 
112
112
  ## Alternate subagent working directories
113
113
 
114
- A subagent normally uses the parent session's working directory and context. When `tau.agents.spawn` sets a different `workingDirectory`, Tau rebuilds the parts of the context that depend on the directory:
114
+ A subagent normally uses its parent's working directory and context. When `tau.agents.spawn` sets a different `workingDirectory`, Tau rebuilds the parts of the context that depend on the directory:
115
115
 
116
116
  - environment and repository details
117
117
  - the applicable `AGENTS.md` files
118
118
  - the skills found from that directory
119
119
 
120
- The persona, model catalog, model settings, and tool policy still come from the parent session. A persona file in the other directory is not used. See [subagents](subagents.md) for details.
120
+ The persona, model catalog, model settings, and tool policy still come from the parent. A persona file in the other directory is not used. See [subagents](subagents.md) for details.
121
121
 
122
122
  ## Leading hidden system blocks
123
123
 
@@ -170,7 +170,7 @@ Each kind of change belongs to a different process:
170
170
 
171
171
  ## Reconnect and observe safely
172
172
 
173
- A WebSocket connection observes a hosted session. It does not own the saved session and cannot delete it. After the last client disconnects, the host unloads an idle session from memory and keeps it saved. If a client disconnects while work is running, the host keeps working and unloads the session only after the work finishes. Reattach with the same session ID to get the current state and continue receiving updates.
173
+ A WebSocket connection observes a hosted session. It does not own the saved session and cannot delete it. After the last client disconnects, the host unloads an idle session from memory and keeps it saved. If a client disconnects while work is running, the host keeps working and unloads the session only after the work finishes. Protocol and SDK clients can also keep an unattached session and its idle subagents loaded for a limited time with [retention](session-protocol.md#keep-a-session-loaded-without-clients). Reattach with the same session ID to get the current state and continue receiving updates.
174
174
 
175
175
  A clean `tau serve` shutdown interrupts running work, saves live sessions, and closes clients. After a restart, the host lists the sessions whose execution environments it can reconnect. Recovered sessions come back idle, without queued or steering messages, and without subagents.
176
176
 
@@ -131,6 +131,54 @@ result: {
131
131
 
132
132
  The session must currently be observed by this connection.
133
133
 
134
+ ## Keep sessions loaded and unload them
135
+
136
+ [Keep a session loaded without clients](session-protocol.md#keep-a-session-loaded-without-clients) explains how these methods fit together. The connection does not need to observe the session to call them.
137
+
138
+ ### `session.setRetention`
139
+
140
+ Sets, renews, or clears the session's retention period.
141
+
142
+ ```ts
143
+ params: {
144
+ sessionId: string;
145
+ durationMs: number | null;
146
+ }
147
+ result: {
148
+ retainedUntil: number | null;
149
+ }
150
+ ```
151
+
152
+ `durationMs` is required. A number must be an integer from 1 to 2,147,483,647 (about 24.8 days). The period starts when the host handles the request, and `retainedUntil` is its end in milliseconds since the Unix epoch, according to the host's clock. Each call replaces the previous period, so a call can shorten it as well as extend it.
153
+
154
+ `null` clears retention and returns `retainedUntil: null`. Clearing does not detach clients or interrupt work.
155
+
156
+ Setting a period requires a loaded session and fails with `not_found` otherwise, even when the session is saved. To retain an unloaded session, call `session.observe` first. Clearing always succeeds for a session that is not loaded, including an unknown ID.
157
+
158
+ ### `session.collect`
159
+
160
+ Unloads a session if nothing keeps it loaded, and reports whether it is unloaded. This method never loads a session and never deletes the saved one.
161
+
162
+ ```ts
163
+ params: {
164
+ sessionId: string;
165
+ }
166
+ result: {
167
+ disposed: boolean;
168
+ }
169
+ ```
170
+
171
+ The result is `disposed: false`, without waiting, while any of these is true:
172
+
173
+ - A client observes the session, including this connection.
174
+ - A retention period is active.
175
+ - Work is running.
176
+ - The host is loading the session from storage.
177
+
178
+ Otherwise the host unloads the session, and the response waits until any unloading in progress has finished, including the release of the execution environment. The result is then `disposed: true`, which is also the result for a session that is not loaded and for an unknown ID. If unloading fails, the request fails with `internal_error`.
179
+
180
+ If saving the session before disposal fails, retry `session.collect`. A failed disposal, including cleanup of a recovery attempt, means the host can no longer establish that the session's files are safe to remove. No later `session.collect` for that ID returns `disposed: true` until the host restarts, even when the session is no longer loaded. Each later call returns `disposed: false` or fails. The host keeps this record only in memory, so after a restart the session counts as not loaded, and `disposed: true` no longer tells you whether the earlier release finished.
181
+
134
182
  ## Add user input and run turns
135
183
 
136
184
  ### `session.record`
@@ -464,7 +512,7 @@ Rewind requires an idle session with no pending input, and returns `busy` instea
464
512
 
465
513
  ### `session.interruptSubagent`
466
514
 
467
- Interrupts one subagent's current run. The subagent stays available for follow-ups.
515
+ Interrupts one subagent's current run, at any depth. Its descendants keep running, and the subagent stays available for follow-ups.
468
516
 
469
517
  ```ts
470
518
  params: {
@@ -90,6 +90,25 @@ Install all three before processing later messages for that session. The host ho
90
90
 
91
91
  Observing controls which updates you receive; it does not make you the owner. `session.unobserve` stops this connection's updates without deleting the session or interrupting work. Several connections can observe one session, and each can change it. Client tool names must be unique among observing clients.
92
92
 
93
+ ## Keep a session loaded without clients
94
+
95
+ After the last client stops observing, the host normally unloads an idle session from memory and keeps it saved. Unloading removes the session's subagents. To keep an unattached session and its idle subagents available, set a retention period with `session.setRetention`. A client that observes the session during that period gets the same live session.
96
+
97
+ A session stays loaded while a client observes it, while its retention period lasts, or while work is running. Running work includes turns, maintenance such as compaction, reloads, persona changes, prompt resolution, path autocomplete, `session.exec` commands, `session.sample` calls, ephemeral context creation and submissions, background jobs, and running subagents. Idle subagents do not count as running work. When retention expires or is cleared, only that reason goes away: clients stay attached and work keeps running. The host unloads the session once no reason remains.
98
+
99
+ Retention exists only in host memory. It ends when the host shuts down, and a session recovered after a restart has no retention and no subagents.
100
+
101
+ Before you delete files that a session uses, make sure the host has unloaded the session:
102
+
103
+ 1. Clear retention with `session.setRetention` and `durationMs: null`.
104
+ 2. Stop observing with `session.unobserve`, or close the connection.
105
+ 3. Call `session.collect`.
106
+ 4. If it returns `disposed: true`, the session is unloaded and its execution environment has been released. If it returns `disposed: false`, keep the files and retry later. If the request fails, keep the files and retry later. A failed save can succeed on retry, but after a failed disposal no retry reports `disposed: true` until the host restarts.
107
+
108
+ `session.collect` never loads a session, so you can repeat these steps safely. It reports only the state at that moment. Any client can still observe the saved session and load it again, so agree between your clients on when a session is finished.
109
+
110
+ See the [method reference](session-protocol-methods.md#keep-sessions-loaded-and-unload-them) for exact parameters and results.
111
+
93
112
  ## Treat the snapshot as the source of truth
94
113
 
95
114
  `SessionProtocolSnapshot` is the saved, recoverable state of one session. Its main fields are:
@@ -125,9 +144,9 @@ catalog.mcp:
125
144
 
126
145
  A listed server may not be connected yet, because servers connect on first use. Connection settings and credentials are never included. The host sets this field when it loads the session, and it stays the same until the host loads the session again.
127
146
 
128
- `catalog.speechVocabulary` holds the session's merged [`speech.vocabulary`](config-reference.md#speech) terms. The list has at most 100 terms and at most 10,000 Unicode characters in total. Each term is trimmed and non-empty, has at most 100 Unicode characters, and contains no angle brackets or line breaks. Clients that transcribe speech use these terms for this session. The host resolves them again on load, reload, and persona changes.
147
+ `catalog.speechVocabulary` holds the session's merged [`speech.vocabulary`](config-reference.md#speech) terms. The list has at most 1,000 terms and at most 50,000 Unicode characters in total. Each term is trimmed and non-empty, has at most 50 Unicode characters and 5 words, and contains no line breaks or any of the characters `<`, `>`, `{`, `}`, `[`, `]`, and `\`. Clients that transcribe speech use these terms for this session. The host resolves them again on load, reload, and persona changes.
129
148
 
130
- `bootstrap.prompt.subagentSystemPrompt` is present when subagents can be started. Each catalog persona has a `subagentLaunchModels` allowlist. Subagent records have task titles and IDs; there are no worker types.
149
+ `bootstrap.prompt.subagentSystemPrompt` is present when subagents can be started. It holds the base prompt, and Tau adds each native subagent's role section when it starts that subagent. Each catalog persona has a `subagentLaunchModels` allowlist. Subagent records have task titles and IDs; there are no worker types. Each record in `agents` also has `parentId`, the ID of the agent that started it, and `depth`, which is 1 or 2. A subagent of the main agent has depth 1, and its `parentId` is the session ID.
131
150
 
132
151
  Render active transcript order from `timeline.items`, not by sorting or filtering `messages`. A timeline item either contains a notice or references a message, tool, or operation in the corresponding snapshot collection. Some model-visible messages intentionally have no timeline item.
133
152
 
@@ -271,7 +290,7 @@ The supported codes are:
271
290
  | `invalid_request` | The envelope, version, type, id, or requested operation is invalid. |
272
291
  | `method_not_found` | The method is unsupported. |
273
292
  | `invalid_params` | Method parameters failed validation. |
274
- | `not_found` | The addressed session does not exist on this host. |
293
+ | `not_found` | The addressed session does not exist on this host, or `session.setRetention` set a period on a session that is not loaded. |
275
294
  | `busy` | Conflicting session work or a same-thread ephemeral submission is active. |
276
295
  | `cancelled` | Pending input, execution, or sampling was cancelled. |
277
296
  | `internal_error` | The host could not complete the operation. |
@@ -48,7 +48,7 @@ Queued and steering messages survive a client detaching only while the session s
48
48
 
49
49
  ## Interrupt and retry
50
50
 
51
- Interruption asks work to stop. It cancels the main session's running turn, direct commands, standalone model calls, and maintenance work. An interrupted turn records an interrupted assistant result where there is one. Interruption does not stop subagents: select one with Alt+Down and press Ctrl+G, or call `session.interruptSubagent` from a protocol client. Host shutdown or session disposal stops subagents. In the TUI, Escape first stops local work such as diff review, recording, or speech playback, and only then asks the host to interrupt the session.
51
+ Interruption asks work to stop. It cancels the main session's running turn, direct commands, standalone model calls, and maintenance work. An interrupted turn records an interrupted assistant result where there is one. Interruption does not stop subagents: select one with Alt+Down and press Ctrl+G to stop it without its children, or call `session.interruptSubagent` from a protocol client. Host shutdown or session disposal stops subagents. In the TUI, Escape first stops local work such as diff review, recording, or speech playback, and only then asks the host to interrupt the session.
52
52
 
53
53
  Retry runs another assistant turn from the current history. It does not remove the interrupted or failed result, rewind context, or send the previous user text again. Tau can therefore continue from completed tool results without running those tools again. In the TUI, press Enter twice on an empty editor while idle.
54
54
 
@@ -70,6 +70,8 @@ After a host restart, recovery loads the current configuration so providers and
70
70
 
71
71
  A session is saved throughout its life, not only when the TUI exits. Reattaching to a running host returns the current state and continues with live updates. Reattaching after a host restart loads the saved session and reconnects its execution environment, using the host's configuration for that environment type.
72
72
 
73
+ After the last client detaches, the host unloads the session from memory once its work has finished. The session stays saved, but its subagents are gone. Protocol and SDK clients can keep an unattached session and its idle subagents loaded for a limited time with [retention](session-protocol.md#keep-a-session-loaded-without-clients).
74
+
73
75
  Recovery keeps:
74
76
 
75
77
  - the conversation messages and finished tool results