@keyou007/agent-bot 0.1.27-alpha.2 → 0.1.27-alpha.4

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 (156) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +78 -13
  3. package/README.zh.md +78 -13
  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 +1935 -232
  9. package/assets/workspace.css +360 -35
  10. package/assets/workspace.js +2115 -249
  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 +26 -14
  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 +40 -10
  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 +219 -129
  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 +23 -269
  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 +15 -0
  61. package/dist/local-files/WorkspaceImages.js.map +1 -0
  62. package/dist/local-files/WorkspacePage.js +20 -5
  63. package/dist/local-files/WorkspacePage.js.map +1 -1
  64. package/dist/local-files/WorkspaceSessions.js +881 -79
  65. package/dist/local-files/WorkspaceSessions.js.map +1 -1
  66. package/dist/local-files/WorkspaceTimeline.js +105 -0
  67. package/dist/local-files/WorkspaceTimeline.js.map +1 -0
  68. package/dist/presentation/OutboundRouter.js +13 -6
  69. package/dist/presentation/OutboundRouter.js.map +1 -1
  70. package/dist/presentation/TurnStateReducer.js +28 -21
  71. package/dist/presentation/TurnStateReducer.js.map +1 -1
  72. package/dist/proxy/ProxySessionController.js +229 -92
  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 +51 -12
  81. package/dist/scheduling/ScheduledTaskStore.js.map +1 -1
  82. package/dist/scheduling/types.js +18 -4
  83. package/dist/scheduling/types.js.map +1 -1
  84. package/dist/state/StateStore.js +145 -19
  85. package/dist/state/StateStore.js.map +1 -1
  86. package/dist/state/TurnPreviewJournal.js +143 -36
  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 +20 -0
  101. package/dist/utils/promptAttachments.js.map +1 -0
  102. package/dist/utils/toolTimestamp.js +6 -0
  103. package/dist/utils/toolTimestamp.js.map +1 -0
  104. package/npm-shrinkwrap.json +2 -2
  105. package/package.json +1 -1
  106. package/skills/agent-bot/SKILL.md +23 -2
  107. package/src/cli/SelfUpdateObserver.ts +111 -0
  108. package/src/cli/SelfUpdateRunner.ts +271 -85
  109. package/src/cli/SelfUpdater.ts +53 -16
  110. package/src/cli/controlProtocol.ts +1 -0
  111. package/src/cli/help.ts +6 -0
  112. package/src/cli.ts +71 -5
  113. package/src/codex/CodexEventMapper.ts +25 -5
  114. package/src/codex/CodexRuntime.ts +4 -0
  115. package/src/feishu/CardRenderer.ts +48 -13
  116. package/src/feishu/ConsoleFeishuClient.ts +6 -1
  117. package/src/feishu/FeishuMarkdown.ts +2 -14
  118. package/src/feishu/FeishuMessageClient.ts +10 -0
  119. package/src/feishu/FeishuTurnPresenter.ts +22 -8
  120. package/src/feishu/types.ts +1 -0
  121. package/src/index.ts +47 -12
  122. package/src/local-files/DiagramPreview.ts +11 -6
  123. package/src/local-files/GitDiffPreview.ts +38 -10
  124. package/src/local-files/LiveMarkup.ts +103 -0
  125. package/src/local-files/LocalFileViewerServer.ts +207 -132
  126. package/src/local-files/MarkdownExport.ts +54 -0
  127. package/src/local-files/PreviewCodeFont.ts +12 -0
  128. package/src/local-files/PreviewSyntaxHighlight.ts +75 -0
  129. package/src/local-files/ToolCommandDisplay.ts +104 -0
  130. package/src/local-files/TurnPreviewPage.ts +23 -254
  131. package/src/local-files/WorkspaceFileEvents.ts +186 -0
  132. package/src/local-files/WorkspaceFiles.ts +72 -5
  133. package/src/local-files/WorkspaceImages.ts +10 -0
  134. package/src/local-files/WorkspacePage.ts +20 -5
  135. package/src/local-files/WorkspaceSessions.ts +811 -82
  136. package/src/local-files/WorkspaceTimeline.ts +109 -0
  137. package/src/presentation/OutboundRouter.ts +15 -4
  138. package/src/presentation/TurnStateReducer.ts +27 -18
  139. package/src/presentation/turnViewTypes.ts +2 -0
  140. package/src/proxy/ProxySessionController.ts +226 -77
  141. package/src/proxy/TaskMetadata.ts +81 -0
  142. package/src/runtime/types.ts +2 -1
  143. package/src/scheduling/ScheduleCards.ts +10 -4
  144. package/src/scheduling/ScheduleCommand.ts +4 -0
  145. package/src/scheduling/ScheduledTaskStore.ts +54 -9
  146. package/src/scheduling/types.ts +24 -4
  147. package/src/state/StateStore.ts +157 -20
  148. package/src/state/TurnPreviewJournal.ts +138 -34
  149. package/src/state/TurnToolText.ts +156 -0
  150. package/src/state/migrations.ts +4 -0
  151. package/src/supervision/SafeRestartNotifier.ts +9 -6
  152. package/src/terminal/TerminalPage.ts +5 -0
  153. package/src/updates/AutomaticUpdatePreparer.ts +52 -11
  154. package/src/updates/ManualUpdateController.ts +8 -3
  155. package/src/utils/promptAttachments.ts +24 -0
  156. package/src/utils/toolTimestamp.ts +5 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ The project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.27-alpha.4] - 2026-12-05
10
+
11
+ - 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.
12
+
13
+ - 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.
14
+
15
+ - 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.
16
+
17
+ - 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.
18
+
19
+ - 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.
20
+
21
+ - 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.
22
+
23
+ - 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.
24
+
25
+ - 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.
26
+
27
+ ## [0.1.27-alpha.3] - 2026-12-02
28
+
29
+ - 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.
30
+
9
31
  ## [0.1.27-alpha.2] - 2026-12-02
10
32
 
11
33
  - Normalize Git and Workspace comparison paths through Windows short-name aliases, preserving nested-workspace boundaries and deleted-file Diff access on hosts whose temporary directory uses names such as `RUNNER~1`.
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,17 +391,27 @@ 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
 
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.
403
+
383
404
  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.
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
408
  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.
388
409
 
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.
410
+ 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 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.
411
+
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
+ 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.
392
415
 
393
416
  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.
394
417
 
@@ -396,7 +419,7 @@ On desktop, a compact project/task sidebar sits on the left, chat uses the cente
396
419
 
397
420
  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.
398
421
 
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.
422
+ 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
423
 
401
424
  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
425
 
@@ -406,11 +429,49 @@ Open **Workspace** after the status in a Turn Preview header (for example, **Com
406
429
 
407
430
  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
431
 
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.
432
+ 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.
433
+
434
+ 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.
435
+
436
+ 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 tokens and the session log size when available. On narrow panes, scroll the task information horizontally to see more.
437
+
438
+ 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.
439
+
440
+ 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.
441
+
442
+ 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.
443
+
444
+ 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.
445
+
446
+ Expanding a file-change tool lists its file paths and any recorded addition and deletion counts. Click a file in an open Workspace directory to see its current Git Diff. When the tool supplies a patch, expand it below the file to see what that specific tool changed.
447
+
448
+ 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.
449
+
450
+ The final answer toolbar copies or downloads the full Markdown using the same format as Turn Preview. Share copies that Turn Preview link. 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.
451
+
452
+ 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.
453
+
454
+ While a turn is active, the row above the Workspace composer shows elapsed time, the model and the reasoning effort recorded for that turn.
455
+
456
+ 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.
457
+
458
+ 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. Click **×** to remove a draft attachment. 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.
459
+
460
+ Select text in chat or in a file or Diff preview. **Add annotation** appears below the selection on the right for 3 seconds. 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. 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.
461
+
462
+ 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. Click any available Workspace chat image to see it in a borderless preview that fits the viewport. 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. 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 and **Alt+Enter** inserts a newline. The send button and Enter steer the running Turn or start a Turn when idle. **Shift+Enter**, **Ctrl+Enter** and **⌘+Enter** queue a separate Turn while the task is running and send immediately when it is idle.
463
+
464
+ Queued messages appear in numbered order above the composer, with a marker on messages that have attachments. Click a queued message to edit its text in place. 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 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.
465
+
466
+ 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.
467
+
468
+ Workspace tooltips appear on hover or keyboard focus and dismiss after a short delay. Available shortcuts appear on the right using the current platform's key labels.
410
469
 
411
470
  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.
412
471
 
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.
472
+ 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.
473
+
474
+ 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. **Refresh** reloads the list and current tab while restoring expanded directories. On smaller screens, switch between Tasks, Chat and Files without closing file tabs.
414
475
 
415
476
  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
477
 
@@ -461,13 +522,13 @@ While queued, the timeline notice shows elapsed waiting time from the first reco
461
522
 
462
523
  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
524
 
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.
525
+ 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
526
 
466
527
  `/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
528
 
468
529
  All Feishu cards and final answers share one outbound image pipeline for sending, replying and updating. Local Markdown images become previewable Feishu images, with unchanged uploads reused across cards and refreshes. Missing files or upload failures fall back to readable text without blocking the card. Code examples, existing Feishu image keys and button callback data remain unchanged; individual cards do not need image-processing flags.
469
530
 
470
- Progress cards include a `Preview` button that opens the saved Turn timeline in a compact, mobile-friendly browser view. Reasoning panels use the content title as their collapsed header and show the text directly on expansion. Tool blocks have a single collapse level and start collapsed with a meaningful one-line command summary, a compact duration (`58s` or `2:32`), and completion status. Expanding a block shows the full command prefixed by `$`, followed directly by its results, images, and changed files. Identical output/error logs appear once. Running Turns update live by patching changed sections in place, preserving expanded or collapsed steps, scroll positions, and unchanged image elements instead of reloading them. Token and other metadata updates do not replace the timeline. Collapsed tool steps and the file-change summary initially contain only their headers; commands, logs, images, and file lists are fetched on expansion. Reopening reuses loaded content, and live updates refresh only expanded details whose content changed. Failed loads offer Retry. Finished Turns do not open a live SSE connection. The waiting-for-progress placeholder is hidden once a response or other visible progress is available, and is never shown for finished Turns. Click a changed file in either list to open its current Git diff when available, or the ordinary file preview otherwise; tracked deletions can also be inspected. Turn previews use the same signed viewer address and access rules as local file links. Beside Final answer, download and copy icons export the original Markdown (including formatting, code blocks, and unchanged link targets), not the rendered HTML. Download saves a UTF-8 `.md` file; Copy uses the clipboard with a fallback for HTTP/LAN previews and shows success or failure feedback. Both work on completed pages and when the final answer arrives live.
531
+ Progress cards include a `Preview` button that opens the saved Turn timeline in a compact, mobile-friendly browser view. Reasoning panels use the content title as their collapsed header and show the text directly on expansion. Tool blocks have a single collapse level and start collapsed with a meaningful one-line command summary, a compact duration (`58s` or `2:32`), and completion status. Expanding a block shows the full command prefixed by `$`, followed directly by its results, images, and changed files. Identical output/error logs appear once. Running Turns update live by patching changed sections in place, preserving expanded or collapsed steps, scroll positions, and unchanged image elements instead of reloading them. Token and other metadata updates do not replace the timeline. Collapsed tool steps and the file-change summary initially contain only their headers; commands, logs, images, and file lists are fetched on expansion. Reopening reuses loaded content, and live updates refresh only expanded details whose content changed. Failed loads offer Retry. Finished Turns do not open a live SSE connection. The waiting-for-progress placeholder is hidden once a response or other visible progress is available, and is never shown for finished Turns. Click a changed file in either list to open its current Git diff when available, or the ordinary file preview otherwise; tracked deletions can also be inspected. In the standalone Git diff preview, the up/down arrows in the header jump to the previous/next contiguous change block, center it when possible, and preserve horizontal scrolling. Each jump is recorded in the URL and browser history. Turn previews use the same signed viewer address and access rules as local file links. Beside Final answer, download and copy icons export the original Markdown (including formatting, code blocks, and unchanged link targets), not the rendered HTML. Download saves a UTF-8 `.md` file; Copy uses the clipboard with a fallback for HTTP/LAN previews and shows success or failure feedback. Both work on completed pages and when the final answer arrives live.
471
532
 
472
533
  Opening `/turn <ID or index>` or Preview for an imported summary loads that Turn's execution details from its original Agent session and caches the result. Only summary pages and the selected Turn's full record are requested, never the entire full history; source tasks are not resumed or interrupted. Read failures show their reason separately from the Turn's execution status; reopen the details or refresh Preview to retry. Existing detailed snapshots remain unchanged, and unavailable historical timing or token data is not estimated.
473
534
 
@@ -475,6 +536,10 @@ Turn Preview highlights fenced code blocks in common languages such as JavaScrip
475
536
 
476
537
  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
538
 
539
+ 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.
540
+
541
+ 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.
542
+
478
543
  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
544
 
480
545
  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 +548,7 @@ Tool blocks have a subtle outline. Horizontal separators appear after the Prompt
483
548
 
484
549
  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
550
 
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.
551
+ 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
552
 
488
553
  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
554