@keyou007/agent-bot 0.1.27-alpha.1 → 0.1.27-alpha.2
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 +24 -0
- package/README.md +54 -4
- package/README.zh.md +54 -4
- package/SECURITY.md +14 -0
- package/assets/workspace-sessions.js +648 -0
- package/assets/workspace.css +160 -0
- package/assets/workspace.js +1795 -0
- package/config.example.yaml +3 -2
- package/dist/codex/CodexEventMapper.js +35 -0
- package/dist/codex/CodexEventMapper.js.map +1 -1
- package/dist/codex/CodexRuntime.js +50 -4
- package/dist/codex/CodexRuntime.js.map +1 -1
- package/dist/codex/TraeTaskNotification.js +44 -0
- package/dist/codex/TraeTaskNotification.js.map +1 -0
- package/dist/config/SettingsStore.js +1 -1
- package/dist/config/SettingsStore.js.map +1 -1
- package/dist/config/loadConfig.js +3 -2
- package/dist/config/loadConfig.js.map +1 -1
- package/dist/config/paths.js +3 -0
- package/dist/config/paths.js.map +1 -1
- package/dist/feishu/CardRenderer.js +54 -10
- package/dist/feishu/CardRenderer.js.map +1 -1
- package/dist/feishu/FeishuMessageClient.js +2 -2
- package/dist/feishu/FeishuMessageClient.js.map +1 -1
- package/dist/feishu/FeishuTurnPresenter.js +103 -16
- package/dist/feishu/FeishuTurnPresenter.js.map +1 -1
- package/dist/index.js +61 -17
- package/dist/index.js.map +1 -1
- package/dist/local-files/DiagramPreview.js +1 -1
- package/dist/local-files/GitDiffPreview.js +11 -7
- package/dist/local-files/GitDiffPreview.js.map +1 -1
- package/dist/local-files/LocalFileViewerServer.js +273 -25
- package/dist/local-files/LocalFileViewerServer.js.map +1 -1
- package/dist/local-files/MarkdownFileLinks.js +5 -4
- package/dist/local-files/MarkdownFileLinks.js.map +1 -1
- package/dist/local-files/TurnPreviewPage.js +32 -10
- package/dist/local-files/TurnPreviewPage.js.map +1 -1
- package/dist/local-files/WebPageTitle.js +85 -0
- package/dist/local-files/WebPageTitle.js.map +1 -0
- package/dist/local-files/WorkspaceFiles.js +553 -0
- package/dist/local-files/WorkspaceFiles.js.map +1 -0
- package/dist/local-files/WorkspaceOrigin.js +38 -0
- package/dist/local-files/WorkspaceOrigin.js.map +1 -0
- package/dist/local-files/WorkspacePage.js +19 -0
- package/dist/local-files/WorkspacePage.js.map +1 -0
- package/dist/local-files/WorkspaceSessions.js +689 -0
- package/dist/local-files/WorkspaceSessions.js.map +1 -0
- package/dist/presentation/TurnStateReducer.js +74 -13
- package/dist/presentation/TurnStateReducer.js.map +1 -1
- package/dist/presentation/turnActivity.js +41 -0
- package/dist/presentation/turnActivity.js.map +1 -0
- package/dist/presentation/turnStatus.js +11 -0
- package/dist/presentation/turnStatus.js.map +1 -1
- package/dist/presentation/visibleTurnActivities.js +4 -2
- package/dist/presentation/visibleTurnActivities.js.map +1 -1
- package/dist/proxy/ProxySessionController.js +150 -14
- package/dist/proxy/ProxySessionController.js.map +1 -1
- package/dist/runtime/types.js +1 -1
- package/dist/runtime/types.js.map +1 -1
- package/dist/state/InboundMessageStore.js +54 -0
- package/dist/state/InboundMessageStore.js.map +1 -0
- package/dist/state/StateStore.js +71 -1
- package/dist/state/StateStore.js.map +1 -1
- package/dist/state/TurnPreviewJournal.js +4 -2
- package/dist/state/TurnPreviewJournal.js.map +1 -1
- package/dist/state/migrations.js +20 -0
- package/dist/state/migrations.js.map +1 -1
- package/dist/supervision/SafeRestartNotifier.js +1 -0
- package/dist/supervision/SafeRestartNotifier.js.map +1 -1
- package/dist/supervision/SafeRestartScheduler.js +33 -16
- package/dist/supervision/SafeRestartScheduler.js.map +1 -1
- package/dist/terminal/TerminalLinks.js +32 -0
- package/dist/terminal/TerminalLinks.js.map +1 -1
- package/dist/terminal/TerminalPage.js +44 -24
- package/dist/terminal/TerminalPage.js.map +1 -1
- package/dist/terminal/TerminalServer.js +103 -39
- package/dist/terminal/TerminalServer.js.map +1 -1
- package/docs/technical-reference.md +1 -1
- package/docs/technical-reference.zh.md +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/skills/agent-bot/SKILL.md +3 -1
- package/src/codex/CodexEventMapper.ts +39 -1
- package/src/codex/CodexRuntime.ts +54 -4
- package/src/codex/TraeTaskNotification.ts +49 -0
- package/src/config/SettingsStore.ts +1 -1
- package/src/config/loadConfig.ts +3 -2
- package/src/config/paths.ts +4 -0
- package/src/feishu/CardRenderer.ts +45 -11
- package/src/feishu/FeishuMessageClient.ts +2 -2
- package/src/feishu/FeishuTurnPresenter.ts +110 -20
- package/src/index.ts +62 -17
- package/src/local-files/DiagramPreview.ts +1 -1
- package/src/local-files/GitDiffPreview.ts +10 -7
- package/src/local-files/LocalFileViewerServer.ts +243 -25
- package/src/local-files/MarkdownFileLinks.ts +5 -3
- package/src/local-files/TurnPreviewPage.ts +35 -9
- package/src/local-files/WebPageTitle.ts +59 -0
- package/src/local-files/WorkspaceFiles.ts +468 -0
- package/src/local-files/WorkspaceOrigin.ts +31 -0
- package/src/local-files/WorkspacePage.ts +21 -0
- package/src/local-files/WorkspaceSessions.ts +587 -0
- package/src/presentation/TurnStateReducer.ts +76 -14
- package/src/presentation/turnActivity.ts +43 -0
- package/src/presentation/turnStatus.ts +14 -0
- package/src/presentation/turnViewTypes.ts +10 -1
- package/src/presentation/visibleTurnActivities.ts +4 -2
- package/src/proxy/ProxySessionController.ts +149 -13
- package/src/runtime/types.ts +17 -0
- package/src/state/InboundMessageStore.ts +72 -0
- package/src/state/StateStore.ts +80 -1
- package/src/state/TurnPreviewJournal.ts +4 -2
- package/src/state/migrations.ts +20 -0
- package/src/supervision/SafeRestartNotifier.ts +1 -0
- package/src/supervision/SafeRestartScheduler.ts +42 -18
- package/src/terminal/TerminalLinks.ts +26 -0
- package/src/terminal/TerminalPage.ts +44 -24
- package/src/terminal/TerminalServer.ts +98 -36
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ The project follows [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.27-alpha.2] - 2026-12-02
|
|
10
|
+
|
|
11
|
+
- 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`.
|
|
12
|
+
|
|
13
|
+
- Connect Workspace Tasks and Chat to real Agent Bot sessions with paginated branch history, one live update stream, durable request deduplication, and turn-scoped Stop. Share Workspace login with embedded terminals, close Shells when access is revoked, preserve direct-listener origins, and document the public-default-password exposure.
|
|
14
|
+
|
|
15
|
+
- Present TraeX background task notifications and follow-up answers on a dedicated, recoverable card in the original conversation or topic. Preserve the original Turn, queue user messages and attachments separately from notification Turns, and keep ordinary in-Turn steering unchanged.
|
|
16
|
+
|
|
17
|
+
- Use Agent-neutral context-compaction notices for both start and completion. Normalize saved system timeline notices for display without changing model commentary or stored history.
|
|
18
|
+
|
|
19
|
+
- Refresh model-queue elapsed time on the existing thinking-card refresh clock and the local Turn Preview clock without polling the Agent or writing timer events. Keep the original start time across position changes, freeze final duration on dequeue, and retain timestamp-free legacy behavior.
|
|
20
|
+
|
|
21
|
+
- Classify context-compaction and model-queue timeline entries separately from model commentary, including saved legacy records. Render them as Markdown blockquotes in thinking cards and Turn Preview without consuming pinned commentary slots; give Preview steer messages a user icon without quoting their content.
|
|
22
|
+
|
|
23
|
+
- Render saved user image attachments and Agent Markdown images inline in Workspace chat, with responsive sizing and session-protected local image access.
|
|
24
|
+
|
|
25
|
+
- Record model queue episodes in the thinking timeline as well as the header: update positions in place, retain known wait duration after dequeue, and distinguish stopped/disconnected work. Keep Preview incremental updates and legacy queue-event replay compatible without inventing missing timestamps.
|
|
26
|
+
|
|
27
|
+
- Show optional TraeX model-capacity queue state and positions in the existing thinking card and Turn Preview, including context-compaction queueing. Persist queue events, clear stale hints on output/settlement, and log only state/position transitions without changing Codex/ACP execution, settings, or Prompt queue behavior.
|
|
28
|
+
|
|
29
|
+
- Prevent safe restarts and updates from dropping newly received messages during notification delivery: wait for inbound handlers/card actions, recheck before shutdown and persist late handoff messages atomically with deduplication. Recover only recent, provably unprocessed messages with routing, attachment and task/Stop guards; retain existing Turn recovery and never blindly replay ambiguous work or legacy receipts.
|
|
30
|
+
|
|
31
|
+
- Preserve all attached images when manually queuing Prompts with `/queue`, `/nosteer`, or `/ns`, including persistence and later Agent execution, instead of silently submitting text-only work.
|
|
32
|
+
|
|
9
33
|
## [0.1.27-alpha.1] - 2026-11-28
|
|
10
34
|
|
|
11
35
|
- Keep Turn Preview file-list, tool and reasoning disclosure states when returning from a file/diff page or reloading the same history entry. Restore only expanded lazy details, isolate state by Turn, and resume live updates after back-forward cache restoration.
|
package/README.md
CHANGED
|
@@ -118,6 +118,8 @@ agentbot server restart
|
|
|
118
118
|
|
|
119
119
|
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
120
|
|
|
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.
|
|
122
|
+
|
|
121
123
|
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.
|
|
122
124
|
|
|
123
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.
|
|
@@ -293,6 +295,8 @@ Renaming a Feishu group updates its currently bound task title, even when you re
|
|
|
293
295
|
|
|
294
296
|
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.
|
|
295
297
|
|
|
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.
|
|
299
|
+
|
|
296
300
|
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.
|
|
297
301
|
|
|
298
302
|
`/release` sends a card for releasing the shared App Server used by the current task's Agent so its tasks can be opened in Codex Desktop. The card lists blocking task names and keeps them updated. Agent Bot never releases automatically: click **Release** when idle, or **Release Now** to interrupt active work and clear queued Prompts. **Cancel** cancels the pending release. Releasing does not archive or delete task history, but it affects every task loaded by that shared App Server.
|
|
@@ -372,15 +376,53 @@ Enter a message beginning with `!` directly in the Feishu chat box to run a loca
|
|
|
372
376
|
For example, `! ls` lists files in the current directory, and `! git status` shows the state of the current Git repository.
|
|
373
377
|
Local commands run in independent background processes without a time limit, so they do not block other messages or commands in the current conversation. The same output card refreshes while a command runs, preserves the observed order of normal and diagnostic output, and includes a `Cancel` action. Agent Bot resumes monitoring commands that are still running after a Worker restart. Long output keeps its beginning and end while the middle is truncated.
|
|
374
378
|
|
|
379
|
+
### Project Workspace
|
|
380
|
+
|
|
381
|
+
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
|
+
|
|
383
|
+
The locate button before Refresh expands and centers the current file in its tree without rereading its preview or changing the reading position. Ordinary files use the file tree; Diff tabs use Git changes, including deleted files. Locating clears the selected list's filter and loads needed directory pages, retaining expansion/page/scroll state locally in the browser, scoped to the project rather than the signed URL. Errors offer Retry, and non-file tabs disable the button.
|
|
384
|
+
|
|
385
|
+
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
|
+
|
|
387
|
+
Navigation, refresh, back, download and tab-close actions use lightweight SVG icons with tooltips and accessible labels, without an icon-library dependency. Uncommitted changes have a count badge and single-character Git status: `U` for untracked, `M` for modified, `D` for deleted and `A` for staged additions. Renames, copies and type changes retain `R`, `C` and `T`; conflicts use `!`. Deletion takes precedence in mixed states, followed by the index status and then the worktree status. Full staged and unstaged descriptions remain in tooltips and accessible labels.
|
|
388
|
+
|
|
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.
|
|
390
|
+
|
|
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.
|
|
392
|
+
|
|
393
|
+
Opening files, selecting tabs, changing Diff scope, switching file/change lists and switching workspace areas create in-page history entries. Browser Back/Forward and phone Back restore the previous view and reading position without closing tabs, skipping records for closed tabs; returning past the workspace's initial view leaves the page normally. The address-bar navigation buttons stay inside the workspace and skip list/area-only entries. Refresh, pagination, folder expansion and scrolling update the current history entry rather than adding entries. The URL query records the active area, list and file/Diff scope; its fragment records tabs, file reading positions, layout and filter queries. Directory expansion, loaded directory pages, tree scrolling and filtered-directory collapse are saved locally in the browser, not in the URL. Reopening the same URL restores the linked view without relying on the old browser history. If the selected tree has no local record, the workspace locates the current file, loading its parent directories and necessary pages without switching the selected pane or reader; filtered views keep their query. An intentionally collapsed local tree is preserved. Old URL directory-expansion data is ignored. URLs store only navigation and positions, not file contents or chat text; file and Git content is still read from the current project rather than a historical snapshot.
|
|
394
|
+
|
|
395
|
+
On desktop, a compact project/task sidebar sits on the left, chat uses the center, and the file workspace occupies the right. File tabs and the path/action toolbar span the top of the file workspace; content is on the left and the independent file/change tree is on the far right. The tree's segmented switch and refresh action stay in its own header, and selected file tabs are highlighted. Selecting a visible tab keeps the strip in place and reuses its DOM; only offscreen targets are revealed. The mouse wheel over the tab strip scrolls it horizontally. Widening the workspace preserves the left scroll position, revealing more tabs on the right first; it shifts left only once the rightmost tab is reached. Translucent overlay scrollbars take no layout width or height and appear on hover, during scrolling or while dragging. Clicking a track seeks to that position; dragging its thumb scrolls the corresponding region, including nested code and table previews, without changing tabs or the other scroll axis. Ordinary thumbs grow from 4 to 8 pixels when the pointer enters their 12-pixel hit area. The tab strip uses a separate 2-pixel bar at its top edge with a smaller hit area and lower opacity, and never grows on hover. Pointer capture keeps a drag working outside the track; release, cancellation, hiding or unmounting ends the drag. Enabled buttons, tabs and directory rows have hover feedback in both themes. Hovering highlights the entire tab; the close button uses a slightly stronger highlight when hovered, while the tab name adds no separate highlight. Tablet file views keep content and the right-hand tree side by side.
|
|
396
|
+
|
|
397
|
+
Desktop task/chat/workspace dividers and the reader/tree divider support dragging to resize, or keyboard Left/Right after focusing. Dividers remain 1-pixel lines with wider transparent hit areas and subtle hover/drag highlighting. The header button on the left collapses the task sidebar; the button on the right collapses the entire file workspace, letting chat fill the freed space. Both outer panels can be collapsed independently and reopened from the header without discarding their content or reading positions. The file-preview toolbar button still controls only the inner file tree. Header collapse controls are hidden on small screens, where the Tasks/Chat/Files switch keeps its existing full-width behavior. Widths and collapse states are stored in the URL without changing phone full-width navigation. The tree header has a per-list file/path filter. Small trees filter locally; large searches scan at most 20000 metadata records or one second and return at most 300 matches, explicitly reporting partial results. Use a directory prefix such as src/name to narrow a large search. Clearing the filter restores the normal tree and its manually expanded/collapsed state.
|
|
398
|
+
|
|
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.
|
|
400
|
+
|
|
401
|
+
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
|
+
|
|
403
|
+
The tree icon beside Back in the mobile content toolbar and clicking the top-right Files icon while already in Files return directly to the current file/change list, without stepping through history or closing tabs. The tree icon matches the file-list toolbar, and the top-right Files switch keeps its folder icon. Directory rows in both trees show only an expand arrow, without folder icons; same-level names align. Mouse clicks do not draw a directory focus frame; keyboard focus stays inside the row. Directory toggles prevent incidental text selection, while filenames remain selectable for copying; drag-selecting a filename does not open the file. Expanding and collapsing keep the directory row in place while changing its children below; any temporary bottom space needed to avoid a scroll jump is released when scrolling up or expanding. Thin vertical hierarchy guides appear for hovered folders, while the current file's ancestor guides remain visible. They follow file and Diff tabs across cached, lazy-loaded and filtered trees, even when filtering hides the current file, without changing indentation or taking layout space. Hover and selection backgrounds span the full tree row without moving icons or filenames. Current-file rows use stronger blue highlights, while hierarchy guides remain visible above them. Desktop tree rows use a compact 26-pixel height with slim chevrons; mobile rows retain larger touch targets. File and Diff trees, tabs and address suggestions share compact, standalone SVG symbols without a common background. Shell uses a dollar prompt, HTML uses an HTML5 outline, and other types retain their own recognizable shapes; colors adapt to light and dark themes without runtime fonts or an icon-library dependency. C/C++ source aliases (`.c`, `.cc`, `.cpp`, `.cxx`) share one symbol; headers (`.h`, `.hh`, `.hpp`, `.hxx`) use a related but distinct symbol. Python, TypeScript, JavaScript, JSON and Markdown variants also share their language icon. CMake (`CMakeLists.txt`, `.cmake`), Make (`Makefile`, `GNUmakefile`, `.mk`, `.mak`), GN (`.gn`, `.gni`), Ninja (`.ninja`) and Bazel (`BUILD`, `WORKSPACE`, `MODULE.bazel`, `.bzl`) have dedicated build icons. License/COPYING, `AGENTS.md` and README files have separate scales, robot and book symbols; case-insensitive special filenames take precedence over generic extensions, including localized README files. Git-ignored files and directories appear gray but remain browsable, including filtered results; tracked files and explicitly re-included paths are not marked ignored. The file tree also shows Git status only for changed files (U/M/A/D/R and conflicts), and a count of changed files inside directories. Changed files show green added/red removed line counts before the rightmost Git status badge; directory counts also stay at the trailing edge. Smaller text and naturally sized badges keep the columns compact without padding for the widest count; directories sum all descendant counts, independent of filtering and pagination. Counts use net HEAD-to-worktree changes, including untracked text files, without double-counting staged edits. Binary or unreadable/oversized untracked files show a dash; tooltips explain unavailable counts or partial directory totals. Changed-file previews provide a View changes action that opens the corresponding Diff, preserving rename metadata. Refresh rereads status; Git status failures show their reason without blocking file browsing. Reopening a tab restores its reading position, and browser Back from the list returns to the detail view.
|
|
404
|
+
|
|
405
|
+
Open **Workspace** after the status in a Turn Preview header (for example, **Completed · Workspace**) to open that task’s Git changes list directly. Loading the conversation in the background does not replace the file panel or clear the list and its count. Choose **Chat** to see the conversation. Directory previews still start in the file list. Opening a page never starts an Agent or Shell.
|
|
406
|
+
|
|
407
|
+
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
|
+
|
|
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.
|
|
410
|
+
|
|
411
|
+
Every task has an independent file panel, including two tasks in the same project. Switching restores its tabs and reading positions without closing background terminals. Task URLs contain only the selected task, a chat reading anchor and that task’s recoverable file-panel state. Tree expansion, loaded directory pages and scrolling stay in local browser storage; draft text stays in the current browser tab. Local Markdown links open existing file tabs; execution-summary links show the **current** Git diff, not a historical file version.
|
|
412
|
+
|
|
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.
|
|
414
|
+
|
|
415
|
+
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
|
+
|
|
375
417
|
### Interactive browser terminal
|
|
376
418
|
|
|
377
419
|
With terminal text selected, **Ctrl+C** copies without interrupting the command; without a selection it still interrupts. **Ctrl+V** pastes through the browser's native clipboard events, including on HTTP deployments, and preserves xterm's newline and bracketed-paste handling. **Cmd+C / Cmd+V** remain available on macOS. The toolbar's **Ctrl+C** button always interrupts.
|
|
378
420
|
|
|
379
421
|
The **Terminal** field on management cards shows the 8-character token from that terminal's recovery URL (`/terminal/<token>`), preserving case. It stays the same across reconnects; terminals created from the same command have different tokens. Internal IDs and browser credentials remain separate.
|
|
380
422
|
|
|
381
|
-
|
|
423
|
+
For the standalone terminal opened from a Feishu command card, enter the terminal password to connect; no Feishu approval is required. The default is **`123456`** when `terminal.password` is absent. The owner can change it in **`/settings` > Advanced > Workspace / Terminal Password**, then safely restart to activate it. Saved passwords are not displayed in cards; leaving the field blank keeps the current password. Use a strong password before exposing the terminal to other devices. Passwords grant full host-user Shell access and are stored in the local Profile YAML.
|
|
382
424
|
|
|
383
|
-
The password page points to `/setting` (an abbreviation of `/settings`) > Advanced > Terminal Password. While the effective password is still `123456`, it prefills that default and automatically connects after a visible five-second countdown. Editing the field, connecting manually, hiding/leaving the page or going offline cancels the countdown. Custom passwords are never prefilled or sent to the page and require manual login. Saved browser sessions and running-Shell recovery connect without waiting.
|
|
425
|
+
The password page points to `/setting` (an abbreviation of `/settings`) > Advanced > Workspace / Terminal Password. While the effective password is still `123456`, it prefills that default and automatically connects after a visible five-second countdown. Editing the field, connecting manually, hiding/leaving the page or going offline cancels the countdown. Custom passwords are never prefilled or sent to the page and require manual login. Saved browser sessions and running-Shell recovery connect without waiting.
|
|
384
426
|
|
|
385
427
|
A **terminal management card** is sent to the original command conversation/topic, never redirected to private chat. Only the configured owner may close or refresh it. Reopen automatically restores a running Shell without another password, revoking the old tab's access and replaying its output. Keep recovery links private: anyone holding one can reconnect while that Shell is running. An unstarted Shell still requires the password. Close and Refresh work without the webpage. Running Shells can reconnect while safe restart waits; first-start Shells cannot. Ended or pre-restart Shells cannot be recovered. Open Terminal on the original command card creates a new Shell.
|
|
386
428
|
|
|
@@ -411,6 +453,14 @@ Set `AGENT_BOT_HOME` to use another user-data directory. See [config.example.yam
|
|
|
411
453
|
|
|
412
454
|
Local non-image files and directories referenced in Agent replies become signed, read-only viewer links for source code, Markdown, logs, PDFs, common media files, or downward directory browsing. By default, links open only on the computer running Agent Bot. Setting `fileViewer.host` to `0.0.0.0` automatically selects a LAN address in wired, Wi-Fi, other physical, then VPN order. Use `fileViewer.publicBaseUrl` to override that address for a domain, HTTPS reverse proxy, or port mapping.
|
|
413
455
|
|
|
456
|
+
TraeX model-capacity queue notifications appear on the existing thinking card and Turn Preview, including the position when the upstream provides one. Each queue episode also has an in-place timeline entry, like context compaction: position updates replace the same entry, dequeue retains the wait duration when recorded timestamps are available, and stopped/disconnected Turns do not falsely claim work resumed. Context-compaction queueing is labeled separately. The header hint clears on dequeue, new model output, or Turn settlement; queue state is saved for Preview and only state/position transitions are logged. Codex and ACP Agents that do not send this optional extension keep their existing behavior. Model queueing is separate from queued user Prompts.
|
|
457
|
+
|
|
458
|
+
Context-compaction and model-queue entries are system notices, not model commentary. Thinking cards and Turn Preview display them as Markdown blockquotes; they do not use the commentary slots reserved during card pagination or snapshot trimming, but still count toward overall card size. Saved records use the same display. Preview user steering keeps ordinary Markdown with a user icon, not an automatic blockquote.
|
|
459
|
+
|
|
460
|
+
While queued, the timeline notice shows elapsed waiting time from the first recorded queue event, refreshed whenever the thinking card updates (normally every three seconds) and every second by Turn Preview's existing local clock. Position changes do not reset the timer. Dequeue saves the final wait duration so it stays fixed on later updates and history replay. These clocks do not poll the Agent or write timer events; older records without a start timestamp do not invent a duration.
|
|
461
|
+
|
|
462
|
+
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
|
+
|
|
414
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.
|
|
415
465
|
|
|
416
466
|
`/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.
|
|
@@ -439,7 +489,7 @@ Command approval cards use a short heading and show the reason first, with the c
|
|
|
439
489
|
|
|
440
490
|
TraeX plan-mode confirmations follow the task permission setting: **auto** automatically approves entering Plan mode and approving the plan, while **confirm** shows the plan with `Approve Plan` (or `Enter Plan Mode`), `Reject`, and `Cancel Request` actions. Requests and decisions remain in the card history and live Preview; automatic decisions are labeled as automatic, not as a user click. Approval continues implementation in the same task and on the same progress card when TraeX ends its planning turn. Explicit user instructions to discuss or plan only still apply. If TraeX has already entered Plan mode, Agent Bot verifies completion instead of showing a false approval failure. Otherwise, failed automatic confirmation is reported with manual controls. Preview remains read-only. Cancelling a confirmation is not the same as stopping the task, and waiting turns still block safe restart. Notifications missed by an older running version are not automatically replayed.
|
|
441
491
|
|
|
442
|
-
Changed-file links in Turn Preview's file summary and tool details open the complete current file with inline Git changes when available: unchanged lines remain visible, additions are green, and removed lines are inserted in red at their original positions, with old/new line numbers and current-file line anchors. The diff is read only when opening the file and compares the current worktree (including staged changes) with `HEAD`, not the historical Turn. Tracked deletions remain viewable; View File opens the ordinary preview. Refreshing rereads the diff.
|
|
492
|
+
Changed-file links in Turn Preview's file summary and tool details open the complete current file with inline Git changes when available: unchanged lines remain visible, additions are green, and removed lines are inserted in red at their original positions, with old/new line numbers and current-file line anchors. The diff is read only when opening the file and compares the current worktree (including staged changes) with `HEAD`, not the historical Turn. Existing text files also support decoded GBK/UTF-16 versions and encoding changes. Tracked deletions remain viewable; View File opens the ordinary preview. Refreshing rereads the diff. On first open without a line anchor, the earliest changed line is centered in the viewport; explicit line links and browser-restored reading positions on reload or Back/Forward take precedence. New files, including staged additions and files before the first commit, open the file itself rather than an all-added Diff. Clean files, non-Git directories, binary files, unavailable Git, oversized diffs/files and files changing during the read fall back to the ordinary viewer when the file exists. Returning to Turn Preview or reloading the same history entry preserves file-list, tool and reasoning expansion states; only expanded details load again, and cached-page returns resume live updates. Other file links, raw/download responses and ordinary live previews are unchanged.
|
|
443
493
|
|
|
444
494
|
Local images in Turn Preview Prompts, Commentary, and results load through signed file URLs, including live updates. Relative image paths resolve from the task's project directory.
|
|
445
495
|
|
|
@@ -491,7 +541,7 @@ By default, `feishu.respondToOwnerOnly: true` accepts only messages and card act
|
|
|
491
541
|
|
|
492
542
|
Agent Bot responds to ordinary owner messages in groups containing the bot. Set `feishu.respondToAllGroupMessages` to `false` to additionally require the owner to @ the bot in groups; private chats are unchanged. Initialization requests the manually published all-group-message permission only when this option is enabled. After changing it from `false` to `true`, rerun `agentbot init` and complete the final permission step.
|
|
493
543
|
|
|
494
|
-
Thinking cards, execution details and activity-history cards use only the grouped layout: auxiliary Commentary and user steering remain visible, while each execution group shows only its latest native reasoning and expands to reveal complete tool commands and results. Common PowerShell, zsh, bash, and sh launcher prefixes are omitted from the displayed commands. A failed tool remains marked inside its own tool panel but does not turn the complete execution group red or give the group a failure icon. Execution groups start collapsed and keep stable component identities so a group manually opened in Feishu stays open across card updates. When
|
|
544
|
+
Thinking cards, execution details and activity-history cards use only the grouped layout: auxiliary Commentary and user steering remain visible, while each execution group shows only its latest native reasoning and expands to reveal complete tool commands and results. Common PowerShell, zsh, bash, and sh launcher prefixes are omitted from the displayed commands. A failed tool remains marked inside its own tool panel but does not turn the complete execution group red or give the group a failure icon. Execution groups start collapsed and keep stable component identities so a group manually opened in Feishu stays open across card updates. When an Agent reports context compaction, the card shows the live compaction state as a system activity without a fixed Agent name, including elapsed time, before/after context token counts, executed Turn count, and rollout disk usage when available. On long turns, pagination measures the fully rendered card content instead of using fixed message or tool counts. The retired layout option is ignored in existing configuration; saved history and web Preview are unchanged.
|
|
495
545
|
|
|
496
546
|
Whitespace-only Commentary does not use a pinned message slot. Adjacent omission markers generated by the card are shown once, without removing literal message text or changing saved history.
|
|
497
547
|
|
package/README.zh.md
CHANGED
|
@@ -118,6 +118,8 @@ agentbot server restart
|
|
|
118
118
|
|
|
119
119
|
它会等待当前运行中的 Agent 任务完成后自动重启,确保所有任务都能正常执行。Agent 调用 CLI 时,状态卡返回其来源任务;普通终端调用时,状态卡发送到配置用户的私聊。传入 `--task <任务>` 可覆盖这两种默认目标。在飞书话题中触发时,重启状态和重启后的启动卡都会返回原话题。
|
|
120
120
|
|
|
121
|
+
安全重启还会等待消息接收处理完成,包括确认表情、附件下载和卡片操作。发送重启通知后再次检查活动状态,再同步暂停新消息执行;最终关机窗口内收到的消息会连同原始路由和附件引用保存。重启后,仅对 20 分钟内、确定尚未进入处理阶段、任务绑定及 Stop 边界未改变且同一会话或共享任务没有更新消息的普通消息自动接续,并在确认表情、附件下载后复查这些边界;确定尚未处理的 Stop 会先于 Turn 恢复应用。已交接的任务沿用现有 Turn/队列恢复;结果不明或过期的消息不自动重放,会提示用户重发。旧版只有去重记录、没有保存正文的消息不会被自动重放。
|
|
122
|
+
|
|
121
123
|
安全重启卡片提供 `Cancel` 和 `ForceRestart`。点击 `ForceRestart` 后立即执行待处理的重启,不再等待任务、最终结果投递或空闲确认,可能中断正在执行的任务。如果已有准备完成的更新等待应用,则立即应用更新并重启。已取消、被新计划替代或已触发的计划不能再次强制执行。
|
|
122
124
|
|
|
123
125
|
卡片中每个显示的运行中任务后都有 `Stop`,点击只停止对应任务,包括其他会话中的任务。任务停止后卡片自动刷新,安全重启继续等待剩余阻塞项。
|
|
@@ -290,6 +292,8 @@ agentbot task dismiss [任务] --yes
|
|
|
290
292
|
|
|
291
293
|
私聊、群正文和话题分别维护当前任务。新话题在执行 `/help`、`/status` 或 `/sessions` 等命令时保持未绑定状态,不会暗中创建分支;收到第一条普通消息后,才会从可识别的原始 turn 创建分支,无法识别来源时则创建全新任务。使用 `/new` 可以直接创建全新话题任务,使用 `/sessions` 可以绑定现有任务;依赖当前任务的命令会提示如何绑定,而不会操作父会话任务。任务运行时发送普通消息会向当前轮次追加指令;需要在本轮结束后独立执行时,使用 `/queue`。
|
|
292
294
|
|
|
295
|
+
`/queue`、`/nosteer` 和 `/ns` 消息附带的图片会随排队 Prompt 一起保存,并在执行时传给 Agent,Agent Bot 重启后仍保留。如果图片下载失败,会提示错误,不会静默变成纯文字任务入队。
|
|
296
|
+
|
|
293
297
|
排查迟到消息时,复用现有接收审计记录,补充飞书创建时间、SDK 回调时间及事件 ID(上游提供时)。仅首次接收且延迟达到 1 分钟的消息额外记录一条告警,不含消息正文;正常消息和重复投递不增加日志条目。不改变接收、执行或消息顺序;SDK 回调时间不代表 WebSocket 帧抵达本机的时间。
|
|
294
298
|
|
|
295
299
|
`/release` 会发送当前任务所属 Agent 共享 App Server 的释放卡片,以便在 Codex Desktop 中打开这些任务。卡片会列出并持续刷新阻塞释放的任务名。Agent Bot 不会自动释放:空闲时点击 **Release**,有活动任务时点击 **Release Now** 会中断执行并清除排队 Prompt;**Cancel** 会取消本次释放。释放不会归档或删除任务历史,但会影响该 App Server 已加载的所有任务。
|
|
@@ -367,15 +371,53 @@ agentbot schedule delete <计划ID>
|
|
|
367
371
|
比如 `! ls` 会列出当前目录下的文件,`! git status` 会显示当前 Git 仓库的状态。
|
|
368
372
|
本地命令由独立后台进程执行,不设运行超时,也不会阻塞当前会话中的其他消息或命令。运行期间会动态刷新同一张输出卡片,并按观察到的先后顺序显示正常输出和诊断输出;可通过卡片中的 `Cancel` 停止命令。Agent Bot Worker 重启后会自动恢复监控仍在运行的命令。内容过长时会保留开头和结尾,并截断中间部分。
|
|
369
373
|
|
|
374
|
+
### 项目工作台
|
|
375
|
+
|
|
376
|
+
文件列表折叠按钮位于标签栏下方的文件预览工具栏,仅在文件和 Diff 预览中显示;新标签、网页和终端的内容视图使用完整内容区,不显示文件列表。切回文件或 Diff 时保留列表宽度、折叠偏好和内容缓存;关闭最后一个已折叠的文件标签后仍可浏览文件,不会丢失文件选择入口。
|
|
377
|
+
|
|
378
|
+
列表顶部刷新按钮左侧的定位按钮会展开当前文件的父目录,并在列表内居中、高亮当前文件,不重新读取预览或改变文件阅读位置。普通文件定位到文件树,Diff 定位到 Git 变更树(含删除文件);定位会清除该列表的过滤条件,按需加载目录分页,展开、页数与列表滚动状态改为保存在当前浏览器本地,按项目区分,不再写入 URL。定位失败显示原因并提供重试,没有选中文件标签时禁用按钮。
|
|
379
|
+
|
|
380
|
+
未提交改动使用目录树,仅展示有改动的目录和文件;文件/目录元数据合计不超过 300 项时一次预载,较大项目仍按目录懒加载。文件树和改动树中,展开目录时会沿着只有一个子目录、没有文件的目录链自动继续展开,遇到文件、分支或读取失败时停止。有改动的目录显示内部全部变动文件数量,包括尚未展开的子目录;过滤、分页和折叠时仍保留完整计数,没有变动的目录不显示徽标,顶部数量仍统计整个项目。重命名文件归到当前路径,原路径保留在提示中;导航和刷新时保留目录展开状态,包括手动收起的子目录。
|
|
381
|
+
|
|
382
|
+
导航、刷新、返回、下载及关闭标签等操作使用轻量 SVG 图标,保留提示与无障碍标签,不引入图标库依赖。未提交改动使用数量徽标和单字符 Git 状态:未跟踪 `U`、修改 `M`、删除 `D`、暂存新增 `A`;重命名、复制及类型变化保留 `R`、`C`、`T`,冲突使用 `!`。混合状态优先显示删除,其次暂存区状态,最后工作区状态;完整暂存与未暂存含义保留在提示与无障碍标签中。
|
|
383
|
+
|
|
384
|
+
顶部任务、聊天、文件采用连体圆角分段切换,选中项凸起显示。切换时保留各区域的组件、滚动位置和已有界面状态;切回文件时恢复原来的列表或详情、选中标签及 Diff 范围,不重新读取预览。代码文件支持语法高亮;普通 Markdown 预览渲染标题、列表、表格、代码块及图表,不再显示原始源码。本地文件链接在工作台内打开,图片仍受同一项目范围和签名限制。
|
|
385
|
+
|
|
386
|
+
Diff 展示对应版本的完整文件,保留改动前后及改动之间的所有未修改内容;删除的旧行以内嵌红色显示,新增行以绿色显示,两侧均保留语法高亮和旧/新行号。Markdown 的 Diff 仍显示源码。全部比较 HEAD 与工作区,已暂存比较 HEAD 与暂存区快照,未暂存比较暂存区与工作区;仅路径变化的重命名不会把整份文件标成改写。新打开的 Diff 自动定位到第一个改动区块;返回已有标签或恢复已保存的 URL 时保留阅读位置。范围选择前的上下箭头跳到上一处/下一处连续改动区块,不重新读取文件,保留横向滚动位置,并将定位记入 URL 和页内历史;区块在阅读区居中显示,文件首尾以可滚动范围为限,没有对应改动时禁用按钮。带箭头的文件图标可切换到当前文件的非 Diff 预览。
|
|
387
|
+
|
|
388
|
+
打开文件、切换标签、Diff 范围、文件/改动列表及工作台区域都会记录页内历史。浏览器返回/前进及手机返回会恢复上一视图和阅读位置,不关闭标签,并跳过已关闭标签的记录;退到工作台入口后再返回,才正常离开页面。地址栏导航按钮只在工作台内导航,并跳过仅切换列表或区域的记录。刷新、分页、目录展开及滚动只更新当前记录,不新增返回记录。URL 查询参数记录当前区域、列表和文件/Diff 范围,URL 片段记录标签、文件阅读位置、布局和过滤条件;目录展开、已加载目录页数、列表滚动和过滤结果目录的收起状态只保存在当前浏览器本地,不再写入 URL。重新打开同一 URL 仍可还原链接指向的视图,不依赖旧的浏览器历史。若当前目录树没有本地记录,会自动定位当前文件,按需加载其父目录和分页,不切换已选区域或文件详情,过滤视图仍保留过滤条件;已有的手动收起状态会被保留。旧 URL 中的目录展开数据不再采用。链接只保存导航和位置,不包含文件正文或聊天文本;文件和 Git 改动仍读取当前项目内容,并非历史快照。
|
|
389
|
+
|
|
390
|
+
桌面端左侧是紧凑的项目/任务栏,中间是聊天区,右侧是文件工作区。文件标签和路径/操作工具栏位于文件区顶部,下方左侧显示内容,文件/改动树作为最右侧的独立栏。文件树的分段切换及刷新操作留在自身顶部,选中的文件标签突出显示。点击可见标签时复用标签节点并保持标签栏位置,仅在目标完全不可见时滚动显示;鼠标位于标签栏时可用滚轮横向浏览标签。工作区变宽时优先保持标签栏左侧位置,先向右显示更多标签,只有右侧已到末尾时才向左补充显示。滚动条采用半透明浮层,不占布局宽高,在悬停、滚动或拖拽时显示;点击滚道定位,拖拽滑块滚动对应区域,嵌套代码块和表格也支持,不切换标签或移动另一方向。普通滑块为 4 像素,鼠标进入附近 12 像素命中区时增大到 8 像素;标签栏使用顶部独立的 2 像素细条,更小的命中区和更低透明度,悬停不变大。拖拽采用指针捕获,移出滚道仍可继续,松开、取消、隐藏或卸载时结束。可用按钮、标签及目录行在深浅色主题下都有悬停反馈;悬停时整块标签高亮,悬停关闭按钮时该按钮略微加深,名称区域不叠加独立高亮;平板端文件内容与右侧目录树保持并排。
|
|
391
|
+
|
|
392
|
+
桌面端任务/聊天/文件三栏及内容/文件列表之间可拖动分隔线调整宽度,也可聚焦分隔线后按左右箭头调整。分隔线保持 1 像素,使用更宽的透明命中区域,悬停或拖动时轻微高亮。页头左侧按钮折叠任务栏,右侧按钮折叠整个文件工作区,聊天区使用释放的空间;两侧可以独立折叠,并始终通过页头按钮重新展开,不丢弃内容和阅读位置。文件预览工具栏按钮仍只折叠内部文件列表。小屏幕隐藏这两个页头折叠按钮,保留任务、聊天、文件的全宽切换;宽度和折叠状态写入 URL,不影响手机全宽导航。文件列表顶部支持按文件名/路径过滤,两种列表独立保留条件;小项目在完整元数据上本地过滤,大项目最多扫描 20000 项或 1 秒、返回 300 个匹配,未完整扫描时明确提示。可用 src/名称这样的目录前缀缩小范围;清空过滤恢复原目录树及手动展开/收起状态。
|
|
393
|
+
|
|
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 或导航历史。绝对路径和本地 file URL 仍须在当前项目内。网页保留 sandbox,但使用网站自身的正常来源,以支持存储、登录、表单、弹窗、下载、对话框、用户授权的存储访问申请及全屏/媒体/剪贴板写入能力,仍受浏览器权限控制;继续保持跨域隔离并禁止导航整个工作台。本机查看器 HTML 页面拒绝嵌入,本地 HTML/SVG/XML 仍使用响应级来源沙箱;跨域网页请求最多携带工作台来源,不泄露签名路径。网站的 X-Frame-Options/CSP、第三方 Cookie 和 HTTPS/HTTP 混合内容限制仍然生效,无法内嵌时可在新窗口打开,不绕过这些策略。网页和终端切换标签时保持挂载。点击 **打开 Terminal** 使用当前工作台会话启动 Shell,不再输入终端密码,也无需飞书审批。仅打开保存的工作台 URL 不会启动新的 Shell。关闭终端标签仅断开视图;可用终端内的关闭按钮结束 Shell,或等待 30 分钟断开回收。退出工作台会结束该登录会话启动的 Shell。URL 保存标签目标/实例标识、过滤和布局,不保存终端密码或浏览器授权凭证。
|
|
395
|
+
|
|
396
|
+
手机端(含横屏)将文件/改动列表与内容分为两个全宽视图:点击文件进入内容,点击树形图标直接回到文件/改动列表。阅读时使用紧凑工具栏和更窄的行号栏,隐藏重复页面标题及路径;完整路径仍可在列表和标签提示中查看。列表模式隐藏文件标签栏和内容工具栏,但不会丢弃已打开标签或阅读位置。
|
|
397
|
+
|
|
398
|
+
手机详情工具栏中返回箭头旁的树形结构图标,以及在文件模式内再次点击右上角文件图标,都可一键回到当前文件/改动列表,无需逐级返回,也不会关闭标签;列表工具栏和详情页返回列表按钮统一使用树形结构图标,右上角文件模式切换保留文件夹图标。文件树和改动树的目录行仅保留展开箭头,不显示文件夹图标,同级名称对齐。鼠标点击目录不显示焦点边框,键盘导航时在目录行内部显示焦点提示。目录展开操作避免误触文本选择,文件名仍可主动选择、复制;拖选文件名时不会打开文件。展开、折叠目录时保持该目录行在视口中的位置,仅增减下方子项;靠近列表底部收起时暂时保留必要空间,向上滚动或展开后自动释放。目录层级竖线在悬停该目录或子项时显示,当前文件的父目录链持续显示;文件和 Diff 标签、缓存、按目录加载及过滤结果保持一致,即使过滤隐藏当前文件,也保留可见父目录的竖线,不增加缩进或占用布局空间。悬浮和选中背景覆盖整行,当前文件使用更醒目的蓝色高亮;图标和文件名位置保持不变,竖线绘制在高亮之上,保持可见。桌面文件行使用紧凑的 26 像素高度和细线展开箭头,手机保留较大的触控区域。文件树、Diff 树、标签和地址候选统一使用独立 SVG 符号,不使用统一底板;Shell 使用美元提示符,HTML 使用 HTML5 轮廓,其余类型保留自身特征,深浅色配色适配,无运行时字体或图标库依赖;C/C++ 源文件(`.c`、`.cc`、`.cpp`、`.cxx`)共用同一图标,头文件(`.h`、`.hh`、`.hpp`、`.hxx`)使用同系列的独立图标,Python、TypeScript、JavaScript、JSON 和 Markdown 的不同后缀也归到同一语言图标。CMake(`CMakeLists.txt`、`.cmake`)、Make(`Makefile`、`GNUmakefile`、`.mk`、`.mak`)、GN(`.gn`、`.gni`)、Ninja(`.ninja`)和 Bazel(`BUILD`、`WORKSPACE`、`MODULE.bazel`、`.bzl`)使用专属构建图标;License/COPYING、`AGENTS.md`、README 分别使用天平、机器人、书本,特殊文件名不区分大小写且优先于通用后缀,也支持带语言后缀的 README。Git 忽略的文件和目录显示为灰色但仍可浏览,过滤结果保持一致;已跟踪文件及忽略规则明确重新包含的路径不会被标记为忽略。普通文件树也只为有改动的文件显示 Git 状态(U/M/A/D/R 及冲突),有改动的目录显示内部变动文件数量。改动文件以绿色显示增加行数、红色显示删除行数,增删行数位于最右侧 Git 状态标记左侧,目录变更文件数同样保持在最右侧;列表文字略小,标记按内容自然宽度排列,不为统一列宽保留大块空白,目录累计全部后代文件的增删行数,不受过滤或分页影响;统计当前工作区相对 HEAD 的净改动,未跟踪文本按新增行计算,已暂存和未暂存修改不重复累计。二进制或超出 2 MiB/限时读取范围的未跟踪文件显示横线,悬浮提示说明无法统计的情况或目录累计不完整。打开有变更的文件时,可点击“查看文件变更”进入对应 Diff,重命名保留原路径。刷新重新读取状态;Git 状态读取失败显示原因,但不影响文件浏览。重新打开标签时保留阅读位置,浏览器返回可回到刚才的详情视图。
|
|
399
|
+
|
|
400
|
+
在任务的 Turn Preview 页头状态文字后点击 **Workspace**(例如“已完成 · Workspace”),工作台会直接打开该任务的 Git 变更列表。后台加载对话不会重建文件面板,也不会清空列表和变更计数;点 **聊天** 可查看对话。目录预览的 **打开项目工作台** 仍默认进入文件列表。打开工作台不会启动 Agent 或 Shell。
|
|
401
|
+
|
|
402
|
+
配置了飞书所有者后,工作台任务与聊天和网页终端共用 **`/settings` → 高级 → 工作台 / 终端密码**(Profile YAML 的 `terminal.password`)。修改后安全重启即生效。登录工作台一次即可使用任务、聊天和内嵌终端;从飞书命令卡打开的独立终端仍按原流程连接。未设置或仍为默认值 `123456` 时,工作台在本机、局域网和公网自动登录。**免密时,任何能访问工作台的人都能查看、操作任务;如终端已启用,也能以主机用户权限运行 Shell。** 对外开放前请设置强密码并使用 HTTPS。旧的 `AGENT_BOT_WORKSPACE_PASSWORD` 不再读取;如果此前仅配置了这个环境变量,请在重启前设置共享密码。只读签名链接无需登录。在 **任务** 栏可按项目浏览、搜索和筛选已归档任务。
|
|
403
|
+
|
|
404
|
+
选择网页任务不会改变飞书当前任务。聊天分页显示当前分支的历史,通过页面共用的一条 SSE 实时更新,重连后重新读取快照。已保存的图片附件和 Agent 回复里的 Markdown 图片会直接显示。工作台聊天和 Turn Preview 中,图片在宽高都不超限时按原图显示;太宽或太高时等比缩小,不会放大。高度上限为视口高度的 60%,且不超过 720 像素。读取本地图片需要工作台会话,且仅限任务目录;附件还可读取飞书图片缓存。不会自动加载外部图片,图片缺失或不可用时会显示提示。回复里的 Markdown 表格按聊天区宽度自动换行;列数太多时只在表格内横向滚动。可发送、追加、排队或停止当前轮次,停止不会清空队列。发送沿用任务原来的飞书会话或话题,权限确认仍在飞书处理。提交结果不明时先点 **核实状态**,不会自动重发。
|
|
405
|
+
|
|
406
|
+
即使同属一个项目,每个任务也有独立右栏。切换会恢复各自的标签和阅读位置,不会关闭后台终端。任务 URL 只保存当前任务、聊天阅读锚点和该任务可恢复的右栏信息;目录展开、分页和目录滚动仍只保存在本地,输入草稿只保存在当前浏览器标签页。回复里的项目文件链接复用右栏标签;执行摘要的改动入口打开的是 **当前** Git 工作区,不是历史快照。
|
|
407
|
+
|
|
408
|
+
文件树和改动树优先预载小项目,较大项目按展开的目录读取直接子项;单个目录较大时,滚动接近末尾会自动读取后续每页 100 项,不再显示“加载更多”按钮,读取失败仍显示原因并提供重试。点击文件查看内容,切换 **未提交** 浏览修改、暂存、未跟踪、删除及重命名文件。Diff 可选 **全部改动**(HEAD 到工作区)、**已暂存**(HEAD 到暂存区)、**未暂存**(暂存区到工作区);同一文件只列一次,即使暂存与未暂存修改互相抵消也不会漏掉。文件与 Diff 使用独立标签,切换时复用已加载内容,保留阅读位置和预览控件状态,不重复请求;首次打开、刷新或切换 Diff 范围才重新读取,关闭标签释放缓存。**刷新** 更新列表与当前标签,并恢复已展开目录。小屏幕通过任务、聊天、文件三个视图切换,不关闭文件标签。
|
|
409
|
+
|
|
410
|
+
工作台链接允许只读访问所选目录及其后代,请勿分享给无权读取项目的人;分享 Turn Preview 时也应注意其中的项目入口。路径与符号链接不能跳出该目录,不开放 Git 内部文件,HTML 仅作为源码显示。文件浏览不提供编辑、暂存或提交;文件签名本身不授予终端访问权限。文本预览限制为前 2 MiB 或 10000 行;完整 Diff 的各版本沿用此限制,最多合并 20000 行,改动补丁限制为 1 MiB 或 10000 行。超过 Diff 上限时报错,不会静默隐藏文件上下文;下载保留完整文件。Git 读取失败、非 Git 项目与没有改动分别展示。
|
|
411
|
+
|
|
370
412
|
### 交互式网页终端
|
|
371
413
|
|
|
372
414
|
选中终端文字时,**Ctrl+C** 复制,不中断命令;没有选中文字时仍用于中断。**Ctrl+V** 通过浏览器原生剪贴板事件粘贴,HTTP 页面同样支持,并保留 xterm 的换行和括号粘贴处理。macOS 同时支持 **Cmd+C / Cmd+V**。顶部 **Ctrl+C** 按钮始终用于中断。
|
|
373
415
|
|
|
374
416
|
管理卡中的“终端”显示恢复链接 `/terminal/<token>` 中的 8 位 token,保留大小写。重连后不变;同一命令创建的不同终端使用不同 token。内部 ID 和浏览器凭证独立保留。
|
|
375
417
|
|
|
376
|
-
|
|
418
|
+
从飞书命令卡打开独立终端时,输入终端密码即可连接,不需要飞书审批。未配置 `terminal.password` 时,默认密码为 **`123456`**。所有者可在 **`/settings` → 高级 → 工作台 / 终端密码** 修改,安全重启后生效;卡片不回显已保存密码,留空不修改。密码保存在本机 Profile YAML 中,拥有密码的人可执行主机系统用户权限的命令,向其他设备开放前请更换强密码。
|
|
377
419
|
|
|
378
|
-
密码页提示可在 `/setting`(`/settings` 的缩写)→ 高级 → 终端密码中修改。实际密码仍为 `123456` 时,自动填入默认值,显示 5 秒倒计时后连接;编辑密码、手动连接、切到后台/离开页面或网络离线均取消倒计时。自定义密码不回填、不下发到网页,仍需手动输入。已有浏览器凭证和运行中终端的恢复不等待倒计时。
|
|
420
|
+
密码页提示可在 `/setting`(`/settings` 的缩写)→ 高级 → 工作台 / 终端密码中修改。实际密码仍为 `123456` 时,自动填入默认值,显示 5 秒倒计时后连接;编辑密码、手动连接、切到后台/离开页面或网络离线均取消倒计时。自定义密码不回填、不下发到网页,仍需手动输入。已有浏览器凭证和运行中终端的恢复不等待倒计时。
|
|
379
421
|
|
|
380
422
|
**终端管理卡**仍发送到原命令所在会话/话题,不转发私聊,仅所有者可关闭或刷新。“重新打开终端”自动恢复仍在运行的原 Shell 和输出,无需再次输入密码,同时撤销旧网页访问。请勿分享恢复链接:持有链接的人可重新连接该运行中的 Shell。尚未启动的 Shell 仍需密码,仅在 WebSocket 鉴权后创建。安全重启等待期间允许重连或关闭已运行 Shell,但不允许首次启动。已结束或服务重启前的终端不能恢复;原命令卡片的 Open Terminal 仍用于创建新终端。
|
|
381
423
|
|
|
@@ -406,6 +448,14 @@ Agent Bot 将用户相关文件保存在仓库之外:
|
|
|
406
448
|
|
|
407
449
|
回答中引用的本地非图片文件或目录会自动变成只读查看链接,可在浏览器中查看源码、Markdown、日志、PDF、常见媒体文件,或向下浏览目录内容。默认链接只在运行 Agent Bot 的电脑上打开;将 `fileViewer.host` 设为 `0.0.0.0` 后,会按有线、Wi-Fi、其他物理网卡、VPN 的顺序自动选择局域网地址。域名、HTTPS 反向代理或端口映射可通过 `fileViewer.publicBaseUrl` 覆盖自动地址。链接带有当前 Profile 独立的签名。
|
|
408
450
|
|
|
451
|
+
TraeX 上报模型容量排队时,原思考卡片和 Turn Preview 显示排队提示;上游提供序号时同时显示第几位,上下文压缩排队单独标明。思考时间线中也会像上下文压缩一样记录每次排队:序号变化更新同一条记录,出队后保留有记录时间戳的等待耗时,停止或失联不会误写成“继续处理”。出队、产生新模型内容或轮次结束后清除标题提示。排队状态会保存供 Preview 查看,日志只记录状态或序号变化。不发送此可选扩展的 Codex、ACP Agent 保持原有行为;模型排队与用户 Prompt 排队相互独立。
|
|
452
|
+
|
|
453
|
+
上下文压缩和模型排队记录属于独立的系统信息,不作为模型 commentary。思考卡片和 Turn Preview 都以 Markdown 引用块显示,不占卡片分页或快照裁剪时预留的 commentary 名额,但仍受卡片总体大小限制;已保存的旧记录使用相同展示方式。Preview 中用户追加的 steer 消息保持普通 Markdown,带用户图标,不自动放进引用块。
|
|
454
|
+
|
|
455
|
+
排队期间,时间线引用块显示从首次记录入队起已等待的时长,随思考卡片更新(通常每 3 秒)刷新;Turn Preview 复用页面现有时钟,每秒本地更新。排队序号变化不会重置计时,出队后保存最终耗时,后续更新和历史回放保持不变。计时不轮询 Agent、不写入定时事件;缺少入队时间戳的旧记录不补造耗时。
|
|
456
|
+
|
|
457
|
+
TraeX 后台任务通知会显示任务状态及可用的任务编号、摘要或 Shell 退出码。如果通知启动了独立轮次,任务结果和 Agent 的补充回答会合在一张「后台任务通知」卡片里,发送到任务原来的会话或话题,原轮次不变。用户指令不会追加到独立通知轮次:通知占用运行通道时,指令和附件进入持久化 Prompt 队列,空闲后使用普通思考卡片执行。如果通知在普通用户轮次中到达,则追加到已有思考卡片,该轮仍正常接收用户追加指令,最终回复仍单独发送。超出卡片容量的回答可以在 Turn Preview 中看全文;Preview 不可用时,剩余内容在同一会话或话题单独发送。卡片不读取或展示通知中的输出文件路径和完整日志。
|
|
458
|
+
|
|
409
459
|
飞书回答和思考卡片中的相对文件链接(例如 `outputs/report.md`)按该轮保存的项目目录解析后,转换为签名查看链接。支持 Windows/POSIX 路径、编码空格和行号引用;解析后无法访问的文件显示为路径文字,网页链接、图片和代码保持不变。
|
|
410
460
|
|
|
411
461
|
`/status` 状态卡片底部也提供 **Preview**,与 Refresh、Stop/Switch 放在同一行。点击可查看正在执行的轮次,空闲时则查看最近一轮;刷新卡片后会更新目标。对于尚未被 Agent Bot 记录的外部任务,打开 Preview 时会从 Agent 按需读取所选轮次并缓存完整执行详情;读取失败可刷新页面重试。没有轮次、无法读取历史且无本地记录,或文件预览服务不可用时不显示按钮。查看其他任务的状态不会切换或接管任务。
|
|
@@ -434,7 +484,7 @@ Turn Preview 顶部用点分隔各项信息,保留“耗时”标签,Token
|
|
|
434
484
|
|
|
435
485
|
TraeX 的规划模式确认遵循任务权限设置:**auto** 自动同意进入规划模式及批准方案;**confirm** 显示方案和 `Approve Plan`(或 `Enter Plan Mode`)、`Reject`、`Cancel Request` 按钮,等待用户选择。请求和结果保留在思考卡片及实时 Preview 中,自动处理明确标记为“自动同意”,不记为用户点击。方案获批后,TraeX 结束规划轮次时,Agent Bot 在同一任务、同一张思考卡片中继续执行。用户明确要求“仅讨论”“先不要实现”时仍须遵守。若 TraeX 已经成功进入规划模式,Agent Bot 核实后不再误报审批失败;未能确认成功的自动审批仍会提示并恢复手动按钮。Preview 保持只读。取消确认不等同于停止任务,等待确认的轮次仍阻止安全重启。旧版本已丢失的确认通知不会自动补回。
|
|
436
486
|
|
|
437
|
-
Turn Preview 的文件变更汇总和工具详情中,点击变更文件时,有 Git diff
|
|
487
|
+
Turn Preview 的文件变更汇总和工具详情中,点击变更文件时,有 Git diff 则将差异合并到完整的当前文件中:未改动行全部保留,新增行绿色高亮,删除行在原位置以红色插入,并显示新旧行号和当前文件行号锚点;已有文本文件支持解码 GBK、UTF-16 版本以及编码变化,已删除的跟踪文件也可查看。差异仅在打开文件时读取,比较当前工作区(含已暂存修改)与 `HEAD`,不是该历史 Turn 的固定补丁,刷新会重新读取。首次打开且未指定行号锚点时,自动把首处改动定位到视口中部;明确的行号链接及刷新、历史返回时的阅读位置优先保留。“查看文件”返回普通预览。新增文件直接显示文件本身,包括已暂存的新增文件和首次提交前的文件,不显示整份新增 Diff。文件无改动、非 Git 目录、二进制、Git 不可用、差异/文件超限或读取期间文件变化时,只要文件仍存在,就回退到普通文件预览。从文件页返回 Turn Preview 或刷新同一历史记录时,会保留文件列表、工具和思考的展开/折叠状态,仅重新加载展开的详情;直接恢复缓存页面时也会接续实时更新。其他文件链接、原始文件/下载及普通文件实时预览保持不变。
|
|
438
488
|
|
|
439
489
|
Turn Preview 的 Prompt、Commentary 和结果中的本地图片通过签名文件链接加载,实时更新时同样生效。相对图片路径按任务的项目目录解析。
|
|
440
490
|
|
|
@@ -482,7 +532,7 @@ Agent Bot 启动时还会读取每个 Codex Agent 的 `CODEX_HOME/.env`(默认
|
|
|
482
532
|
|
|
483
533
|
Agent Bot 会响应机器人所在群内拥有者发送的普通消息。将 `feishu.respondToAllGroupMessages` 设为 `false` 后,还会要求拥有者在群消息中 @ 当前机器人;私聊不受这一项影响。只有开启该配置时,初始化才会申请需要手动发布的“接收所有群消息”权限。从 `false` 改为 `true` 后,需要重新运行 `agentbot init` 并完成最后的权限步骤。
|
|
484
534
|
|
|
485
|
-
思考卡片、执行详情和活动历史卡片只使用分组布局:辅助 Commentary 和用户追加消息保持直接显示,每个执行组只显示最新一段原生思考,点击后可展开完整的工具命令和结果。显示命令时会省略常见的 PowerShell、zsh、bash 和 sh 启动包装前缀。失败工具仍会在自己的工具面板中标记,但不会让整个执行组显示失败图标或红色边框。执行组默认折叠,并使用稳定的组件标识,使用户在飞书中手动打开的面板在卡片更新后继续保持展开。
|
|
535
|
+
思考卡片、执行详情和活动历史卡片只使用分组布局:辅助 Commentary 和用户追加消息保持直接显示,每个执行组只显示最新一段原生思考,点击后可展开完整的工具命令和结果。显示命令时会省略常见的 PowerShell、zsh、bash 和 sh 启动包装前缀。失败工具仍会在自己的工具面板中标记,但不会让整个执行组显示失败图标或红色边框。执行组默认折叠,并使用稳定的组件标识,使用户在飞书中手动打开的面板在卡片更新后继续保持展开。Agent 上报上下文压缩时,卡片内部会把实时压缩状态显示为一条系统活动,提示不写死 Agent 名称;协议提供数据时,还会显示耗时、压缩前后的上下文 token 数、已执行轮次和 rollout 磁盘占用。长任务会根据完整渲染后的卡片内容大小翻页,不再使用固定的消息数或工具数。已有配置中的废弃布局字段会被忽略,保存的历史数据和网页 Preview 展示不变。
|
|
486
536
|
|
|
487
537
|
纯空白 Commentary 不占用固定展示名额。卡片生成的连续省略标记只显示一次,不会删除消息正文中的省略号,也不会改动已保存的历史记录。
|
|
488
538
|
|
package/SECURITY.md
CHANGED
|
@@ -16,6 +16,20 @@ New or unstarted Shells require the terminal password, configurable through owne
|
|
|
16
16
|
|
|
17
17
|
Disconnecting retains the Shell for thirty minutes; a successful authenticated reconnection cancels this deadline and restarts thirty idle minutes, but command output does not extend the disconnect deadline. A connected foreground page with fresh visibility heartbeats prevents idle closure; hiding it starts thirty minutes of input/output inactivity. Either timeout closes it. Explicit close, the eight-hour absolute limit and service shutdown still end it. Detached processes may survive. Safe restart waits for active terminals; forced restart interrupts them.
|
|
18
18
|
|
|
19
|
+
## Project Workspace Trust Boundary
|
|
20
|
+
|
|
21
|
+
Workspace links authorize read-only access to the selected directory and its descendants, including uncommitted and hidden project files. Turn Preview can contain such a link; do not share either with people who must not read the project. Each request verifies the root-specific signature and rejects traversal, Git internals and symlinks/junctions escaping the root. File content is escaped source, Markdown with raw HTML disabled, or sandboxed raw content. Workspace authorization does not authorize Agent prompts, file writes, Git mutations or terminal execution. Git status/diff disable filesystem monitors, external diff/text conversion and clean/process filters; preserve those restrictions so browsing an untrusted repository cannot execute its configured commands.
|
|
22
|
+
|
|
23
|
+
Markdown rendering disables raw HTML and confines local links and images to signed requests for the same workspace root. Complete Diff reads scoped HEAD/index blobs and worktree files; it compares decoded snapshots through temporary files in an isolated system-temporary directory, removes them after the request, and never writes project files, the index or Git objects. Preserve size/line limits, raw-file sandboxing and the trusted, strict-mode diagram renderer.
|
|
24
|
+
|
|
25
|
+
Workspace URLs can include the selected task ID, a Turn reading anchor, relative file paths, tabs, filters and right-panel layout. Directory expansion, loaded page counts and tree scrolling remain in local browser storage, scoped to the task (or the project for a guest). The URL carries no file contents, conversation text or login credentials. URL state does not expand a signed root’s authorization; every restored file request still passes its signature and path checks.
|
|
26
|
+
|
|
27
|
+
Workspace Tasks, Chat and the embedded terminal use one login and require a configured Feishu owner. If `terminal.password` is omitted or still `123456`, **anyone who can reach Workspace can sign in automatically**, including through LAN addresses and public reverse proxies. They can access the Profile's App Server tasks and run a Shell with the host user’s privileges when Terminal is enabled. Set a strong password and use HTTPS before exposure, or restrict access at the network or proxy. The old `AGENT_BOT_WORKSPACE_PASSWORD` no longer applies. Same-origin and CSRF checks do not restrict who can enter a passwordless Workspace; signing out is not a lock in this mode. Browser drafts are scoped to the current tab.
|
|
28
|
+
|
|
29
|
+
A signed file link or terminal locator is not a login. The embedded terminal requires the same origin-bound HttpOnly, SameSite workspace cookie for its page, connection requests and WebSocket. The locator is scoped to the signed physical project root, owner and tab instance. Browser connection keys alone cannot reopen an embedded Shell. Logout, expiry, owner/password change and server restart invalidate both task streams and embedded Shell sessions. Restart gating, same-origin Host/Origin checks and terminal limits still apply. Terminal frames accept launch and visibility messages only from their same-origin parent. Terminal links from Feishu command cards retain their separate password login and recovery policy.
|
|
30
|
+
|
|
31
|
+
Workspace web frames accept only external HTTP(S) targets without URL credentials, allowing scripts/forms but never shared-origin access, top navigation or popups. Do not proxy around site framing policies or embed arbitrary same-origin pages as trusted terminal content. Web targets, filters and layout may appear in shared navigation URLs; passwords and terminal browser grants must not. Metadata prefetch/search is bounded and never traverses symlink directories.
|
|
32
|
+
|
|
19
33
|
## Reporting A Vulnerability
|
|
20
34
|
|
|
21
35
|
Do not open a public issue for a suspected vulnerability.
|