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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +37 -18
  3. package/README.zh.md +37 -18
  4. package/assets/workspace-sessions.js +959 -229
  5. package/assets/workspace.css +241 -57
  6. package/assets/workspace.js +1463 -227
  7. package/dist/feishu/FeishuTurnPresenter.js +26 -9
  8. package/dist/feishu/FeishuTurnPresenter.js.map +1 -1
  9. package/dist/local-files/GitDiffPreview.js +69 -7
  10. package/dist/local-files/GitDiffPreview.js.map +1 -1
  11. package/dist/local-files/LocalFileViewerServer.js +10 -7
  12. package/dist/local-files/LocalFileViewerServer.js.map +1 -1
  13. package/dist/local-files/PreviewSyntaxHighlight.js +1 -1
  14. package/dist/local-files/PreviewSyntaxHighlight.js.map +1 -1
  15. package/dist/local-files/TurnPreviewPage.js +30 -7
  16. package/dist/local-files/TurnPreviewPage.js.map +1 -1
  17. package/dist/local-files/WorkspaceImages.js +28 -0
  18. package/dist/local-files/WorkspaceImages.js.map +1 -1
  19. package/dist/local-files/WorkspacePage.js +5 -2
  20. package/dist/local-files/WorkspacePage.js.map +1 -1
  21. package/dist/local-files/WorkspaceSessions.js +343 -96
  22. package/dist/local-files/WorkspaceSessions.js.map +1 -1
  23. package/dist/local-files/WorkspaceTimeline.js +34 -10
  24. package/dist/local-files/WorkspaceTimeline.js.map +1 -1
  25. package/dist/presentation/OutboundRouter.js +3 -1
  26. package/dist/presentation/OutboundRouter.js.map +1 -1
  27. package/dist/presentation/TurnStateReducer.js +3 -1
  28. package/dist/presentation/TurnStateReducer.js.map +1 -1
  29. package/dist/proxy/ProxySessionController.js +130 -45
  30. package/dist/proxy/ProxySessionController.js.map +1 -1
  31. package/dist/scheduling/ScheduledTaskStore.js +6 -4
  32. package/dist/scheduling/ScheduledTaskStore.js.map +1 -1
  33. package/dist/scheduling/types.js +2 -1
  34. package/dist/scheduling/types.js.map +1 -1
  35. package/dist/state/StateStore.js +77 -13
  36. package/dist/state/StateStore.js.map +1 -1
  37. package/dist/state/TurnPreviewJournal.js +24 -13
  38. package/dist/state/TurnPreviewJournal.js.map +1 -1
  39. package/dist/utils/promptAttachments.js +4 -2
  40. package/dist/utils/promptAttachments.js.map +1 -1
  41. package/dist/utils/promptQuotes.js +47 -0
  42. package/dist/utils/promptQuotes.js.map +1 -0
  43. package/npm-shrinkwrap.json +2 -2
  44. package/package.json +1 -1
  45. package/src/feishu/FeishuTurnPresenter.ts +27 -8
  46. package/src/local-files/GitDiffPreview.ts +72 -8
  47. package/src/local-files/LocalFileViewerServer.ts +10 -7
  48. package/src/local-files/PreviewSyntaxHighlight.ts +1 -1
  49. package/src/local-files/TurnPreviewPage.ts +35 -7
  50. package/src/local-files/WorkspaceImages.ts +25 -0
  51. package/src/local-files/WorkspacePage.ts +5 -2
  52. package/src/local-files/WorkspaceSessions.ts +318 -101
  53. package/src/local-files/WorkspaceTimeline.ts +41 -15
  54. package/src/presentation/OutboundRouter.ts +3 -0
  55. package/src/presentation/TurnStateReducer.ts +3 -1
  56. package/src/presentation/turnViewTypes.ts +1 -1
  57. package/src/proxy/ProxySessionController.ts +135 -44
  58. package/src/scheduling/ScheduledTaskStore.ts +6 -4
  59. package/src/scheduling/types.ts +4 -1
  60. package/src/state/StateStore.ts +83 -17
  61. package/src/state/TurnPreviewJournal.ts +27 -14
  62. package/src/utils/promptAttachments.ts +5 -2
  63. package/src/utils/promptQuotes.ts +48 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,20 @@ The project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.27-alpha.5] - 2026-12-06
10
+
11
+ - Add structured Workspace references and editable annotations for files, directories, selected lines, webpages and conversations. Preserve their source information through queued and scheduled Prompts, including reference-only submissions.
12
+
13
+ - Send selected queued messages immediately without losing attachments, moving other queue entries or changing future schedule times. Keep dispatching rows visible until their chat entries appear, preserve drafts on failure, and guard retries against duplicate submissions.
14
+
15
+ - Persist Workspace messages and progress locally before waiting for Feishu delivery. Start or steer the Agent independently of the Feishu copy, retain user-message timestamps, and reconstruct compacted execution history from the saved preview journal without mixing later continuation Turns.
16
+
17
+ - Open recorded tool patches in dedicated Diff tabs with original/new line numbers and syntax highlighting. Switch between the saved patch and current Git scopes, and toggle rendered Markdown and line-numbered source in the same tab.
18
+
19
+ - Refine Workspace navigation with pinned tabs, address-segment browsing, independent task file panels, medium-width task docking, fullscreen and file-pane expansion, preview text sizing, and improved reading-position restoration.
20
+
21
+ - Show live token usage and completed-Turn timing/usage details, improve thinking summaries and line-numbered code blocks, preserve image dimensions during loading, and streamline selection actions, keyboard shortcuts and tooltips.
22
+
9
23
  ## [0.1.27-alpha.4] - 2026-12-05
10
24
 
11
25
  - Expand Workspace task workflows with deferred new-task creation, model and reasoning selection, turn-scoped Fork/Reset, shared queue editing, task metrics, and Markdown answer copy/download/share actions. Keep the original Feishu task and conversation routing intact.
package/README.md CHANGED
@@ -399,31 +399,33 @@ Workspace follows the system appearance until you click the sun or moon in the u
399
399
 
400
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.
401
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.
402
+ To go to a specific line in a project file, enter a path such as `src/file.ts:23` in the address bar. Enter `:23` to jump within the open file. Existing `#L23` links also work. In file and Diff previews, click a path segment to browse siblings and choose a directory to display its contents. Selecting a file opens it. When focus leaves the address bar, it returns to the open file's path and line number. Double-click the path to type an address.
403
403
 
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.
404
+ The locate button at the right edge of the file-list toolbar expands and centers the current file in its tree without rereading its preview or changing the reading position. Ordinary files use the file tree; Diff tabs use Git changes, including deleted files. Locating clears the selected list's filter and loads needed directory pages, retaining expansion/page/scroll state locally in the browser, scoped to the project rather than the signed URL. Errors offer Retry, and non-file tabs disable the button.
405
405
 
406
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.
407
407
 
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.
408
+ Navigation, back, download and tab-close actions use lightweight SVG icons with tooltips and accessible labels, without an icon-library dependency. Uncommitted changes have a count badge and single-character Git status: `U` for untracked, `M` for modified, `D` for deleted and `A` for staged additions. Renames, copies and type changes retain `R`, `C` and `T`; conflicts use `!`. Deletion takes precedence in mixed states, followed by the index status and then the worktree status. Full staged and unstaged descriptions remain in tooltips and accessible labels.
409
409
 
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.
410
+ Phones use a segmented Tasks/Chat/Files switch. At viewport widths from 651 to 950 pixels, hover over the far-left Tasks button to slide the task list over the current view. Click to dock the list on the left and click again to collapse it. Drag the right edge to resize the list in either state. The browser remembers its width and docked state. The Chat and Files buttons sit together on the right. Switching areas keeps each pane mounted with its scrolling and UI state. Files restores the previous list or detail, active tab, and Diff scope. Code previews use Roboto Mono and syntax highlighting. Line numbers reserve space for at least two digits and expand to fit the largest displayed number. Ordinary Markdown previews render headings, lists, tables, code fences and diagrams instead of showing source. Local file links open inside the workspace and images keep the same project-scoped authorization.
411
411
 
412
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.
413
413
 
414
+ Use the file toolbar to switch between rendered Markdown and its line-numbered source in the same tab. The selected view is saved with the tab.
415
+
414
416
  Diff previews show the complete target file, including unchanged leading, trailing and between-edit context. Deleted old lines remain inline in red and added new lines in green, with syntax highlighting for both versions and old/new line numbers. Markdown in Diff stays source code. All compares HEAD to the worktree, Staged compares HEAD to the index snapshot, and Unstaged compares the index to the worktree; a path-only rename shows unchanged content rather than marking the whole file as rewritten. A newly opened Diff automatically focuses its first change block; returning to an existing tab or restoring a saved URL keeps its reading position. Up/down arrows before the scope selector jump to the previous/next contiguous change block without rereading the file, preserve horizontal scrolling and record the location in the URL and page history. Each jump centers the block's first line within the file's scroll boundaries. Unavailable directions are disabled. The file-with-arrow action opens the current file outside Diff mode.
415
417
 
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.
418
+ Opening files, selecting tabs, changing Diff scope, switching file/change lists and switching workspace areas create in-page history entries. Browser Back/Forward and phone Back restore the previous view and reading position without closing tabs, skipping records for closed tabs; returning past the workspace's initial view leaves the page normally. The address-bar navigation buttons stay inside the workspace and skip list/area-only entries. Back and Forward between line addresses in the same file jump to the recorded line. Manual scrolling updates the tab’s reading position without creating a history entry. Refresh, pagination and folder expansion also leave the history length unchanged. The URL query records the active area, list and file/Diff scope; its fragment records tabs, file reading positions, layout and filter queries. Directory expansion, loaded directory pages, tree scrolling and filtered-directory collapse are saved locally in the browser, not in the URL. Reopening the same URL restores the linked view without relying on the old browser history. If the selected tree has no local record, the workspace locates the current file, loading its parent directories and necessary pages without switching the selected pane or reader; filtered views keep their query. An intentionally collapsed local tree is preserved. Old URL directory-expansion data is ignored. URLs store only navigation and positions, not file contents or chat text; file and Git content is still read from the current project rather than a historical snapshot.
417
419
 
418
420
  On desktop, a compact project/task sidebar sits on the left, chat uses the center, and the file workspace occupies the right. File tabs and the path/action toolbar span the top of the file workspace; content is on the left and the independent file/change tree is on the far right. The tree's segmented switch and refresh action stay in its own header, and selected file tabs are highlighted. Selecting a visible tab keeps the strip in place and reuses its DOM; only offscreen targets are revealed. The mouse wheel over the tab strip scrolls it horizontally. Widening the workspace preserves the left scroll position, revealing more tabs on the right first; it shifts left only once the rightmost tab is reached. Translucent overlay scrollbars take no layout width or height and appear on hover, during scrolling or while dragging. Clicking a track seeks to that position; dragging its thumb scrolls the corresponding region, including nested code and table previews, without changing tabs or the other scroll axis. Ordinary thumbs grow from 4 to 8 pixels when the pointer enters their 12-pixel hit area. The tab strip uses a separate 2-pixel bar at its top edge with a smaller hit area and lower opacity, and never grows on hover. Pointer capture keeps a drag working outside the track; release, cancellation, hiding or unmounting ends the drag. Enabled buttons, tabs and directory rows have hover feedback in both themes. Hovering highlights the entire tab; the close button uses a slightly stronger highlight when hovered, while the tab name adds no separate highlight. Tablet file views keep content and the right-hand tree side by side.
419
421
 
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.
422
+ Desktop task/chat/workspace dividers and the reader/tree divider support dragging to resize, or keyboard Left/Right after focusing. Dividers remain 1-pixel lines with wider transparent hit areas and subtle hover/drag highlighting. In the wide three-pane layout, the left header button collapses the task sidebar and the right header button collapses the entire file workspace, letting chat fill the freed space. Both outer panels can be collapsed independently and reopened from the header with their content and reading positions intact. When a wide layout showing a conversation shrinks to medium width, chat stays visible, including when files were open alongside it. Widening preserves the active pane and reopens the file workspace if Files is selected. The file-preview toolbar button controls the inner file tree. On wide screens, the expand button beside the file address hides chat to give the file workspace more room. Click it again to restore chat. The fullscreen button beside the theme switch enters or exits browser fullscreen. Widths and collapse states are stored in the URL. The tree header has a per-list file/path filter. Small trees filter locally; large searches scan at most 20000 metadata records or one second and return at most 300 matches, explicitly reporting partial results. Use a directory prefix such as src/name to narrow a large search. Clearing the filter restores the normal tree and its manually expanded/collapsed state.
421
423
 
422
424
  The fixed **+** at the far right of the tab strip opens a launchpad with file, web and Terminal entries and a file-path/HTTP(S) address bar; phone list mode also offers **+** in the tree header. New tabs and newly opened files insert immediately to the right of the active tab. Launching a file, web page or Terminal from a new tab replaces that tab unless the file is already open. Opening an existing file or Diff, including a file entered in the address bar, selects its existing tab without moving it or adding another tab, and brings the full tab into view. File and Diff remain separate tabs; returning to an existing Diff keeps its selected scope. File and Diff tabs use their file-type icons, with a small Diff marker; launch tabs use a window icon, while the add button remains **+**. Web tabs prefer the public HTML page title and fall back to the full opened URL. Title reads use credential-free public HTTP(S) on standard ports, reject private/reserved addresses and unsafe redirects, and are bounded to five seconds and 64 KiB; they do not block the page or replace its iframe, and Refresh retries them. Other address-bar navigation stays in the current tab, including web URLs already open elsewhere. The compact close button leaves more room for tab names. Closing the active tab returns to the most recently viewed still-open tab and restores its reading position; closing a background tab leaves the current view unchanged. Tab visit order and stable tab identities are also saved in the URL. The address bar starts with Back/Forward buttons that traverse file anchors, still-open workspace tabs and the browser history of embedded pages without leaving the workspace. Navigation follows visit order, restoring only the target tab and its reading position while keeping the current layout, tree filters/expansion, tab order and background views. Closed tabs are skipped rather than reopened; the target tab is brought fully into view. Known empty directions are disabled, and new navigation after Back clears the Forward branch. Reloaded history entries and cross-origin frames may have unknown boundaries, so their controls remain available rather than guessing. Opening a saved URL directly still restores its tabs and layout. Pressing Enter submits the file path or URL in the active tab without a separate submit button, preserving its position; returning to a previous view reuses its cached content, including authenticated terminal connections. Browser-origin isolation still applies: the address bar records URLs opened through the workspace, not unreadable internal URLs of third-party frames. Addresses without a protocol use HTTPS for domains and HTTP for localhost or IP literals; explicit HTTP/HTTPS is preserved. The address bar offers up to 20 file candidates matched against complete project-relative paths, accepting forward/backslashes and mixed separators. Selecting a candidate opens that file; Enter without a selection opens a file only when its complete path and filename exist, regardless of suffix, otherwise it treats the input as a web address. Partial matches never implicitly select a file. Arrow keys select, Enter confirms and Escape dismisses. Small projects filter cached metadata; larger projects use bounded file-only searches and show partial-result or failure reasons. Matching does not change the file-tree filter, URL or navigation history. Files must stay within the signed project root for direct file previews. Web previews retain sandboxing but use their normal website origins for storage/authentication, with forms, popups, downloads, dialogs, user-authorized Storage Access API requests and fullscreen/media/clipboard-write capabilities subject to browser permissions. Cross-origin isolation and blocked top-level navigation protect the workspace; privileged viewer HTML refuses framing, while local HTML/SVG/XML retains its response-level origin sandbox. Cross-origin web-frame requests reveal only the workspace origin, not the signed path. Site X-Frame-Options/CSP, third-party-cookie rules and HTTPS/HTTP mixed-content restrictions still apply; use **Open in new window** when embedding is blocked rather than bypassing those policies. Web/Terminal frames remain mounted across tab switches. Click **Open Terminal** to start a Shell using the current Workspace session, with no extra password or Feishu approval. Merely opening a saved Workspace URL does not start a new Shell. Closing a terminal tab disconnects its view; use the terminal’s Close action to end it, or let the 30-minute disconnect timeout expire. Logging out of Workspace ends the Shells started under that session. URLs save tab targets/instance IDs, filters and layout, never terminal passwords or browser grants.
423
425
 
424
426
  On phones, including landscape, the file/change list and content are separate full-width views: selecting a file opens its content, and the tree icon returns directly to the file/change list. Reading uses a compact toolbar and narrower line-number gutters; the repeated page title and path are hidden, while full paths remain available in the list and tab tooltips. The file tab strip and content toolbar are hidden in list mode, without discarding opened tabs or their reading positions.
425
427
 
426
- The tree icon beside Back in the mobile content toolbar and clicking the top-right Files icon while already in Files return directly to the current file/change list, without stepping through history or closing tabs. The tree icon matches the file-list toolbar, and the top-right Files switch keeps its folder icon. Directory rows in both trees show only an expand arrow, without folder icons; same-level names align. Mouse clicks do not draw a directory focus frame; keyboard focus stays inside the row. Directory toggles prevent incidental text selection, while filenames remain selectable for copying; drag-selecting a filename does not open the file. Expanding and collapsing keep the directory row in place while changing its children below; any temporary bottom space needed to avoid a scroll jump is released when scrolling up or expanding. Thin vertical hierarchy guides appear for hovered folders, while the current file's ancestor guides remain visible. They follow file and Diff tabs across cached, lazy-loaded and filtered trees, even when filtering hides the current file, without changing indentation or taking layout space. Hover and selection backgrounds span the full tree row without moving icons or filenames. Current-file rows use stronger blue highlights, while hierarchy guides remain visible above them. Desktop tree rows use a compact 26-pixel height with slim chevrons; mobile rows retain larger touch targets. File and Diff trees, tabs and address suggestions share compact, standalone SVG symbols without a common background. Shell uses a dollar prompt, HTML uses an HTML5 outline, and other types retain their own recognizable shapes; colors adapt to light and dark themes without runtime fonts or an icon-library dependency. C/C++ source aliases (`.c`, `.cc`, `.cpp`, `.cxx`) share one symbol; headers (`.h`, `.hh`, `.hpp`, `.hxx`) use a related but distinct symbol. Python, TypeScript, JavaScript, JSON and Markdown variants also share their language icon. CMake (`CMakeLists.txt`, `.cmake`), Make (`Makefile`, `GNUmakefile`, `.mk`, `.mak`), GN (`.gn`, `.gni`), Ninja (`.ninja`) and Bazel (`BUILD`, `WORKSPACE`, `MODULE.bazel`, `.bzl`) have dedicated build icons. License/COPYING, `AGENTS.md` and README files have separate scales, robot and book symbols; case-insensitive special filenames take precedence over generic extensions, including localized README files. Git-ignored files and directories appear gray but remain browsable, including filtered results; tracked files and explicitly re-included paths are not marked ignored. The file tree also shows Git status only for changed files (U/M/A/D/R and conflicts), and a count of changed files inside directories. Changed files show green added/red removed line counts before the rightmost Git status badge; directory counts also stay at the trailing edge. Smaller text and naturally sized badges keep the columns compact without padding for the widest count; directories sum all descendant counts, independent of filtering and pagination. Counts use net HEAD-to-worktree changes, including untracked text files, without double-counting staged edits. Binary or unreadable/oversized untracked files show a dash; tooltips explain unavailable counts or partial directory totals. Changed-file previews provide a View changes action that opens the corresponding Diff, preserving rename metadata. Refresh rereads status; Git status failures show their reason without blocking file browsing. Reopening a tab restores its reading position, and browser Back from the list returns to the detail view.
428
+ The tree icon beside Back in the mobile content toolbar and clicking the top-right Files icon while already in Files return directly to the current file/change list, without stepping through history or closing tabs. The tree icon matches the file-list toolbar, and the top-right Files switch keeps its folder icon. Directory rows in both trees show only an expand arrow, without folder icons; same-level names align. Mouse clicks do not draw a directory focus frame; keyboard focus stays inside the row. Directory toggles prevent incidental text selection, while filenames remain selectable for copying; drag-selecting a filename does not open the file. Expanding and collapsing keep the directory row in place while changing its children below; any temporary bottom space needed to avoid a scroll jump is released when scrolling up or expanding. Thin vertical hierarchy guides appear for hovered folders, while the current file's ancestor guides remain visible. They follow file and Diff tabs across cached, lazy-loaded and filtered trees, even when filtering hides the current file, without changing indentation or taking layout space. Hover and selection backgrounds span the full tree row without moving icons or filenames. Current-file rows use stronger blue highlights, while hierarchy guides remain visible above them. Desktop tree rows use a compact 26-pixel height with slim chevrons; mobile rows retain larger touch targets. File and Diff trees, tabs and address suggestions share compact, standalone SVG symbols without a common background. Shell uses a dollar prompt, HTML uses an HTML5 outline, and other types retain their own recognizable shapes; colors adapt to light and dark themes without runtime fonts or an icon-library dependency. C/C++ source aliases (`.c`, `.cc`, `.cpp`, `.cxx`) share one symbol; headers (`.h`, `.hh`, `.hpp`, `.hxx`) use a related but distinct symbol. Python, TypeScript, JavaScript, JSON and Markdown variants also share their language icon. CMake (`CMakeLists.txt`, `.cmake`), Make (`Makefile`, `GNUmakefile`, `.mk`, `.mak`), GN (`.gn`, `.gni`), Ninja (`.ninja`) and Bazel (`BUILD`, `WORKSPACE`, `MODULE.bazel`, `.bzl`) have dedicated build icons. License/COPYING, `AGENTS.md` and README files have separate scales, robot and book symbols; case-insensitive special filenames take precedence over generic extensions, including localized README files. Git-ignored files and directories appear gray but remain browsable, including filtered results; tracked files and explicitly re-included paths are not marked ignored. The file tree also shows Git status only for changed files (U/M/A/D/R and conflicts), and a count of changed files inside directories. Changed files show green added/red removed line counts before the rightmost Git status badge; directory counts also stay at the trailing edge. Smaller text and naturally sized badges keep the columns compact without padding for the widest count; directories sum all descendant counts, independent of filtering and pagination. Counts use net HEAD-to-worktree changes, including untracked text files, without double-counting staged edits. Binary or unreadable/oversized untracked files show a dash; tooltips explain unavailable counts or partial directory totals. Changed-file previews provide a View changes action that opens the corresponding Diff, preserving rename metadata. The **Refresh Files** command rereads status; Git status failures show their reason without blocking file browsing. Reopening a tab restores its reading position, and browser Back from the list returns to the detail view.
427
429
 
428
430
  Open **Workspace** after the status in a Turn Preview header (for example, **Completed · Workspace**) to open that task’s Git changes list directly. Loading the conversation in the background does not replace the file panel or clear the list and its count. Choose **Chat** to see the conversation. Directory previews still start in the file list. Opening a page never starts an Agent or Shell.
429
431
 
@@ -433,7 +435,11 @@ Selecting a task does not change the current Feishu task. The browser tab shows
433
435
 
434
436
  Workspace reloads automatically when Agent Bot restarts or the Workspace build changes. The current task, file tabs, reading position, and draft text, images, files and annotations are restored in the same browser tab. Chat returns to the reading position as Prompt images finish loading. A new-task draft also survives a refresh before its first Prompt. Workspace waits for local attachment writes before reloading. If the browser cannot save an attachment, the composer shows a message and defers automatic reload. After a restart, a custom password may still be required.
435
437
 
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.
438
+ Click a file preview or hover over it with no input focused, then press **Ctrl/⌘ + `+`** or **Ctrl/⌘ + `−`** to change the text size in file, Markdown and Diff previews. Workspace remembers the size in the browser. Hover over the icon at the right end of the address field to see the zoom percentage, or click it to return to 100%.
439
+
440
+ The chat header shows the task title, status, Agent, and recorded turn count for the current branch on one line. It also shows the latest reported cumulative token total, including cached input, and the session log size when available. On narrow panes, scroll the task information horizontally to see more.
441
+
442
+ Chat shows all recorded activities in each turn, including turns with more than 80 activities. Tool titles appear in order, and expanding a tool loads its command, output and errors.
437
443
 
438
444
  Click **+** in the file-list toolbar to open **Choose directory**. Select a task-associated directory or enter an absolute directory path on the Agent Bot host. Each directory gets a tab in the file list with its own file tree and uncommitted Git changes. Selecting an open directory reuses its tab. Switching directory tabs leaves the current file preview open. The task saves the directory tabs, their order, and the selected directory across refreshes and Workspace visits. Close a directory tab to remove it from the file list.
439
445
 
@@ -443,35 +449,48 @@ After signing in, you can paste an absolute file or directory path from the Agen
443
449
 
444
450
  User messages, Commentary and Agent replies use the 14px body text size of Turn Preview's final answer. Commentary and visible messages separate compact execution groups. Consecutive tools stay together when reasoning is interleaved. The group's single-line title follows the latest heading supplied by the Agent in that group, including later sections of the same reasoning item. The fallback is **Tool execution**. Groups start collapsed and retain your expansion state throughout live updates and when the final answer arrives. Commentary, visible reasoning summaries, and answers stream into their existing rows. Opening a tool loads its saved command, result and errors into one compact log panel. Shell commands use Turn Preview’s readable formatting without changing the original record. Output preserves line breaks and indentation; long lines scroll horizontally inside the panel instead of wrapping. Scroll near the end of the loaded text to fetch the next section, or use **Load more**; large journals are not truncated by size. If the original log is missing, Workspace identifies the saved excerpt as such. Tool rows show an icon for the tool type. Hovering a tool or group title gently brightens its text. Tool errors use a muted label inside the log, and recorded timing appears below the log. File links show their path on hover.
445
451
 
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.
452
+ Expanding a file-change tool lists its file paths and any recorded addition and deletion counts. Click a file name with a saved patch to expand it inline. The icon in the upper-right corner opens the file's Diff tab and selects **This change**. The scope menu lets you switch between the tool's recorded changes and the available Git scopes. Workspace indicates when the patch recording was truncated. Files without a patch still link to their current Git Diff when available.
447
453
 
448
454
  The chat's file-change summary puts each file and its line counts on one row. Project files use relative paths and files outside the project use absolute paths. The latest turn's plan sits to the right of the conversation when there is room. On a narrow pane, click the progress indicator above the composer to see the steps.
449
455
 
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.
456
+ The final answer toolbar copies or downloads the full Markdown using the same format as Turn Preview. Share opens that turn's Turn Preview in a new tab. Reset returns the current chat to the end of the selected completed turn. Fork opens a new Workspace task at that same turn and preserves the active Feishu task.
457
+ The toolbar shows the turn's end time and duration. Hover over or tap the timing to see recorded token usage, model call count, and tool count calculated the same way as in Turn Preview.
458
+
459
+ Right-click a file workspace tab and choose **Pin** to show its icon in the fixed area on the left of the tab strip. Right-click the icon and choose **Unpin** to return it to the scrolling strip. Pin state is saved with the workspace tabs.
451
460
 
452
461
  Each task row shows the task name and last update time on the first line and a preview of the latest Prompt on the second. For a running task, the second line also shows its current status and the status dot gently pulses. Dates use your browser’s local time zone.
453
462
 
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.
463
+ Right-click a task to reference its session ID and title in the current chat draft or rename it in place. Press **Enter** to save the title or **Esc** to cancel.
464
+
465
+ While a turn is active, a single line above the Workspace composer shows elapsed time, model, reasoning effort, and reported token usage. You can scroll the line horizontally when space is tight. Token usage uses the same calculations as Turn Preview.
455
466
 
456
467
  Choose **New task** in the task list to open a draft. The draft starts with the currently open task’s project. Use **×** to clear it, or **Choose project directory** to pick a listed project or enter an absolute path on the Agent Bot host. Sending the first Prompt creates the Agent session. New Workspace tasks use your private Feishu chat. Use the model and reasoning controls in the composer toolbar to change the current task’s settings for its next request, or to set them for a draft before its first Prompt.
457
468
 
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.
469
+ Copy an image or file and press **Ctrl+V** or **⌘+V** in the composer to add it as a draft attachment. You can also use **+** or drag files into chat. Attach up to four files of any format, at most 5 MiB each and 12 MiB in total. PNG, JPEG, GIF and WebP display thumbnails and can be previewed before sending. Every draft attachment has an **×** button. In narrow layouts, tap the attachment to reveal the button. Tap a selected image again to preview it. The Agent receives local references to ordinary files. They can be downloaded from the Workspace conversation, and the Feishu Prompt lists their names. Attachments stay in the browser until sending or queuing. You can send or queue attachments with or without text. Failed messages retain their attachments and a retry button while the page is open. A retry keeps the original request ID so the same message is submitted only once. Sending and approvals use the task’s original Feishu chat or topic. **Stop** interrupts the current turn without clearing the queue.
470
+
471
+ Select text in chat or in a file or Diff preview to reveal the annotation and reference buttons. Moving the pointer onto the selection brings the buttons back. They hide five seconds after the pointer leaves. In source and Diff previews, double-click code to select a word. Drag across line numbers to select complete lines, or double-click a line number to select that line. A single click on a line number highlights the line without scrolling. For whole-line selections, the selection actions appear just below the start of the last selected line. Click it to write a note below the original text. Press **Enter** or leave the editor to attach a non-empty note to the draft. Use **Shift+Enter** or **Ctrl+Enter** for a new line. The underline clears when you send the draft or remove the annotation. Hover over or tap the underlined source to read the note. Click the note to edit the draft attachment in place. Use **Add reference** in the selection toolbar to attach selected text. The context menu offers **Reference this file** on file rows, file tabs, and previews. With text selected in the preview, it offers **Reference this selection**. A web tab offers **Reference this webpage**. References become draft attachments with the file path or page URL and any selected text and line numbers. File annotations include the absolute path and source line range. Rendered Markdown uses the corresponding source block's range, and chat annotations identify the selected message. Hover over the attachment to see the excerpt and your note. Send it with your next message or on its own to ask the Agent to address it.
472
+
473
+ References and annotations go directly into the model's Prompt with their source information, including when queued or scheduled. File and directory references carry their paths. Selections of complete file lines carry the path and line range, plus the note for an annotation. Right-click a directory and choose **Reference this path** to add its full path to the draft. The chat bubble shows the quoted text and any note in a quote block. Hover over the block or tap it to see its source.
474
+
475
+ Chat displays saved attachments and Agent Markdown images inline. Workspace and Turn Preview keep the original inline size when it fits, otherwise scale down proportionally to the available width and at most 60% of the viewport height or 720 pixels. Workspace uses recorded PNG density when available and caps both inline and preview sizes at the original image’s pixel dimensions at the current display scale. Click a Workspace chat image or draft thumbnail to open a borderless preview, scaled down as needed to fit the viewport. Click the enlarged image to close it. Workspace requires a session to read local images and confines them to the task directory or the attachment cache. External images are not fetched automatically; unavailable images show a placeholder. Chat code blocks show line numbers. Unified diffs show original and updated line numbers and highlight added or removed rows continuously. Markdown tables wrap or scroll independently when necessary. The composer starts with room for two lines and grows up to a viewport-based limit. In an existing task, the model and reasoning menus open above the toolbar. **Enter** sends. **Shift+Enter** and **Alt+Enter** insert a newline. The send button and Enter steer the running Turn or start a Turn when idle. **Ctrl+Enter** or **⌘+Enter** queues a separate Turn when a Turn is active or prompts are already waiting. With an idle task and an empty queue, these shortcuts send immediately. The Send tooltip lists Enter, the queue shortcut, and the available ways to queue a prompt.
476
+
477
+ Submitted messages appear immediately with their attachments, and a new Turn shows its divider at the same time. Agent Bot saves the message and attachments locally before submitting them to the Agent. It posts a copy to the original Feishu chat or topic after submission. The task continues if that delivery fails. An attached image stays visible while its saved copy loads. Sending starts automatic scrolling to new output. Scrolling up holds your reading position, and **Jump to latest** resumes following. Warnings and other recorded statuses appear within the Turn. When recorded, the start time appears below the user bubble on the right. The toolbar at the end of the Turn shows its end time and elapsed time when available.
459
478
 
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.
479
+ On narrow screens, holding Send for one second queues the message while the button is still held. To queue from the composer at any width, start the draft with `/queue` or a prefix such as `/q`, followed by a space and the prompt. The command is stripped when sending. A draft can also use `/queue` with attachments alone.
461
480
 
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.
481
+ Queued messages appear in numbered order above the composer until execution starts. They stay in place during submission and server confirmation. A failed submission can be retried from its queue row. Messages with attachments have a marker. The browser receives the full text with the queue, so clicking a confirmed message opens its inline editor immediately. Saving keeps its queue position and attachments. Editing a queued run of a scheduled task applies to that run only. Workspace, `agentbot task status`, and open Feishu queue cards show the task's shared Agent Bot queue. Use the close button on a confirmed queued message to cancel it and restore its content to the composer alongside the current draft. If a target Turn finishes before a steer is sent, the message can also be restored to the composer.
463
482
 
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.
483
+ Click the up arrow on a queued message to send it immediately with its attachments. It steers the active turn or starts a new turn when the task is idle. Using the arrow on a scheduled occurrence sends that occurrence manually and preserves the plan's future schedule.
465
484
 
466
485
  The clock opens the current task's Agent Bot schedules and run history. Schedule the chat draft with its text, images, files or annotations, including a draft containing only attachments. The default is one run in 30 minutes. Choose hourly, daily, weekdays, weekly, monthly, yearly, or a custom five-field Cron expression. Advanced settings include timezone, an optional end time, the maximum queue wait, and the catch-up window. Workspace can edit, enable, pause, resume, run or delete the same plans that appear in `agentbot schedule` and Feishu. A plan sends to the task's original conversation or topic and enters the persistent queue as a separate Turn when the task is busy.
467
486
 
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.
487
+ Workspace tooltips appear on hover or keyboard focus and auto-dismiss after five seconds. Available shortcuts appear on the right using the current platform's key labels. Hold **Ctrl** on Windows or Linux or **⌘** on macOS for half a second to reveal shortcuts beside visible buttons. Release the key to dismiss them.
469
488
 
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.
489
+ Every task has an independent file panel, including two tasks in the same project. Switching restores its tabs, reading positions and last sidebar visibility without closing background terminals. The sidebar starts folded for a new task or a task with no saved visibility preference. Task URLs contain only the selected task, a chat reading anchor and that task’s recoverable file-panel state. Tree expansion, loaded directory pages and scrolling stay in local browser storage; draft text stays in the current browser tab. Local Markdown links open existing file tabs; execution-summary links show the **current** Git diff, not a historical file version.
471
490
 
472
491
  The file and Git trees show recently read directory pages from a bounded cache, then update in place as the active project changes. Lightweight change notifications carry no file contents; unchanged pages are revalidated without transferring the list again. Desktop connections can preload small trees or warm a few directory pages. On phones, cellular connections, slow networks and with Data Saver, Workspace skips speculative reads: it loads visible or explicitly opened directories, requests only a count for the inactive Git tree, and fetches subsequent 100-item pages as they come into view. Large directories also use 100-item pages on desktop. Loading errors remain visible and offer Retry.
473
492
 
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.
493
+ Click a file to open its content, or switch to **Uncommitted** to inspect modified, staged, untracked, deleted and renamed files. Diff supports **All changes** (HEAD to worktree), **Staged** (HEAD to index), and **Unstaged** (index to worktree); a file appears once even when staged and unstaged edits cancel out. File and Diff tabs are separate and reuse cached content and reading positions. The visible preview updates in the background when its file changes; closing a tab releases its cached content. Run **Refresh Files** from the command palette to reload the list and current tab while restoring expanded directories. On smaller screens, switch between Tasks, Chat and Files without closing file tabs.
475
494
 
476
495
  Workspace links grant read-only access to the selected directory and its descendants: keep them private, including when sharing Turn Preview links. Paths and symlinks cannot escape that directory, Git internals are excluded, and HTML opens as inert source. File browsing provides no editing, staging or commits. The signature alone does not grant terminal access. Text previews are limited to 2 MiB or 10000 lines. Complete Diff versions have the same limit, with at most 20000 merged rows; changed patches are limited to 1 MiB or 10000 lines. Exceeding a Diff limit reports an error instead of silently hiding file context. Raw downloads retain the complete file. Git failures and non-Git projects are reported separately from clean repositories.
477
496
 
package/README.zh.md CHANGED
@@ -400,31 +400,33 @@ Agent 可用 `agentbot task metadata directory add <路径>` 关联目录。命
400
400
 
401
401
  文件列表折叠按钮位于标签栏下方的文件预览工具栏,仅在文件和 Diff 预览中显示;新标签、网页和终端的内容视图使用完整内容区,不显示文件列表。切回文件或 Diff 时保留列表宽度、折叠偏好和内容缓存;关闭最后一个已折叠的文件标签后仍可浏览文件,不会丢失文件选择入口。
402
402
 
403
- 在地址栏输入 `src/file.ts:23` 可打开项目内的文件并定位到第 23 行,输入 `:23` 可在当前文件中跳转。已有的 `#L23` 链接也可继续使用。
403
+ 在地址栏输入 `src/file.ts:23` 可打开项目内的文件并定位到第 23 行,输入 `:23` 可在当前文件中跳转。已有的 `#L23` 链接也可继续使用。在文件和 Diff 预览中,单击路径的一段可查看同级文件和目录,点选目录可继续浏览,点选文件会打开预览。地址栏失焦后会恢复为当前文件的路径和行号。双击路径可编辑地址。
404
404
 
405
- 列表顶部刷新按钮左侧的定位按钮会展开当前文件的父目录,并在列表内居中、高亮当前文件,不重新读取预览或改变文件阅读位置。普通文件定位到文件树,Diff 定位到 Git 变更树(含删除文件);定位会清除该列表的过滤条件,按需加载目录分页,展开、页数与列表滚动状态改为保存在当前浏览器本地,按项目区分,不再写入 URL。定位失败显示原因并提供重试,没有选中文件标签时禁用按钮。
405
+ 文件列表工具栏最右侧的定位按钮会展开当前文件的父目录,并在列表内居中、高亮当前文件,不重新读取预览或改变文件阅读位置。普通文件定位到文件树,Diff 定位到 Git 变更树(含删除文件);定位会清除该列表的过滤条件,按需加载目录分页,展开、页数与列表滚动状态改为保存在当前浏览器本地,按项目区分,不再写入 URL。定位失败显示原因并提供重试,没有选中文件标签时禁用按钮。
406
406
 
407
407
  未提交改动使用目录树,仅展示有改动的目录和文件;文件/目录元数据合计不超过 300 项时一次预载,较大项目仍按目录懒加载。文件树和改动树中,展开目录时会沿着只有一个子目录、没有文件的目录链自动继续展开,遇到文件、分支或读取失败时停止。有改动的目录显示内部全部变动文件数量,包括尚未展开的子目录;过滤、分页和折叠时仍保留完整计数,没有变动的目录不显示徽标,顶部数量仍统计整个项目。重命名文件归到当前路径,原路径保留在提示中;导航和刷新时保留目录展开状态,包括手动收起的子目录。
408
408
 
409
- 导航、刷新、返回、下载及关闭标签等操作使用轻量 SVG 图标,保留提示与无障碍标签,不引入图标库依赖。未提交改动使用数量徽标和单字符 Git 状态:未跟踪 `U`、修改 `M`、删除 `D`、暂存新增 `A`;重命名、复制及类型变化保留 `R`、`C`、`T`,冲突使用 `!`。混合状态优先显示删除,其次暂存区状态,最后工作区状态;完整暂存与未暂存含义保留在提示与无障碍标签中。
409
+ 导航、返回、下载及关闭标签等操作使用轻量 SVG 图标,保留提示与无障碍标签,不引入图标库依赖。未提交改动使用数量徽标和单字符 Git 状态:未跟踪 `U`、修改 `M`、删除 `D`、暂存新增 `A`;重命名、复制及类型变化保留 `R`、`C`、`T`,冲突使用 `!`。混合状态优先显示删除,其次暂存区状态,最后工作区状态;完整暂存与未暂存含义保留在提示与无障碍标签中。
410
410
 
411
- 顶部任务、聊天、文件采用连体圆角分段切换,选中项凸起显示。切换时保留各区域的组件、滚动位置和已有界面状态;切回文件时恢复原来的列表或详情、选中标签及 Diff 范围,不重新读取预览。代码文件使用 Roboto Mono 并支持语法高亮。行号栏默认留两位宽,按最大显示行号扩宽。普通 Markdown 预览渲染标题、列表、表格、代码块及图表,不再显示原始源码。本地文件链接在工作台内打开,图片仍受同一项目范围和签名限制。
411
+ 手机端通过顶部按钮切换任务、聊天和文件。视口宽度为 651–950 像素时,悬浮在页头最左侧的任务按钮上,任务列表会从左侧滑出并覆盖当前视图。点击按钮可将列表固定在左侧,再次点击收起。悬浮和固定时都可拖动列表右边缘调整宽度,浏览器会记住宽度和固定状态。右上角并排显示聊天和文件按钮。切换时保留各区域的组件、滚动位置和界面状态,切回文件时恢复原来的列表或详情、选中标签及 Diff 范围。代码文件使用 Roboto Mono 并支持语法高亮。行号栏默认留两位宽,按最大显示行号扩宽。普通 Markdown 预览渲染标题、列表、表格、代码块及图表。本地文件链接在工作台内打开,图片仍受同一项目范围和签名限制。
412
412
 
413
413
  点击代码、Diff 或 Markdown 预览里的文字,可放置阅读光标并高亮所在行。拖选文字后仍可复制或添加批注。
414
414
 
415
+ Markdown 文件默认显示渲染预览。点击文件工具栏的「查看原文件」可在当前标签查看带行号的源码,再点「切换到预览模式」可返回渲染视图。所选模式会随标签一起保存。
416
+
415
417
  Diff 展示对应版本的完整文件,保留改动前后及改动之间的所有未修改内容;删除的旧行以内嵌红色显示,新增行以绿色显示,两侧均保留语法高亮和旧/新行号。Markdown 的 Diff 仍显示源码。全部比较 HEAD 与工作区,已暂存比较 HEAD 与暂存区快照,未暂存比较暂存区与工作区;仅路径变化的重命名不会把整份文件标成改写。新打开的 Diff 自动定位到第一个改动区块;返回已有标签或恢复已保存的 URL 时保留阅读位置。范围选择前的上下箭头跳到上一处/下一处连续改动区块,不重新读取文件,保留横向滚动位置,并将定位记入 URL 和页内历史。跳转时将改动块的首行置于阅读区中央,文件首尾以可滚动范围为限,没有对应改动时禁用按钮。带箭头的文件图标可切换到当前文件的非 Diff 预览。
416
418
 
417
- 打开文件、切换标签、Diff 范围、文件/改动列表及工作台区域都会记录页内历史。浏览器返回/前进及手机返回会恢复上一视图和阅读位置,不关闭标签,并跳过已关闭标签的记录;退到工作台入口后再返回,才正常离开页面。地址栏导航按钮只在工作台内导航,并跳过仅切换列表或区域的记录。刷新、分页、目录展开及滚动只更新当前记录,不新增返回记录。URL 查询参数记录当前区域、列表和文件/Diff 范围,URL 片段记录标签、文件阅读位置、布局和过滤条件;目录展开、已加载目录页数、列表滚动和过滤结果目录的收起状态只保存在当前浏览器本地,不再写入 URL。重新打开同一 URL 仍可还原链接指向的视图,不依赖旧的浏览器历史。若当前目录树没有本地记录,会自动定位当前文件,按需加载其父目录和分页,不切换已选区域或文件详情,过滤视图仍保留过滤条件;已有的手动收起状态会被保留。旧 URL 中的目录展开数据不再采用。链接只保存导航和位置,不包含文件正文或聊天文本;文件和 Git 改动仍读取当前项目内容,并非历史快照。
419
+ 打开文件、切换标签、Diff 范围、文件/改动列表及工作台区域都会记录页内历史。浏览器返回/前进及手机返回会恢复上一视图和阅读位置,不关闭标签,并跳过已关闭标签的记录;退到工作台入口后再返回,才正常离开页面。地址栏导航按钮只在工作台内导航,并跳过仅切换列表或区域的记录。在同一文件的行号记录间前进或后退时,预览会跳转到记录的行号。手动滚动只更新标签的阅读位置。刷新、分页、目录展开和手动滚动都不新增历史记录。URL 查询参数记录当前区域、列表和文件/Diff 范围,URL 片段记录标签、文件阅读位置、布局和过滤条件;目录展开、已加载目录页数、列表滚动和过滤结果目录的收起状态只保存在当前浏览器本地,不再写入 URL。重新打开同一 URL 仍可还原链接指向的视图,不依赖旧的浏览器历史。若当前目录树没有本地记录,会自动定位当前文件,按需加载其父目录和分页,不切换已选区域或文件详情,过滤视图仍保留过滤条件;已有的手动收起状态会被保留。旧 URL 中的目录展开数据不再采用。链接只保存导航和位置,不包含文件正文或聊天文本;文件和 Git 改动仍读取当前项目内容,并非历史快照。
418
420
 
419
421
  桌面端左侧是紧凑的项目/任务栏,中间是聊天区,右侧是文件工作区。文件标签和路径/操作工具栏位于文件区顶部,下方左侧显示内容,文件/改动树作为最右侧的独立栏。文件树的分段切换及刷新操作留在自身顶部,选中的文件标签突出显示。点击可见标签时复用标签节点并保持标签栏位置,仅在目标完全不可见时滚动显示;鼠标位于标签栏时可用滚轮横向浏览标签。工作区变宽时优先保持标签栏左侧位置,先向右显示更多标签,只有右侧已到末尾时才向左补充显示。滚动条采用半透明浮层,不占布局宽高,在悬停、滚动或拖拽时显示;点击滚道定位,拖拽滑块滚动对应区域,嵌套代码块和表格也支持,不切换标签或移动另一方向。普通滑块为 4 像素,鼠标进入附近 12 像素命中区时增大到 8 像素;标签栏使用顶部独立的 2 像素细条,更小的命中区和更低透明度,悬停不变大。拖拽采用指针捕获,移出滚道仍可继续,松开、取消、隐藏或卸载时结束。可用按钮、标签及目录行在深浅色主题下都有悬停反馈;悬停时整块标签高亮,悬停关闭按钮时该按钮略微加深,名称区域不叠加独立高亮;平板端文件内容与右侧目录树保持并排。
420
422
 
421
- 桌面端任务/聊天/文件三栏及内容/文件列表之间可拖动分隔线调整宽度,也可聚焦分隔线后按左右箭头调整。分隔线保持 1 像素,使用更宽的透明命中区域,悬停或拖动时轻微高亮。页头左侧按钮折叠任务栏,右侧按钮折叠整个文件工作区,聊天区使用释放的空间;两侧可以独立折叠,并始终通过页头按钮重新展开,不丢弃内容和阅读位置。文件预览工具栏按钮仍只折叠内部文件列表。小屏幕隐藏这两个页头折叠按钮,保留任务、聊天、文件的全宽切换;宽度和折叠状态写入 URL,不影响手机全宽导航。文件列表顶部支持按文件名/路径过滤,两种列表独立保留条件;小项目在完整元数据上本地过滤,大项目最多扫描 20000 项或 1 秒、返回 300 个匹配,未完整扫描时明确提示。可用 src/名称这样的目录前缀缩小范围;清空过滤恢复原目录树及手动展开/收起状态。
423
+ 桌面端任务/聊天/文件三栏及内容/文件列表之间可拖动分隔线调整宽度,也可聚焦分隔线后按左右箭头调整。分隔线保持 1 像素,使用更宽的透明命中区域,悬停或拖动时轻微高亮。宽屏三栏布局中,页头左侧按钮折叠任务栏,右侧按钮折叠整个文件工作区,聊天区使用释放的空间。两侧可以独立折叠,通过页头按钮重新展开时保留内容和阅读位置。有会话时,宽屏切到中宽会保留聊天,两栏并排时也优先显示聊天。切回宽屏会保留当前栏目,当前在文件页时会展开文件工作区。文件预览工具栏按钮折叠内部文件列表。宽屏下,点击地址栏右侧的展开按钮,文件工作区会使用聊天栏的空间。再次点击即可恢复聊天。主题切换按钮右侧的全屏按钮可进入或退出网页全屏。宽度和折叠状态写入 URL。文件列表顶部支持按文件名/路径过滤,两种列表独立保留条件。小项目在完整元数据上本地过滤,大项目最多扫描 20000 项或 1 秒、返回 300 个匹配,未完整扫描时明确提示。可用 src/名称这样的目录前缀缩小范围,清空过滤恢复原目录树及手动展开/收起状态。
422
424
 
423
425
  标签栏最右侧固定 **+** 打开新标签,提供文件、网页和 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 保存标签目标/实例标识、过滤和布局,不保存终端密码或浏览器授权凭证。
424
426
 
425
427
  手机端(含横屏)将文件/改动列表与内容分为两个全宽视图:点击文件进入内容,点击树形图标直接回到文件/改动列表。阅读时使用紧凑工具栏和更窄的行号栏,隐藏重复页面标题及路径;完整路径仍可在列表和标签提示中查看。列表模式隐藏文件标签栏和内容工具栏,但不会丢弃已打开标签或阅读位置。
426
428
 
427
- 手机详情工具栏中返回箭头旁的树形结构图标,以及在文件模式内再次点击右上角文件图标,都可一键回到当前文件/改动列表,无需逐级返回,也不会关闭标签;列表工具栏和详情页返回列表按钮统一使用树形结构图标,右上角文件模式切换保留文件夹图标。文件树和改动树的目录行仅保留展开箭头,不显示文件夹图标,同级名称对齐。鼠标点击目录不显示焦点边框,键盘导航时在目录行内部显示焦点提示。目录展开操作避免误触文本选择,文件名仍可主动选择、复制;拖选文件名时不会打开文件。展开、折叠目录时保持该目录行在视口中的位置,仅增减下方子项;靠近列表底部收起时暂时保留必要空间,向上滚动或展开后自动释放。目录层级竖线在悬停该目录或子项时显示,当前文件的父目录链持续显示;文件和 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 状态读取失败显示原因,但不影响文件浏览。重新打开标签时保留阅读位置,浏览器返回可回到刚才的详情视图。
429
+ 手机详情工具栏中返回箭头旁的树形结构图标,以及在文件模式内再次点击右上角文件图标,都可一键回到当前文件/改动列表,无需逐级返回,也不会关闭标签;列表工具栏和详情页返回列表按钮统一使用树形结构图标,右上角文件模式切换保留文件夹图标。文件树和改动树的目录行仅保留展开箭头,不显示文件夹图标,同级名称对齐。鼠标点击目录不显示焦点边框,键盘导航时在目录行内部显示焦点提示。目录展开操作避免误触文本选择,文件名仍可主动选择、复制;拖选文件名时不会打开文件。展开、折叠目录时保持该目录行在视口中的位置,仅增减下方子项;靠近列表底部收起时暂时保留必要空间,向上滚动或展开后自动释放。目录层级竖线在悬停该目录或子项时显示,当前文件的父目录链持续显示;文件和 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 状态读取失败显示原因,但不影响文件浏览。重新打开标签时保留阅读位置,浏览器返回可回到刚才的详情视图。
428
430
 
429
431
  在任务的 Turn Preview 页头状态文字后点击 **Workspace**(例如“已完成 · Workspace”),工作台会直接打开该任务的 Git 变更列表。后台加载对话不会重建文件面板,也不会清空列表和变更计数;点 **聊天** 可查看对话。目录预览的 **打开项目工作台** 仍默认进入文件列表。打开工作台不会启动 Agent 或 Shell。
430
432
 
@@ -434,39 +436,56 @@ Diff 展示对应版本的完整文件,保留改动前后及改动之间的所
434
436
 
435
437
  Agent Bot 重启或 Workspace 构建变化后,页面会自动刷新。同一浏览器标签页会恢复当前任务、文件标签、阅读位置,以及草稿里的文字、图片、文件和批注。Prompt 图片延迟加载时,聊天区会保持原来的阅读位置。新任务草稿在发送首条消息前刷新也能恢复。自动刷新会等附件写入浏览器存储。若浏览器无法保存附件,输入框会提示并暂缓刷新。使用自定义密码时,服务重启后可能需要重新登录。
436
438
 
437
- 聊天栏头部在同一行显示任务标题、状态、Agent 和当前分支已记录的轮次总数。有数据时也显示最新上报的累计 Token 和会话日志的磁盘占用。聊天栏较窄时,可横向滚动任务信息查看后续字段。
439
+ 点击文件预览,或将鼠标移到预览上且未聚焦输入框,按 **Ctrl/⌘ + `+`** 或 **Ctrl/⌘ + `−`** 可调整文件、Markdown 和 Diff 预览的字号。浏览器会记住设置。悬停在地址栏右端的缩放图标上可查看比例,点击恢复 100%。
440
+
441
+ 聊天栏头部在同一行显示任务标题、状态、Agent 和当前分支已记录的轮次总数。有数据时也显示最新上报的累计 Token 总量(包含命中缓存的输入)和会话日志的磁盘占用。聊天栏较窄时,可横向滚动任务信息查看后续字段。
442
+
443
+ 聊天页按顺序显示每轮已保存的全部活动,超过 80 条也会保留早期活动。工具折叠时只显示标题,展开后再读取命令、输出和错误。
438
444
 
439
445
  用户消息、进展说明(Commentary)和 Agent 回复使用正文颜色,字号都是与 Turn Preview 最终回答一致的 14px。进展说明和可见消息将连续执行分段。组内单行标题跟随 Agent 最新上报的思考标题,同一段思考后续出现的新标题也会更新。缺少标题时显示「工具执行」。执行组默认折叠,手动展开后会在实时更新和最终回答到达时保留展开状态。进展说明、可见的思考摘要和回答会在原位置流式更新。展开单项工具才加载命令、结果和错误,集中显示在一个紧凑的日志区。Shell 命令沿用 Turn Preview 的排版,不改变原始记录;结果保留原有换行与缩进,长行只在日志区内横向滚动,不自动折行。滚动接近当前片段末尾会加载下一段,也可点 **加载更多输出**。大日志不因体积被截断;只有原始记录缺失时才标明目前只有已保存的摘要。工具行用图标区分类型。悬停时只轻微提亮工具和分组标题文字,失败信息在日志内用低对比度标记。已记录的时间放在日志底部,文件链接悬停时可查看路径。
440
446
 
441
- 展开修改文件的工具,可查看文件路径及已记录的增删行数。点击 Workspace 已打开目录中的文件路径,即可查看当前 Git Diff。工具提供补丁时,可在该文件下展开「本次补丁」查看这次修改。
447
+ 展开修改文件的工具,可查看文件路径及已记录的增删行数。点击有补丁记录的文件名会展开补丁,补丁右上角的按钮会在该文件的 Diff 标签中选中「本次修改」。通过范围下拉框可在该工具保存的补丁和可用的 Git 范围之间切换。补丁截断时会显示提示。没有补丁的文件仍可通过可用链接查看当前 Git Diff。
442
448
 
443
449
  聊天中的「文件变更」每行显示一个文件和已记录的增删行数。本项目内显示相对路径,项目外显示绝对路径。最近一轮有计划时,宽聊天区在右侧显示计划,窄聊天区可点击输入框上方的进度按钮查看。
444
450
 
445
- 最终回答下方可复制或下载与 Turn Preview 一致的完整 Markdown,也可复制该轮的 Turn Preview 分享链接。Reset 将当前聊天重置到所选已完成轮次结束时的状态。Fork 从同一轮创建并打开新的 Workspace 任务,飞书当前任务保持原状。
451
+ 最终回答下方可复制或下载与 Turn Preview 一致的完整 Markdown。点击分享会在新标签页打开该轮的 Turn Preview。Reset 将当前聊天重置到所选已完成轮次结束时的状态。Fork 从同一轮创建并打开新的 Workspace 任务,飞书当前任务保持原状。
452
+ 工具栏显示本轮结束时间和耗时。悬停或点按时间可查看 Token 消耗、模型调用次数和工具数量,统计口径与 Turn Preview 一致。
453
+
454
+ 右键单击文件工作区的标签,选择「固定」可在标签栏左侧只显示其图标,普通标签滚动时固定区留在原位。右键单击图标,选择「取消固定」可将标签移回滚动区。固定状态会随标签一起保存。
446
455
 
447
456
  左侧任务列表每项显示两行。首行显示任务名和最后更新时间,次行显示最近一轮的 Prompt 摘要。任务执行中时,副标题同时显示执行状态,任务圆点会轻微呼吸。时间按浏览器的本地时区显示。
448
457
 
449
- 轮次执行期间,Workspace 输入框上方显示实时耗时、本轮使用的模型和思考强度。
458
+ 右键单击任务,选择「引用该会话」可将会话 ID 和标题加入当前聊天草稿,选择「重命名」可在任务行内编辑标题。按 **Enter** 保存,按 **Esc** 取消。
459
+
460
+ 轮次执行期间,Workspace 输入框上方单行显示实时耗时、本轮使用的模型、思考强度和 Agent 已上报的 Token 消耗。空间不足时可以横向滑动查看。Token 统计口径与 Turn Preview 一致。
450
461
 
451
462
  在任务列表点 **新建任务** 会打开草稿,默认使用当前会话的项目。可以点 **×** 清除项目,再点 **选择项目目录** 从已有项目中选,或输入 Agent Bot 主机上的绝对目录路径。发送第一条 Prompt 时才创建底层 Agent 会话。Workspace 新建的任务关联你的飞书私聊。输入框底部的工具栏可切换当前任务的模型和思考强度,从下一次请求生效,也可以为草稿预先配置。
452
463
 
453
- 复制图片或文件后,在输入框按 **Ctrl+V** 或 **⌘+V** 即可加入草稿附件。也可点 **+** 或拖入文件。支持任意文件格式,最多 4 个,单个不超过 5 MiB,合计不超过 12 MiB。PNG、JPEG、GIF、WebP 可预览,点 **×** 移除草稿附件。普通文件以本地路径交给 Agent,可从 Workspace 聊天记录下载,飞书消息会列出文件名。发送或排队时才上传,可以随文字一起提交,也可以只发附件。页面打开期间,失败的消息和附件可以沿用原请求重试,已收到或尚不能确认可安全重发的消息不会重复发送。发送和权限确认沿用任务原来的飞书会话或话题。停止当前轮次不会清空队列。
464
+ 复制图片或文件后,在输入框按 **Ctrl+V** 或 **⌘+V** 即可加入草稿附件。也可点 **+** 或拖入文件。支持任意文件格式,最多 4 个,单个不超过 5 MiB,合计不超过 12 MiB。PNG、JPEG、GIF、WebP 可预览,各类草稿附件都使用 **×** 移除。窄布局下点选附件后才显示 **×**,再次点选中的图片可打开预览。普通文件以本地路径交给 Agent,可从 Workspace 聊天记录下载,飞书消息会列出文件名。发送或排队时才上传,可以随文字一起提交,也可以只发附件。页面打开期间,失败的消息和附件可以沿用原请求重试,已收到或尚不能确认可安全重发的消息不会重复发送。发送和权限确认沿用任务原来的飞书会话或话题。停止当前轮次不会清空队列。
465
+
466
+ 在聊天、文件或 Diff 预览中选中文字后,选区附近会显示批注和引用按钮。鼠标移回选区时按钮会重新出现,离开后 5 秒收起。源码和 Diff 预览中,双击代码按词选择,拖动行号可选择多行,双击行号可选中整行。单击行号会高亮该行,同时保留当前滚动位置。整行选区的操作按钮显示在最后一行的代码起点下方。点击后可在原文下方写批注。按 **Enter** 或移开焦点会把非空批注加入草稿,按 **Shift+Enter** 或 **Ctrl+Enter** 换行。原文上的下划线会在发送草稿或移除批注附件后消失。悬停或点按带下划线的原文可查看批注,点击批注内容即可原地修改草稿附件。选区工具条也可添加引用。右键点击文件列表或文件标签时显示「引用该文件」,网页标签显示「引用该网页」。在文件预览正文右键时,有选区就显示「引用该选区」,没有选区就显示「引用该文件」。引用会加入草稿附件,记录文件路径或网页地址,以及所选原文和可用行号。文件批注包含绝对路径和行号范围,渲染后的 Markdown 使用对应源码块的范围,聊天批注记录消息来源。悬浮到附件标题即可查看原文摘要和批注内容。可随下一条消息发送,也可单独发送,让 Agent 处理批注。
467
+
468
+ 引用和批注会连同来源直接写入发给模型的 Prompt,排队和定时发送也支持。文件和目录引用只传路径,完整行选区只传路径和行号,批注还会带上用户写的说明。右键点击目录并选择「引用该路径」,即可将完整路径加入草稿。聊天气泡用引用块显示原文和批注,悬停或点按引用块可查看来源。
469
+
470
+ 已保存的附件及 Agent 回复里的 Markdown 图片可直接显示。内嵌图片按可用宽度等比缩小,高度不超过视口的 60% 或 720 像素。Workspace 有 PNG DPI 信息时按该信息换算,并按当前屏幕缩放限制正文和预览的显示尺寸,最多显示为原图像素大小。点击聊天图片或草稿缩略图打开无边框预览,超出视口时等比缩小。再点大图即可关闭。工作台读取本地图片需要会话权限,范围限于任务目录或附件缓存。外部图片不自动加载,缺失时显示提示。聊天中的代码块显示行号。统一格式的 Diff 显示旧、新行号,增删行连续高亮。Markdown 表格会换行,过宽时在表格内横向滚动。输入区默认留出两行文字空间,长内容随输入增高,达到高度上限后在框内滚动。已有任务的模型和思考强度菜单从工具栏上方展开。**Enter** 发送,**Shift + Enter** 和 **Alt + Enter** 换行。发送按钮和 Enter 会在任务运行时追加到当前轮次(Steer),空闲时开启新轮次。按 **Ctrl + Enter** 或 **⌘ + Enter**,在当前轮次运行中或已有排队消息时加入队尾。任务空闲且队列为空时直接发送。悬停发送按钮会显示发送和排队的快捷键及其他排队方式。
471
+
472
+ 发送后,消息和附件立即显示,新轮次同时显示分隔线。Agent Bot 先在本地保存消息和附件,再提交给 Agent。提交后向原飞书会话或话题投递副本,投递失败时任务照常执行。服务端图片加载期间继续显示本地预览。发送后聊天区自动跟随最新输出。向上滚动时保持阅读位置,点击 **回到最新** 恢复跟随。警告及其他已记录的状态显示在轮次中。有时间记录的消息在气泡外右下方显示开始时间。轮次结束后,底部操作栏会显示已记录的结束时间和耗时。
454
473
 
455
- 在聊天、文件或 Diff 预览中选中文字,选区右下方的 **添加批注** 按钮会显示 3 秒。点击后可在原文下方写批注。按 **Enter** 或移开焦点会把非空批注加入草稿,按 **Shift+Enter** 或 **Ctrl+Enter** 换行。原文上的下划线会在发送草稿或移除批注附件后消失。文件批注包含绝对路径和行号范围,渲染后的 Markdown 使用对应源码块的范围,聊天批注记录消息来源。悬浮到附件标题即可查看原文摘要和批注内容。可随下一条消息发送,也可单独发送,让 Agent 处理批注。
474
+ 窄屏下按住发送按钮满 1 秒,消息会立即进入队列。任意宽度下,输入 `/queue` 或 `/q` 等缩写,加空格后输入正文,也能排队发送。发送时会去掉命令前缀,也可以用 `/queue` 单独排队发送附件。
456
475
 
457
- 已保存的附件及 Agent 回复里的 Markdown 图片可直接显示。内嵌图片按可用宽度等比缩小,高度不超过视口的 60% 或 720 像素。点击工作台聊天中的图片可以打开适应视口的无边框大图。工作台读取本地图片需要会话权限,范围限于任务目录或附件缓存。外部图片不自动加载,缺失时显示提示。Markdown 表格会换行,过宽时在表格内横向滚动。输入区默认留出两行文字空间,长内容随输入增高,达到高度上限后在框内滚动。已有任务的模型和思考强度菜单从工具栏上方展开。**Enter** 发送,**Alt + Enter** 换行。发送按钮和 Enter 会在任务运行时追加到当前轮次(Steer),空闲时开启新轮次。**Shift + Enter**、**Ctrl + Enter** 或 **⌘ + Enter** 会在任务运行时排队,空闲时直接发送。
476
+ 排队消息按序号显示在输入框上方,开始执行后进入聊天区。提交和服务器确认期间保留原位,提交失败可在队列行重试。带附件的消息会显示「附件」标识。浏览器随队列接收完整正文,点击已确认的消息即可原地编辑。保存时保留排队位置和附件。编辑已入队的定时任务只影响本次执行。Workspace、`agentbot task status` 和已打开的飞书排队卡片显示同一个 Agent Bot 任务队列。点击已确认队列行的 **×** 可取消排队,并将内容和附件恢复到输入框,与已有草稿合并。如果发送途中目标轮次结束,也可以把消息恢复到输入框。
458
477
 
459
- 排队消息按序号显示在输入框上方,带附件的消息会显示「附件」标识。点击消息可原地编辑正文,保存时保留排队位置和附件。编辑已入队的定时任务只影响本次执行。Workspace、`agentbot task status` 和已打开的飞书排队卡片显示同一个 Agent Bot 任务队列。点击其中的 **×** 可取消排队,并将内容和附件恢复到输入框,与已有草稿合并。如果发送途中目标轮次结束,也可以把消息恢复到输入框。
478
+ 点击排队消息右侧的上箭头可连同附件立即发送。任务运行中会追加到当前轮次,空闲时开启新轮次。已入队的定时任务可手动发送本次消息,后续计划按原定时间执行。
460
479
 
461
480
  闹钟按钮打开当前任务的 Agent Bot 定时计划和运行记录。可将聊天草稿中的文字、图片、文件或批注保存为计划,也可只安排附件。默认半小时后执行一次,可选每小时、每天、工作日、每周、每月、每年或自定义五段 Cron。高级设置可调整时区、结束时间、最长等待和错过后补跑的窗口。Workspace、`agentbot schedule` 与飞书共用计划,可编辑、启用、暂停、恢复、立即执行或删除。到点后如果任务仍在运行,调度器会把消息放入持久化队列,空闲后在任务原会话或话题开启独立轮次。
462
481
 
463
- Workspace 的提示在鼠标悬停或键盘聚焦时出现,短暂停留后自动隐藏。有快捷键时,提示右侧显示当前平台的按键。
482
+ Workspace 的提示在鼠标悬停或键盘聚焦时出现,显示 5 秒后自动隐藏。有快捷键时,提示右侧显示当前平台的按键。Windows 或 Linux 上按住 **Ctrl** 半秒,macOS 上按住 **⌘** 半秒,可在可见按钮旁查看快捷键,松开后收起。
464
483
 
465
- 即使同属一个项目,每个任务也有独立右栏。切换会恢复各自的标签和阅读位置,不会关闭后台终端。任务 URL 只保存当前任务、聊天阅读锚点和该任务可恢复的右栏信息;目录展开、分页和目录滚动仍只保存在本地,输入草稿只保存在当前浏览器标签页。回复里的项目文件链接复用右栏标签;执行摘要的改动入口打开的是 **当前** Git 工作区,不是历史快照。
484
+ 即使同属一个项目,每个任务也有独立右栏。切换会恢复各自的标签、阅读位置和文件侧边栏的展开状态,不会关闭后台终端。新任务和没有保存过开关状态的任务默认收起文件侧边栏。任务 URL 只保存当前任务、聊天阅读锚点和该任务可恢复的右栏信息;目录展开、分页和目录滚动仍只保存在本地,输入草稿只保存在当前浏览器标签页。回复里的项目文件链接复用右栏标签;执行摘要的改动入口打开的是 **当前** Git 工作区,不是历史快照。
466
485
 
467
486
  文件树和 Git 改动树优先显示有限缓存中的目录页,项目变动后在后台就地更新,不清空列表。实时通知不传文件内容,目录页未变化时也不重复下载列表。桌面网络条件允许时可以预载小项目或预热少量目录页;手机、蜂窝网、慢网或开启节省流量时不预取,只加载可见或主动打开的目录,未打开的 Git 改动树只取计数。大目录按每页 100 项读取,省流模式下滚到分页处才取下一页;读取失败会提示原因并提供重试。
468
487
 
469
- 点击文件查看内容,切换 **未提交** 浏览修改、暂存、未跟踪、删除及重命名文件。Diff 可选 **全部改动**(HEAD 到工作区)、**已暂存**(HEAD 到暂存区)、**未暂存**(暂存区到工作区);同一文件只列一次,即使暂存与未暂存修改互相抵消也不会漏掉。文件与 Diff 使用独立标签,切换时复用已加载内容和阅读位置,当前可见预览随文件变动在后台更新,关闭标签释放缓存。**刷新** 更新列表与当前标签,并恢复已展开目录。小屏幕通过任务、聊天、文件三个视图切换,不关闭文件标签。
488
+ 点击文件查看内容,切换 **未提交** 浏览修改、暂存、未跟踪、删除及重命名文件。Diff 可选 **全部改动**(HEAD 到工作区)、**已暂存**(HEAD 到暂存区)、**未暂存**(暂存区到工作区);同一文件只列一次,即使暂存与未暂存修改互相抵消也不会漏掉。文件与 Diff 使用独立标签,切换时复用已加载内容和阅读位置,当前可见预览随文件变动在后台更新,关闭标签释放缓存。在命令面板运行「刷新文件」可更新列表与当前标签,并恢复已展开目录。小屏幕通过任务、聊天、文件三个视图切换,不关闭文件标签。
470
489
 
471
490
  工作台链接允许只读访问所选目录及其后代,请勿分享给无权读取项目的人;分享 Turn Preview 时也应注意其中的项目入口。路径与符号链接不能跳出该目录,不开放 Git 内部文件,HTML 仅作为源码显示。文件浏览不提供编辑、暂存或提交;文件签名本身不授予终端访问权限。文本预览限制为前 2 MiB 或 10000 行;完整 Diff 的各版本沿用此限制,最多合并 20000 行,改动补丁限制为 1 MiB 或 10000 行。超过 Diff 上限时报错,不会静默隐藏文件上下文;下载保留完整文件。Git 读取失败、非 Git 项目与没有改动分别展示。
472
491