@keyou007/agent-bot 0.1.27-alpha.3 → 0.1.27-alpha.5

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 (159) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +102 -18
  3. package/README.zh.md +102 -18
  4. package/assets/agent-bot.ico +0 -0
  5. package/assets/roboto-mono-OFL.txt +93 -0
  6. package/assets/roboto-mono-latin.woff2 +0 -0
  7. package/assets/workspace-drafts.js +88 -0
  8. package/assets/workspace-sessions.js +2676 -243
  9. package/assets/workspace.css +553 -44
  10. package/assets/workspace.js +3429 -327
  11. package/dist/cli/SelfUpdateObserver.js +124 -0
  12. package/dist/cli/SelfUpdateObserver.js.map +1 -0
  13. package/dist/cli/SelfUpdateRunner.js +267 -70
  14. package/dist/cli/SelfUpdateRunner.js.map +1 -1
  15. package/dist/cli/SelfUpdater.js +54 -15
  16. package/dist/cli/SelfUpdater.js.map +1 -1
  17. package/dist/cli/controlProtocol.js.map +1 -1
  18. package/dist/cli/help.js +6 -0
  19. package/dist/cli/help.js.map +1 -1
  20. package/dist/cli.js +85 -6
  21. package/dist/cli.js.map +1 -1
  22. package/dist/codex/CodexEventMapper.js +29 -5
  23. package/dist/codex/CodexEventMapper.js.map +1 -1
  24. package/dist/codex/CodexRuntime.js +3 -0
  25. package/dist/codex/CodexRuntime.js.map +1 -1
  26. package/dist/feishu/CardRenderer.js +45 -13
  27. package/dist/feishu/CardRenderer.js.map +1 -1
  28. package/dist/feishu/ConsoleFeishuClient.js +4 -0
  29. package/dist/feishu/ConsoleFeishuClient.js.map +1 -1
  30. package/dist/feishu/FeishuMarkdown.js +2 -14
  31. package/dist/feishu/FeishuMarkdown.js.map +1 -1
  32. package/dist/feishu/FeishuMessageClient.js +9 -0
  33. package/dist/feishu/FeishuMessageClient.js.map +1 -1
  34. package/dist/feishu/FeishuTurnPresenter.js +51 -22
  35. package/dist/feishu/FeishuTurnPresenter.js.map +1 -1
  36. package/dist/index.js +47 -12
  37. package/dist/index.js.map +1 -1
  38. package/dist/local-files/DiagramPreview.js +11 -6
  39. package/dist/local-files/DiagramPreview.js.map +1 -1
  40. package/dist/local-files/GitDiffPreview.js +106 -14
  41. package/dist/local-files/GitDiffPreview.js.map +1 -1
  42. package/dist/local-files/LiveMarkup.js +104 -0
  43. package/dist/local-files/LiveMarkup.js.map +1 -0
  44. package/dist/local-files/LocalFileViewerServer.js +141 -122
  45. package/dist/local-files/LocalFileViewerServer.js.map +1 -1
  46. package/dist/local-files/MarkdownExport.js +54 -0
  47. package/dist/local-files/MarkdownExport.js.map +1 -0
  48. package/dist/local-files/PreviewCodeFont.js +11 -0
  49. package/dist/local-files/PreviewCodeFont.js.map +1 -0
  50. package/dist/local-files/PreviewSyntaxHighlight.js +73 -0
  51. package/dist/local-files/PreviewSyntaxHighlight.js.map +1 -1
  52. package/dist/local-files/ToolCommandDisplay.js +111 -0
  53. package/dist/local-files/ToolCommandDisplay.js.map +1 -0
  54. package/dist/local-files/TurnPreviewPage.js +53 -276
  55. package/dist/local-files/TurnPreviewPage.js.map +1 -1
  56. package/dist/local-files/WorkspaceFileEvents.js +206 -0
  57. package/dist/local-files/WorkspaceFileEvents.js.map +1 -0
  58. package/dist/local-files/WorkspaceFiles.js +79 -3
  59. package/dist/local-files/WorkspaceFiles.js.map +1 -1
  60. package/dist/local-files/WorkspaceImages.js +43 -0
  61. package/dist/local-files/WorkspaceImages.js.map +1 -0
  62. package/dist/local-files/WorkspacePage.js +24 -6
  63. package/dist/local-files/WorkspacePage.js.map +1 -1
  64. package/dist/local-files/WorkspaceSessions.js +1153 -104
  65. package/dist/local-files/WorkspaceSessions.js.map +1 -1
  66. package/dist/local-files/WorkspaceTimeline.js +129 -0
  67. package/dist/local-files/WorkspaceTimeline.js.map +1 -0
  68. package/dist/presentation/OutboundRouter.js +15 -6
  69. package/dist/presentation/OutboundRouter.js.map +1 -1
  70. package/dist/presentation/TurnStateReducer.js +31 -22
  71. package/dist/presentation/TurnStateReducer.js.map +1 -1
  72. package/dist/proxy/ProxySessionController.js +335 -113
  73. package/dist/proxy/ProxySessionController.js.map +1 -1
  74. package/dist/proxy/TaskMetadata.js +86 -0
  75. package/dist/proxy/TaskMetadata.js.map +1 -0
  76. package/dist/scheduling/ScheduleCards.js +10 -4
  77. package/dist/scheduling/ScheduleCards.js.map +1 -1
  78. package/dist/scheduling/ScheduleCommand.js +4 -0
  79. package/dist/scheduling/ScheduleCommand.js.map +1 -1
  80. package/dist/scheduling/ScheduledTaskStore.js +53 -12
  81. package/dist/scheduling/ScheduledTaskStore.js.map +1 -1
  82. package/dist/scheduling/types.js +19 -4
  83. package/dist/scheduling/types.js.map +1 -1
  84. package/dist/state/StateStore.js +213 -23
  85. package/dist/state/StateStore.js.map +1 -1
  86. package/dist/state/TurnPreviewJournal.js +157 -39
  87. package/dist/state/TurnPreviewJournal.js.map +1 -1
  88. package/dist/state/TurnToolText.js +172 -0
  89. package/dist/state/TurnToolText.js.map +1 -0
  90. package/dist/state/migrations.js +4 -0
  91. package/dist/state/migrations.js.map +1 -1
  92. package/dist/supervision/SafeRestartNotifier.js +9 -6
  93. package/dist/supervision/SafeRestartNotifier.js.map +1 -1
  94. package/dist/terminal/TerminalPage.js +5 -0
  95. package/dist/terminal/TerminalPage.js.map +1 -1
  96. package/dist/updates/AutomaticUpdatePreparer.js +63 -12
  97. package/dist/updates/AutomaticUpdatePreparer.js.map +1 -1
  98. package/dist/updates/ManualUpdateController.js +7 -2
  99. package/dist/updates/ManualUpdateController.js.map +1 -1
  100. package/dist/utils/promptAttachments.js +22 -0
  101. package/dist/utils/promptAttachments.js.map +1 -0
  102. package/dist/utils/promptQuotes.js +47 -0
  103. package/dist/utils/promptQuotes.js.map +1 -0
  104. package/dist/utils/toolTimestamp.js +6 -0
  105. package/dist/utils/toolTimestamp.js.map +1 -0
  106. package/npm-shrinkwrap.json +2 -2
  107. package/package.json +1 -1
  108. package/skills/agent-bot/SKILL.md +23 -2
  109. package/src/cli/SelfUpdateObserver.ts +111 -0
  110. package/src/cli/SelfUpdateRunner.ts +271 -85
  111. package/src/cli/SelfUpdater.ts +53 -16
  112. package/src/cli/controlProtocol.ts +1 -0
  113. package/src/cli/help.ts +6 -0
  114. package/src/cli.ts +71 -5
  115. package/src/codex/CodexEventMapper.ts +25 -5
  116. package/src/codex/CodexRuntime.ts +4 -0
  117. package/src/feishu/CardRenderer.ts +48 -13
  118. package/src/feishu/ConsoleFeishuClient.ts +6 -1
  119. package/src/feishu/FeishuMarkdown.ts +2 -14
  120. package/src/feishu/FeishuMessageClient.ts +10 -0
  121. package/src/feishu/FeishuTurnPresenter.ts +49 -16
  122. package/src/feishu/types.ts +1 -0
  123. package/src/index.ts +47 -12
  124. package/src/local-files/DiagramPreview.ts +11 -6
  125. package/src/local-files/GitDiffPreview.ts +107 -15
  126. package/src/local-files/LiveMarkup.ts +103 -0
  127. package/src/local-files/LocalFileViewerServer.ts +128 -125
  128. package/src/local-files/MarkdownExport.ts +54 -0
  129. package/src/local-files/PreviewCodeFont.ts +12 -0
  130. package/src/local-files/PreviewSyntaxHighlight.ts +75 -0
  131. package/src/local-files/ToolCommandDisplay.ts +104 -0
  132. package/src/local-files/TurnPreviewPage.ts +58 -261
  133. package/src/local-files/WorkspaceFileEvents.ts +186 -0
  134. package/src/local-files/WorkspaceFiles.ts +72 -5
  135. package/src/local-files/WorkspaceImages.ts +35 -0
  136. package/src/local-files/WorkspacePage.ts +24 -6
  137. package/src/local-files/WorkspaceSessions.ts +1057 -111
  138. package/src/local-files/WorkspaceTimeline.ts +135 -0
  139. package/src/presentation/OutboundRouter.ts +18 -4
  140. package/src/presentation/TurnStateReducer.ts +30 -19
  141. package/src/presentation/turnViewTypes.ts +3 -1
  142. package/src/proxy/ProxySessionController.ts +336 -96
  143. package/src/proxy/TaskMetadata.ts +81 -0
  144. package/src/runtime/types.ts +2 -1
  145. package/src/scheduling/ScheduleCards.ts +10 -4
  146. package/src/scheduling/ScheduleCommand.ts +4 -0
  147. package/src/scheduling/ScheduledTaskStore.ts +56 -9
  148. package/src/scheduling/types.ts +27 -4
  149. package/src/state/StateStore.ts +227 -24
  150. package/src/state/TurnPreviewJournal.ts +155 -38
  151. package/src/state/TurnToolText.ts +156 -0
  152. package/src/state/migrations.ts +4 -0
  153. package/src/supervision/SafeRestartNotifier.ts +9 -6
  154. package/src/terminal/TerminalPage.ts +5 -0
  155. package/src/updates/AutomaticUpdatePreparer.ts +52 -11
  156. package/src/updates/ManualUpdateController.ts +8 -3
  157. package/src/utils/promptAttachments.ts +27 -0
  158. package/src/utils/promptQuotes.ts +48 -0
  159. package/src/utils/toolTimestamp.ts +5 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,38 @@ The project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.27-alpha.5] - 2026-12-06
10
+
11
+ - Add structured Workspace references and editable annotations for files, directories, selected lines, webpages and conversations. Preserve their source information through queued and scheduled Prompts, including reference-only submissions.
12
+
13
+ - Send selected queued messages immediately without losing attachments, moving other queue entries or changing future schedule times. Keep dispatching rows visible until their chat entries appear, preserve drafts on failure, and guard retries against duplicate submissions.
14
+
15
+ - Persist Workspace messages and progress locally before waiting for Feishu delivery. Start or steer the Agent independently of the Feishu copy, retain user-message timestamps, and reconstruct compacted execution history from the saved preview journal without mixing later continuation Turns.
16
+
17
+ - Open recorded tool patches in dedicated Diff tabs with original/new line numbers and syntax highlighting. Switch between the saved patch and current Git scopes, and toggle rendered Markdown and line-numbered source in the same tab.
18
+
19
+ - Refine Workspace navigation with pinned tabs, address-segment browsing, independent task file panels, medium-width task docking, fullscreen and file-pane expansion, preview text sizing, and improved reading-position restoration.
20
+
21
+ - Show live token usage and completed-Turn timing/usage details, improve thinking summaries and line-numbered code blocks, preserve image dimensions during loading, and streamline selection actions, keyboard shortcuts and tooltips.
22
+
23
+ ## [0.1.27-alpha.4] - 2026-12-05
24
+
25
+ - Expand Workspace task workflows with deferred new-task creation, model and reasoning selection, turn-scoped Fork/Reset, shared queue editing, task metrics, and Markdown answer copy/download/share actions. Keep the original Feishu task and conversation routing intact.
26
+
27
+ - Support Workspace draft images, ordinary files and selection annotations, including attachment-only submissions. Preserve drafts across refreshes and safe restarts, retain request IDs on retries, and reject steering when its original Turn has ended.
28
+
29
+ - Manage the same Agent Bot schedules from Workspace, including recurrence, start/end windows, attachments, run history and shared queue behavior. Validate attachments before dispatch and keep the default latest-start deadline at sixty minutes.
30
+
31
+ - Stream commentary and execution groups into existing Workspace rows, preserve reading positions and expanded tools, and page large command/output/error logs on demand. Reconcile missed Turns without displaying a live tail across a history gap.
32
+
33
+ - Refresh file trees and visible previews through bounded caches and lightweight change notifications, with conservative preloading on mobile and metered connections. Add directory tabs, file/command search, embedded-terminal search shortcuts and task-directory metadata with an existing-database migration.
34
+
35
+ - Share live Markdown updates, answer export controls and readable tool-command formatting between previews. Preserve recorded file patches and reliable tool timestamps, improve syntax highlighting and code fonts, and avoid fabricating durations from zero timestamps.
36
+
37
+ - Show a compact plain-text model and reasoning line before the Agent waiting message on new thinking cards. Simplify safe-restart blockers to task titles and current Prompts, mark queued image attachments, and improve changed-file labels and local image links.
38
+
39
+ - Make CLI and Feishu updates report preparation, installation, service-readiness and rollback results. Use a SQLite-free observer on Windows, verify recorded old processes exit before replacing native modules, restore and start the previous version on failure, and preserve guarded update-recovery checkpoints without overriding user Stop.
40
+
9
41
  ## [0.1.27-alpha.3] - 2026-12-02
10
42
 
11
43
  - Add previous/next change-block arrows to standalone Git diff previews. Jump without reloading, keep horizontal scrolling, and record the selected block in the URL.
package/README.md CHANGED
@@ -10,6 +10,8 @@ Use local Codex, TraeX, and compatible ACP agents through Feishu.
10
10
 
11
11
  Agent Bot runs on your computer and connects a Feishu bot to your local coding agents. Send a message to start working; the bot updates a progress card while the agent runs and sends the final answer as Markdown.
12
12
 
13
+ While a new thinking card is connecting or waiting for the first progress update, a compact plain-text line shows `Model: gpt-6.2-sol · xhigh` above the waiting text, which names the Agent. Provider and repeated field labels are omitted; unspecified model/effort values show Default/Auto. The placeholder settings disappear when progress arrives; later settings changes do not relabel a running or completed Turn.
14
+
13
15
  Cards, task lists and Turn Preview show **Unverified** when execution cannot be confirmed. Connection loss is not a failed or completed task; a later verified result updates the same card. Preview connectivity and final-message delivery are tracked separately from execution.
14
16
 
15
17
  ## What You Can Do
@@ -118,11 +120,11 @@ agentbot server restart
118
120
 
119
121
  It waits for currently running Agent tasks to finish before restarting, allowing every task to complete normally. When an Agent invokes the CLI, the status card returns to its source task; from an ordinary terminal it goes to the configured user's private chat. Add `--task <task>` to override either destination. When triggered from a Feishu topic, both restart status and the post-restart startup card return to that topic.
120
122
 
121
- Safe restart also waits for incoming-message handling, including acknowledgement, attachment downloads and card actions. It rechecks activity after sending restart notifications, then pauses dispatch synchronously. Messages received during the final shutdown handoff are saved with their original routing and attachments. On startup, ordinary messages confirmed not yet processed are recovered only within twenty minutes, with unchanged task/Stop boundaries and no newer message in that conversation or shared task. These guards are rechecked after acknowledgement and attachment downloads; a provably unprocessed Stop is applied before Turn recovery. Already handed-off work uses normal Turn/queue recovery; ambiguous or expired messages are not replayed and receive a retry notice. Legacy deduplication records without a saved message body are never replayed.
123
+ Safe restart also waits for incoming-message handling, including acknowledgement, attachment transfers and card actions. Feishu and Workspace remain usable while a safe restart is waiting. New manual messages delay the restart until their work is done and the quiet window has elapsed again. After sending restart notifications, Agent Bot rechecks activity and only then pauses dispatch. Feishu messages received during the final shutdown handoff are saved with their original routing and attachments; Workspace requests not yet accepted can be retried after the service returns. On startup, ordinary messages confirmed not yet processed are recovered only within twenty minutes, with unchanged task/Stop boundaries and no newer message in that conversation or shared task. These guards are rechecked after acknowledgement and attachment downloads; a provably unprocessed Stop is applied before Turn recovery. Already handed-off work uses normal Turn/queue recovery; ambiguous or expired messages are not replayed and receive a retry notice. Legacy deduplication records without a saved message body are never replayed.
122
124
 
123
125
  The safe-restart card offers `Cancel` and `ForceRestart`. Clicking `ForceRestart` immediately starts the pending restart without waiting for tasks, final deliveries, or the quiet window, and may interrupt running tasks. If a prepared update is waiting, it applies that update and restarts immediately. Cancelled, superseded, or already-triggered plans cannot be forced again.
124
126
 
125
- Each displayed running task also has a `Stop` action that interrupts only that task, including tasks in other conversations. The card refreshes automatically as tasks stop; the safe restart continues waiting for the remaining blockers.
127
+ Each displayed running task shows its bold title and current Prompt instead of its task ID; the Prompt is collapsed to one line and truncated to 40 characters with `...`. A `Stop` action interrupts only that task, including tasks in other conversations. The card refreshes automatically as tasks stop; the safe restart continues waiting for the remaining blockers.
126
128
 
127
129
  The card also lists blocking terminals by their eight-character token, directory, activity and browser-connection state, with the current command when available. A terminal is active if its connected page is in the foreground, a command is known to be running, or it had input/output in the last 30 seconds; an inactive Shell still blocks restart. PowerShell with PSReadLine reports accepted commands and prompt-idle state; other Shells show the foreground process where available, otherwise **unknown**, not a guessed command. Command text is shortened on the card. Only the configured owner can click **End Terminal** to interrupt that Shell; safe restart waits for its exit and all remaining blockers. Stale or cancelled cards cannot end terminals.
128
130
 
@@ -148,7 +150,15 @@ agentbot update
148
150
 
149
151
  Stable installations check the stable channel by default; Alpha installations stay on the Alpha channel. Use `--stable`, `--alpha`, or `--version <version>` to choose explicitly. When the service is running, Agent Bot sends a safe-restart card, waits for active tasks to finish, updates, and restores the service automatically. If no task is active, the update restarts the service immediately. Source checkouts and `npm link` installations are never modified by self-update.
150
152
 
151
- On Windows, Agent Bot hides the internal npm and Node command windows used for update checks, installation, and validation; command output and errors remain captured.
153
+ `agentbot update` displays preparation and installation stages and waits for the final installation/service-readiness result. A failed or rolled-back update exits with a nonzero status and shows the actual failure reason. `--json` keeps the final result on stdout and progress on stderr. Use `--background` to return after scheduling; the output includes the log/result paths. Agent-hosted invocations also return after scheduling so the invoking task can finish instead of blocking its own safe update.
154
+
155
+ On Windows, Agent Bot invokes npm's JavaScript entry directly without shell argument expansion, preserving paths containing spaces or special characters. Internal command windows stay hidden, while progress and errors remain visible. The independent observer never opens SQLite. After the safe handoff begins, the updater allows the recorded old service, Agent and preparation processes 10 seconds to exit, then force-terminates only those still running and verifies their exit before replacing native modules. The old Supervisor is terminated first to prevent it from restarting the old Worker; the updater never kills its own process tree or unrelated instances.
156
+
157
+ An attempted installation starts Agent Bot even if it was previously offline. Success starts the new version; failure rolls back and starts the previous package or the complete backup. The handoff saves recovery checkpoints for unfinished tasks, allowing update-interrupted tasks to recover even beyond the normal 20-minute window. Recovery retains the original conversation, checks remote execution before continuing, and never overrides a user Stop or blindly repeats completed work. If the OS denies termination or no valid package can start, the updater reports that failure rather than claiming recovery succeeded.
158
+
159
+ If downloading, candidate installation, validation or backup fails after acquiring the update lock, the current version is safely restarted (or started if offline) and the preparation failure remains visible. Invalid requests, unsupported installations and another update's lock do not trigger a restart.
160
+
161
+ The Feishu `/update` card shows preparation stages in place. During installation, initialization, service startup or rollback, the standalone updater continues updating the same card even while the service is offline. Failures include the actual diagnostic and rollback result; notification errors are recorded in the local update log and do not trigger an otherwise unnecessary rollback.
152
162
 
153
163
  While the Feishu service is running, automatic updates check only npm's stable `latest` once daily at a persisted random time between 10:00 and 17:00 in the server's local timezone. A newer version sends the configured owner one private card containing that version's release notes, a 60-second countdown, and **Cancel this update**. No cancellation means the package is downloaded and validated in the background, then installed and restarted only after active tasks, final-message deliveries, and the quiet inbound window are clear. Existing rollback protection applies. Each version is notified only once per Profile; cancelling skips that version even after restart. Interrupted countdowns restart at 60 seconds on the same card, without sending another reminder.
154
164
 
@@ -237,6 +247,9 @@ agentbot task goal [task] [action-or-objective]
237
247
  agentbot task turns [task]
238
248
  agentbot task reset [task] <Turn ID>
239
249
  agentbot task dir [task] [directory]
250
+ agentbot task metadata [--task <task>] directory add <path> [--user-directory]
251
+ agentbot task metadata [--task <task>] directory list
252
+ agentbot task metadata [--task <task>] directory remove <id>
240
253
  agentbot task file [task] <path>
241
254
  agentbot task title [task] "<title>"
242
255
  agentbot task stop [task]
@@ -295,7 +308,7 @@ Renaming a Feishu group updates its currently bound task title, even when you re
295
308
 
296
309
  Private chats, group timelines, and topics keep separate current tasks. A new topic remains unbound while you use commands such as `/help`, `/status`, or `/sessions`; those commands do not create a hidden fork. Its first ordinary message forks from the mapped source turn, or starts a fresh task when no source turn can be identified. `/new` starts a fresh topic task, while `/sessions` can bind an existing task. Commands that require a current task explain how to bind one instead of operating on the parent conversation. Ordinary messages sent while a task is running add instructions to that turn; use `/queue` when the message should run afterward as a separate turn.
297
310
 
298
- Images attached to `/queue`, `/nosteer`, or `/ns` messages are saved with the queued Prompt and passed to the Agent when it runs, including after an Agent Bot restart. If an image cannot be downloaded, the message is not silently queued as text only.
311
+ Images attached to `/queue`, `/nosteer`, or `/ns` messages are saved with the queued Prompt and passed to the Agent when it runs, including after an Agent Bot restart. The queue card appends `[图片]` after Prompts containing images, including when the text is truncated; text-only Prompts have no marker. If an image cannot be downloaded, the message is not silently queued as text only.
299
312
 
300
313
  For delayed-message diagnosis, existing incoming-message audits include the Feishu creation time, SDK callback time, and event ID when available. Only newly accepted messages delayed by at least one minute emit a warning, without message content; normal messages and duplicate deliveries add no log lines. These diagnostics do not reject or reorder messages, and SDK callback time does not identify when the WebSocket frame reached the host.
301
314
 
@@ -349,7 +362,7 @@ agentbot schedule edit <schedule-id> --cron "0 10 * * 1-5" --prompt "Check the p
349
362
  agentbot schedule delete <schedule-id>
350
363
  ```
351
364
 
352
- Creation/editing saves a draft and sends a confirmation card to the original conversation. The owner must confirm before activation. Inside an Agent Bot Agent, `add` may omit `--task`. Slash commands accept the same operations/options without `--task`. Cron has five fields (minute precision); `--at` requires an ISO timestamp with an offset. Each plan stores an IANA timezone, defaulting to the host's timezone at creation. Prompts are limited to 1,000 characters to match Lark forms. `edit` replaces the full specification. CLI lists return up to 100 plans; Lark lists are paginated.
365
+ CLI and Feishu creation or editing saves a draft and sends a confirmation card to the original conversation. The owner must confirm before activation. Inside an Agent Bot Agent, `add` may omit `--task`. Slash commands accept the same operations and options without `--task`. Cron has five fields at minute precision. `--at` takes an ISO timestamp with an offset, and recurring plans accept optional `--starts-at` and `--ends-at` in the same format. Each plan stores an IANA timezone, defaulting to the host's timezone at creation. CLI and Workspace support Prompts up to 24,000 characters. Feishu's form accepts up to 1,000 characters of replacement text and can retain a longer Prompt. `edit` replaces the timing and Prompt specification and retains saved attachments. CLI lists return up to 100 plans. Feishu lists are paginated.
353
366
 
354
367
  Scheduled Prompts enter the persistent queue as independent Turns, never steering active work. When execution starts, Agent Bot first posts the original Prompt to the plan's original conversation/topic, then sends the thinking card and submits the Turn. Nothing is posted while merely waiting in the queue; recovery and approved-plan continuation do not repost the Prompt. If posting the Prompt fails, no Turn is submitted and enabled plans are paused. Each plan permits one queued/running/unconfirmed occurrence; overlaps are skipped. `--max-delay <minutes>` sets the latest start relative to the scheduled time (default 60). Before submission Agent Bot rechecks expiration, pause/delete, owner, target, and safe-restart state. Pause/delete cancels queued/preparing work, not submitted work; use normal Stop for active work. Run-now does not change the calendar.
355
368
 
@@ -378,39 +391,106 @@ Local commands run in independent background processes without a time limit, so
378
391
 
379
392
  ### Project Workspace
380
393
 
394
+ Click the magnifying glass to the left of the Workspace title to open the command palette. It shows common actions followed by recently visited files. Press **Ctrl+P** or **⌘+P** anywhere in Workspace to go straight to file search. Type a file name or path to search the main directory and the task’s open directory tabs. The browser saves recent files for each task, including files whose tabs have been closed. Use **↑ / ↓** to select an entry, **Enter** to activate it and **Esc** to close.
395
+
396
+ Press **Ctrl+Shift+P** or **⌘+Shift+P**, or type **`>`** at the start of the palette input, to search Workspace commands. The browser remembers your last five commands and shows them above the full list. Searching shows matching recent and common commands above matches from the full list. With Chinese as the browser’s preferred language, command names are shown and searchable in both Chinese and English. Other browser languages use English.
397
+
398
+ Workspace follows the system appearance until you click the sun or moon in the upper right. The browser remembers your light or dark preference across tasks and reloads.
399
+
381
400
  The file-tree toggle belongs to the toolbar below the tabs and appears only in file/Diff previews. New-tab, web and terminal content views use the whole content area without the file tree. Returning to a file/Diff keeps its tree width, collapse preference and cached content; an empty workspace still exposes the file browser so closing the last collapsed file cannot hide the only file-selection entry.
382
401
 
383
- The locate button before Refresh expands and centers the current file in its tree without rereading its preview or changing the reading position. Ordinary files use the file tree; Diff tabs use Git changes, including deleted files. Locating clears the selected list's filter and loads needed directory pages, retaining expansion/page/scroll state locally in the browser, scoped to the project rather than the signed URL. Errors offer Retry, and non-file tabs disable the button.
402
+ To go to a specific line in a project file, enter a path such as `src/file.ts:23` in the address bar. Enter `:23` to jump within the open file. Existing `#L23` links also work. In file and Diff previews, click a path segment to browse siblings and choose a directory to display its contents. Selecting a file opens it. When focus leaves the address bar, it returns to the open file's path and line number. Double-click the path to type an address.
403
+
404
+ The locate button at the right edge of the file-list toolbar expands and centers the current file in its tree without rereading its preview or changing the reading position. Ordinary files use the file tree; Diff tabs use Git changes, including deleted files. Locating clears the selected list's filter and loads needed directory pages, retaining expansion/page/scroll state locally in the browser, scoped to the project rather than the signed URL. Errors offer Retry, and non-file tabs disable the button.
384
405
 
385
406
  The uncommitted-changes view uses an expandable directory tree, showing only changed files. Trees with at most 300 file/directory metadata records are preloaded in one response; larger projects load direct children on expansion. Directories show a compact count of all changed files in their subtree, including unopened directories; filtering and pagination retain the full count rather than counting only visible matches. Directories without changes have no badge. In both trees, expanding a folder automatically follows a chain containing only a single child directory, stopping at files, branches or a read failure. The top badge still counts all project changes, including unopened folders. Renamed files appear under their current path, with the original path in the tooltip. Loaded directories retain their expanded state through navigation and refresh, including manually collapsed child folders.
386
407
 
387
- Navigation, refresh, back, download and tab-close actions use lightweight SVG icons with tooltips and accessible labels, without an icon-library dependency. Uncommitted changes have a count badge and single-character Git status: `U` for untracked, `M` for modified, `D` for deleted and `A` for staged additions. Renames, copies and type changes retain `R`, `C` and `T`; conflicts use `!`. Deletion takes precedence in mixed states, followed by the index status and then the worktree status. Full staged and unstaged descriptions remain in tooltips and accessible labels.
408
+ Navigation, back, download and tab-close actions use lightweight SVG icons with tooltips and accessible labels, without an icon-library dependency. Uncommitted changes have a count badge and single-character Git status: `U` for untracked, `M` for modified, `D` for deleted and `A` for staged additions. Renames, copies and type changes retain `R`, `C` and `T`; conflicts use `!`. Deletion takes precedence in mixed states, followed by the index status and then the worktree status. Full staged and unstaged descriptions remain in tooltips and accessible labels.
409
+
410
+ Phones use a segmented Tasks/Chat/Files switch. At viewport widths from 651 to 950 pixels, hover over the far-left Tasks button to slide the task list over the current view. Click to dock the list on the left and click again to collapse it. Drag the right edge to resize the list in either state. The browser remembers its width and docked state. The Chat and Files buttons sit together on the right. Switching areas keeps each pane mounted with its scrolling and UI state. Files restores the previous list or detail, active tab, and Diff scope. Code previews use Roboto Mono and syntax highlighting. Line numbers reserve space for at least two digits and expand to fit the largest displayed number. Ordinary Markdown previews render headings, lists, tables, code fences and diagrams instead of showing source. Local file links open inside the workspace and images keep the same project-scoped authorization.
388
411
 
389
- The Tasks/Chat/Files switch is a joined rounded segmented control with a raised selected item. Switching areas keeps each pane mounted and restores its scrolling and existing UI state; Files returns to its previous list or detail, active tab and Diff scope without rereading the preview. Code previews use syntax highlighting; ordinary Markdown previews render headings, lists, tables, code fences and diagrams instead of showing source. Local file links open inside the workspace and images keep the same project-scoped authorization.
412
+ Click text in a code, Diff, or rendered Markdown preview to place a reading caret and highlight its line. You can still drag to select text for copying or annotation.
390
413
 
391
- Diff previews show the complete target file, including unchanged leading, trailing and between-edit context. Deleted old lines remain inline in red and added new lines in green, with syntax highlighting for both versions and old/new line numbers. Markdown in Diff stays source code. All compares HEAD to the worktree, Staged compares HEAD to the index snapshot, and Unstaged compares the index to the worktree; a path-only rename shows unchanged content rather than marking the whole file as rewritten. A newly opened Diff automatically focuses its first change block; returning to an existing tab or restoring a saved URL keeps its reading position. Up/down arrows before the scope selector jump to the previous/next contiguous change block without rereading the file, preserve horizontal scrolling and record the location in the URL and page history. Change blocks are centered in the reader, within the file's scroll boundaries. Unavailable directions are disabled. The file-with-arrow action opens the current file outside Diff mode.
414
+ Use the file toolbar to switch between rendered Markdown and its line-numbered source in the same tab. The selected view is saved with the tab.
392
415
 
393
- Opening files, selecting tabs, changing Diff scope, switching file/change lists and switching workspace areas create in-page history entries. Browser Back/Forward and phone Back restore the previous view and reading position without closing tabs, skipping records for closed tabs; returning past the workspace's initial view leaves the page normally. The address-bar navigation buttons stay inside the workspace and skip list/area-only entries. Refresh, pagination, folder expansion and scrolling update the current history entry rather than adding entries. The URL query records the active area, list and file/Diff scope; its fragment records tabs, file reading positions, layout and filter queries. Directory expansion, loaded directory pages, tree scrolling and filtered-directory collapse are saved locally in the browser, not in the URL. Reopening the same URL restores the linked view without relying on the old browser history. If the selected tree has no local record, the workspace locates the current file, loading its parent directories and necessary pages without switching the selected pane or reader; filtered views keep their query. An intentionally collapsed local tree is preserved. Old URL directory-expansion data is ignored. URLs store only navigation and positions, not file contents or chat text; file and Git content is still read from the current project rather than a historical snapshot.
416
+ Diff previews show the complete target file, including unchanged leading, trailing and between-edit context. Deleted old lines remain inline in red and added new lines in green, with syntax highlighting for both versions and old/new line numbers. Markdown in Diff stays source code. All compares HEAD to the worktree, Staged compares HEAD to the index snapshot, and Unstaged compares the index to the worktree; a path-only rename shows unchanged content rather than marking the whole file as rewritten. A newly opened Diff automatically focuses its first change block; returning to an existing tab or restoring a saved URL keeps its reading position. Up/down arrows before the scope selector jump to the previous/next contiguous change block without rereading the file, preserve horizontal scrolling and record the location in the URL and page history. Each jump centers the block's first line within the file's scroll boundaries. Unavailable directions are disabled. The file-with-arrow action opens the current file outside Diff mode.
417
+
418
+ Opening files, selecting tabs, changing Diff scope, switching file/change lists and switching workspace areas create in-page history entries. Browser Back/Forward and phone Back restore the previous view and reading position without closing tabs, skipping records for closed tabs; returning past the workspace's initial view leaves the page normally. The address-bar navigation buttons stay inside the workspace and skip list/area-only entries. Back and Forward between line addresses in the same file jump to the recorded line. Manual scrolling updates the tab’s reading position without creating a history entry. Refresh, pagination and folder expansion also leave the history length unchanged. The URL query records the active area, list and file/Diff scope; its fragment records tabs, file reading positions, layout and filter queries. Directory expansion, loaded directory pages, tree scrolling and filtered-directory collapse are saved locally in the browser, not in the URL. Reopening the same URL restores the linked view without relying on the old browser history. If the selected tree has no local record, the workspace locates the current file, loading its parent directories and necessary pages without switching the selected pane or reader; filtered views keep their query. An intentionally collapsed local tree is preserved. Old URL directory-expansion data is ignored. URLs store only navigation and positions, not file contents or chat text; file and Git content is still read from the current project rather than a historical snapshot.
394
419
 
395
420
  On desktop, a compact project/task sidebar sits on the left, chat uses the center, and the file workspace occupies the right. File tabs and the path/action toolbar span the top of the file workspace; content is on the left and the independent file/change tree is on the far right. The tree's segmented switch and refresh action stay in its own header, and selected file tabs are highlighted. Selecting a visible tab keeps the strip in place and reuses its DOM; only offscreen targets are revealed. The mouse wheel over the tab strip scrolls it horizontally. Widening the workspace preserves the left scroll position, revealing more tabs on the right first; it shifts left only once the rightmost tab is reached. Translucent overlay scrollbars take no layout width or height and appear on hover, during scrolling or while dragging. Clicking a track seeks to that position; dragging its thumb scrolls the corresponding region, including nested code and table previews, without changing tabs or the other scroll axis. Ordinary thumbs grow from 4 to 8 pixels when the pointer enters their 12-pixel hit area. The tab strip uses a separate 2-pixel bar at its top edge with a smaller hit area and lower opacity, and never grows on hover. Pointer capture keeps a drag working outside the track; release, cancellation, hiding or unmounting ends the drag. Enabled buttons, tabs and directory rows have hover feedback in both themes. Hovering highlights the entire tab; the close button uses a slightly stronger highlight when hovered, while the tab name adds no separate highlight. Tablet file views keep content and the right-hand tree side by side.
396
421
 
397
- Desktop task/chat/workspace dividers and the reader/tree divider support dragging to resize, or keyboard Left/Right after focusing. Dividers remain 1-pixel lines with wider transparent hit areas and subtle hover/drag highlighting. The header button on the left collapses the task sidebar; the button on the right collapses the entire file workspace, letting chat fill the freed space. Both outer panels can be collapsed independently and reopened from the header without discarding their content or reading positions. The file-preview toolbar button still controls only the inner file tree. Header collapse controls are hidden on small screens, where the Tasks/Chat/Files switch keeps its existing full-width behavior. Widths and collapse states are stored in the URL without changing phone full-width navigation. The tree header has a per-list file/path filter. Small trees filter locally; large searches scan at most 20000 metadata records or one second and return at most 300 matches, explicitly reporting partial results. Use a directory prefix such as src/name to narrow a large search. Clearing the filter restores the normal tree and its manually expanded/collapsed state.
422
+ Desktop task/chat/workspace dividers and the reader/tree divider support dragging to resize, or keyboard Left/Right after focusing. Dividers remain 1-pixel lines with wider transparent hit areas and subtle hover/drag highlighting. In the wide three-pane layout, the left header button collapses the task sidebar and the right header button collapses the entire file workspace, letting chat fill the freed space. Both outer panels can be collapsed independently and reopened from the header with their content and reading positions intact. When a wide layout showing a conversation shrinks to medium width, chat stays visible, including when files were open alongside it. Widening preserves the active pane and reopens the file workspace if Files is selected. The file-preview toolbar button controls the inner file tree. On wide screens, the expand button beside the file address hides chat to give the file workspace more room. Click it again to restore chat. The fullscreen button beside the theme switch enters or exits browser fullscreen. Widths and collapse states are stored in the URL. The tree header has a per-list file/path filter. Small trees filter locally; large searches scan at most 20000 metadata records or one second and return at most 300 matches, explicitly reporting partial results. Use a directory prefix such as src/name to narrow a large search. Clearing the filter restores the normal tree and its manually expanded/collapsed state.
398
423
 
399
- The fixed **+** at the far right of the tab strip opens a launchpad with file, web and Terminal entries and a file-path/HTTP(S) address bar; phone list mode also offers **+** in the tree header. New tabs and newly opened files insert immediately to the right of the active tab. Launching a file, web page or Terminal from a new tab replaces that tab unless the file is already open. Opening an existing file or Diff, including a file entered in the address bar, selects its existing tab without moving it or adding another tab, and brings the full tab into view. File and Diff remain separate tabs; returning to an existing Diff keeps its selected scope. File and Diff tabs use their file-type icons, with a small Diff marker; launch tabs use a window icon, while the add button remains **+**. Web tabs prefer the public HTML page title and fall back to the full opened URL. Title reads use credential-free public HTTP(S) on standard ports, reject private/reserved addresses and unsafe redirects, and are bounded to five seconds and 64 KiB; they do not block the page or replace its iframe, and Refresh retries them. Other address-bar navigation stays in the current tab, including web URLs already open elsewhere. The compact close button leaves more room for tab names. Closing the active tab returns to the most recently viewed still-open tab and restores its reading position; closing a background tab leaves the current view unchanged. Tab visit order and stable tab identities are also saved in the URL. The address bar starts with Back/Forward buttons that traverse file anchors, still-open workspace tabs and the browser history of embedded pages without leaving the workspace. Navigation follows visit order, restoring only the target tab and its reading position while keeping the current layout, tree filters/expansion, tab order and background views. Closed tabs are skipped rather than reopened; the target tab is brought fully into view. Known empty directions are disabled, and new navigation after Back clears the Forward branch. Reloaded history entries and cross-origin frames may have unknown boundaries, so their controls remain available rather than guessing. Opening a saved URL directly still restores its tabs and layout. Pressing Enter submits the file path or URL in the active tab without a separate submit button, preserving its position; returning to a previous view reuses its cached content, including authenticated terminal connections. Browser-origin isolation still applies: the address bar records URLs opened through the workspace, not unreadable internal URLs of third-party frames. Addresses without a protocol use HTTPS for domains and HTTP for localhost or IP literals; explicit HTTP/HTTPS is preserved. The address bar offers up to 20 file candidates matched against complete project-relative paths, accepting forward/backslashes and mixed separators. Selecting a candidate opens that file; Enter without a selection opens a file only when its complete path and filename exist, regardless of suffix, otherwise it treats the input as a web address. Partial matches never implicitly select a file. Arrow keys select, Enter confirms and Escape dismisses. Small projects filter cached metadata; larger projects use bounded file-only searches and show partial-result or failure reasons. Matching does not change the file-tree filter, URL or navigation history. Files must stay within the signed project root, including absolute paths and local file URLs. Web previews retain sandboxing but use their normal website origins for storage/authentication, with forms, popups, downloads, dialogs, user-authorized Storage Access API requests and fullscreen/media/clipboard-write capabilities subject to browser permissions. Cross-origin isolation and blocked top-level navigation protect the workspace; privileged viewer HTML refuses framing, while local HTML/SVG/XML retains its response-level origin sandbox. Cross-origin web-frame requests reveal only the workspace origin, not the signed path. Site X-Frame-Options/CSP, third-party-cookie rules and HTTPS/HTTP mixed-content restrictions still apply; use **Open in new window** when embedding is blocked rather than bypassing those policies. Web/Terminal frames remain mounted across tab switches. Click **Open Terminal** to start a Shell using the current Workspace session, with no extra password or Feishu approval. Merely opening a saved Workspace URL does not start a new Shell. Closing a terminal tab disconnects its view; use the terminal’s Close action to end it, or let the 30-minute disconnect timeout expire. Logging out of Workspace ends the Shells started under that session. URLs save tab targets/instance IDs, filters and layout, never terminal passwords or browser grants.
424
+ The fixed **+** at the far right of the tab strip opens a launchpad with file, web and Terminal entries and a file-path/HTTP(S) address bar; phone list mode also offers **+** in the tree header. New tabs and newly opened files insert immediately to the right of the active tab. Launching a file, web page or Terminal from a new tab replaces that tab unless the file is already open. Opening an existing file or Diff, including a file entered in the address bar, selects its existing tab without moving it or adding another tab, and brings the full tab into view. File and Diff remain separate tabs; returning to an existing Diff keeps its selected scope. File and Diff tabs use their file-type icons, with a small Diff marker; launch tabs use a window icon, while the add button remains **+**. Web tabs prefer the public HTML page title and fall back to the full opened URL. Title reads use credential-free public HTTP(S) on standard ports, reject private/reserved addresses and unsafe redirects, and are bounded to five seconds and 64 KiB; they do not block the page or replace its iframe, and Refresh retries them. Other address-bar navigation stays in the current tab, including web URLs already open elsewhere. The compact close button leaves more room for tab names. Closing the active tab returns to the most recently viewed still-open tab and restores its reading position; closing a background tab leaves the current view unchanged. Tab visit order and stable tab identities are also saved in the URL. The address bar starts with Back/Forward buttons that traverse file anchors, still-open workspace tabs and the browser history of embedded pages without leaving the workspace. Navigation follows visit order, restoring only the target tab and its reading position while keeping the current layout, tree filters/expansion, tab order and background views. Closed tabs are skipped rather than reopened; the target tab is brought fully into view. Known empty directions are disabled, and new navigation after Back clears the Forward branch. Reloaded history entries and cross-origin frames may have unknown boundaries, so their controls remain available rather than guessing. Opening a saved URL directly still restores its tabs and layout. Pressing Enter submits the file path or URL in the active tab without a separate submit button, preserving its position; returning to a previous view reuses its cached content, including authenticated terminal connections. Browser-origin isolation still applies: the address bar records URLs opened through the workspace, not unreadable internal URLs of third-party frames. Addresses without a protocol use HTTPS for domains and HTTP for localhost or IP literals; explicit HTTP/HTTPS is preserved. The address bar offers up to 20 file candidates matched against complete project-relative paths, accepting forward/backslashes and mixed separators. Selecting a candidate opens that file; Enter without a selection opens a file only when its complete path and filename exist, regardless of suffix, otherwise it treats the input as a web address. Partial matches never implicitly select a file. Arrow keys select, Enter confirms and Escape dismisses. Small projects filter cached metadata; larger projects use bounded file-only searches and show partial-result or failure reasons. Matching does not change the file-tree filter, URL or navigation history. Files must stay within the signed project root for direct file previews. Web previews retain sandboxing but use their normal website origins for storage/authentication, with forms, popups, downloads, dialogs, user-authorized Storage Access API requests and fullscreen/media/clipboard-write capabilities subject to browser permissions. Cross-origin isolation and blocked top-level navigation protect the workspace; privileged viewer HTML refuses framing, while local HTML/SVG/XML retains its response-level origin sandbox. Cross-origin web-frame requests reveal only the workspace origin, not the signed path. Site X-Frame-Options/CSP, third-party-cookie rules and HTTPS/HTTP mixed-content restrictions still apply; use **Open in new window** when embedding is blocked rather than bypassing those policies. Web/Terminal frames remain mounted across tab switches. Click **Open Terminal** to start a Shell using the current Workspace session, with no extra password or Feishu approval. Merely opening a saved Workspace URL does not start a new Shell. Closing a terminal tab disconnects its view; use the terminal’s Close action to end it, or let the 30-minute disconnect timeout expire. Logging out of Workspace ends the Shells started under that session. URLs save tab targets/instance IDs, filters and layout, never terminal passwords or browser grants.
400
425
 
401
426
  On phones, including landscape, the file/change list and content are separate full-width views: selecting a file opens its content, and the tree icon returns directly to the file/change list. Reading uses a compact toolbar and narrower line-number gutters; the repeated page title and path are hidden, while full paths remain available in the list and tab tooltips. The file tab strip and content toolbar are hidden in list mode, without discarding opened tabs or their reading positions.
402
427
 
403
- The tree icon beside Back in the mobile content toolbar and clicking the top-right Files icon while already in Files return directly to the current file/change list, without stepping through history or closing tabs. The tree icon matches the file-list toolbar, and the top-right Files switch keeps its folder icon. Directory rows in both trees show only an expand arrow, without folder icons; same-level names align. Mouse clicks do not draw a directory focus frame; keyboard focus stays inside the row. Directory toggles prevent incidental text selection, while filenames remain selectable for copying; drag-selecting a filename does not open the file. Expanding and collapsing keep the directory row in place while changing its children below; any temporary bottom space needed to avoid a scroll jump is released when scrolling up or expanding. Thin vertical hierarchy guides appear for hovered folders, while the current file's ancestor guides remain visible. They follow file and Diff tabs across cached, lazy-loaded and filtered trees, even when filtering hides the current file, without changing indentation or taking layout space. Hover and selection backgrounds span the full tree row without moving icons or filenames. Current-file rows use stronger blue highlights, while hierarchy guides remain visible above them. Desktop tree rows use a compact 26-pixel height with slim chevrons; mobile rows retain larger touch targets. File and Diff trees, tabs and address suggestions share compact, standalone SVG symbols without a common background. Shell uses a dollar prompt, HTML uses an HTML5 outline, and other types retain their own recognizable shapes; colors adapt to light and dark themes without runtime fonts or an icon-library dependency. C/C++ source aliases (`.c`, `.cc`, `.cpp`, `.cxx`) share one symbol; headers (`.h`, `.hh`, `.hpp`, `.hxx`) use a related but distinct symbol. Python, TypeScript, JavaScript, JSON and Markdown variants also share their language icon. CMake (`CMakeLists.txt`, `.cmake`), Make (`Makefile`, `GNUmakefile`, `.mk`, `.mak`), GN (`.gn`, `.gni`), Ninja (`.ninja`) and Bazel (`BUILD`, `WORKSPACE`, `MODULE.bazel`, `.bzl`) have dedicated build icons. License/COPYING, `AGENTS.md` and README files have separate scales, robot and book symbols; case-insensitive special filenames take precedence over generic extensions, including localized README files. Git-ignored files and directories appear gray but remain browsable, including filtered results; tracked files and explicitly re-included paths are not marked ignored. The file tree also shows Git status only for changed files (U/M/A/D/R and conflicts), and a count of changed files inside directories. Changed files show green added/red removed line counts before the rightmost Git status badge; directory counts also stay at the trailing edge. Smaller text and naturally sized badges keep the columns compact without padding for the widest count; directories sum all descendant counts, independent of filtering and pagination. Counts use net HEAD-to-worktree changes, including untracked text files, without double-counting staged edits. Binary or unreadable/oversized untracked files show a dash; tooltips explain unavailable counts or partial directory totals. Changed-file previews provide a View changes action that opens the corresponding Diff, preserving rename metadata. Refresh rereads status; Git status failures show their reason without blocking file browsing. Reopening a tab restores its reading position, and browser Back from the list returns to the detail view.
428
+ The tree icon beside Back in the mobile content toolbar and clicking the top-right Files icon while already in Files return directly to the current file/change list, without stepping through history or closing tabs. The tree icon matches the file-list toolbar, and the top-right Files switch keeps its folder icon. Directory rows in both trees show only an expand arrow, without folder icons; same-level names align. Mouse clicks do not draw a directory focus frame; keyboard focus stays inside the row. Directory toggles prevent incidental text selection, while filenames remain selectable for copying; drag-selecting a filename does not open the file. Expanding and collapsing keep the directory row in place while changing its children below; any temporary bottom space needed to avoid a scroll jump is released when scrolling up or expanding. Thin vertical hierarchy guides appear for hovered folders, while the current file's ancestor guides remain visible. They follow file and Diff tabs across cached, lazy-loaded and filtered trees, even when filtering hides the current file, without changing indentation or taking layout space. Hover and selection backgrounds span the full tree row without moving icons or filenames. Current-file rows use stronger blue highlights, while hierarchy guides remain visible above them. Desktop tree rows use a compact 26-pixel height with slim chevrons; mobile rows retain larger touch targets. File and Diff trees, tabs and address suggestions share compact, standalone SVG symbols without a common background. Shell uses a dollar prompt, HTML uses an HTML5 outline, and other types retain their own recognizable shapes; colors adapt to light and dark themes without runtime fonts or an icon-library dependency. C/C++ source aliases (`.c`, `.cc`, `.cpp`, `.cxx`) share one symbol; headers (`.h`, `.hh`, `.hpp`, `.hxx`) use a related but distinct symbol. Python, TypeScript, JavaScript, JSON and Markdown variants also share their language icon. CMake (`CMakeLists.txt`, `.cmake`), Make (`Makefile`, `GNUmakefile`, `.mk`, `.mak`), GN (`.gn`, `.gni`), Ninja (`.ninja`) and Bazel (`BUILD`, `WORKSPACE`, `MODULE.bazel`, `.bzl`) have dedicated build icons. License/COPYING, `AGENTS.md` and README files have separate scales, robot and book symbols; case-insensitive special filenames take precedence over generic extensions, including localized README files. Git-ignored files and directories appear gray but remain browsable, including filtered results; tracked files and explicitly re-included paths are not marked ignored. The file tree also shows Git status only for changed files (U/M/A/D/R and conflicts), and a count of changed files inside directories. Changed files show green added/red removed line counts before the rightmost Git status badge; directory counts also stay at the trailing edge. Smaller text and naturally sized badges keep the columns compact without padding for the widest count; directories sum all descendant counts, independent of filtering and pagination. Counts use net HEAD-to-worktree changes, including untracked text files, without double-counting staged edits. Binary or unreadable/oversized untracked files show a dash; tooltips explain unavailable counts or partial directory totals. Changed-file previews provide a View changes action that opens the corresponding Diff, preserving rename metadata. The **Refresh Files** command rereads status; Git status failures show their reason without blocking file browsing. Reopening a tab restores its reading position, and browser Back from the list returns to the detail view.
404
429
 
405
430
  Open **Workspace** after the status in a Turn Preview header (for example, **Completed · Workspace**) to open that task’s Git changes list directly. Loading the conversation in the background does not replace the file panel or clear the list and its count. Choose **Chat** to see the conversation. Directory previews still start in the file list. Opening a page never starts an Agent or Shell.
406
431
 
407
432
  Workspace and Terminal use the same password setting: **`/settings` > Advanced > Workspace / Terminal Password** (`terminal.password` in the Profile YAML). Changes apply to both after a safe restart. The Workspace login covers Tasks, Chat and the embedded terminal; the terminal opened from a Feishu command card retains its standalone password flow. If the value is omitted or still the public default `123456`, Workspace automatically signs in on any reachable address, including LAN and public addresses. **Anyone who can reach a passwordless Workspace can read and control its tasks and, when Terminal is enabled, run a Shell with the host user’s privileges.** Use a strong custom password and HTTPS before exposing it. If you previously used `AGENT_BOT_WORKSPACE_PASSWORD`, set a custom shared password before restarting; the old variable is no longer read. Signed file links still work without signing in. With access to **Tasks**, you can browse by project, search and view archived tasks.
408
433
 
409
- Selecting a task does not change the current Feishu task. The chat shows paged history on the current branch and updates through one page-level SSE connection; reconnecting reloads the current snapshot. Chat displays saved image attachments and Agent Markdown images inline. In both Workspace chat and Turn Preview, images keep their original size when they fit. Larger images scale down proportionally to the available width and to a height of at most 60% of the viewport or 720 pixels, whichever is smaller. Chat images from disk require the Workspace session and stay within the task directory or, for attachments, the Feishu image cache. External images are not fetched automatically; missing or unavailable images show a placeholder. Markdown table cells wrap to fit the chat pane; tables with too many columns scroll independently. In **Chat**, use **Send** to start a turn, **Steer** to add a message during execution, **Queue** to defer it, and **Stop** to interrupt the displayed turn without clearing the queue. Sending uses the original Feishu chat or topic; approvals still happen there. Interrupted submissions are not automatically resent. Use **Check status** before retrying an uncertain submission.
434
+ Selecting a task does not change the current Feishu task. The browser tab shows **task name · latest Prompt excerpt · project directory name · AgentBot Workspace**, omitting any missing part. The page header still shows the project. Chat shows paged history on the current branch and receives live updates through one page-level SSE connection; reconnecting reconciles with a snapshot. The round **Jump to latest** button at the bottom right immediately scrolls to the bottom of the loaded conversation without making a request. Incoming messages follow the bottom when already there and keep the reading position when scrolled up. Opening an older reading position or reconnecting after missed updates automatically loads the intervening turns in order, without moving the reading position. The live tail is never displayed across a gap.
435
+
436
+ Workspace reloads automatically when Agent Bot restarts or the Workspace build changes. The current task, file tabs, reading position, and draft text, images, files and annotations are restored in the same browser tab. Chat returns to the reading position as Prompt images finish loading. A new-task draft also survives a refresh before its first Prompt. Workspace waits for local attachment writes before reloading. If the browser cannot save an attachment, the composer shows a message and defers automatic reload. After a restart, a custom password may still be required.
437
+
438
+ Click a file preview or hover over it with no input focused, then press **Ctrl/⌘ + `+`** or **Ctrl/⌘ + `−`** to change the text size in file, Markdown and Diff previews. Workspace remembers the size in the browser. Hover over the icon at the right end of the address field to see the zoom percentage, or click it to return to 100%.
439
+
440
+ The chat header shows the task title, status, Agent, and recorded turn count for the current branch on one line. It also shows the latest reported cumulative token total, including cached input, and the session log size when available. On narrow panes, scroll the task information horizontally to see more.
441
+
442
+ Chat shows all recorded activities in each turn, including turns with more than 80 activities. Tool titles appear in order, and expanding a tool loads its command, output and errors.
443
+
444
+ Click **+** in the file-list toolbar to open **Choose directory**. Select a task-associated directory or enter an absolute directory path on the Agent Bot host. Each directory gets a tab in the file list with its own file tree and uncommitted Git changes. Selecting an open directory reuses its tab. Switching directory tabs leaves the current file preview open. The task saves the directory tabs, their order, and the selected directory across refreshes and Workspace visits. Close a directory tab to remove it from the file list.
445
+
446
+ Agents can associate a directory with the task using `agentbot task metadata directory add <path>`. The command resolves project paths to their root. For a user folder without project markers, add `--user-directory`. Temporary directories are excluded. Use `list` to find a record ID and `remove <id>` to remove the association.
447
+
448
+ After signing in, you can paste an absolute file or directory path from the Agent Bot host into the address bar and press Enter. A path outside the current file view opens its Git repository root. Outside Git, a directory opens directly and a file opens its containing directory. Entering a file also opens its preview and expands the file tree to highlight it. On mobile, the highlighted file is visible when you return to the directory list. The new directory opens in the current tab and is available for the current Workspace login.
449
+
450
+ User messages, Commentary and Agent replies use the 14px body text size of Turn Preview's final answer. Commentary and visible messages separate compact execution groups. Consecutive tools stay together when reasoning is interleaved. The group's single-line title follows the latest heading supplied by the Agent in that group, including later sections of the same reasoning item. The fallback is **Tool execution**. Groups start collapsed and retain your expansion state throughout live updates and when the final answer arrives. Commentary, visible reasoning summaries, and answers stream into their existing rows. Opening a tool loads its saved command, result and errors into one compact log panel. Shell commands use Turn Preview’s readable formatting without changing the original record. Output preserves line breaks and indentation; long lines scroll horizontally inside the panel instead of wrapping. Scroll near the end of the loaded text to fetch the next section, or use **Load more**; large journals are not truncated by size. If the original log is missing, Workspace identifies the saved excerpt as such. Tool rows show an icon for the tool type. Hovering a tool or group title gently brightens its text. Tool errors use a muted label inside the log, and recorded timing appears below the log. File links show their path on hover.
451
+
452
+ Expanding a file-change tool lists its file paths and any recorded addition and deletion counts. Click a file name with a saved patch to expand it inline. The icon in the upper-right corner opens the file's Diff tab and selects **This change**. The scope menu lets you switch between the tool's recorded changes and the available Git scopes. Workspace indicates when the patch recording was truncated. Files without a patch still link to their current Git Diff when available.
410
453
 
411
- Every task has an independent file panel, including two tasks in the same project. Switching restores its tabs and reading positions without closing background terminals. Task URLs contain only the selected task, a chat reading anchor and that task’s recoverable file-panel state. Tree expansion, loaded directory pages and scrolling stay in local browser storage; draft text stays in the current browser tab. Local Markdown links open existing file tabs; execution-summary links show the **current** Git diff, not a historical file version.
454
+ The chat's file-change summary puts each file and its line counts on one row. Project files use relative paths and files outside the project use absolute paths. The latest turn's plan sits to the right of the conversation when there is room. On a narrow pane, click the progress indicator above the composer to see the steps.
412
455
 
413
- Both trees preload small projects and otherwise load direct children on expansion. Large directories fetch subsequent 100-item pages automatically when scrolling near the end, without a Load More button; loading errors remain visible and offer Retry. Click a file to open its content, or switch to **Uncommitted** to inspect modified, staged, untracked, deleted and renamed files. Diff supports **All changes** (HEAD to worktree), **Staged** (HEAD to index), and **Unstaged** (index to worktree); a file appears once even when staged and unstaged edits cancel out. File and Diff tabs are separate and reuse loaded content when selected, retaining reading positions and preview controls without another request. Content is reread on first open, refresh or a change of Diff scope; closing a tab releases its cached content. **Refresh** reloads the list and current tab while restoring expanded directories. On smaller screens, switch between Tasks, Chat and Files without closing file tabs.
456
+ The final answer toolbar copies or downloads the full Markdown using the same format as Turn Preview. Share opens that turn's Turn Preview in a new tab. Reset returns the current chat to the end of the selected completed turn. Fork opens a new Workspace task at that same turn and preserves the active Feishu task.
457
+ The toolbar shows the turn's end time and duration. Hover over or tap the timing to see recorded token usage, model call count, and tool count calculated the same way as in Turn Preview.
458
+
459
+ Right-click a file workspace tab and choose **Pin** to show its icon in the fixed area on the left of the tab strip. Right-click the icon and choose **Unpin** to return it to the scrolling strip. Pin state is saved with the workspace tabs.
460
+
461
+ Each task row shows the task name and last update time on the first line and a preview of the latest Prompt on the second. For a running task, the second line also shows its current status and the status dot gently pulses. Dates use your browser’s local time zone.
462
+
463
+ Right-click a task to reference its session ID and title in the current chat draft or rename it in place. Press **Enter** to save the title or **Esc** to cancel.
464
+
465
+ While a turn is active, a single line above the Workspace composer shows elapsed time, model, reasoning effort, and reported token usage. You can scroll the line horizontally when space is tight. Token usage uses the same calculations as Turn Preview.
466
+
467
+ Choose **New task** in the task list to open a draft. The draft starts with the currently open task’s project. Use **×** to clear it, or **Choose project directory** to pick a listed project or enter an absolute path on the Agent Bot host. Sending the first Prompt creates the Agent session. New Workspace tasks use your private Feishu chat. Use the model and reasoning controls in the composer toolbar to change the current task’s settings for its next request, or to set them for a draft before its first Prompt.
468
+
469
+ Copy an image or file and press **Ctrl+V** or **⌘+V** in the composer to add it as a draft attachment. You can also use **+** or drag files into chat. Attach up to four files of any format, at most 5 MiB each and 12 MiB in total. PNG, JPEG, GIF and WebP display thumbnails and can be previewed before sending. Every draft attachment has an **×** button. In narrow layouts, tap the attachment to reveal the button. Tap a selected image again to preview it. The Agent receives local references to ordinary files. They can be downloaded from the Workspace conversation, and the Feishu Prompt lists their names. Attachments stay in the browser until sending or queuing. You can send or queue attachments with or without text. Failed messages retain their attachments and a retry button while the page is open. A retry keeps the original request ID so the same message is submitted only once. Sending and approvals use the task’s original Feishu chat or topic. **Stop** interrupts the current turn without clearing the queue.
470
+
471
+ Select text in chat or in a file or Diff preview to reveal the annotation and reference buttons. Moving the pointer onto the selection brings the buttons back. They hide five seconds after the pointer leaves. In source and Diff previews, double-click code to select a word. Drag across line numbers to select complete lines, or double-click a line number to select that line. A single click on a line number highlights the line without scrolling. For whole-line selections, the selection actions appear just below the start of the last selected line. Click it to write a note below the original text. Press **Enter** or leave the editor to attach a non-empty note to the draft. Use **Shift+Enter** or **Ctrl+Enter** for a new line. The underline clears when you send the draft or remove the annotation. Hover over or tap the underlined source to read the note. Click the note to edit the draft attachment in place. Use **Add reference** in the selection toolbar to attach selected text. The context menu offers **Reference this file** on file rows, file tabs, and previews. With text selected in the preview, it offers **Reference this selection**. A web tab offers **Reference this webpage**. References become draft attachments with the file path or page URL and any selected text and line numbers. File annotations include the absolute path and source line range. Rendered Markdown uses the corresponding source block's range, and chat annotations identify the selected message. Hover over the attachment to see the excerpt and your note. Send it with your next message or on its own to ask the Agent to address it.
472
+
473
+ References and annotations go directly into the model's Prompt with their source information, including when queued or scheduled. File and directory references carry their paths. Selections of complete file lines carry the path and line range, plus the note for an annotation. Right-click a directory and choose **Reference this path** to add its full path to the draft. The chat bubble shows the quoted text and any note in a quote block. Hover over the block or tap it to see its source.
474
+
475
+ Chat displays saved attachments and Agent Markdown images inline. Workspace and Turn Preview keep the original inline size when it fits, otherwise scale down proportionally to the available width and at most 60% of the viewport height or 720 pixels. Workspace uses recorded PNG density when available and caps both inline and preview sizes at the original image’s pixel dimensions at the current display scale. Click a Workspace chat image or draft thumbnail to open a borderless preview, scaled down as needed to fit the viewport. Click the enlarged image to close it. Workspace requires a session to read local images and confines them to the task directory or the attachment cache. External images are not fetched automatically; unavailable images show a placeholder. Chat code blocks show line numbers. Unified diffs show original and updated line numbers and highlight added or removed rows continuously. Markdown tables wrap or scroll independently when necessary. The composer starts with room for two lines and grows up to a viewport-based limit. In an existing task, the model and reasoning menus open above the toolbar. **Enter** sends. **Shift+Enter** and **Alt+Enter** insert a newline. The send button and Enter steer the running Turn or start a Turn when idle. **Ctrl+Enter** or **⌘+Enter** queues a separate Turn when a Turn is active or prompts are already waiting. With an idle task and an empty queue, these shortcuts send immediately. The Send tooltip lists Enter, the queue shortcut, and the available ways to queue a prompt.
476
+
477
+ Submitted messages appear immediately with their attachments, and a new Turn shows its divider at the same time. Agent Bot saves the message and attachments locally before submitting them to the Agent. It posts a copy to the original Feishu chat or topic after submission. The task continues if that delivery fails. An attached image stays visible while its saved copy loads. Sending starts automatic scrolling to new output. Scrolling up holds your reading position, and **Jump to latest** resumes following. Warnings and other recorded statuses appear within the Turn. When recorded, the start time appears below the user bubble on the right. The toolbar at the end of the Turn shows its end time and elapsed time when available.
478
+
479
+ On narrow screens, holding Send for one second queues the message while the button is still held. To queue from the composer at any width, start the draft with `/queue` or a prefix such as `/q`, followed by a space and the prompt. The command is stripped when sending. A draft can also use `/queue` with attachments alone.
480
+
481
+ Queued messages appear in numbered order above the composer until execution starts. They stay in place during submission and server confirmation. A failed submission can be retried from its queue row. Messages with attachments have a marker. The browser receives the full text with the queue, so clicking a confirmed message opens its inline editor immediately. Saving keeps its queue position and attachments. Editing a queued run of a scheduled task applies to that run only. Workspace, `agentbot task status`, and open Feishu queue cards show the task's shared Agent Bot queue. Use the close button on a confirmed queued message to cancel it and restore its content to the composer alongside the current draft. If a target Turn finishes before a steer is sent, the message can also be restored to the composer.
482
+
483
+ Click the up arrow on a queued message to send it immediately with its attachments. It steers the active turn or starts a new turn when the task is idle. Using the arrow on a scheduled occurrence sends that occurrence manually and preserves the plan's future schedule.
484
+
485
+ The clock opens the current task's Agent Bot schedules and run history. Schedule the chat draft with its text, images, files or annotations, including a draft containing only attachments. The default is one run in 30 minutes. Choose hourly, daily, weekdays, weekly, monthly, yearly, or a custom five-field Cron expression. Advanced settings include timezone, an optional end time, the maximum queue wait, and the catch-up window. Workspace can edit, enable, pause, resume, run or delete the same plans that appear in `agentbot schedule` and Feishu. A plan sends to the task's original conversation or topic and enters the persistent queue as a separate Turn when the task is busy.
486
+
487
+ Workspace tooltips appear on hover or keyboard focus and auto-dismiss after five seconds. Available shortcuts appear on the right using the current platform's key labels. Hold **Ctrl** on Windows or Linux or **⌘** on macOS for half a second to reveal shortcuts beside visible buttons. Release the key to dismiss them.
488
+
489
+ Every task has an independent file panel, including two tasks in the same project. Switching restores its tabs, reading positions and last sidebar visibility without closing background terminals. The sidebar starts folded for a new task or a task with no saved visibility preference. Task URLs contain only the selected task, a chat reading anchor and that task’s recoverable file-panel state. Tree expansion, loaded directory pages and scrolling stay in local browser storage; draft text stays in the current browser tab. Local Markdown links open existing file tabs; execution-summary links show the **current** Git diff, not a historical file version.
490
+
491
+ The file and Git trees show recently read directory pages from a bounded cache, then update in place as the active project changes. Lightweight change notifications carry no file contents; unchanged pages are revalidated without transferring the list again. Desktop connections can preload small trees or warm a few directory pages. On phones, cellular connections, slow networks and with Data Saver, Workspace skips speculative reads: it loads visible or explicitly opened directories, requests only a count for the inactive Git tree, and fetches subsequent 100-item pages as they come into view. Large directories also use 100-item pages on desktop. Loading errors remain visible and offer Retry.
492
+
493
+ Click a file to open its content, or switch to **Uncommitted** to inspect modified, staged, untracked, deleted and renamed files. Diff supports **All changes** (HEAD to worktree), **Staged** (HEAD to index), and **Unstaged** (index to worktree); a file appears once even when staged and unstaged edits cancel out. File and Diff tabs are separate and reuse cached content and reading positions. The visible preview updates in the background when its file changes; closing a tab releases its cached content. Run **Refresh Files** from the command palette to reload the list and current tab while restoring expanded directories. On smaller screens, switch between Tasks, Chat and Files without closing file tabs.
414
494
 
415
495
  Workspace links grant read-only access to the selected directory and its descendants: keep them private, including when sharing Turn Preview links. Paths and symlinks cannot escape that directory, Git internals are excluded, and HTML opens as inert source. File browsing provides no editing, staging or commits. The signature alone does not grant terminal access. Text previews are limited to 2 MiB or 10000 lines. Complete Diff versions have the same limit, with at most 20000 merged rows; changed patches are limited to 1 MiB or 10000 lines. Exceeding a Diff limit reports an error instead of silently hiding file context. Raw downloads retain the complete file. Git failures and non-Git projects are reported separately from clean repositories.
416
496
 
@@ -461,7 +541,7 @@ While queued, the timeline notice shows elapsed waiting time from the first reco
461
541
 
462
542
  TraeX background task notifications show the reported status, task ID, summary or Shell exit code when available. When a notification starts its own Turn, one **Background task notification** card displays the result and the Agent's follow-up answer together, in the task's original conversation or topic. The original Turn is unchanged. User instructions never steer a standalone notification Turn: while it occupies the runtime, instructions and attachments enter the persistent Prompt queue and later run on a normal thinking card. Notices arriving during a regular prompted Turn appear in its existing thinking card, which still accepts user steering, and its final reply is still separate. Oversized answers are available in Turn Preview; if Preview is unavailable, the remainder is sent separately in the same conversation or topic. The card does not read or expose the notification’s output-file path or full log.
463
543
 
464
- Relative file links in Feishu answers and thinking cards, such as `outputs/report.md`, resolve from the Turn’s saved project directory before conversion to signed viewer URLs. Windows and POSIX paths, encoded spaces, and line references are supported. Unavailable resolved files fall back to path text; web links, images, and code remain unchanged.
544
+ Relative file links in Feishu answers and thinking cards, such as `outputs/report.md`, resolve from the Turn’s saved project directory before conversion to signed viewer URLs. Ordinary links to images, such as `[View screenshot](.tmp/screenshot.png)`, also open signed image previews; embedded `![image](...)` Markdown keeps its existing image-delivery behavior. Windows and POSIX paths, encoded spaces, and line references are supported. Unavailable resolved files fall back to path text; web links and code remain unchanged.
465
545
 
466
546
  `/status` cards also include **Preview** beside Refresh and Stop/Switch. It opens the active Turn, or the latest Turn when idle, and updates its target when you refresh the card. For external tasks not yet recorded by Agent Bot, opening Preview loads the selected Turn from the Agent and caches its full execution details. Read failures can be retried by refreshing the page. The button is hidden if there is no Turn, no supported history reader, or the file viewer is unavailable. Viewing another task’s status does not switch or take over that task.
467
547
 
@@ -475,6 +555,10 @@ Turn Preview highlights fenced code blocks in common languages such as JavaScrip
475
555
 
476
556
  Turn Preview retains complete recorded execution content without repeatedly saving the whole Turn to the database. Live previews update incrementally; collapsed tools load their full details when opened. Back up the entire Profile data directory to keep execution records as well as task metadata. Existing saved history remains readable.
477
557
 
558
+ When the local file viewer is enabled, each path in a thinking card's trailing file-change list links to a signed Git diff preview, including tracked deletions. Added files and files without an available diff open their ordinary preview. Linked paths use Windows backslashes or forward slashes on other systems, without changing the actual filesystem path or URL; project files remain relative and external files absolute. Zero or missing addition/deletion counts are omitted from card file lists. Unavailable viewer links remain plain text.
559
+
560
+ Large recorded Turns replay in batches without blocking other requests for the entire load. A bounded, short-lived memory cache reuses summary checkpoints on reopening, and live updates resume from the page's checkpoint instead of replaying the same history again. Full logs remain available on expansion; caching does not discard saved execution content.
561
+
478
562
  Mermaid diagrams in Turn Preview and Markdown file previews have **Preview / Source** controls and default to Preview. Use a `mermaid` fenced code block with `flowchart` or `graph` syntax (`flowchart` fences are also accepted). Your mode selection survives live updates; invalid or incomplete diagrams fall back to source. Rendering runs locally in your browser, without sending diagram content to an external service. Diagrams scale down to the available width by default without enlarging small diagrams. On phones, the preview is capped at roughly half the screen height; scroll vertically for long flows. Use **Actual size / Fit** to inspect details or return to the fitted view. Live updates preserve this choice.
479
563
 
480
564
  The compact Turn Preview header uses dot-separated values, keeps the duration label, and abbreviates token counts with K, M, and B units. It wraps to fit narrow screens. Prompt, Commentary, and result text use a regular weight and a slightly larger font than tool calls. Tool commands and outputs preserve line breaks and indentation; long lines scroll horizontally within the tool block without wrapping. Commands and results share one scroll area capped at 30 lines in height. The page reserves space for classic vertical scrollbars so expanding or collapsing tools does not shift the header or timeline horizontally. Thin, subtle scrollbars have no arrow buttons. On desktop they appear on hover or keyboard focus; on touch devices they are hidden while gesture scrolling remains available.
@@ -483,7 +567,7 @@ Tool blocks have a subtle outline. Horizontal separators appear after the Prompt
483
567
 
484
568
  When an App Server reports only `Read` or `Grep` as the command, available action metadata supplies the file path or search query and scope in both the summary and expanded command. Complete commands remain unchanged, and missing targets are not guessed; previously saved previews are not backfilled.
485
569
 
486
- Tool titles start with the same status icons as the thinking card: an hourglass while running, a check mark on success, or a cross on failure. Running blocks have an accent border. Header summaries omit shell line-continuation markers while preserving file paths and the full expanded command. Durations remain hidden at zero seconds. The expanded footer shows the execution status, start time, duration, and result character count outside the scroll area; running durations update live in both the header and footer.
570
+ Tool titles start with the same status icons as the thinking card: an hourglass while running, a check mark on success, or a cross on failure. Running blocks have an accent border. Header summaries omit shell line-continuation markers while preserving file paths and the full expanded command. Durations remain hidden at zero seconds. The expanded footer shows the execution status, start time, duration, and result character count outside the scroll area; running durations update live in both the header and footer. A zero or invalid tool timestamp means unavailable, not the Unix epoch: live events use locally observed timing, while saved records without a reliable start show unknown duration instead of a fabricated value.
487
571
 
488
572
  Command approval cards use a short heading and show the reason first, with the command in a collapsed panel instead of repeating it as a long bold title. The summary omits recognized shell wrappers, but the expanded command retains them. Oversized commands and reasons show an explicit truncation notice; check the complete original command in Turn Preview before authorizing. The four approval actions and their permission scope are unchanged. Preview remains read-only and preserves command expansion and scroll position during live updates.
489
573