@keyou007/agent-bot 0.1.27-alpha.3 → 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.
- package/CHANGELOG.md +18 -0
- package/README.md +77 -12
- package/README.zh.md +77 -12
- package/assets/agent-bot.ico +0 -0
- package/assets/roboto-mono-OFL.txt +93 -0
- package/assets/roboto-mono-latin.woff2 +0 -0
- package/assets/workspace-drafts.js +88 -0
- package/assets/workspace-sessions.js +1935 -232
- package/assets/workspace.css +360 -35
- package/assets/workspace.js +2115 -249
- package/dist/cli/SelfUpdateObserver.js +124 -0
- package/dist/cli/SelfUpdateObserver.js.map +1 -0
- package/dist/cli/SelfUpdateRunner.js +267 -70
- package/dist/cli/SelfUpdateRunner.js.map +1 -1
- package/dist/cli/SelfUpdater.js +54 -15
- package/dist/cli/SelfUpdater.js.map +1 -1
- package/dist/cli/controlProtocol.js.map +1 -1
- package/dist/cli/help.js +6 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli.js +85 -6
- package/dist/cli.js.map +1 -1
- package/dist/codex/CodexEventMapper.js +29 -5
- package/dist/codex/CodexEventMapper.js.map +1 -1
- package/dist/codex/CodexRuntime.js +3 -0
- package/dist/codex/CodexRuntime.js.map +1 -1
- package/dist/feishu/CardRenderer.js +45 -13
- package/dist/feishu/CardRenderer.js.map +1 -1
- package/dist/feishu/ConsoleFeishuClient.js +4 -0
- package/dist/feishu/ConsoleFeishuClient.js.map +1 -1
- package/dist/feishu/FeishuMarkdown.js +2 -14
- package/dist/feishu/FeishuMarkdown.js.map +1 -1
- package/dist/feishu/FeishuMessageClient.js +9 -0
- package/dist/feishu/FeishuMessageClient.js.map +1 -1
- package/dist/feishu/FeishuTurnPresenter.js +26 -14
- package/dist/feishu/FeishuTurnPresenter.js.map +1 -1
- package/dist/index.js +47 -12
- package/dist/index.js.map +1 -1
- package/dist/local-files/DiagramPreview.js +11 -6
- package/dist/local-files/DiagramPreview.js.map +1 -1
- package/dist/local-files/GitDiffPreview.js +40 -10
- package/dist/local-files/GitDiffPreview.js.map +1 -1
- package/dist/local-files/LiveMarkup.js +104 -0
- package/dist/local-files/LiveMarkup.js.map +1 -0
- package/dist/local-files/LocalFileViewerServer.js +133 -117
- package/dist/local-files/LocalFileViewerServer.js.map +1 -1
- package/dist/local-files/MarkdownExport.js +54 -0
- package/dist/local-files/MarkdownExport.js.map +1 -0
- package/dist/local-files/PreviewCodeFont.js +11 -0
- package/dist/local-files/PreviewCodeFont.js.map +1 -0
- package/dist/local-files/PreviewSyntaxHighlight.js +73 -0
- package/dist/local-files/PreviewSyntaxHighlight.js.map +1 -1
- package/dist/local-files/ToolCommandDisplay.js +111 -0
- package/dist/local-files/ToolCommandDisplay.js.map +1 -0
- package/dist/local-files/TurnPreviewPage.js +23 -269
- package/dist/local-files/TurnPreviewPage.js.map +1 -1
- package/dist/local-files/WorkspaceFileEvents.js +206 -0
- package/dist/local-files/WorkspaceFileEvents.js.map +1 -0
- package/dist/local-files/WorkspaceFiles.js +79 -3
- package/dist/local-files/WorkspaceFiles.js.map +1 -1
- package/dist/local-files/WorkspaceImages.js +15 -0
- package/dist/local-files/WorkspaceImages.js.map +1 -0
- package/dist/local-files/WorkspacePage.js +20 -5
- package/dist/local-files/WorkspacePage.js.map +1 -1
- package/dist/local-files/WorkspaceSessions.js +881 -79
- package/dist/local-files/WorkspaceSessions.js.map +1 -1
- package/dist/local-files/WorkspaceTimeline.js +105 -0
- package/dist/local-files/WorkspaceTimeline.js.map +1 -0
- package/dist/presentation/OutboundRouter.js +13 -6
- package/dist/presentation/OutboundRouter.js.map +1 -1
- package/dist/presentation/TurnStateReducer.js +28 -21
- package/dist/presentation/TurnStateReducer.js.map +1 -1
- package/dist/proxy/ProxySessionController.js +229 -92
- package/dist/proxy/ProxySessionController.js.map +1 -1
- package/dist/proxy/TaskMetadata.js +86 -0
- package/dist/proxy/TaskMetadata.js.map +1 -0
- package/dist/scheduling/ScheduleCards.js +10 -4
- package/dist/scheduling/ScheduleCards.js.map +1 -1
- package/dist/scheduling/ScheduleCommand.js +4 -0
- package/dist/scheduling/ScheduleCommand.js.map +1 -1
- package/dist/scheduling/ScheduledTaskStore.js +51 -12
- package/dist/scheduling/ScheduledTaskStore.js.map +1 -1
- package/dist/scheduling/types.js +18 -4
- package/dist/scheduling/types.js.map +1 -1
- package/dist/state/StateStore.js +145 -19
- package/dist/state/StateStore.js.map +1 -1
- package/dist/state/TurnPreviewJournal.js +143 -36
- package/dist/state/TurnPreviewJournal.js.map +1 -1
- package/dist/state/TurnToolText.js +172 -0
- package/dist/state/TurnToolText.js.map +1 -0
- package/dist/state/migrations.js +4 -0
- package/dist/state/migrations.js.map +1 -1
- package/dist/supervision/SafeRestartNotifier.js +9 -6
- package/dist/supervision/SafeRestartNotifier.js.map +1 -1
- package/dist/terminal/TerminalPage.js +5 -0
- package/dist/terminal/TerminalPage.js.map +1 -1
- package/dist/updates/AutomaticUpdatePreparer.js +63 -12
- package/dist/updates/AutomaticUpdatePreparer.js.map +1 -1
- package/dist/updates/ManualUpdateController.js +7 -2
- package/dist/updates/ManualUpdateController.js.map +1 -1
- package/dist/utils/promptAttachments.js +20 -0
- package/dist/utils/promptAttachments.js.map +1 -0
- package/dist/utils/toolTimestamp.js +6 -0
- package/dist/utils/toolTimestamp.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/skills/agent-bot/SKILL.md +23 -2
- package/src/cli/SelfUpdateObserver.ts +111 -0
- package/src/cli/SelfUpdateRunner.ts +271 -85
- package/src/cli/SelfUpdater.ts +53 -16
- package/src/cli/controlProtocol.ts +1 -0
- package/src/cli/help.ts +6 -0
- package/src/cli.ts +71 -5
- package/src/codex/CodexEventMapper.ts +25 -5
- package/src/codex/CodexRuntime.ts +4 -0
- package/src/feishu/CardRenderer.ts +48 -13
- package/src/feishu/ConsoleFeishuClient.ts +6 -1
- package/src/feishu/FeishuMarkdown.ts +2 -14
- package/src/feishu/FeishuMessageClient.ts +10 -0
- package/src/feishu/FeishuTurnPresenter.ts +22 -8
- package/src/feishu/types.ts +1 -0
- package/src/index.ts +47 -12
- package/src/local-files/DiagramPreview.ts +11 -6
- package/src/local-files/GitDiffPreview.ts +38 -10
- package/src/local-files/LiveMarkup.ts +103 -0
- package/src/local-files/LocalFileViewerServer.ts +120 -120
- package/src/local-files/MarkdownExport.ts +54 -0
- package/src/local-files/PreviewCodeFont.ts +12 -0
- package/src/local-files/PreviewSyntaxHighlight.ts +75 -0
- package/src/local-files/ToolCommandDisplay.ts +104 -0
- package/src/local-files/TurnPreviewPage.ts +23 -254
- package/src/local-files/WorkspaceFileEvents.ts +186 -0
- package/src/local-files/WorkspaceFiles.ts +72 -5
- package/src/local-files/WorkspaceImages.ts +10 -0
- package/src/local-files/WorkspacePage.ts +20 -5
- package/src/local-files/WorkspaceSessions.ts +811 -82
- package/src/local-files/WorkspaceTimeline.ts +109 -0
- package/src/presentation/OutboundRouter.ts +15 -4
- package/src/presentation/TurnStateReducer.ts +27 -18
- package/src/presentation/turnViewTypes.ts +2 -0
- package/src/proxy/ProxySessionController.ts +226 -77
- package/src/proxy/TaskMetadata.ts +81 -0
- package/src/runtime/types.ts +2 -1
- package/src/scheduling/ScheduleCards.ts +10 -4
- package/src/scheduling/ScheduleCommand.ts +4 -0
- package/src/scheduling/ScheduledTaskStore.ts +54 -9
- package/src/scheduling/types.ts +24 -4
- package/src/state/StateStore.ts +157 -20
- package/src/state/TurnPreviewJournal.ts +138 -34
- package/src/state/TurnToolText.ts +156 -0
- package/src/state/migrations.ts +4 -0
- package/src/supervision/SafeRestartNotifier.ts +9 -6
- package/src/terminal/TerminalPage.ts +5 -0
- package/src/updates/AutomaticUpdatePreparer.ts +52 -11
- package/src/updates/ManualUpdateController.ts +8 -3
- package/src/utils/promptAttachments.ts +24 -0
- package/src/utils/toolTimestamp.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ 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
|
+
|
|
9
27
|
## [0.1.27-alpha.3] - 2026-12-02
|
|
10
28
|
|
|
11
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.
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
-
|
|
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,7 +522,7 @@ 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
|
|
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 `` 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
|
|
|
@@ -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
|
|
package/README.zh.md
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
Agent Bot 运行在你的电脑上,把飞书机器人连接到本机编程 Agent。发送消息即可开始工作;执行过程中机器人会更新进度卡,完成后发送 Markdown 最终回答。
|
|
12
12
|
|
|
13
|
+
新思考卡片在连接或等待首次进度时,先用一行普通文字显示模型和思考强度,例如 `Model: gpt-6.2-sol · xhigh`,下方的等待文案显示当前 Agent;不显示 Provider 或重复字段标签,未指定的模型 / 思考强度显示「默认 / 自动」。收到进度后不再显示这组占位信息,后续设置切换不会改写运行中或已完成轮次的设置记录。
|
|
14
|
+
|
|
13
15
|
无法确认执行结果时,卡片、任务列表和 Turn Preview 显示 **待核实**。连接中断不代表任务失败或完成;后续确认结果会更新原卡片。网页连接状态、最终回答投递状态与任务执行状态分别记录。
|
|
14
16
|
|
|
15
17
|
## 可以做什么
|
|
@@ -118,11 +120,11 @@ agentbot server restart
|
|
|
118
120
|
|
|
119
121
|
它会等待当前运行中的 Agent 任务完成后自动重启,确保所有任务都能正常执行。Agent 调用 CLI 时,状态卡返回其来源任务;普通终端调用时,状态卡发送到配置用户的私聊。传入 `--task <任务>` 可覆盖这两种默认目标。在飞书话题中触发时,重启状态和重启后的启动卡都会返回原话题。
|
|
120
122
|
|
|
121
|
-
|
|
123
|
+
安全重启还会等待消息接收处理完成,包括确认表情、附件传输和卡片操作。等待期间飞书和工作台仍可正常发送消息;新消息会延后重启,等处理完成并重新满足静默窗口后再切换。发送重启通知后会再次检查活动状态,确认无新消息后才暂停接收执行。最终关机窗口内收到的飞书消息会连同原始路由和附件引用保存;工作台未受理的请求可在服务恢复后重试。重启后,仅对 20 分钟内、确定尚未进入处理阶段、任务绑定及 Stop 边界未改变且同一会话或共享任务没有更新消息的普通消息自动接续,并在确认表情、附件下载后复查这些边界;确定尚未处理的 Stop 会先于 Turn 恢复应用。已交接的任务沿用现有 Turn/队列恢复;结果不明或过期的消息不自动重放,会提示用户重发。旧版只有去重记录、没有保存正文的消息不会被自动重放。
|
|
122
124
|
|
|
123
125
|
安全重启卡片提供 `Cancel` 和 `ForceRestart`。点击 `ForceRestart` 后立即执行待处理的重启,不再等待任务、最终结果投递或空闲确认,可能中断正在执行的任务。如果已有准备完成的更新等待应用,则立即应用更新并重启。已取消、被新计划替代或已触发的计划不能再次强制执行。
|
|
124
126
|
|
|
125
|
-
|
|
127
|
+
卡片中每个显示的运行中任务展示加粗的任务标题和当前执行的 Prompt,不再显示任务 ID;Prompt 合并为单行,超过 40 个字符时截断并显示 `...`。任务后仍有 `Stop`,点击只停止对应任务,包括其他会话中的任务。任务停止后卡片自动刷新,安全重启继续等待剩余阻塞项。
|
|
126
128
|
|
|
127
129
|
卡片也会逐个列出阻止重启的终端,显示 8 位 token、目录、活跃状态、网页连接状态和当前命令。网页连接且处于前台、已知正在执行命令或最近 30 秒有输入输出时视为活跃;不活跃但未退出的 Shell 仍会阻止重启。PowerShell 配合 PSReadLine 可报告已提交命令和提示符空闲状态;其他 Shell 尽可能显示前台进程,无法识别时标为**未知**,不猜测命令。过长命令在卡片中截断。仅配置的所有者可点击**结束终端**,中断对应 Shell;安全重启会等待其实际退出及其他阻塞项结束。旧卡片或已取消的计划不能结束终端。
|
|
128
130
|
|
|
@@ -148,7 +150,15 @@ agentbot update
|
|
|
148
150
|
|
|
149
151
|
正式版默认检查稳定通道,Alpha 版默认检查 Alpha 通道。也可以使用 `--stable`、`--alpha` 或 `--version <版本>` 明确选择。服务正在运行时,Agent Bot 会发送安全重启卡片,等待当前任务完成后更新并自动恢复服务;如果没有任务在执行,则立即重启更新。源码目录和 `npm link` 安装不会被自更新命令修改。
|
|
150
152
|
|
|
151
|
-
|
|
153
|
+
`agentbot update` 会持续显示准备、安装阶段,并等待安装及服务就绪的最终结果;更新失败或回滚时显示具体原因并返回非零退出码。`--json` 将最终结果输出到 stdout,进度输出到 stderr。使用 `--background` 可在安排更新后返回,输出包含日志和结果文件路径。Agent 内调用也只等待安排完成,避免当前任务等待自身结束而阻塞安全更新。
|
|
154
|
+
|
|
155
|
+
Windows 下直接通过 Node 执行 npm 的 JavaScript 入口,不经过 shell 展开,保留含空格或特殊字符的路径。内部命令窗口仍隐藏,但进度和错误会正常显示。独立的进度观察进程不打开 SQLite。开始安全交接后,旧服务、Agent 及准备更新的进程有 10 秒退出时间;超时则只强制终止本次记录的仍存活进程,确认退出后才安装。优先终止旧 Supervisor,防止它重新拉起旧 Worker;不会结束更新器自身的进程树或其他实例。
|
|
156
|
+
|
|
157
|
+
进入安装流程后,即使更新前服务未运行,也会启动 Agent Bot:成功时启动新版本,失败时回滚并启动旧包或完整备份。交接前保存未完成任务的恢复检查点,这次更新打断的任务不受普通启动的 20 分钟窗口限制;保留原会话,先核对远端执行结果再继续,不覆盖用户 Stop,也不盲目重复已经完成的操作。如果系统拒绝终止进程或所有可用版本均无法启动,会报告具体失败,不会声称已恢复。
|
|
158
|
+
|
|
159
|
+
取得更新锁后,如果下载、候选版本安装、校验或备份失败,也会安排当前版本安全重启;原服务离线则启动当前版本,并保留准备失败的具体原因。无效请求、不支持的安装方式或其他更新已持有锁,不会触发重启。
|
|
160
|
+
|
|
161
|
+
飞书 `/update` 在同一张卡片上显示准备进度;安装、初始化、启动或回滚期间,即使主服务离线,独立更新进程仍会更新原卡片。失败时显示具体原因和回滚结果;通知失败记录到本地更新日志,不会因此回滚已成功安装的版本。
|
|
152
162
|
|
|
153
163
|
飞书服务运行期间,默认每天按服务器本地时区在 10:00–17:00 随机检查一次,只查询 npm 正式版 `latest`,检查时间会持久化。发现新版本后,向配置的用户私聊发送一张更新提醒卡片,包含本版新功能说明、60 秒倒计时和“取消本次更新”按钮。未取消则在后台下载并校验,等任务执行、最终结果投递及入站消息静默窗口全部结束后,再安装并自动重启;保留原有失败回滚保护。同一 Profile 中每个版本只提醒一次,取消后即使重启也不会再次自动更新该版本。倒计时期间重启会在原卡片上重新给足 60 秒,不另发提醒。
|
|
154
164
|
|
|
@@ -234,6 +244,9 @@ agentbot task goal [任务] [操作或目标]
|
|
|
234
244
|
agentbot task turns [任务]
|
|
235
245
|
agentbot task reset [任务] <Turn ID>
|
|
236
246
|
agentbot task dir [任务] [目录]
|
|
247
|
+
agentbot task metadata [--task <任务>] directory add <路径> [--user-directory]
|
|
248
|
+
agentbot task metadata [--task <任务>] directory list
|
|
249
|
+
agentbot task metadata [--task <任务>] directory remove <ID>
|
|
237
250
|
agentbot task file [任务] <路径>
|
|
238
251
|
agentbot task title [任务] "<标题>"
|
|
239
252
|
agentbot task stop [任务]
|
|
@@ -292,7 +305,7 @@ agentbot task dismiss [任务] --yes
|
|
|
292
305
|
|
|
293
306
|
私聊、群正文和话题分别维护当前任务。新话题在执行 `/help`、`/status` 或 `/sessions` 等命令时保持未绑定状态,不会暗中创建分支;收到第一条普通消息后,才会从可识别的原始 turn 创建分支,无法识别来源时则创建全新任务。使用 `/new` 可以直接创建全新话题任务,使用 `/sessions` 可以绑定现有任务;依赖当前任务的命令会提示如何绑定,而不会操作父会话任务。任务运行时发送普通消息会向当前轮次追加指令;需要在本轮结束后独立执行时,使用 `/queue`。
|
|
294
307
|
|
|
295
|
-
`/queue`、`/nosteer` 和 `/ns` 消息附带的图片会随排队 Prompt 一起保存,并在执行时传给 Agent,Agent Bot
|
|
308
|
+
`/queue`、`/nosteer` 和 `/ns` 消息附带的图片会随排队 Prompt 一起保存,并在执行时传给 Agent,Agent Bot 重启后仍保留。排队卡片中,有图片的 Prompt 末尾显示 `[图片]`,长文本截断后仍保留标识,纯文字 Prompt 不显示。如果图片下载失败,会提示错误,不会静默变成纯文字任务入队。
|
|
296
309
|
|
|
297
310
|
排查迟到消息时,复用现有接收审计记录,补充飞书创建时间、SDK 回调时间及事件 ID(上游提供时)。仅首次接收且延迟达到 1 分钟的消息额外记录一条告警,不含消息正文;正常消息和重复投递不增加日志条目。不改变接收、执行或消息顺序;SDK 回调时间不代表 WebSocket 帧抵达本机的时间。
|
|
298
311
|
|
|
@@ -350,7 +363,7 @@ agentbot schedule edit <计划ID> --cron "0 10 * * 1-5" --prompt "检查项目
|
|
|
350
363
|
agentbot schedule delete <计划ID>
|
|
351
364
|
```
|
|
352
365
|
|
|
353
|
-
|
|
366
|
+
通过 CLI 或飞书创建、编辑时会将计划保存为草稿,并向原会话发送确认卡片,由所有者确认后启用。Agent Bot 启动的 Agent 中,`add` 可省略 `--task`。斜杠命令支持同样的操作和参数,其中任务从当前会话确定。Cron 使用五段格式,最小精度为分钟。`--at` 使用含时区偏移的 ISO 时间,重复计划可用同样的格式指定 `--starts-at` 和 `--ends-at`。每个计划独立保存 IANA 时区。CLI 和 Workspace 支持最多 24,000 字符的 Prompt,飞书表单可输入最多 1,000 个替换字符,也可保留已有长 Prompt。`edit` 替换时间和 Prompt 设置,保留已有附件。CLI 列表最多返回 100 项,飞书列表支持翻页。
|
|
354
367
|
|
|
355
368
|
到点后进入持久化队列,空闲时启动独立轮次,不向活跃轮次追加指令。真正开始执行时,先向计划的原会话或话题发送原始 Prompt,再发送思考卡片并提交轮次;仅排队时不发送,恢复任务和方案确认后的继续执行不重复发送。Prompt 发送失败时不提交模型,并暂停已启用的计划。同一计划最多一个待执行、执行中或状态待核实的运行,重叠触发记录为跳过。`--max-delay <分钟>` 指定从计划时间起的最晚开始时限,默认 60 分钟;提交前再次校验过期、暂停/删除、所有者、目标和安全重启状态。暂停/删除取消尚未提交的运行,不停止已经提交的任务;停止仍使用普通 Stop。立即执行不改变下一次计划时间。
|
|
356
369
|
|
|
@@ -373,17 +386,33 @@ agentbot schedule delete <计划ID>
|
|
|
373
386
|
|
|
374
387
|
### 项目工作台
|
|
375
388
|
|
|
389
|
+
点击 Workspace 标题左侧的放大镜打开命令面板,上方是常用命令,下方是最近访问的文件。在 Workspace 任意区域按 **Ctrl+P** 或 **⌘+P** 可直接进入文件搜索。输入文件名或路径,会搜索主目录和当前任务已打开的目录标签。最近记录按任务保存在当前浏览器,关闭过的文件也能从这里重新打开。用 **↑ / ↓** 选择条目,**回车**执行或打开,**Esc** 关闭。
|
|
390
|
+
|
|
391
|
+
按 **Ctrl+Shift+P** 或 **⌘+Shift+P**,或在命令面板输入框开头输入 **`>`**,可进入 Workspace 命令搜索。默认上方显示浏览器记住的最近五条命令,下方列出全部命令。输入关键词后,上方优先显示匹配的最近及常用命令,下方显示全局匹配。浏览器首选语言为中文时,命令名称同时显示中文和英文,两种语言都可搜索。其他语言使用英文。
|
|
392
|
+
|
|
393
|
+
Workspace 默认跟随系统外观。点击右上角的太阳或月亮可切换深浅色,浏览器会记住所选主题,刷新或切换任务后继续使用。
|
|
394
|
+
|
|
395
|
+
点文件列表工具栏中的 **+** 打开 **选择目录**。可以选任务关联目录,也可以输入 Agent Bot 主机上的绝对目录路径。每个已打开目录在文件列表里有自己的标签,可查看文件树和未提交的 Git 改动。选中已打开的目录会切回已有标签。切换目录时,当前文件预览可以继续阅读。任务会保存目录标签、顺序和选中目录,刷新或重新进入 Workspace 后恢复。关闭标签即可将其从文件列表移除。
|
|
396
|
+
|
|
397
|
+
Agent 可用 `agentbot task metadata directory add <路径>` 关联目录。命令会把项目内的路径归并到项目根。没有项目标记的用户目录可加 `--user-directory`,临时目录会被排除。用 `list` 查看记录 ID,用 `remove <ID>` 移除关联。
|
|
398
|
+
|
|
399
|
+
登录后,可以在地址栏粘贴 Agent Bot 主机上的绝对文件或目录路径并按回车。输入当前文件视图之外的路径时,Git 仓库内会打开仓库根目录,仓库外的目录直接打开,仓库外的文件则打开其所在目录。输入文件时会同时打开预览,并展开目录树、高亮该文件;手机上返回目录列表即可看到定位结果。目录在当前标签打开,并在本次 Workspace 登录内可继续访问。
|
|
400
|
+
|
|
376
401
|
文件列表折叠按钮位于标签栏下方的文件预览工具栏,仅在文件和 Diff 预览中显示;新标签、网页和终端的内容视图使用完整内容区,不显示文件列表。切回文件或 Diff 时保留列表宽度、折叠偏好和内容缓存;关闭最后一个已折叠的文件标签后仍可浏览文件,不会丢失文件选择入口。
|
|
377
402
|
|
|
403
|
+
在地址栏输入 `src/file.ts:23` 可打开项目内的文件并定位到第 23 行,输入 `:23` 可在当前文件中跳转。已有的 `#L23` 链接也可继续使用。
|
|
404
|
+
|
|
378
405
|
列表顶部刷新按钮左侧的定位按钮会展开当前文件的父目录,并在列表内居中、高亮当前文件,不重新读取预览或改变文件阅读位置。普通文件定位到文件树,Diff 定位到 Git 变更树(含删除文件);定位会清除该列表的过滤条件,按需加载目录分页,展开、页数与列表滚动状态改为保存在当前浏览器本地,按项目区分,不再写入 URL。定位失败显示原因并提供重试,没有选中文件标签时禁用按钮。
|
|
379
406
|
|
|
380
407
|
未提交改动使用目录树,仅展示有改动的目录和文件;文件/目录元数据合计不超过 300 项时一次预载,较大项目仍按目录懒加载。文件树和改动树中,展开目录时会沿着只有一个子目录、没有文件的目录链自动继续展开,遇到文件、分支或读取失败时停止。有改动的目录显示内部全部变动文件数量,包括尚未展开的子目录;过滤、分页和折叠时仍保留完整计数,没有变动的目录不显示徽标,顶部数量仍统计整个项目。重命名文件归到当前路径,原路径保留在提示中;导航和刷新时保留目录展开状态,包括手动收起的子目录。
|
|
381
408
|
|
|
382
409
|
导航、刷新、返回、下载及关闭标签等操作使用轻量 SVG 图标,保留提示与无障碍标签,不引入图标库依赖。未提交改动使用数量徽标和单字符 Git 状态:未跟踪 `U`、修改 `M`、删除 `D`、暂存新增 `A`;重命名、复制及类型变化保留 `R`、`C`、`T`,冲突使用 `!`。混合状态优先显示删除,其次暂存区状态,最后工作区状态;完整暂存与未暂存含义保留在提示与无障碍标签中。
|
|
383
410
|
|
|
384
|
-
顶部任务、聊天、文件采用连体圆角分段切换,选中项凸起显示。切换时保留各区域的组件、滚动位置和已有界面状态;切回文件时恢复原来的列表或详情、选中标签及 Diff
|
|
411
|
+
顶部任务、聊天、文件采用连体圆角分段切换,选中项凸起显示。切换时保留各区域的组件、滚动位置和已有界面状态;切回文件时恢复原来的列表或详情、选中标签及 Diff 范围,不重新读取预览。代码文件使用 Roboto Mono 并支持语法高亮。行号栏默认留两位宽,按最大显示行号扩宽。普通 Markdown 预览渲染标题、列表、表格、代码块及图表,不再显示原始源码。本地文件链接在工作台内打开,图片仍受同一项目范围和签名限制。
|
|
385
412
|
|
|
386
|
-
Diff
|
|
413
|
+
点击代码、Diff 或 Markdown 预览里的文字,可放置阅读光标并高亮所在行。拖选文字后仍可复制或添加批注。
|
|
414
|
+
|
|
415
|
+
Diff 展示对应版本的完整文件,保留改动前后及改动之间的所有未修改内容;删除的旧行以内嵌红色显示,新增行以绿色显示,两侧均保留语法高亮和旧/新行号。Markdown 的 Diff 仍显示源码。全部比较 HEAD 与工作区,已暂存比较 HEAD 与暂存区快照,未暂存比较暂存区与工作区;仅路径变化的重命名不会把整份文件标成改写。新打开的 Diff 自动定位到第一个改动区块;返回已有标签或恢复已保存的 URL 时保留阅读位置。范围选择前的上下箭头跳到上一处/下一处连续改动区块,不重新读取文件,保留横向滚动位置,并将定位记入 URL 和页内历史。跳转时将改动块的首行置于阅读区中央,文件首尾以可滚动范围为限,没有对应改动时禁用按钮。带箭头的文件图标可切换到当前文件的非 Diff 预览。
|
|
387
416
|
|
|
388
417
|
打开文件、切换标签、Diff 范围、文件/改动列表及工作台区域都会记录页内历史。浏览器返回/前进及手机返回会恢复上一视图和阅读位置,不关闭标签,并跳过已关闭标签的记录;退到工作台入口后再返回,才正常离开页面。地址栏导航按钮只在工作台内导航,并跳过仅切换列表或区域的记录。刷新、分页、目录展开及滚动只更新当前记录,不新增返回记录。URL 查询参数记录当前区域、列表和文件/Diff 范围,URL 片段记录标签、文件阅读位置、布局和过滤条件;目录展开、已加载目录页数、列表滚动和过滤结果目录的收起状态只保存在当前浏览器本地,不再写入 URL。重新打开同一 URL 仍可还原链接指向的视图,不依赖旧的浏览器历史。若当前目录树没有本地记录,会自动定位当前文件,按需加载其父目录和分页,不切换已选区域或文件详情,过滤视图仍保留过滤条件;已有的手动收起状态会被保留。旧 URL 中的目录展开数据不再采用。链接只保存导航和位置,不包含文件正文或聊天文本;文件和 Git 改动仍读取当前项目内容,并非历史快照。
|
|
389
418
|
|
|
@@ -391,7 +420,7 @@ Diff 展示对应版本的完整文件,保留改动前后及改动之间的所
|
|
|
391
420
|
|
|
392
421
|
桌面端任务/聊天/文件三栏及内容/文件列表之间可拖动分隔线调整宽度,也可聚焦分隔线后按左右箭头调整。分隔线保持 1 像素,使用更宽的透明命中区域,悬停或拖动时轻微高亮。页头左侧按钮折叠任务栏,右侧按钮折叠整个文件工作区,聊天区使用释放的空间;两侧可以独立折叠,并始终通过页头按钮重新展开,不丢弃内容和阅读位置。文件预览工具栏按钮仍只折叠内部文件列表。小屏幕隐藏这两个页头折叠按钮,保留任务、聊天、文件的全宽切换;宽度和折叠状态写入 URL,不影响手机全宽导航。文件列表顶部支持按文件名/路径过滤,两种列表独立保留条件;小项目在完整元数据上本地过滤,大项目最多扫描 20000 项或 1 秒、返回 300 个匹配,未完整扫描时明确提示。可用 src/名称这样的目录前缀缩小范围;清空过滤恢复原目录树及手动展开/收起状态。
|
|
393
422
|
|
|
394
|
-
标签栏最右侧固定 **+** 打开新标签,提供文件、网页和 Terminal 入口,以及文件路径/HTTP(S) 地址栏;手机列表模式在文件栏顶部也保留 **+**。新标签和首次打开的文件插入到当前标签右侧;从新标签打开文件、网页或 Terminal 时替换当前新标签,但文件已有打开的标签时直接跳转过去。打开已有文件或 Diff(包括地址栏输入已有文件路径)会复用原标签,不移动、不新增,并让整个标签进入视口;文件与 Diff 仍使用独立标签,复用 Diff 时保留原范围。文件与 Diff 标签使用对应文件类型图标,Diff 额外显示小型标记;新标签页使用窗口图标,新增按钮仍为 **+**。网页标签优先显示公开 HTML 页面的标题,否则显示完整打开网址;标题读取不携带凭证,仅支持标准端口的公开 HTTP(S),拒绝内网、保留地址及危险重定向,最多读取 64 KiB、等待 5 秒,不阻塞网页或重建 iframe,可通过刷新重试。其他地址栏导航仍在当前标签内进行,同网址的网页不会跳到其他标签。关闭按钮缩小,为标签名称留出更多空间。关闭当前标签时返回最近浏览且仍打开的标签,恢复原阅读位置;关闭后台标签不切换当前页面。标签浏览顺序和稳定标签标识也写入 URL。地址栏左侧提供后退、前进按钮,只在当前标签的文件锚点、仍打开的标签及内嵌网页的浏览器历史之间导航,不离开工作台;按实际访问顺序前后导航,只恢复目标标签的内容和阅读位置,保留当前布局、目录过滤及展开状态、标签顺序和后台标签视图;已关闭标签的历史会被跳过,不会重新打开,导航后的目标标签会完整进入视口。已知没有目标的方向会禁用按钮,后退后进行新的导航会清除原来的前进分支。刷新后尚未读取的历史记录及跨域网页内部历史可能无法确定边界,此时保留按钮,不猜测其可用性。直接打开保存的 URL 仍会还原其中的标签和布局。按回车提交文件路径或网址,无需右侧提交按钮,在当前标签内打开并保持标签位置,返回旧视图复用内容缓存和已认证的终端连接。仍遵守浏览器跨域隔离:地址栏记录从工作台打开的网址,不读取第三方 iframe 内部跳转后的地址。未填写协议的网址自动补齐:域名默认 HTTPS,localhost 和 IP 默认 HTTP,显式协议保持不变;地址栏会显示最多 20 个文件候选,按完整项目相对路径匹配,支持正斜杠、反斜杠及混合输入。选择候选时打开该文件;未选择候选直接回车时,仅当路径和文件名完整匹配现有文件才打开文件,与后缀无关,否则按网址处理,部分匹配不会自动选中文件。可用上下箭头选择、回车确认、Escape 收起;小项目在已缓存元数据上匹配,大项目使用有界的文件搜索,并显示结果不完整或读取失败的原因。匹配不修改目录过滤条件、URL
|
|
423
|
+
标签栏最右侧固定 **+** 打开新标签,提供文件、网页和 Terminal 入口,以及文件路径/HTTP(S) 地址栏;手机列表模式在文件栏顶部也保留 **+**。新标签和首次打开的文件插入到当前标签右侧;从新标签打开文件、网页或 Terminal 时替换当前新标签,但文件已有打开的标签时直接跳转过去。打开已有文件或 Diff(包括地址栏输入已有文件路径)会复用原标签,不移动、不新增,并让整个标签进入视口;文件与 Diff 仍使用独立标签,复用 Diff 时保留原范围。文件与 Diff 标签使用对应文件类型图标,Diff 额外显示小型标记;新标签页使用窗口图标,新增按钮仍为 **+**。网页标签优先显示公开 HTML 页面的标题,否则显示完整打开网址;标题读取不携带凭证,仅支持标准端口的公开 HTTP(S),拒绝内网、保留地址及危险重定向,最多读取 64 KiB、等待 5 秒,不阻塞网页或重建 iframe,可通过刷新重试。其他地址栏导航仍在当前标签内进行,同网址的网页不会跳到其他标签。关闭按钮缩小,为标签名称留出更多空间。关闭当前标签时返回最近浏览且仍打开的标签,恢复原阅读位置;关闭后台标签不切换当前页面。标签浏览顺序和稳定标签标识也写入 URL。地址栏左侧提供后退、前进按钮,只在当前标签的文件锚点、仍打开的标签及内嵌网页的浏览器历史之间导航,不离开工作台;按实际访问顺序前后导航,只恢复目标标签的内容和阅读位置,保留当前布局、目录过滤及展开状态、标签顺序和后台标签视图;已关闭标签的历史会被跳过,不会重新打开,导航后的目标标签会完整进入视口。已知没有目标的方向会禁用按钮,后退后进行新的导航会清除原来的前进分支。刷新后尚未读取的历史记录及跨域网页内部历史可能无法确定边界,此时保留按钮,不猜测其可用性。直接打开保存的 URL 仍会还原其中的标签和布局。按回车提交文件路径或网址,无需右侧提交按钮,在当前标签内打开并保持标签位置,返回旧视图复用内容缓存和已认证的终端连接。仍遵守浏览器跨域隔离:地址栏记录从工作台打开的网址,不读取第三方 iframe 内部跳转后的地址。未填写协议的网址自动补齐:域名默认 HTTPS,localhost 和 IP 默认 HTTP,显式协议保持不变;地址栏会显示最多 20 个文件候选,按完整项目相对路径匹配,支持正斜杠、反斜杠及混合输入。选择候选时打开该文件;未选择候选直接回车时,仅当路径和文件名完整匹配现有文件才打开文件,与后缀无关,否则按网址处理,部分匹配不会自动选中文件。可用上下箭头选择、回车确认、Escape 收起;小项目在已缓存元数据上匹配,大项目使用有界的文件搜索,并显示结果不完整或读取失败的原因。匹配不修改目录过滤条件、URL 或导航历史。当前项目内的绝对路径和本地 file URL 可以直接打开文件。网页保留 sandbox,但使用网站自身的正常来源,以支持存储、登录、表单、弹窗、下载、对话框、用户授权的存储访问申请及全屏/媒体/剪贴板写入能力,仍受浏览器权限控制;继续保持跨域隔离并禁止导航整个工作台。本机查看器 HTML 页面拒绝嵌入,本地 HTML/SVG/XML 仍使用响应级来源沙箱;跨域网页请求最多携带工作台来源,不泄露签名路径。网站的 X-Frame-Options/CSP、第三方 Cookie 和 HTTPS/HTTP 混合内容限制仍然生效,无法内嵌时可在新窗口打开,不绕过这些策略。网页和终端切换标签时保持挂载。点击 **打开 Terminal** 使用当前工作台会话启动 Shell,不再输入终端密码,也无需飞书审批。仅打开保存的工作台 URL 不会启动新的 Shell。关闭终端标签仅断开视图;可用终端内的关闭按钮结束 Shell,或等待 30 分钟断开回收。退出工作台会结束该登录会话启动的 Shell。URL 保存标签目标/实例标识、过滤和布局,不保存终端密码或浏览器授权凭证。
|
|
395
424
|
|
|
396
425
|
手机端(含横屏)将文件/改动列表与内容分为两个全宽视图:点击文件进入内容,点击树形图标直接回到文件/改动列表。阅读时使用紧凑工具栏和更窄的行号栏,隐藏重复页面标题及路径;完整路径仍可在列表和标签提示中查看。列表模式隐藏文件标签栏和内容工具栏,但不会丢弃已打开标签或阅读位置。
|
|
397
426
|
|
|
@@ -401,11 +430,43 @@ Diff 展示对应版本的完整文件,保留改动前后及改动之间的所
|
|
|
401
430
|
|
|
402
431
|
配置了飞书所有者后,工作台任务与聊天和网页终端共用 **`/settings` → 高级 → 工作台 / 终端密码**(Profile YAML 的 `terminal.password`)。修改后安全重启即生效。登录工作台一次即可使用任务、聊天和内嵌终端;从飞书命令卡打开的独立终端仍按原流程连接。未设置或仍为默认值 `123456` 时,工作台在本机、局域网和公网自动登录。**免密时,任何能访问工作台的人都能查看、操作任务;如终端已启用,也能以主机用户权限运行 Shell。** 对外开放前请设置强密码并使用 HTTPS。旧的 `AGENT_BOT_WORKSPACE_PASSWORD` 不再读取;如果此前仅配置了这个环境变量,请在重启前设置共享密码。只读签名链接无需登录。在 **任务** 栏可按项目浏览、搜索和筛选已归档任务。
|
|
403
432
|
|
|
404
|
-
|
|
433
|
+
选择网页任务不会改变飞书当前任务。浏览器标签标题显示「任务名 · 最新轮次的 Prompt 开头 · 项目目录名 · AgentBot Workspace」,缺失的部分直接省略,页面顶部仍显示项目名。聊天分页显示当前分支的历史,通过页面共用的一条 SSE 实时更新,重连后用快照校对。右下角的 **回到最新** 只立即滚到已加载对话的底部,不发网络请求。已在底部时自动跟随新消息;向上阅读时保留位置。恢复较早的阅读位置或重连后错过更新时,工作台会按顺序自动分批补齐中间轮次,保留阅读位置,不会跳过历史直接拼接最新消息。
|
|
434
|
+
|
|
435
|
+
Agent Bot 重启或 Workspace 构建变化后,页面会自动刷新。同一浏览器标签页会恢复当前任务、文件标签、阅读位置,以及草稿里的文字、图片、文件和批注。Prompt 图片延迟加载时,聊天区会保持原来的阅读位置。新任务草稿在发送首条消息前刷新也能恢复。自动刷新会等附件写入浏览器存储。若浏览器无法保存附件,输入框会提示并暂缓刷新。使用自定义密码时,服务重启后可能需要重新登录。
|
|
436
|
+
|
|
437
|
+
聊天栏头部在同一行显示任务标题、状态、Agent 和当前分支已记录的轮次总数。有数据时也显示最新上报的累计 Token 和会话日志的磁盘占用。聊天栏较窄时,可横向滚动任务信息查看后续字段。
|
|
438
|
+
|
|
439
|
+
用户消息、进展说明(Commentary)和 Agent 回复使用正文颜色,字号都是与 Turn Preview 最终回答一致的 14px。进展说明和可见消息将连续执行分段。组内单行标题跟随 Agent 最新上报的思考标题,同一段思考后续出现的新标题也会更新。缺少标题时显示「工具执行」。执行组默认折叠,手动展开后会在实时更新和最终回答到达时保留展开状态。进展说明、可见的思考摘要和回答会在原位置流式更新。展开单项工具才加载命令、结果和错误,集中显示在一个紧凑的日志区。Shell 命令沿用 Turn Preview 的排版,不改变原始记录;结果保留原有换行与缩进,长行只在日志区内横向滚动,不自动折行。滚动接近当前片段末尾会加载下一段,也可点 **加载更多输出**。大日志不因体积被截断;只有原始记录缺失时才标明目前只有已保存的摘要。工具行用图标区分类型。悬停时只轻微提亮工具和分组标题文字,失败信息在日志内用低对比度标记。已记录的时间放在日志底部,文件链接悬停时可查看路径。
|
|
440
|
+
|
|
441
|
+
展开修改文件的工具,可查看文件路径及已记录的增删行数。点击 Workspace 已打开目录中的文件路径,即可查看当前 Git Diff。工具提供补丁时,可在该文件下展开「本次补丁」查看这次修改。
|
|
442
|
+
|
|
443
|
+
聊天中的「文件变更」每行显示一个文件和已记录的增删行数。本项目内显示相对路径,项目外显示绝对路径。最近一轮有计划时,宽聊天区在右侧显示计划,窄聊天区可点击输入框上方的进度按钮查看。
|
|
444
|
+
|
|
445
|
+
最终回答下方可复制或下载与 Turn Preview 一致的完整 Markdown,也可复制该轮的 Turn Preview 分享链接。Reset 将当前聊天重置到所选已完成轮次结束时的状态。Fork 从同一轮创建并打开新的 Workspace 任务,飞书当前任务保持原状。
|
|
446
|
+
|
|
447
|
+
左侧任务列表每项显示两行。首行显示任务名和最后更新时间,次行显示最近一轮的 Prompt 摘要。任务执行中时,副标题同时显示执行状态,任务圆点会轻微呼吸。时间按浏览器的本地时区显示。
|
|
448
|
+
|
|
449
|
+
轮次执行期间,Workspace 输入框上方显示实时耗时、本轮使用的模型和思考强度。
|
|
450
|
+
|
|
451
|
+
在任务列表点 **新建任务** 会打开草稿,默认使用当前会话的项目。可以点 **×** 清除项目,再点 **选择项目目录** 从已有项目中选,或输入 Agent Bot 主机上的绝对目录路径。发送第一条 Prompt 时才创建底层 Agent 会话。Workspace 新建的任务关联你的飞书私聊。输入框底部的工具栏可切换当前任务的模型和思考强度,从下一次请求生效,也可以为草稿预先配置。
|
|
452
|
+
|
|
453
|
+
复制图片或文件后,在输入框按 **Ctrl+V** 或 **⌘+V** 即可加入草稿附件。也可点 **+** 或拖入文件。支持任意文件格式,最多 4 个,单个不超过 5 MiB,合计不超过 12 MiB。PNG、JPEG、GIF、WebP 可预览,点 **×** 移除草稿附件。普通文件以本地路径交给 Agent,可从 Workspace 聊天记录下载,飞书消息会列出文件名。发送或排队时才上传,可以随文字一起提交,也可以只发附件。页面打开期间,失败的消息和附件可以沿用原请求重试,已收到或尚不能确认可安全重发的消息不会重复发送。发送和权限确认沿用任务原来的飞书会话或话题。停止当前轮次不会清空队列。
|
|
454
|
+
|
|
455
|
+
在聊天、文件或 Diff 预览中选中文字,选区右下方的 **添加批注** 按钮会显示 3 秒。点击后可在原文下方写批注。按 **Enter** 或移开焦点会把非空批注加入草稿,按 **Shift+Enter** 或 **Ctrl+Enter** 换行。原文上的下划线会在发送草稿或移除批注附件后消失。文件批注包含绝对路径和行号范围,渲染后的 Markdown 使用对应源码块的范围,聊天批注记录消息来源。悬浮到附件标题即可查看原文摘要和批注内容。可随下一条消息发送,也可单独发送,让 Agent 处理批注。
|
|
456
|
+
|
|
457
|
+
已保存的附件及 Agent 回复里的 Markdown 图片可直接显示。内嵌图片按可用宽度等比缩小,高度不超过视口的 60% 或 720 像素。点击工作台聊天中的图片可以打开适应视口的无边框大图。工作台读取本地图片需要会话权限,范围限于任务目录或附件缓存。外部图片不自动加载,缺失时显示提示。Markdown 表格会换行,过宽时在表格内横向滚动。输入区默认留出两行文字空间,长内容随输入增高,达到高度上限后在框内滚动。已有任务的模型和思考强度菜单从工具栏上方展开。**Enter** 发送,**Alt + Enter** 换行。发送按钮和 Enter 会在任务运行时追加到当前轮次(Steer),空闲时开启新轮次。**Shift + Enter**、**Ctrl + Enter** 或 **⌘ + Enter** 会在任务运行时排队,空闲时直接发送。
|
|
458
|
+
|
|
459
|
+
排队消息按序号显示在输入框上方,带附件的消息会显示「附件」标识。点击消息可原地编辑正文,保存时保留排队位置和附件。编辑已入队的定时任务只影响本次执行。Workspace、`agentbot task status` 和已打开的飞书排队卡片显示同一个 Agent Bot 任务队列。点击其中的 **×** 可取消排队,并将内容和附件恢复到输入框,与已有草稿合并。如果发送途中目标轮次结束,也可以把消息恢复到输入框。
|
|
460
|
+
|
|
461
|
+
闹钟按钮打开当前任务的 Agent Bot 定时计划和运行记录。可将聊天草稿中的文字、图片、文件或批注保存为计划,也可只安排附件。默认半小时后执行一次,可选每小时、每天、工作日、每周、每月、每年或自定义五段 Cron。高级设置可调整时区、结束时间、最长等待和错过后补跑的窗口。Workspace、`agentbot schedule` 与飞书共用计划,可编辑、启用、暂停、恢复、立即执行或删除。到点后如果任务仍在运行,调度器会把消息放入持久化队列,空闲后在任务原会话或话题开启独立轮次。
|
|
462
|
+
|
|
463
|
+
Workspace 的提示在鼠标悬停或键盘聚焦时出现,短暂停留后自动隐藏。有快捷键时,提示右侧显示当前平台的按键。
|
|
405
464
|
|
|
406
465
|
即使同属一个项目,每个任务也有独立右栏。切换会恢复各自的标签和阅读位置,不会关闭后台终端。任务 URL 只保存当前任务、聊天阅读锚点和该任务可恢复的右栏信息;目录展开、分页和目录滚动仍只保存在本地,输入草稿只保存在当前浏览器标签页。回复里的项目文件链接复用右栏标签;执行摘要的改动入口打开的是 **当前** Git 工作区,不是历史快照。
|
|
407
466
|
|
|
408
|
-
|
|
467
|
+
文件树和 Git 改动树优先显示有限缓存中的目录页,项目变动后在后台就地更新,不清空列表。实时通知不传文件内容,目录页未变化时也不重复下载列表。桌面网络条件允许时可以预载小项目或预热少量目录页;手机、蜂窝网、慢网或开启节省流量时不预取,只加载可见或主动打开的目录,未打开的 Git 改动树只取计数。大目录按每页 100 项读取,省流模式下滚到分页处才取下一页;读取失败会提示原因并提供重试。
|
|
468
|
+
|
|
469
|
+
点击文件查看内容,切换 **未提交** 浏览修改、暂存、未跟踪、删除及重命名文件。Diff 可选 **全部改动**(HEAD 到工作区)、**已暂存**(HEAD 到暂存区)、**未暂存**(暂存区到工作区);同一文件只列一次,即使暂存与未暂存修改互相抵消也不会漏掉。文件与 Diff 使用独立标签,切换时复用已加载内容和阅读位置,当前可见预览随文件变动在后台更新,关闭标签释放缓存。**刷新** 更新列表与当前标签,并恢复已展开目录。小屏幕通过任务、聊天、文件三个视图切换,不关闭文件标签。
|
|
409
470
|
|
|
410
471
|
工作台链接允许只读访问所选目录及其后代,请勿分享给无权读取项目的人;分享 Turn Preview 时也应注意其中的项目入口。路径与符号链接不能跳出该目录,不开放 Git 内部文件,HTML 仅作为源码显示。文件浏览不提供编辑、暂存或提交;文件签名本身不授予终端访问权限。文本预览限制为前 2 MiB 或 10000 行;完整 Diff 的各版本沿用此限制,最多合并 20000 行,改动补丁限制为 1 MiB 或 10000 行。超过 Diff 上限时报错,不会静默隐藏文件上下文;下载保留完整文件。Git 读取失败、非 Git 项目与没有改动分别展示。
|
|
411
472
|
|
|
@@ -456,7 +517,7 @@ TraeX 上报模型容量排队时,原思考卡片和 Turn Preview 显示排队
|
|
|
456
517
|
|
|
457
518
|
TraeX 后台任务通知会显示任务状态及可用的任务编号、摘要或 Shell 退出码。如果通知启动了独立轮次,任务结果和 Agent 的补充回答会合在一张「后台任务通知」卡片里,发送到任务原来的会话或话题,原轮次不变。用户指令不会追加到独立通知轮次:通知占用运行通道时,指令和附件进入持久化 Prompt 队列,空闲后使用普通思考卡片执行。如果通知在普通用户轮次中到达,则追加到已有思考卡片,该轮仍正常接收用户追加指令,最终回复仍单独发送。超出卡片容量的回答可以在 Turn Preview 中看全文;Preview 不可用时,剩余内容在同一会话或话题单独发送。卡片不读取或展示通知中的输出文件路径和完整日志。
|
|
458
519
|
|
|
459
|
-
飞书回答和思考卡片中的相对文件链接(例如 `outputs/report.md
|
|
520
|
+
飞书回答和思考卡片中的相对文件链接(例如 `outputs/report.md`)按该轮保存的项目目录解析后,转换为签名查看链接。图片文件的普通链接(例如 `[查看截图](.tmp/screenshot.png)`)同样打开签名图片预览;`` 内嵌图片语法仍保持现有图片发送行为。支持 Windows/POSIX 路径、编码空格和行号引用;解析后无法访问的文件显示为路径文字,网页链接和代码保持不变。
|
|
460
521
|
|
|
461
522
|
`/status` 状态卡片底部也提供 **Preview**,与 Refresh、Stop/Switch 放在同一行。点击可查看正在执行的轮次,空闲时则查看最近一轮;刷新卡片后会更新目标。对于尚未被 Agent Bot 记录的外部任务,打开 Preview 时会从 Agent 按需读取所选轮次并缓存完整执行详情;读取失败可刷新页面重试。没有轮次、无法读取历史且无本地记录,或文件预览服务不可用时不显示按钮。查看其他任务的状态不会切换或接管任务。
|
|
462
523
|
|
|
@@ -466,6 +527,10 @@ TraeX 后台任务通知会显示任务状态及可用的任务编号、摘要
|
|
|
466
527
|
|
|
467
528
|
Turn Preview 完整保留已记录的执行内容,不再反复把整轮内容写入数据库。页面按增量实时更新,折叠工具展开时加载完整详情。备份时请保留整个 Profile 数据目录,以同时保存执行记录和任务信息;已有历史仍可查看。
|
|
468
529
|
|
|
530
|
+
启用本地文件预览后,思考卡片末尾文件变更列表中的每个路径都链接到签名 Git Diff 预览,已跟踪的删除文件也可查看。新增文件或没有可用 Diff 的文件打开普通预览。链接文字在 Windows 上用单个反斜杠显示路径,其他系统用正斜杠,不改变真实文件路径或 URL;项目内仍显示相对路径,项目外显示绝对路径。卡片文件列表省略为零或缺失的增删行数;预览链接不可用时保留纯文本。
|
|
531
|
+
|
|
532
|
+
大型已记录轮次分批回放,避免整个加载过程持续阻塞其他请求。短时、有容量上限的内存缓存会在重新打开时复用摘要检查点,实时更新从页面对应的检查点继续,不再重复回放同一段历史。展开工具仍可读取完整日志,缓存不会裁剪已保存的执行内容。
|
|
533
|
+
|
|
469
534
|
通过 `/turn <ID 或序号>` 或 Preview 打开仅导入摘要的历史轮次时,会从原始 Agent 会话按需读取该轮执行详情并缓存。仅请求摘要分页和目标轮次的完整记录,不拉取整个会话的完整历史,也不恢复或打断源任务。读取失败会单独显示原因,不改变本轮执行状态;重新打开详情或刷新 Preview 即可重试。已有详细快照保持不变,历史中缺失的耗时、Token 等数据不作推算。
|
|
470
535
|
|
|
471
536
|
Turn Preview 支持 JavaScript/TypeScript、Python、Shell/PowerShell、JSON/YAML、SQL、HTML/CSS、Go、Rust、Java、C/C++ 等常见语言的代码块高亮,配色跟随系统浅色/深色主题。在代码块开头指定语言即可;未指定、未知语言或超大代码块仍完整显示为纯文本。行内代码和工具日志保持原样。
|
|
@@ -478,7 +543,7 @@ Turn Preview 顶部用点分隔各项信息,保留“耗时”标签,Token
|
|
|
478
543
|
|
|
479
544
|
当 App Server 仅返回 `Read` 或 `Grep` 工具名时,会使用已有动作元数据,在标题摘要和展开命令中补充文件路径或搜索内容与范围。完整命令保持不变,缺失的目标不作推测,已保存的历史 Preview 不会回填。
|
|
480
545
|
|
|
481
|
-
工具标题开头使用与思考卡片相同的状态图标:执行中为沙漏,成功为对号,失败为叉号;执行中的工具边框突出显示。标题摘要省略命令续行符,保留文件路径和展开后的完整命令。时长为 0
|
|
546
|
+
工具标题开头使用与思考卡片相同的状态图标:执行中为沙漏,成功为对号,失败为叉号;执行中的工具边框突出显示。标题摘要省略命令续行符,保留文件路径和展开后的完整命令。时长为 0 秒时隐藏。展开后的底部显示执行状态、开始时间、耗时和结果字符数,不随内容滚动;执行中标题和底部的耗时都会实时更新。工具时间戳为 0 或无效值时表示时间不可用,而非从 1970 年开始计时:实时事件使用本地接收时间记录耗时,缺少可靠开始时间的旧记录显示未知,不补造耗时。
|
|
482
547
|
|
|
483
548
|
命令授权卡片使用简短的“命令执行确认”标题,优先显示申请原因,命令放入默认折叠的区域,不再把整条命令重复显示为加粗标题。摘要省略可识别的 Shell 包装,展开后仍保留原始包装。命令或说明超长时明确提示截断,请在 Turn Preview 查看完整原始命令后再授权。四个授权操作及其权限范围不变;Preview 保持只读,实时更新保留命令展开状态和滚动位置。
|
|
484
549
|
|
|
Binary file
|