@markusylisiurunen/tau 0.3.40 → 0.3.42

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 (143) hide show
  1. package/README.md +38 -35
  2. package/dist/core/auth/auth_manager.js +25 -9
  3. package/dist/core/auth/auth_manager.js.map +1 -1
  4. package/dist/core/auth/auth_storage.js +1 -0
  5. package/dist/core/auth/auth_storage.js.map +1 -1
  6. package/dist/core/auth/cli.js +49 -35
  7. package/dist/core/auth/cli.js.map +1 -1
  8. package/dist/core/auth/credential_store.js +54 -22
  9. package/dist/core/auth/credential_store.js.map +1 -1
  10. package/dist/core/auth/index.js +1 -1
  11. package/dist/core/auth/index.js.map +1 -1
  12. package/dist/core/auth/providers/openai_codex.js +71 -23
  13. package/dist/core/auth/providers/openai_codex.js.map +1 -1
  14. package/dist/core/cli.js +6 -4
  15. package/dist/core/cli.js.map +1 -1
  16. package/dist/core/commands/registry.js +22 -20
  17. package/dist/core/commands/registry.js.map +1 -1
  18. package/dist/core/config/builtin_themes.js +936 -998
  19. package/dist/core/config/builtin_themes.js.map +1 -1
  20. package/dist/core/index.js +1 -1
  21. package/dist/core/index.js.map +1 -1
  22. package/dist/core/models/tau_model_overrides.js +1 -66
  23. package/dist/core/models/tau_model_overrides.js.map +1 -1
  24. package/dist/core/personas.js +8 -53
  25. package/dist/core/personas.js.map +1 -1
  26. package/dist/core/session/direct_bash.js +9 -8
  27. package/dist/core/session/direct_bash.js.map +1 -1
  28. package/dist/core/session/runner.js +6 -1
  29. package/dist/core/session/runner.js.map +1 -1
  30. package/dist/core/tools/bash.js +81 -63
  31. package/dist/core/tools/bash.js.map +1 -1
  32. package/dist/core/tools/code_mode.js +33 -12
  33. package/dist/core/tools/code_mode.js.map +1 -1
  34. package/dist/core/tools/edit.js +72 -84
  35. package/dist/core/tools/edit.js.map +1 -1
  36. package/dist/core/tools/goal.js +97 -16
  37. package/dist/core/tools/goal.js.map +1 -1
  38. package/dist/core/tools/history.js +3 -3
  39. package/dist/core/tools/history.js.map +1 -1
  40. package/dist/core/tools/interrupt_agent.js +56 -37
  41. package/dist/core/tools/interrupt_agent.js.map +1 -1
  42. package/dist/core/tools/list_agents.js +28 -13
  43. package/dist/core/tools/list_agents.js.map +1 -1
  44. package/dist/core/tools/nook.js +3 -3
  45. package/dist/core/tools/nook.js.map +1 -1
  46. package/dist/core/tools/presentation.js +226 -0
  47. package/dist/core/tools/presentation.js.map +1 -0
  48. package/dist/core/tools/registry.js.map +1 -1
  49. package/dist/core/tools/send_input_to_agent.js +57 -47
  50. package/dist/core/tools/send_input_to_agent.js.map +1 -1
  51. package/dist/core/tools/spawn_agent.js +81 -52
  52. package/dist/core/tools/spawn_agent.js.map +1 -1
  53. package/dist/core/tools/subagent_ui.js +14 -38
  54. package/dist/core/tools/subagent_ui.js.map +1 -1
  55. package/dist/core/tools/view_image.js +45 -45
  56. package/dist/core/tools/view_image.js.map +1 -1
  57. package/dist/core/tools/wait_for_agents.js +94 -56
  58. package/dist/core/tools/wait_for_agents.js.map +1 -1
  59. package/dist/core/tools/web.js +3 -3
  60. package/dist/core/tools/web.js.map +1 -1
  61. package/dist/core/tools/write.js +41 -39
  62. package/dist/core/tools/write.js.map +1 -1
  63. package/dist/core/utils/gemini_speech.js +1 -1
  64. package/dist/core/utils/gemini_speech.js.map +1 -1
  65. package/dist/core/utils/subagent_utils.js +3 -3
  66. package/dist/core/utils/subagent_utils.js.map +1 -1
  67. package/dist/core/version.js +1 -1
  68. package/dist/execution/cloudflare_sandbox_execution_environment.js +1 -1
  69. package/dist/execution/cloudflare_sandbox_execution_environment.js.map +1 -1
  70. package/dist/host/client_tool_broker.js +29 -31
  71. package/dist/host/client_tool_broker.js.map +1 -1
  72. package/dist/host/local_session_host.js +13 -4
  73. package/dist/host/local_session_host.js.map +1 -1
  74. package/dist/main.js +22 -8
  75. package/dist/main.js.map +1 -1
  76. package/dist/tui/chat_controller/diff_review_service.js +1 -1
  77. package/dist/tui/chat_controller/diff_review_service.js.map +1 -1
  78. package/dist/tui/chat_controller/history_labels.js +13 -0
  79. package/dist/tui/chat_controller/history_labels.js.map +1 -1
  80. package/dist/tui/chat_controller/status_format.js +18 -0
  81. package/dist/tui/chat_controller/status_format.js.map +1 -1
  82. package/dist/tui/chat_view.js +28 -53
  83. package/dist/tui/chat_view.js.map +1 -1
  84. package/dist/tui/session_chat_app.js +3 -4
  85. package/dist/tui/session_chat_app.js.map +1 -1
  86. package/dist/tui/session_chat_controller.js +81 -112
  87. package/dist/tui/session_chat_controller.js.map +1 -1
  88. package/dist/tui/terminal_appearance.js +44 -25
  89. package/dist/tui/terminal_appearance.js.map +1 -1
  90. package/dist/tui/ui/autocomplete_item.js +2 -0
  91. package/dist/tui/ui/autocomplete_item.js.map +1 -0
  92. package/dist/tui/ui/chat_container.js +1 -14
  93. package/dist/tui/ui/chat_container.js.map +1 -1
  94. package/dist/tui/ui/chat_message_model.js +4 -12
  95. package/dist/tui/ui/chat_message_model.js.map +1 -1
  96. package/dist/tui/ui/components/autocomplete_list.js +138 -0
  97. package/dist/tui/ui/components/autocomplete_list.js.map +1 -0
  98. package/dist/tui/ui/components/editor.js +33 -40
  99. package/dist/tui/ui/components/editor.js.map +1 -1
  100. package/dist/tui/ui/components/one_line_segments.js +0 -67
  101. package/dist/tui/ui/components/one_line_segments.js.map +1 -1
  102. package/dist/tui/ui/custom_editor.js +15 -11
  103. package/dist/tui/ui/custom_editor.js.map +1 -1
  104. package/dist/tui/ui/diff_review_message.js +1 -11
  105. package/dist/tui/ui/diff_review_message.js.map +1 -1
  106. package/dist/tui/ui/footer.js +155 -25
  107. package/dist/tui/ui/footer.js.map +1 -1
  108. package/dist/tui/ui/rewind_picker.js +17 -47
  109. package/dist/tui/ui/rewind_picker.js.map +1 -1
  110. package/dist/tui/ui/slash_autocomplete.js +43 -64
  111. package/dist/tui/ui/slash_autocomplete.js.map +1 -1
  112. package/dist/tui/ui/subagent_editor_pane.js +3 -3
  113. package/dist/tui/ui/theme/index.js +1 -1
  114. package/dist/tui/ui/theme/index.js.map +1 -1
  115. package/dist/tui/ui/theme/palette.js +245 -8
  116. package/dist/tui/ui/theme/palette.js.map +1 -1
  117. package/dist/tui/ui/theme/theme.js +3 -30
  118. package/dist/tui/ui/theme/theme.js.map +1 -1
  119. package/dist/tui/ui/tool_card.js +141 -0
  120. package/dist/tui/ui/tool_card.js.map +1 -0
  121. package/dist/tui/ui/user_message.js +3 -6
  122. package/dist/tui/ui/user_message.js.map +1 -1
  123. package/package.json +9 -9
  124. package/dist/core/utils/tool_preview.js +0 -73
  125. package/dist/core/utils/tool_preview.js.map +0 -1
  126. package/dist/tui/chat_controller/command_hints.js +0 -35
  127. package/dist/tui/chat_controller/command_hints.js.map +0 -1
  128. package/dist/tui/ui/bash_execution.js +0 -129
  129. package/dist/tui/ui/bash_execution.js.map +0 -1
  130. package/dist/tui/ui/components/dynamic_border.js +0 -11
  131. package/dist/tui/ui/components/dynamic_border.js.map +0 -1
  132. package/dist/tui/ui/components/header_box.js +0 -107
  133. package/dist/tui/ui/components/header_box.js.map +0 -1
  134. package/dist/tui/ui/components/header_line.js +0 -60
  135. package/dist/tui/ui/components/header_line.js.map +0 -1
  136. package/dist/tui/ui/components/padded_container.js +0 -24
  137. package/dist/tui/ui/components/padded_container.js.map +0 -1
  138. package/dist/tui/ui/file_execution.js +0 -176
  139. package/dist/tui/ui/file_execution.js.map +0 -1
  140. package/dist/tui/ui/tool_output.js +0 -163
  141. package/dist/tui/ui/tool_output.js.map +0 -1
  142. package/dist/tui/ui/tool_ui_registry.js +0 -786
  143. package/dist/tui/ui/tool_ui_registry.js.map +0 -1
package/README.md CHANGED
@@ -57,13 +57,20 @@ to list authenticated accounts and usage:
57
57
  tau auth list
58
58
  ```
59
59
 
60
+ to keep an account authenticated while excluding it from agent sessions, disable it by email or account id. disabled accounts remain visible in `tau auth list` and continue to refresh credentials and usage:
61
+
62
+ ```sh
63
+ tau auth disable codex --account <email-or-id>
64
+ tau auth enable codex --account <email-or-id>
65
+ ```
66
+
60
67
  to remove stored credentials:
61
68
 
62
69
  ```sh
63
- tau auth logout codex --account <email>
70
+ tau auth logout codex --account <email-or-id>
64
71
  ```
65
72
 
66
- to force a specific Codex account for this run, set `TAU_CODEX_ACCOUNT` to the account email or account id (same matching as `auth logout`). when set, tau will only use that account and will not fail over.
73
+ to force a specific Codex account for this run, set `TAU_CODEX_ACCOUNT` to the account email or account id (same matching as `auth logout`). when set, tau will only use that account and will not fail over. forcing a disabled account fails until the account is enabled again.
67
74
 
68
75
  `openai-codex` does **not** use `OPENAI_API_KEY` or `apiKeys.openai`; it relies on the OAuth tokens in `~/.config/tau/auth.json`.
69
76
 
@@ -72,7 +79,7 @@ to force a specific Codex account for this run, set `TAU_CODEX_ACCOUNT` to the a
72
79
  tau writes JSONL usage logs to `~/.config/tau/logs/usage-YYYY-MM-DD.jsonl` for every assistant response (main and sub-agent). summarize usage with:
73
80
 
74
81
  ```sh
75
- tau usage --since 2025-01-01 --persona gpt-5.5-coder
82
+ tau usage --since 2025-01-01 --persona gpt-5.6-sol-coder
76
83
  ```
77
84
 
78
85
  filters: `--since`, `--persona`, `--provider`, `--model`.
@@ -82,7 +89,7 @@ filters: `--since`, `--persona`, `--provider`, `--model`.
82
89
  tau can run without the TUI via NDJSON RPC over stdin/stdout:
83
90
 
84
91
  ```sh
85
- tau rpc --persona gpt-5.5-coder
92
+ tau rpc --persona gpt-5.6-sol-coder
86
93
  ```
87
94
 
88
95
  RPC mode reuses the same startup config and persona loading as interactive mode. stdin/stdout are reserved for protocol traffic in this mode (piped stdin is **not** treated as an initial user message). `--caffeinated` is a macOS-only TUI flag and is rejected outside TUI mode.
@@ -105,7 +112,7 @@ then attach the terminal UI from another machine:
105
112
  tau attach --auth-token "$TAU_WS_AUTH_TOKEN" ws://vps:8787
106
113
  ```
107
114
 
108
- Without `--session` or `--new`, attach lists hosted sessions and prompts for the session to open. Persisted session files use a versioned storage format and older unwrapped snapshots are migrated during recovery. Use `--session <id>` to attach to an existing persisted session directly:
115
+ Without `--session` or `--new`, attach lists hosted sessions and prompts for the session to open. Persisted session files are durable user data in a versioned storage format and remain openable by newer Tau versions. Recovery preserves the semantic session while allowing presentation-only or otherwise nonessential historical state to be normalized, regenerated, or shown in a simpler form. An upgrade must not require deleting an older session merely because an internal persisted shape changed. Use `--session <id>` to attach to an existing persisted session directly:
109
116
 
110
117
  ```sh
111
118
  tau attach --session 0195d6e4-4cf9-7f44-a2d8-f8f7f49ee9d3 --auth-token "$TAU_WS_AUTH_TOKEN" ws://vps:8787
@@ -136,7 +143,7 @@ For stdio attach, use `--session <id>` before `--`:
136
143
  tau attach --session 0195d6e4-4cf9-7f44-a2d8-f8f7f49ee9d3 -- ssh vps 'cd /path/to/repo && tau rpc'
137
144
  ```
138
145
 
139
- Session attach renders the authoritative session snapshot, streams recoverable `session.delta` updates and independently revisioned, non-persisted `session.pendingUserMessages` replacements, submits normal user input through `session.submit`, `session.queue`, and `session.steer`, supports steering/interruption, runs `!`/`!!` Bash commands in the session execution environment, records `/listen` from the local microphone, speaks `/speak` locally, reloads session content with `/reload`, switches session personas with `/persona:<id>` or `Ctrl+P`, inserts session prompt templates with `/prompt:<id>`, manages persistent autonomous goals with `/goal`, compacts the session with `/compact:*`, creates a new session with `/new`, and exits with `/exit` or `Ctrl+C` twice.
146
+ Session attach renders the authoritative session snapshot, streams recoverable `session.delta` updates and independently revisioned, non-persisted `session.pendingUserMessages` replacements, submits normal user input through `session.submit`, `session.queue`, and `session.steer`, supports steering/interruption, runs `!`/`!!` Bash commands in the session execution environment, records `/listen` from the local microphone, speaks `/speak` locally, reloads session content with `/reload`, switches session personas with `/persona:<id>` or `Ctrl+P`, inserts session prompt templates with `/prompt:<id>`, manages persistent autonomous goals with `/goal`, compacts the session with `/compact-all` or `/compact-keep-last`, creates a new session with `/new`, and exits with `/exit` or `Ctrl+C` twice.
140
147
 
141
148
  The TUI advertises client tools for diff review, input prefill, and the effective command-backed tools selected from global definitions. `prefill_input` fills only an empty editor and leaves existing draft text unchanged. Pass `--no-client-tools` to `tau` or `tau attach` to advertise no TUI client tools, for example when another TUI attached to the same session already owns them.
142
149
 
@@ -338,19 +345,19 @@ tau can load custom palette overrides from theme files. create a theme at:
338
345
 
339
346
  then set `"defaultTheme": "<id>"` in config. any palette token not defined in the file renders as plain text. theme values accept `#rgb`, `#rrggbb`, `rgb(r, g, b)`, or `hsl(h, s%, l%)`. hex without `#` is ignored.
340
347
 
341
- built-in themes are available by default with ids: `crimson`, `ember`, `gold`, `lime`, `grass`, `emerald`, `jade`, `teal`, `cyan`, `azure`, `cobalt`, `violet`, `purple`, `magenta`, `rose`. built-ins auto-adapt to dark/light terminal backgrounds via OSC 11 detection at startup (best effort, dark fallback). set `defaultTheme` to one of these ids, or disable them with `disableBuiltinThemes`.
348
+ built-in themes are available by default with ids: `crimson`, `ember`, `gold`, `lime`, `grass`, `emerald`, `jade`, `teal`, `cyan`, `azure`, `cobalt`, `violet`, `purple`, `magenta`, `rose`. built-ins derive their runtime palettes from terminal foreground/background colors detected through OSC 10/11 at startup (best effort, dark fallback). set `defaultTheme` to one of these ids, or disable them with `disableBuiltinThemes`.
342
349
 
343
350
  custom themes loaded from `.tau/themes` or `~/.config/tau/themes` are single-variant and use exactly the tokens you define.
344
351
 
345
352
  available palette tokens (theme keys):
346
353
 
347
354
  - core: `brandAccent`, `textMuted`, `textDim`, `linkText`, `thinkingText`, `codeInlineText`, `codeBlockText`
348
- - editor: `editorBorderNone`, `editorBorderMinimal`, `editorBorderLow`, `editorBorderMedium`, `editorBorderHigh`, `editorBorderXhigh`, `editorBorderMax`, `editorSubagentBorder`, `editorBorderRecording`
349
- - status: `statusWarn`, `statusError`, `modeBash`
355
+ - editor: `editorBorder`, `editorSubagentBorder`, `editorBorderBash`, `editorBorderRecording`, `editorPlaceholder`, `autocompleteSelectedSurface`, `autocompleteSelectedText`
356
+ - status: `statusWarn`, `statusError`
350
357
  - action: `actionRunning`, `actionSuccess`, `actionError`, `actionOutput`
351
358
  - diff: `diffAdd`, `diffRemove`
352
359
  - toasts: `toastSuccess`, `toastWarn`, `toastError`
353
- - user: `userSurface`, `userReviewSurface`, `userReviewText`, `userReviewTextMuted`, `userReviewTextDim`
360
+ - user: `userSurface`, `userText`, `userReviewSurface`, `userReviewText`, `userReviewTextMuted`, `userReviewTextDim`
354
361
 
355
362
  example theme file (`.tau/themes/solarized.json`):
356
363
 
@@ -386,14 +393,11 @@ tau uses `caffeinate -i` and only holds the sleep assertion during active assist
386
393
 
387
394
  tau comes with several built-in personas across different models:
388
395
 
389
- - **Claude Opus 4.6** (Anthropic): `opus-4.6-chat`, `opus-4.6-coder`
390
- - **Claude Opus 4.8** (Anthropic): `opus-4.8-chat`, `opus-4.8-coder`
391
- - **GPT-5.5** (OpenAI): `gpt-5.5-chat`, `gpt-5.5-coder`
392
- - **GPT-5.5 Fast (ChatGPT)** and **GPT-5.6 Fast (ChatGPT)** (OpenAI Codex, priority tier): `gpt-5.5-chatgpt-fast-chat`, `gpt-5.5-chatgpt-fast-coder`, `gpt-5.6-sol-chatgpt-fast-chat`, `gpt-5.6-sol-chatgpt-fast-coder`, `gpt-5.6-terra-chatgpt-fast-chat`, `gpt-5.6-terra-chatgpt-fast-coder`, `gpt-5.6-luna-chatgpt-fast-chat`, `gpt-5.6-luna-chatgpt-fast-coder`
393
- - **GPT-5.5 (ChatGPT)** (OpenAI Codex): `gpt-5.5-chatgpt-chat`, `gpt-5.5-chatgpt-coder`
396
+ - **Claude Opus 5** (Anthropic): `opus-5-chat`, `opus-5-coder`
394
397
  - **GPT-5.6 Sol**, **GPT-5.6 Terra**, and **GPT-5.6 Luna** (OpenAI): `gpt-5.6-sol-chat`, `gpt-5.6-sol-coder`, `gpt-5.6-terra-chat`, `gpt-5.6-terra-coder`, `gpt-5.6-luna-chat`, `gpt-5.6-luna-coder`
395
398
  - **GPT-5.6 Sol (ChatGPT)**, **GPT-5.6 Terra (ChatGPT)**, and **GPT-5.6 Luna (ChatGPT)** (OpenAI Codex): `gpt-5.6-sol-chatgpt-chat`, `gpt-5.6-sol-chatgpt-coder`, `gpt-5.6-terra-chatgpt-chat`, `gpt-5.6-terra-chatgpt-coder`, `gpt-5.6-luna-chatgpt-chat`, `gpt-5.6-luna-chatgpt-coder`
396
- - **Gemini 3.1 Pro** and **Gemini 3 Flash** (Google): `gemini-3.1-pro-chat`, `gemini-3-flash-chat`
399
+ - **GPT-5.6 Fast (ChatGPT)** (OpenAI Codex, priority tier): `gpt-5.6-sol-chatgpt-fast-chat`, `gpt-5.6-sol-chatgpt-fast-coder`, `gpt-5.6-terra-chatgpt-fast-chat`, `gpt-5.6-terra-chatgpt-fast-coder`, `gpt-5.6-luna-chatgpt-fast-chat`, `gpt-5.6-luna-chatgpt-fast-coder`
400
+ - **Gemini 3.6 Flash** (Google): `gemini-3.6-flash-chat`
397
401
 
398
402
  chat variants are for general-purpose assistance; coder variants are optimized for software engineering. built-in personas include the `default` sub-agent for background tasks unless disabled.
399
403
 
@@ -402,7 +406,7 @@ switch personas at startup with `--persona` or mid-session with `/persona:<id>`:
402
406
  persona id matching is exact/case-sensitive.
403
407
 
404
408
  ```sh
405
- tau --persona opus-4.8-coder
409
+ tau --persona opus-5-coder
406
410
  ```
407
411
 
408
412
  ## sub-agents
@@ -434,7 +438,7 @@ when you write custom skills, you can specify trigger sensitivity in the skill d
434
438
  some models support extended thinking, where they reason through problems before responding. cycle through reasoning levels with `shift+tab`, or set one at startup:
435
439
 
436
440
  ```sh
437
- tau --persona opus-4.8-chat:high
441
+ tau --persona opus-5-chat:high
438
442
  ```
439
443
 
440
444
  reasoning changes made while the assistant is working apply to the next independently submitted or queued turn. the active turn keeps the full execution spec it captured when it started, including tool-call subturns and steering continuations.
@@ -452,7 +456,7 @@ reference sub-agents with `@@agent:<name>` (for example, `@@agent:default`). exa
452
456
  you can also pipe content directly:
453
457
 
454
458
  ```sh
455
- cat src/tui/session_chat_app.ts | tau --persona opus-4.8-chat
459
+ cat src/tui/session_chat_app.ts | tau --persona opus-5-chat
456
460
  ```
457
461
 
458
462
  by default, tau injects your AGENTS.md into the system prompt. use `--no-agent-context-files` to disable this behavior. tau searches for AGENTS.md in the current directory and parent directories up to your home folder (or filesystem root if cwd is outside home). tau also includes a paths-only listing of `AGENTS.md` files in child directories under the current working directory, excluding any file already injected in full. this nested scan is breadth-first and stops after 8,192 directories or 16 levels. it skips standard VCS, dependency, build, virtual-environment, and cache directories at every level. when scanning directly from the execution home, it also skips direct tool-managed children such as `.cargo`, `.config`, `.local`, `.npm`, and platform data directories (`Library` on macOS and `snap` on Linux). project-local directories with the same tool-managed names remain visible. use `agentContextFiles` for important files that must be included independently of the nested scan.
@@ -477,15 +481,15 @@ tau supports slash commands for common actions:
477
481
  | `/new` | clear the session and start fresh |
478
482
  | `/exit` | exit the TUI |
479
483
  | `/rewind` | open a picker to rewind context from a selected user message |
480
- | `/copy:text` | copy the last assistant message |
481
- | `/copy:code` | copy just the code blocks |
484
+ | `/copy-text` | copy the last assistant message |
485
+ | `/copy-code` | copy just the code blocks |
482
486
  | `/reload` | reload personas, model overrides, prompts, skills, and AGENTS.md |
483
487
  | `/listen` | start microphone recording and transcribe into the editor (macOS only) |
484
488
  | `/speak` | speak the last assistant message aloud (macOS only) |
485
489
  | `/diff [git diff args...]` | open the local diff review tool for the current session; git snapshot and review-agent work run on the session host |
486
490
  | `/goal [objective\|resume\|clear]` | show, start, resume, or clear a persistent autonomous goal |
487
- | `/compact:summary-only` | compress history into one synthetic user summary message |
488
- | `/compact:summary-and-last` | compress history and include the last assistant message verbatim when present |
491
+ | `/compact-all` | compress history into one synthetic user summary message |
492
+ | `/compact-keep-last` | compress history and include the last assistant message verbatim when present |
489
493
  | `/persona:<id>` | switch to a different persona |
490
494
  | `/prompt:<id>` | insert a saved prompt template |
491
495
  | `/theme:<id>` | switch to a loaded theme |
@@ -496,7 +500,7 @@ tau supports slash commands for common actions:
496
500
 
497
501
  tau automatically compacts long sessions when the latest successful provider-reported usage from the active model plus Tau's estimate of model-visible content added since that response approaches the model context limit. Tau checks before every model subturn, so one user turn can compact more than once. automatic compaction summarizes older context, retrying the summary call once on failure, asks the compaction model to select original user messages to append verbatim inside the summary by history id, retains a recent tail while middle-truncating individual textual tool and recovery results above roughly 8,192 estimated tokens, and inserts a hidden continuation note so the assistant continues without asking you to repeat context. before replacing history, Tau best-effort archives the pre-compaction conversation as ordered `.txt` and `.json` pairs in an agent-specific execution-environment temp directory. assistant thinking is omitted. the text file middle-truncates tool results for easier lookup, while JSON retains untruncated archived content. every archivable summarized record is labeled with its history entry id, so the compaction model may cite an id for bulky exact details and the continuing assistant can resolve it from the archive. the continuation note includes the temporary paths when archiving succeeds.
498
502
 
499
- the compact commands are manual and useful when you want to force context replacement. they replace prior context with a single synthetic user summary message, including compaction-model-selected original user messages verbatim inside that summary, and do not retain a recent tail. compaction prompts middle-truncate each textual tool result to roughly 2,048 estimated tokens without changing live history. `/compact:summary-and-last` also includes the last assistant message verbatim when present.
503
+ the compact commands are manual and useful when you want to force context replacement. they replace prior context with a single synthetic user summary message, including compaction-model-selected original user messages verbatim inside that summary, and do not retain a recent tail. compaction prompts middle-truncate each textual tool result to roughly 2,048 estimated tokens without changing live history. `/compact-keep-last` also includes the last assistant message verbatim when present.
500
504
 
501
505
  `/listen` (or `ctrl+y`) starts microphone recording on macOS, including while the assistant is working. while recording, editor typing is disabled, and `ctrl+y` stops recording and starts transcription at the cursor using the configured speech-to-text provider. `esc` stops recording first without interrupting the assistant; press it again to interrupt active work. recording also auto-stops after 5 minutes. on Linux, `/listen` is currently unavailable and tau shows a warning.
502
506
 
@@ -513,7 +517,6 @@ the compact commands are manual and useful when you want to force context replac
513
517
  | `shift+tab` | cycle reasoning effort |
514
518
  | `ctrl+p` | cycle personality |
515
519
  | `ctrl+t` | toggle thinking visibility |
516
- | `ctrl+o` | toggle compact tool display |
517
520
  | `ctrl+s` | stash input to clipboard |
518
521
  | `ctrl+y` | toggle voice recording (`/listen`) |
519
522
  | `ctrl+g` | interrupt selected sub-agent |
@@ -542,7 +545,7 @@ model definitions can be extended and overridden through `~/.config/tau/models.j
542
545
  "exa": "...",
543
546
  "mistral": "..."
544
547
  },
545
- "defaultPersona": "gpt-5.5-chat",
548
+ "defaultPersona": "gpt-5.6-sol-chat",
546
549
  "disableBuiltinPersonas": false,
547
550
  "disableBuiltinThemes": false,
548
551
  "defaultTheme": "solarized",
@@ -568,7 +571,7 @@ model definitions can be extended and overridden through `~/.config/tau/models.j
568
571
  ],
569
572
  "subagents": {
570
573
  "defaultLaunchModels": [
571
- "openai/gpt-5.5:high",
574
+ "openai/gpt-5.6-sol:high",
572
575
  "anthropic/claude-haiku-4-5:low"
573
576
  ]
574
577
  },
@@ -606,7 +609,7 @@ model definitions can be extended and overridden through `~/.config/tau/models.j
606
609
  "apiKeyEnv": "TAU_HISTORY_API_KEY"
607
610
  },
608
611
  "modelSystemNotices": {
609
- "openai-codex/gpt-5.5": "avoid apply_patch heredocs, use tau tools directly"
612
+ "openai-codex/gpt-5.6-sol": "avoid apply_patch heredocs, use tau tools directly"
610
613
  }
611
614
  }
612
615
  ```
@@ -635,7 +638,7 @@ supported built-in diff tool code themes are: `andromeeda`, `aurora-x`, `ayu-dar
635
638
 
636
639
  the `subagents.defaultLaunchModels` field configures allowed `spawn_agent` launch overrides for the built-in `default` sub-agent. values must use `<provider>/<model>:<effort>`.
637
640
 
638
- `autoCompact` controls automatic session compaction and merges field-by-field across config levels. it is enabled by default with `reserveTokens: 16384` and `keepRecentTokens: 20000`. before every model subturn, Tau compares the latest successful provider-reported assistant usage from the active model plus an estimated token count for model-visible messages appended since that response against the model context window minus the reserve. when the threshold is crossed, Tau summarizes older context with at most two summary attempts, asks the compaction model to select original user messages to append verbatim inside the summary by history id, retains recent messages while middle-truncating individual textual tool and recovery results above roughly 8,192 estimated tokens, and best-effort archives the untruncated pre-compaction conversation, excluding assistant thinking, in the execution environment's OS temp directory. archivable summarized records carry history entry ids that the compaction model may cite when bulky exact details are better retrieved from the archive than copied into the summary. manual `/compact:*` commands remain summary-replacement commands and do not create these archives.
641
+ `autoCompact` controls automatic session compaction and merges field-by-field across config levels. it is enabled by default with `reserveTokens: 16384` and `keepRecentTokens: 20000`. before every model subturn, Tau compares the latest successful provider-reported assistant usage from the active model plus an estimated token count for model-visible messages appended since that response against the model context window minus the reserve. when the threshold is crossed, Tau summarizes older context with at most two summary attempts, asks the compaction model to select original user messages to append verbatim inside the summary by history id, retains recent messages while middle-truncating individual textual tool and recovery results above roughly 8,192 estimated tokens, and best-effort archives the untruncated pre-compaction conversation, excluding assistant thinking, in the execution environment's OS temp directory. archivable summarized records carry history entry ids that the compaction model may cite when bulky exact details are better retrieved from the archive than copied into the summary. manual `/compact-all` and `/compact-keep-last` commands remain summary-replacement commands and do not create these archives.
639
642
 
640
643
  the `modelSystemNotices` field maps `<provider>/<model>` to a notice string. provider ids must be known and model ids are exact/case-sensitive against the merged configured model catalog (built-in + layered `models.json`). when Tau commits a main-session or sub-agent input, it prepends the notice for the active model as an ordinary `<system>...</system>` block. the persisted block is subsequently treated like any other system prefix, so compaction sees notices already present in the source history. tau does not prepend the current notice to the compaction prompt or to synthetic compaction messages, and the generated summary is not required to reproduce it. ephemeral agents never receive model system notices, and maintenance model calls do not resolve or add fresh notices.
641
644
 
@@ -722,7 +725,7 @@ create your own personas by adding markdown files to `~/.config/tau/personas/` (
722
725
  ---
723
726
  id: my-assistant
724
727
  provider: anthropic
725
- model: claude-opus-4-8
728
+ model: claude-opus-5
726
729
  ---
727
730
 
728
731
  you are a helpful assistant specialized in my workflow. focus on clarity and efficiency.
@@ -732,7 +735,7 @@ the frontmatter defines the persona. required fields:
732
735
 
733
736
  - `id`: unique id used by `--persona` and `/persona:<id>`
734
737
  - `provider`: model provider id (for example `openai`, `anthropic`, `google`)
735
- - `model`: model id for the provider (for example `gpt-5.4`, `claude-opus-4-8`)
738
+ - `model`: model id for the provider (for example `gpt-5.4`, `claude-opus-5`)
736
739
 
737
740
  custom personas/subagents can reference model ids that are not bundled yet, as long as the provider is known. built-in personas use the merged model catalog, so `models.json` can override bundled model definitions. see [docs/models.md](docs/models.md).
738
741
 
@@ -742,7 +745,7 @@ optional frontmatter fields:
742
745
 
743
746
  - `label`: display name shown in the ui (defaults to the base persona label if `extends` is used)
744
747
  - `description`: human-readable description used in lists/autocomplete
745
- - `extends`: inherit optional fields from a built-in persona id (for example `gpt-5.5-coder`). `provider` and `model` are still required. if the markdown body is empty, the base persona's system prompt is used.
748
+ - `extends`: inherit optional fields from a built-in persona id (for example `gpt-5.6-sol-coder`). `provider` and `model` are still required. if the markdown body is empty, the base persona's system prompt is used.
746
749
  - `reasoning`: one of `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`
747
750
  - `serviceTier`: `priority` or `flex` for providers that support service tiers (currently `openai` and `openai-codex`)
748
751
  - `allowedReasoningLevels`: list of reasoning levels shown in the ui
@@ -761,7 +764,7 @@ optional frontmatter fields:
761
764
  reasoning: medium
762
765
  tools: [web, bash]
763
766
  launchModels:
764
- - openai/gpt-5.5:high
767
+ - openai/gpt-5.6-sol:high
765
768
  - anthropic/claude-haiku-4-5:medium
766
769
  ```
767
770
  - `tools`: list of tool names to enable for this persona. allowed: `bash`, `write`, `edit`, `view_image`, `web`, `nook`, `history`, `spawn_agent`, `send_input_to_agent`, `wait_for_agents`, `list_agents`, `interrupt_agent`. if omitted, defaults to `bash`, `write`, `edit`, `view_image`, `web`, `nook`, `history` (and subagent tools when subagents are enabled). `nook` is available only when effective Nook configuration is also present.
@@ -775,7 +778,7 @@ to clone a built-in persona but swap the provider/model, use `extends`:
775
778
  ```markdown
776
779
  ---
777
780
  id: my-haiku-coder
778
- extends: gpt-5.5-coder
781
+ extends: gpt-5.6-sol-coder
779
782
  provider: anthropic
780
783
  model: claude-haiku-4-5
781
784
  ---
@@ -820,7 +823,7 @@ tau connects your terminal to large language models, giving them tools to intera
820
823
 
821
824
  the model sees your messages, any file contents you've shared, and the results of tool calls. it doesn't have ambient access to your filesystem; it only sees what you show it or what it explicitly requests through tools.
822
825
 
823
- tool calls are displayed as soon as the model identifies the tool, before its arguments finish streaming. every built-in and client-provided tool uses the same `preparing` → `queued` → `running` → terminal lifecycle; tools with clear action wording present those states naturally, such as `writing` and `wrote`, while other tools use generic labels. tool-specific output enriches the card without replacing that lifecycle. use `ctrl+o` to toggle between compact and detailed views.
826
+ tool calls are displayed as soon as the model identifies the tool, before its arguments finish streaming. every built-in and client-provided tool uses the same `preparing` → `queued` → `running` → terminal lifecycle and one compact card grammar with static single-column markers (`◌` preparing, `○` queued, `»` running); tools with clear action wording present those states naturally, such as `writing` and `wrote`, while code-mode tools pair generic lifecycle actions with an explicit `web`, `history`, or `nook` operation label. multiline subjects show at most eight lines (four from the start, an omission marker, and three from the end); bash, code-mode, and file-path subjects wrap at character boundaries while other subjects wrap at word boundaries. terminal output, write content, and edit diff details also wrap at character boundaries; natural-language details wrap at word boundaries. details default to at most seven lines (three from each end around an omission marker). direct `!` and `!!` command output instead shows up to thirty-three lines using sixteen lines from each end around an omission marker. write previews instead show up to sixteen detail lines using fifteen lines from the start plus an omission marker, spawn-agent and follow-up prompts plus each completed wait response show up to seventeen lines using eight lines from each end around an omission marker, list-agent previews preserve the complete formatted listing, interrupt-agent details preserve all model-facing result lines, create-goal and non-completing update-goal details preserve only the objective lines, and edit previews preserve the complete line diff. subjects and details allow at most 512 characters per line. metadata enriches the card without replacing that lifecycle. saved sessions with an older tool-presentation format remain openable: historical tools use a generic card built from their name, status, and up to seven stored textual result lines, without displaying stored tool arguments.
824
827
 
825
828
  ## tool output truncation
826
829
 
@@ -24,7 +24,10 @@ export class AuthManager {
24
24
  const accounts = await adapter.listAccountInfo(this.authStorage);
25
25
  if (accounts.length > 0) {
26
26
  const forcedAccountId = adapter.getForcedAccountId?.(this.authStorage);
27
- const selectedAccountId = forcedAccountId ?? adapter.selectAccountFromList?.(accounts);
27
+ const candidateAccountId = forcedAccountId ?? adapter.selectAccountFromList?.(accounts);
28
+ const selectedAccountId = accounts.some((account) => account.accountId === candidateAccountId && !account.disabled)
29
+ ? candidateAccountId
30
+ : undefined;
28
31
  results.push({
29
32
  providerId: adapter.id,
30
33
  providerLabel: adapter.label,
@@ -36,24 +39,37 @@ export class AuthManager {
36
39
  return results;
37
40
  }
38
41
  addOAuthAccount(providerId, credentials) {
39
- const adapter = this.adapters.get(providerId);
40
- if (!adapter) {
41
- throw new Error(`unsupported auth provider "${providerId}"`);
42
- }
42
+ const adapter = this.getAdapter(providerId);
43
43
  this.authStorage.reload();
44
44
  adapter.validateOAuthCredentials?.(credentials);
45
45
  adapter.addOAuthAccount(this.authStorage, credentials);
46
46
  }
47
47
  removeAccount(providerId, accountId) {
48
- const adapter = this.adapters.get(providerId);
49
- if (!adapter) {
50
- throw new Error(`unsupported auth provider "${providerId}"`);
51
- }
48
+ const adapter = this.getAdapter(providerId);
52
49
  this.authStorage.reload();
53
50
  const removed = adapter.removeAccount(this.authStorage, accountId);
54
51
  if (!removed) {
55
52
  throw new Error(`account "${accountId}" not found for provider "${providerId}"`);
56
53
  }
57
54
  }
55
+ setAccountEnabled(providerId, accountId, enabled) {
56
+ const adapter = this.getAdapter(providerId);
57
+ this.authStorage.reload();
58
+ const invalidReason = this.authStorage.getInvalidReason();
59
+ if (invalidReason) {
60
+ throw new Error(invalidReason);
61
+ }
62
+ const updated = adapter.setAccountEnabled(this.authStorage, accountId, enabled);
63
+ if (!updated) {
64
+ throw new Error(`account "${accountId}" not found for provider "${providerId}"`);
65
+ }
66
+ }
67
+ getAdapter(providerId) {
68
+ const adapter = this.adapters.get(providerId);
69
+ if (!adapter) {
70
+ throw new Error(`unsupported auth provider "${providerId}"`);
71
+ }
72
+ return adapter;
73
+ }
58
74
  }
59
75
  //# sourceMappingURL=auth_manager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth_manager.js","sourceRoot":"","sources":["../../../src/core/auth/auth_manager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAA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E,SAAiB,EAAE,OAAgB;QACvE,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;QAC1D,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAChF,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,YAAY,SAAS,6BAA6B,UAAU,GAAG,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IAEO,UAAU,CAAC,UAAkB;QACnC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,8BAA8B,UAAU,GAAG,CAAC,CAAC;QAC/D,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
@@ -14,6 +14,7 @@ const authStorageDataSchema = z
14
14
  .object({
15
15
  type: z.literal("oauth"),
16
16
  accountId: nonEmptyStringSchema,
17
+ disabled: z.boolean().default(false),
17
18
  providerAccountId: nonEmptyStringSchema.optional(),
18
19
  access: nonEmptyStringSchema,
19
20
  refresh: nonEmptyStringSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"auth_storage.js","sourceRoot":"","sources":["../../../src/core/auth/auth_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,UAAU,EACV,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- if (subcommand === "logout") {
47
- let index = 0;
48
- let providerArg;
49
- if (subcommandArgs[index] && !subcommandArgs[index].startsWith("-")) {
50
- providerArg = subcommandArgs[index];
51
- index += 1;
46
+ if (subcommand === "logout" || subcommand === "enable" || subcommand === "disable") {
47
+ return parseAccountCommand(subcommand, subcommandArgs);
48
+ }
49
+ throw new Error(`unknown auth subcommand "${subcommand ?? ""}"`);
50
+ }
51
+ function parseAccountCommand(subcommand, args) {
52
+ let index = 0;
53
+ let providerArg;
54
+ if (args[index] && !args[index].startsWith("-")) {
55
+ providerArg = args[index];
56
+ index += 1;
57
+ }
58
+ let accountId;
59
+ while (index < args.length) {
60
+ const argument = args[index];
61
+ if (argument !== "--account") {
62
+ throw new Error(argument.startsWith("-")
63
+ ? `unknown auth ${subcommand} option "${argument}"`
64
+ : `unexpected auth ${subcommand} argument "${argument}"`);
52
65
  }
53
- let accountId;
54
- while (index < subcommandArgs.length) {
55
- const argument = subcommandArgs[index];
56
- if (argument !== "--account") {
57
- throw new Error(argument.startsWith("-")
58
- ? `unknown auth logout option "${argument}"`
59
- : `unexpected auth logout argument "${argument}"`);
60
- }
61
- if (accountId !== undefined) {
62
- throw new Error('duplicate auth logout option "--account"');
63
- }
64
- const value = subcommandArgs[index + 1];
65
- if (!value || value.startsWith("--")) {
66
- throw new Error('missing value for auth logout option "--account"');
67
- }
68
- accountId = value;
69
- index += 2;
66
+ if (accountId !== undefined) {
67
+ throw new Error(`duplicate auth ${subcommand} option "--account"`);
70
68
  }
71
- if (!accountId) {
72
- throw new Error("missing --account <id> for logout");
69
+ const value = args[index + 1];
70
+ if (!value || value.startsWith("--")) {
71
+ throw new Error(`missing value for auth ${subcommand} option "--account"`);
73
72
  }
74
- return {
75
- type: "logout",
76
- ...(providerArg ? { providerArg } : {}),
77
- accountId,
78
- };
73
+ accountId = value;
74
+ index += 2;
79
75
  }
80
- throw new Error(`unknown auth subcommand "${subcommand ?? ""}"`);
76
+ if (!accountId) {
77
+ throw new Error(`missing --account <id> for ${subcommand}`);
78
+ }
79
+ return {
80
+ type: subcommand,
81
+ ...(providerArg ? { providerArg } : {}),
82
+ accountId,
83
+ };
81
84
  }
82
85
  function normalizeProvider(value) {
83
86
  return value.trim().toLowerCase();
@@ -127,6 +130,7 @@ export async function runLoginCommand(options) {
127
130
  }
128
131
  log(`logging in to ${provider}...`);
129
132
  const credentials = await handler({
133
+ signal: new AbortController().signal,
130
134
  prompt: options.prompt,
131
135
  notify: (event) => {
132
136
  if (event.type === "auth_url") {
@@ -162,13 +166,22 @@ export async function runLogoutCommand(options) {
162
166
  if (!provider) {
163
167
  provider = await promptForProvider(options.prompt, log, providers);
164
168
  }
165
- if (!options.accountId) {
166
- throw new Error("missing --account <id> for logout");
167
- }
168
169
  const authManager = new AuthManager(options.authStorage);
169
170
  authManager.removeAccount(provider, options.accountId);
170
171
  log(`removed account ${options.accountId} for ${provider} from ${options.authPath}`);
171
172
  }
173
+ export async function runSetAccountEnabledCommand(options) {
174
+ const log = options.log ?? console.log;
175
+ const providers = options.providers ?? SUPPORTED_OAUTH_PROVIDERS;
176
+ let provider = resolveProvider(options.providerArg, providers);
177
+ if (!provider) {
178
+ provider = await promptForProvider(options.prompt, log, providers);
179
+ }
180
+ const authManager = new AuthManager(options.authStorage);
181
+ authManager.setAccountEnabled(provider, options.accountId, options.enabled);
182
+ const action = options.enabled ? "enabled" : "disabled";
183
+ log(`${action} account ${options.accountId} for ${provider} in ${options.authPath}`);
184
+ }
172
185
  export async function runListCommand(options) {
173
186
  const log = options.log ?? console.log;
174
187
  const authManager = new AuthManager(options.authStorage);
@@ -187,7 +200,8 @@ export async function runListCommand(options) {
187
200
  const marker = isSelected ? chalk.yellow("*") : " ";
188
201
  const label = account.email ?? account.accountId;
189
202
  const plan = account.plan ? `[${account.plan}]` : undefined;
190
- const headerSegments = [` ${marker}`, label, plan].filter(Boolean);
203
+ const disabled = account.disabled ? "[disabled]" : undefined;
204
+ const headerSegments = [` ${marker}`, label, plan, disabled].filter(Boolean);
191
205
  log(headerSegments.join(" "));
192
206
  if (account.credentialRefreshStatus === "failed") {
193
207
  log(chalk.red(account.credentialExpired
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/core/auth/cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAoBhD,MAAM,CAAC,MAAM,yBAAyB,GAAwB;IAC5D,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,iCAAiC,EAAE;CACjF,CAAC;AAEF,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;AAC1D,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACtB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,sBAAsB,GAA8C;IACxE,cAAc,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC;CACrE,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,MAAM,UAAU,gBAAgB,CAAC,IAAc;IAC7C,MAAM,CAAC,UAAU,EAAE,GAAG,cAAc,CAAC,GAAG,IAAI,CAAC;IAE7C,IAAI,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACnD,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,6BAA6B,cAAc,CAA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