tabby-ai-tools 0.8.0 → 0.9.0

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.
Binary file
@@ -1,6 +1,6 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="1800" height="1900" viewBox="0 0 1800 1900" role="img" aria-labelledby="title desc">
2
- <title id="title">Tabby AI Tools v0.8.0 interface illustration — conditional interactive workflows, helper models, local login and API connections</title>
3
- <desc id="desc">SSH file/image attachments with native tab progress; custom instructions/private CLI session spaces and Pi configuration: native provider search, offline SDK 1.4.0 catalog, four custom protocols and Save/Discard/Copy drafts. Interface illustration, not a running screenshot. Windows default Codex discovery compares actual CLI versions across PATH and desktop/standalone installations; a stable directory limits selection to its own children. Conditional recordings preserve interaction intent; local rules run first, with an optional current-connection helper model and rebind-before-resume checkpoints. Settings use two-row connection cards and editor summaries, compact headings and full-page scrolling for connections, workflows/preferences and scheduled tasks, with no fixed-height editor. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Scheduled tasks, provider connections, startup opening enabled by default and twelve interface languages and the Claude Code local-login connection are shown below. Active goals continue automatically by default. Thinking and tool calls appear as collapsed conversation entries that can be expanded. Terminal reads return early after reliable shell completion. Terminal output is read on demand without automatic forwarding; a completed explicit recording and a saved workflow alias are shown. Archive status distinguishes successful checkpoints from successful persistence. Pi runtime settings show the built-in runtime and an optional Node override, host-only tools and opt-in automatic context compaction. The provider list includes Kimi and Alibaba Cloud Coding Plan connections. Custom OpenAI-compatible settings show an example Base URL, model, protocol and authentication. Version 0.8.0 example with optional Pi SDK runtime, built-in Node 22.19+, manual context compaction and structured retry waiting.</desc>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1800" height="2060" viewBox="0 0 1800 2060" role="img" aria-labelledby="title desc">
2
+ <title id="title">Tabby AI Tools v0.9.0 interface illustration — conditional interactive workflows, helper models, local login and API connections</title>
3
+ <desc id="desc">Shared Codex/Claude CLI discovery prevents startup cancellation races; clipboard attachments with clickable thumbnails and larger image previews and native tab progress; custom instructions/private CLI session spaces and Pi configuration: native provider search, offline SDK 1.4.0 catalog, four custom protocols and Save/Discard/Copy drafts. Interface illustration, not a running screenshot. Windows default Codex discovery compares actual CLI versions across PATH and desktop/standalone installations; a stable directory limits selection to its own children. Conditional recordings preserve interaction intent; local rules run first, with an optional current-connection helper model and rebind-before-resume checkpoints. Settings use two-row connection cards and editor summaries, compact headings and full-page scrolling for connections, workflows/preferences and scheduled tasks, with no fixed-height editor. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Scheduled tasks, provider connections, startup opening enabled by default and twelve interface languages and the Claude Code local-login connection are shown below. Active goals continue automatically by default. Thinking and tool calls appear as collapsed conversation entries that can be expanded. Terminal reads return early after reliable shell completion. Terminal output is read on demand without automatic forwarding; a completed explicit recording and a saved workflow alias are shown. Archive status distinguishes successful checkpoints from successful persistence. Pi runtime settings show the built-in runtime and an optional Node override, host-only tools and opt-in automatic context compaction. The provider list includes Kimi and Alibaba Cloud Coding Plan connections. Custom OpenAI-compatible settings show an example Base URL, model, protocol and authentication. Version 0.9.0 example with optional Pi SDK runtime, built-in Node 22.19+, manual context compaction and structured retry waiting.</desc>
4
4
  <defs>
5
5
  <linearGradient id="background" x2="1" y2="1"><stop stop-color="#0c1622"/><stop offset="1" stop-color="#151729"/></linearGradient>
6
6
  <linearGradient id="outline"><stop stop-color="#375d5d"/><stop offset="1" stop-color="#3b3d5c"/></linearGradient>
@@ -10,12 +10,12 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
10
10
  .mono{font-family:"DejaVu Sans Mono",monospace}
11
11
  </style>
12
12
 
13
- <rect x="0" y="0" width="1800" height="1900" rx="24" fill="url(#background)"/>
13
+ <rect x="0" y="0" width="1800" height="2060" rx="24" fill="url(#background)"/>
14
14
  <rect x="48" y="38" width="42" height="38" rx="10" fill="#173a33" stroke="#306355"/>
15
15
  <text x="56" y="65" font-size="23" font-weight="700" style="fill:#8ae6c2" class="mono">&gt;_</text>
16
16
  <text x="106" y="66" font-size="21" font-weight="700" style="fill:#a7b8cb">TABBY AI TOOLS</text>
17
17
  <rect x="1534" y="44" width="218" height="28" rx="6" fill="#22313f"/>
18
- <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.8.0 / SSH files</text>
18
+ <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.9.0 / Task logs</text>
19
19
  <text x="48" y="134" font-size="54" font-weight="700" style="fill:#f1f6ff">Your terminals. Working together.</text>
20
20
  <text x="50" y="176" font-size="23" font-weight="400" style="fill:#a7b8cb">Codex + Claude Code + APIs + optional Pi SDK / Terminal tools / Scheduled AI tasks</text>
21
21
  <rect x="48" y="210" width="1704" height="632" rx="14" fill="#0d1520" stroke="url(#outline)"/>
@@ -132,10 +132,10 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
132
132
  <path d="M72 1061H1071" stroke="#2b3a4d"/>
133
133
  <rect x="72" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
134
134
  <text x="84" y="1086" font-size="14" font-weight="600">Codex · Default</text>
135
- <text x="84" y="1102" font-size="12" style="fill:#a7b8cb">Local login / newest CLI</text>
135
+ <text x="84" y="1102" font-size="12" style="fill:#a7b8cb">Local login / shared discovery</text>
136
136
  <rect x="322" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
137
137
  <text x="334" y="1086" font-size="14" font-weight="600">Claude Code</text>
138
- <text x="334" y="1102" font-size="12" style="fill:#a7b8cb">Local login / CLI</text>
138
+ <text x="334" y="1102" font-size="12" style="fill:#a7b8cb">Local login / shared discovery</text>
139
139
  <rect x="572" y="1068" width="240" height="42" rx="5" fill="#203e36" stroke="#43866f"/>
140
140
  <text x="584" y="1086" font-size="14" font-weight="600">Example Pi connection</text>
141
141
  <text x="584" y="1102" font-size="12" style="fill:#a7b8cb">Google · gemini-2.5-flash</text>
@@ -185,16 +185,21 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
185
185
  <text x="1124" y="1470" font-size="16">Login command / Check login / Save space</text>
186
186
  <text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">Same workspace · Original histories retained</text>
187
187
  <rect x="48" y="1562" width="1704" height="248" rx="12" fill="#172130" stroke="#35475c"/>
188
- <text x="72" y="1596" font-size="22" font-weight="650">Files and clipboard images / example transfer</text>
188
+ <text x="72" y="1596" font-size="22" font-weight="650">Clipboard attachments / click-to-preview example</text>
189
189
  <rect x="72" y="1620" width="72" height="72" rx="8" fill="#243247" stroke="#4c657f"/>
190
190
  <path d="M85 1677L103 1655L117 1668L131 1647" fill="none" stroke="#8ae6c2" stroke-width="4"/>
191
- <text x="164" y="1645" font-size="19">screenshot.png · Upload → staging-app · SFTP</text>
192
- <text x="164" y="1676" font-size="16" style="fill:#a7b8cb">Private target directory · plugin streams all chunks · no model relay</text>
191
+ <text x="164" y="1645" font-size="19">screenshot.png · 128 KiB ×</text>
192
+ <text x="164" y="1676" font-size="16" style="fill:#a7b8cb">Ctrl+V / Cmd+V · Click thumbnail to enlarge · Esc to close</text>
193
193
  <rect x="72" y="1714" width="1010" height="10" rx="5" fill="#263a4e"/>
194
194
  <rect x="72" y="1714" width="686" height="10" rx="5" fill="#8ae6c2"/>
195
195
  <text x="1110" y="1724" font-size="18" style="fill:#8ae6c2">68% · Native target-tab progress</text>
196
- <text x="72" y="1760" font-size="16" style="fill:#a7b8cb">SFTP → independent exec → base64 fallback · SHA-256 verification · Cancel / Copy remote path</text>
196
+ <text x="72" y="1760" font-size="16" style="fill:#a7b8cb">SFTP → independent exec → base64 fallback · SHA-256 verification · Ask assistant for status / cancel / path</text>
197
197
  <text x="72" y="1790" font-size="15" style="fill:#a7b8cb">Upload is separate from attaching an image to Codex. Sidebar model visual input is not included.</text>
198
- <text x="49" y="1846" font-size="16" font-weight="400" style="fill:#8ca0b8">INTERFACE ILLUSTRATION · Example connections and task output; not a running screenshot.</text>
199
- <text x="49" y="1871" font-size="14" font-weight="400" style="fill:#8ca0b8">Appearance varies with your Tabby theme, window size and configured connections.</text>
198
+ <text x="49" y="2000" font-size="16" font-weight="400" style="fill:#8ca0b8">INTERFACE ILLUSTRATION · Example connections and task output; not a running screenshot.</text>
199
+ <text x="49" y="2031" font-size="14" font-weight="400" style="fill:#8ca0b8">Appearance varies with your Tabby theme, window size and configured connections.</text>
200
+ <rect x="48" y="1830" width="1704" height="145" rx="12" fill="#172130" stroke="#35475c"/>
201
+ <text x="72" y="1866" font-size="22" font-weight="650">Incremental output and task logs — example</text>
202
+ <text x="72" y="1901" font-size="17" fill="#a7b8cb">Cursor pages · Wait for output / completion · Fresh screen before interaction</text>
203
+ <text x="72" y="1934" font-size="17" fill="#8ae6c2">Settings: Save task terminal logs · Local retention · Paging and literal search</text>
204
+ <text x="72" y="1960" font-size="15" fill="#a7b8cb">Session-scoped logs · Partial / interrupted states · Saving does not verify command success</text>
200
205
  </svg>
@@ -1,10 +1,8 @@
1
1
  # Files, clipboard images and SSH transfers
2
2
 
3
- Open **Attachments** below the AI Tools composer. Paste a screenshot, drag files into the composer, or use **Add files or paste a screenshot**. Choose the exact connected native SSH terminal and an existing absolute upload parent directory (default `/tmp` on POSIX servers), then click **Upload**. The plugin creates a unique private subdirectory and never overwrites an existing project file. To retrieve a regular remote file, enter its absolute path and choose **Download to attachment cache**.
3
+ Paste a screenshot or copied file directly into the AI Tools composer with **Ctrl+V** (**Cmd+V** on macOS), or drag files into it. Attachments appear inline above the input with their name, size and a remove button; pasted images show thumbnails. Click a thumbnail (or focus it and press Enter/Space) to open a larger image preview, sized to the window. Press Esc, use the close button or click the backdrop to close it and return focus to the thumbnail. Changing conversations or removing the attachment closes its preview. Plain text pastes normally.
4
4
 
5
- Use **Save locally** on a cached attachment to choose a local destination through the system save dialog.
6
-
7
- The target tab shows Tabby's native progress bar. Progress comes from transferred file bytes; integrity verification finishes before the operation reports success. The attachment panel retains status, byte count, remote path, cancellation and **Copy remote path**. Collapsing the sidebar does not stop a transfer. If another native task takes over the tab's shared progress indicator, this plugin yields that indicator and retains progress in the attachment panel.
5
+ For SSH uploads and downloads, ask the assistant to use the attachment tools with the exact connected native SSH terminal and an existing absolute upload parent directory (default `/tmp` on POSIX servers). The plugin creates a unique private subdirectory and never overwrites an existing project file. Downloads require the remote file's absolute path and are stored in the attachment cache. Query transfer status or request cancellation through the assistant; the target tab also shows Tabby's native progress bar. Integrity verification finishes before an operation reports success. Closing the sidebar does not stop a transfer.
8
6
 
9
7
  Files stay in a private cache next to the Tabby configuration directory, under `tabby-agent-attachments`. Attachments are associated with the AI conversation; metadata survives restarts and **Remove attachment** deletes the local cached file. Completed remote uploads remain at their returned paths until explicitly removed on the remote machine. The latest 200 transfer receipts and request keys are retained. After restarting, unfinished operations are marked unknown; operations owned by another window are not resumed or cancelled by this window. Inspect the saved target/window before starting a new request. Restarting never resumes or repeats an upload automatically.
10
8
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  [← 返回 README](../README.md) · [使用指南](guide.md)
4
4
 
5
+ 粘贴、图片预览与附件传输回归直接运行 `npm run test:attachments`,无需切换 Node。`npm test` 自动包含这些用例;真正启动 Pi 的测试会检查当前 Node,低于 22.19 时显示明确的跳过原因。API 压缩测试使用独立的 API 夹具,不启动 Pi,也不因 Pi 的版本要求跳过。完整 Pi 集成验证仍由 Node 22.19+ 的开发环境/CI 执行;脚本不下载或切换运行时。
6
+
5
7
  后续供应商设置页改版尚未实现;规划和研究资料仅保留在本地,不随插件分发。功能与发布状态以实际代码和发布说明为准。
6
8
 
7
9
  v0.4.1 已优先加入 `provider: custom`:可选 `apiFormat: chat-completions | responses`,缺省为 Chat Completions。`apiPath` / `usesResponsesApi` 统一推理路径与工具结果格式;模型发现仍用 `/models`。`keySource: none` 仅限自定义连接,密钥服务返回空值且请求省略认证头。自定义协议加入历史指纹,既有供应商指纹不变;切换协议通过已有通用上下文导入路径处理。设置中变更协议、端点或密钥会取消并清除旧连接测试和模型列表,旧异步结果不能覆盖新状态。自定义接口不推断厂商 Thinking 参数,不硬编码模型能力。
@@ -178,6 +180,16 @@ Tests use offline process/MCP fixtures and temporary homes. The system Codex CLI
178
180
 
179
181
  AttachmentStore owns immutable private snapshots; AttachmentTransferService owns bounded operations, idempotency and UI events. Model tools return receipts rather than base64. attachment-transport.ts streams SFTP and independent exec, with SHA-256 verification before publication; attachment-pty.ts provides the guarded POSIX fallback. Native tab progress uses the actual percentage rendering of TabHeader (0–100), despite the host type comment claiming 0–1. Other progress producers take precedence. Do not infer an Agent attached an image from an upload receipt.
180
182
 
183
+ The composer accepts clipboard files and drag-and-drop directly, displays inline thumbnails and removal, and has no attachment button or transfer popup. Cached raster previews enforce conversation ownership and are restored asynchronously; SSH transfers remain available through model tools.
184
+
181
185
  Run test/attachments.test.js for filesystem/SFTP fixtures, actual POSIX subprocess and Linux PTY round trips, changing files and owner/idempotency/progress checks. Tests never call a real model. Native desktop, authenticated SSH, Windows/macOS desktop and simulated cross-platform cases must be reported separately.
182
186
 
183
187
  The scoped russh event-buffer retention adapter is adapted from [tabby-ai-workspace-manager](https://github.com/SupremeJulyan/tabby-ai-workspace-manager/blob/b77c4dfe1f2de9e89419a23ce89fc938d1ebf309/src/adapters/exec-event-buffers.ts) (MIT, Copyright 2026 Julyan). Its notice is preserved in source and the bundled license notices. Only attachment-owned channel IDs are retained; other channel cleanup remains unchanged.
188
+
189
+ ### CLI 启动并发
190
+
191
+ `CodexClient` 将缺省空间与 `system:codex` 视为同一连接身份,启动时冻结传给探测的空间,避免后台预连接被侧栏补充空间元数据时取消。后台运行时只报告最新连接尝试的错误。`ClaudeCodeAgent` 对相同 CLI、工作目录与空间的并发连接共享正在进行的就绪检查;替换、关闭和失败后允许重新检查。`test/client.test.js`、`test/runtime.test.js` 与 `test/claude-code.test.js` 覆盖这些竞态及取消/重试,不调用真实模型。
192
+
193
+ ## Terminal streams and task logs
194
+
195
+ `terminal-stream.ts` owns stateful control filtering and scoped opaque tokens. `terminal-output.service.ts` rotates stream identity on session changes and publishes only privacy-filtered chunks. `terminal-log-store.ts` writes bounded private text segments with atomic manifests; `tab-tools.ts` owns capture lifecycle and read/search routing. Panel and scheduled bridges supply session-space/run-scoped identities. Continuation cursors pin the committed log boundary; reads do not execute or verify commands. See [terminal logs](terminal-logs.md) for limits and retention timing.
package/docs/guide.md CHANGED
@@ -186,7 +186,9 @@ API 工具循环检测始终启用,无需等到轮数上限。近期同一段
186
186
 
187
187
  AI Tools 默认在启动 Tabby 时自动展开侧栏,使用默认连接,无需先进入设置启用。未保存过此选项的已有配置也会默认打开;已明确关闭的配置保持关闭。如需关闭,在 **Settings → AI Tools** 取消勾选 **启动 Tabby 时自动打开 AI Tools**,下次启动生效。工作目录沿用工具栏打开侧栏时的规则:优先使用固定目录,否则尝试读取当前本地终端目录,无法读取时使用用户主目录。手动收起后,本次运行不会再次自动展开。
188
188
 
189
- 插件加载并读取配置后会立即启动常驻的 `codex app-server --listen stdio://`,每个 Tabby 窗口共用一个进程。打开、收起或切换侧栏均复用该服务,通过 JSONL 通知逐段显示流式应答。进程异常退出后自动重连,重试间隔从 1 秒逐步增加到最多 30 秒;服务启动失败会提示检查 CLI 路径。修改并保存 CLI 路径后自动更换进程,其他设置保存不会重启服务。窗口退出或插件销毁时关闭进程并清理重连定时器。
189
+ 使用 Codex 系统会话空间且未选择其他默认连接时,插件加载并读取配置后会启动常驻的 `codex app-server --listen stdio://`,每个 Tabby 窗口共用一个进程。打开、收起或切换侧栏均复用该服务,通过 JSONL 通知逐段显示流式应答。进程异常退出后自动重连,重试间隔从 1 秒逐步增加到最多 30 秒;服务启动失败会提示检查 CLI 路径。修改并保存 CLI 路径后自动更换进程,其他设置保存不会重启服务。窗口退出或插件销毁时关闭进程并清理重连定时器。
190
+
191
+ 同一 Codex 连接的启动预连接与侧栏连接共享 CLI 探测;未指定空间与显式系统空间视为同一目标,不会互相取消。私有空间由各自连接持有服务。Claude Code 对相同可执行文件、工作目录和会话空间的并发连接也共享探测;切换目标或关闭连接仍会取消旧探测,真实路径或登录错误仍会显示。
190
192
 
191
193
  ## 工作目录与线程
192
194
 
@@ -355,8 +357,12 @@ Pi 的使用、存储、预算和验证限制见 [Pi runtime](pi.md)。开发与
355
357
 
356
358
  ## 文件、剪贴板图片与 SSH 传输(v0.8.0)
357
359
 
358
- 点击输入框下方“附件”,粘贴截图、拖入或选择文件,明确选择已连接的 SSH 终端,填写现有的绝对上传父目录后上传。也可输入远端文件绝对路径,下载到本地附件缓存。目标 tab 显示原生进度;侧栏可查看详情、取消及复制校验后的远端路径。收起侧栏不停止传输。
360
+ 在输入框中直接按 Ctrl+V(macOS 为 Cmd+V)粘贴截图或文件,也可拖入文件。附件直接显示在输入框上方,包含文件名、大小和移除按钮;粘贴的图片显示缩略图,点击可放大预览;按 Esc、点击关闭按钮或遮罩关闭,并返回原缩略图。普通文本仍正常粘贴。需要 SSH 上传/下载时,让助手使用附件工具,并明确指定已连接的 SSH 终端与绝对路径;目标 tab 显示原生进度,可向助手查询传输状态、取消或取得校验后的远端路径。收起侧栏不停止传输。
359
361
 
360
362
  传输复用 SSH,优先 SFTP,再使用独立 exec 的二进制/base64,最后才在已确认空闲的 Shell 中使用 PTY base64。插件连续处理分块,不让 AI 逐段读写 base64。只读模式禁止传输。目标是外层 SSH 的机器与账户;容器、嵌套 SSH、切换用户及 Codex 沙箱需另行确认可见性。上传图片不代表 Codex 已附图或读取;本版仅提供复制远端路径,不自动按回车或向侧栏模型发送图片。
361
363
 
362
364
  图片最多 20 MiB/4000 万像素,普通文件最多 100 MiB;每会话 8 个附件/200 MiB。下载、缓存清理、取消、未知结果及 POSIX 回退限制见 [附件传输说明](attachments.md)。
365
+
366
+ ### 终端增量输出与任务日志
367
+
368
+ `read_tab(mode=delta)` 支持游标分页和 `waitFor=output/completion/either` 等待;交互程序仍需读取当前画面。设置中的“保存任务终端日志”控制当前任务访问终端的本机保存,日志支持分页与字面搜索。缺失、截断、写盘失败和命令结果分别报告,详见 [Terminal streaming and task logs](terminal-logs.md)。
@@ -0,0 +1,19 @@
1
+ # 0.8.1 — Superseded release candidate
2
+
3
+ The immutable v0.8.1 tag was not published to npm because its Linux tag CI exposed an asynchronous SIGKILL/reaping assumption in an existing lifecycle test. See [0.8.2](0.8.2.md) for the published fixes.
4
+
5
+ ## Candidate changes
6
+
7
+ Codex background startup and the sidebar now reuse CLI discovery for the same system session space. Supplying explicit system-space metadata no longer cancels the startup connection or produces the misleading “Codex app-server was closed during CLI discovery” / background-service failure alert. Superseded startup attempts cannot report stale failures after a replacement connects.
8
+
9
+ Concurrent Claude Code connections to the same executable, working directory and session space share one readiness check. Switching targets or closing a connection still cancels discovery, and genuine CLI/authentication errors remain visible and retryable.
10
+
11
+ The composer accepts clipboard images/files and drag-and-drop directly, with inline names, sizes, removable attachments and image thumbnails. Cached raster previews survive conversation reopening and enforce ownership. SSH upload/download, status, cancellation and verified paths remain available through assistant tools; the old attachment button and transfer popup are removed. Images are not automatically sent to sidebar models or attached to a terminal Agent.
12
+
13
+ Both READMEs, guide, development/attachment notes, bundled skill/knowledge and synchronized SVG/PNG illustration reflect the final interaction. The existing robot GIF and reduced-motion static fallback are retained.
14
+
15
+ Validation: Linux / Node 22.23.3 runs 860 tests (854 passed, 6 platform skips), with skill bundle/check, both TypeScript boundaries, production build and whitespace checks. The actual release tarball is checked for complete public artifacts, excluded local files and installation with lifecycle scripts enabled and no node on PATH. Three-platform branch/tag CI and the exact artifact SHA-256 are recorded in the GitHub Release.
16
+
17
+ The Windows CI cancellation fixture now waits until SFTP opening has actually begun before cancelling, instead of assuming disk persistence finishes within 10 ms. Production cancellation behavior is unchanged.
18
+
19
+ These are offline/local fixture checks. Actual Tabby desktop startup, OS clipboard behavior, Windows/macOS desktop operation and real account/model inference have not been newly verified for this patch. The default development shell uses Node 20 and fails two existing Pi fixture setups requiring Node >=22.19; the release checks use the supported Node 22 toolchain.
@@ -0,0 +1,17 @@
1
+ # 0.8.2 — Reliable CLI startup and inline attachments
2
+
3
+ Codex background startup and the sidebar now reuse CLI discovery for the same system session space. Supplying explicit system-space metadata no longer cancels the startup connection or produces the misleading “Codex app-server was closed during CLI discovery” / background-service failure alert. Superseded startup attempts cannot report stale failures after a replacement connects.
4
+
5
+ Concurrent Claude Code connections to the same executable, working directory and session space share one readiness check. Switching targets or closing a connection still cancels discovery, and genuine CLI/authentication errors remain visible and retryable.
6
+
7
+ The composer accepts clipboard images/files and drag-and-drop directly, with inline names, sizes, removable attachments and image thumbnails. Cached raster previews survive conversation reopening and enforce ownership. SSH upload/download, status, cancellation and verified paths remain available through assistant tools; the old attachment button and transfer popup are removed. Images are not automatically sent to sidebar models or attached to a terminal Agent.
8
+
9
+ Both READMEs, guide, development/attachment notes, bundled skill/knowledge and synchronized SVG/PNG illustration reflect the final interaction. The existing robot GIF and reduced-motion static fallback are retained.
10
+
11
+ Validation: Linux / Node 22.23.3 runs 860 tests (854 passed, 6 platform skips), with skill bundle/check, both TypeScript boundaries, production build and whitespace checks. The actual release tarball is checked for complete public artifacts, excluded local files and installation with lifecycle scripts enabled and no node on PATH. Three-platform branch/tag CI and the exact artifact SHA-256 are recorded in the GitHub Release.
12
+
13
+ The Windows CI cancellation fixture now waits until SFTP opening has actually begun before cancelling, instead of assuming disk persistence finishes within 10 ms. Production cancellation behavior is unchanged.
14
+
15
+ The process-lifecycle fixture also waits with a bounded deadline for killed descendants to disappear or enter a Linux zombie state; it no longer assumes SIGKILL delivery and kernel reaping finish synchronously. It still fails if a live descendant remains. The v0.8.1 tag is retained without npm publication.
16
+
17
+ These are offline/local fixture checks. Actual Tabby desktop startup, OS clipboard behavior, Windows/macOS desktop operation and real account/model inference have not been newly verified for this patch. The default development shell uses Node 20 and fails two existing Pi fixture setups requiring Node >=22.19; the release checks use the supported Node 22 toolchain.
@@ -0,0 +1,15 @@
1
+ # v0.9.0 — Image previews, terminal streams and task logs
2
+
3
+ Pasted image thumbnails now open a larger modal preview with keyboard access, window-aware sizing, Escape/close/backdrop dismissal and focus restoration. Removing the attachment or switching conversations closes its preview and releases cached URLs; delayed reads cannot restore a previous conversation's preview.
4
+
5
+ Terminal tools add cursor-based delta reads, bounded output/completion waits, and session-scoped local task logs with paginated reading and literal search. Settings can disable saving task terminal logs. Capture starts when a task reads or operates a terminal, stops with its owner/session, and excludes attachment transport payloads. Delta text preserves stream arrival order rather than reconstructing an interactive screen; take a fresh snapshot before interacting with a terminal application.
6
+
7
+ Expired sealed logs reclaim metadata capacity before new capture admission. Cleanup runs behind pending writes and preserves active captures and pinned readers. Delta reads retain the controlled-terminal 1,000 ms default; explicit `waitMs: 0` remains immediate. API compaction fixtures no longer unnecessarily start Pi; actual Pi runtime tests check their Node requirement and explain conditional skips. `npm run test:attachments` and `npm run test:terminal-logs` run focused regression checks without switching Node.
8
+
9
+ The bilingual README, guide, development notes, bundled model-facing skill/knowledge and synchronized overview SVG/PNG describe the final behavior. The robot GIF and reduced-motion static fallback are preserved. The overview is an illustration with example connections and tasks, not a desktop screenshot.
10
+
11
+ ## Validation and limits
12
+
13
+ Release validation includes skill bundle/check, TypeScript checks, the full automated suite, production webpack/Pi builds, whitespace checks, exact-tarball contents/integrity checks and scripts-enabled installation with no Node on PATH. Branch and tag CI cover Linux, macOS and Windows; authoritative CI links and the verified tarball SHA-256 are recorded on the GitHub Release.
14
+
15
+ Local fixtures exercise immutable scoped caches, real local POSIX exec/PTY transfers, log retention/queued writes and delta wait defaults. A Chromium preview fixture checks small/desktop layout, modal focus and dismissal. These fixtures do not establish actual Tabby desktop clipboard, authenticated SSH or Windows/macOS desktop behavior. No paid model smoke requests are made. Logs can contain sensitive command output, be incomplete, expire or become unavailable; logging never proves command success. There is no screen replay, arbitrary regex, cross-session log search or automatic image delivery to Codex/sidebar models. No runtime dependency was added and plugin users do not need to install Node.
@@ -0,0 +1,37 @@
1
+ # Terminal streaming and task logs
2
+
3
+ `read_tab` keeps its existing screen-reading behavior. Use `mode="delta"` to read new terminal stream text, then pass the returned `nextCursor` unchanged on the next call. Start without a cursor to establish a baseline. Use `maxChars` (2–20,000) for bounded pages; follow `hasMore` before waiting again.
4
+
5
+ ```json
6
+ {"tabId":"tab-2","mode":"delta","cursor":"<nextCursor>","waitFor":"either","waitMs":10000}
7
+ ```
8
+
9
+ `waitFor` accepts `output`, `completion`, or `either`. Waiting for output combines a short burst before returning, with a bounded maximum delay. A timeout does not prove completion. Reliable shell completion remains separate from workflow verification and input ownership. No output event automatically starts a model request.
10
+
11
+ Cursors belong to one terminal session and AI scope. Reconnecting or restarting invalidates them. `cursor_expired` means the in-memory range was evicted: take a new screen snapshot and use saved logs where available. Screen snapshots also return a cursor taken before reading the screen, so switching to delta can repeat a little text rather than omit output still being rendered.
12
+
13
+ Delta text preserves arrival order and removes terminal controls. It does not reconstruct the current screen. Read a normal snapshot before interacting with menus, pagers, editors or terminal agents. Non-terminal tabs retain their existing screen/control interface.
14
+
15
+ ## Saved task logs
16
+
17
+ **AI Tools → Save task terminal logs** controls local persistence. It defaults to enabled. Only terminals read or operated by the current task are captured; listing tabs or keeping a tab open does not start saving. Captures stop when the owning turn/task releases its resources or the terminal session changes. Disabling saving stops additional output from being saved. Already saved logs remain subject to retention.
18
+
19
+ Logs may contain sensitive terminal output, including command echoes. Attachment transport payloads are excluded using the same privacy boundary as terminal context. Plain text filtering does not identify all secrets.
20
+
21
+ The assistant can use:
22
+
23
+ - `list_logs()` to discover logs in its current session scope.
24
+ - `read_log(logId, maxChars?, cursor?)` to read bounded pages. `nextCursor` fixes the original read boundary while a log grows. Use `followCursor` as a new read cursor to inspect text appended after that boundary.
25
+ - `search_log(logId, query, cursor?)` for case-sensitive literal search. Continue with `nextCursor` when `partial=true`; each call scans a bounded slice and returns at most 50 matches. A hit cursor can be passed to `read_log`.
26
+
27
+ Log references do not execute commands, grant access to other sessions, or prove an action succeeded. Logs captured after output began are marked `captureStartedLate`; screen history before capture is not automatically reconstructed. Saved logs can be read after their terminal closes, while their session scope remains available. Switching connections or session spaces does not transfer access automatically.
28
+
29
+ Storage uses the host runtime and a private `tabby-terminal-logs` directory beside Tabby's configuration. Default limits are 32 MiB per log, 256 MiB of committed text overall, 2,000 log records, 2,048 segments per log, and a bounded asynchronous write queue. Overload or write failure produces `partial`; it does not freeze the terminal or rerun a command. Restarted open captures become `interrupted`, without resuming execution. Seven-day retention is checked when the store starts and when a new capture starts; expired logs cannot be read. No additional Node installation is required.
30
+
31
+ The in-memory tail is limited to 256 Ki characters per terminal and 8 Mi characters globally. Public cursors are opaque; internal character positions remain compatible with the terminal summary buffer. Unicode pairs are preserved at page boundaries.
32
+
33
+ Current limits: no terminal replay, arbitrary regex, cross-session log search, automatic log export, restoration of dropped pre-capture output, or scheduled-run log browsing from a separate interactive session. Retention cleanup runs lazily at startup and new captures. Actual desktop, SSH and platform-specific behavior must be verified separately from local fixtures.
34
+
35
+ ## Regression checks
36
+
37
+ Run `npm run test:terminal-logs` with the current Node runtime. The script covers capacity recovery after retention expires, protection of active captures and in-flight readers, queued-file cleanup and byte accounting. Delta reads reuse the controlled terminal's 1,000 ms default; explicit `waitMs: 0` and the uncontrolled-terminal default remain immediate. These cases also run in `npm test` and require no model requests or Node version switching.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-ai-tools",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "A persistent AI agent sidebar for Tabby with Codex, Claude Code, OpenAI-compatible providers, DeepSeek, GLM, Kimi, and Alibaba Cloud Coding Plan support",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,6 +36,8 @@
36
36
  "build": "webpack --mode production && npm run pi:build",
37
37
  "typecheck": "tsc --noEmit && node node_modules/typescript-pi/bin/tsc -p runtime/pi/tsconfig.json --noEmit",
38
38
  "test": "node scripts/run-tests.cjs",
39
+ "test:attachments": "node --test test/attachment-preview.test.js test/attachments.test.js",
40
+ "test:terminal-logs": "node --test test/terminal-stream.test.js test/tab-tools.test.js test/output-service.test.js",
39
41
  "smoke:codex": "node scripts/smoke-codex.cjs",
40
42
  "smoke:context": "node scripts/smoke-context.cjs",
41
43
  "prepack": "npm run build",
@@ -24,7 +24,7 @@ This is the single model-facing skill for the plugin. Its operation reference re
24
24
 
25
25
  ## Discovery and execution
26
26
 
27
- For files or clipboard screenshots, prefer `attachment_list` then `attachment_upload` / `attachment_download` on an explicit connected native SSH tab. The plugin streams and verifies the whole file without model chunk relay. Never move files by repeatedly reading or writing base64 through `read_tab` / `send_input`. Keep requestId stable for one operation; use `attachment_status` for its result. Unknown is not permission to repeat. Upload remotePath is an existing parent directory, downloads land in the private attachment cache. Read-only mode forbids transfers. Paths belong to the outer SSH host/account; confirm visibility in containers/nested SSH and the intended Agent. A verified receipt does not prove Codex saw an image. UI Attachments accepts pasted screenshots and files; it does not send image content to the sidebar model. Consult the attachment route in the operation reference.
27
+ For files or clipboard screenshots, prefer `attachment_list` then `attachment_upload` / `attachment_download` on an explicit connected native SSH tab. The plugin streams and verifies the whole file without model chunk relay. Never move files by repeatedly reading or writing base64 through `read_tab` / `send_input`. Keep requestId stable for one operation; use `attachment_status` for its result. Unknown is not permission to repeat. Upload remotePath is an existing parent directory, downloads land in the private attachment cache. Read-only mode forbids transfers. Paths belong to the outer SSH host/account; confirm visibility in containers/nested SSH and the intended Agent. A verified receipt does not prove Codex saw an image. The composer accepts screenshots and files via Ctrl+V / Cmd+V or drag-and-drop, showing inline attachments and image thumbnails without an attachment button or popup; it does not send image content to the sidebar model. Consult the attachment route in the operation reference.
28
28
 
29
29
  Custom user instructions can be configured globally or per connection in Settings → AI Tools → Instructions and sessions, as inline text or a local AGENTS.md reference. New conversations save a snapshot; use `/new` to apply later instruction edits. Codex/Claude Code can use Tabby private session storage with a space-specific official CLI login. Existing system histories are retained in compatibility mode until explicitly switched. Do not infer that a system CLI login authenticates a private space, copy credentials, or replay historical tool calls during context handoff. These are Settings routes, not permission-changing model tools.
30
30
 
@@ -75,3 +75,5 @@ New API connections recommend Pi SDK with native providers and the bundled SDK 1
75
75
  On Windows, leave the Codex CLI executable blank or set it to codex for automatic version selection. Discovery collects all PATH matches, desktop/standalone installs, user .local/bin and known/npm global prefix locations, comparing --version using semantic versions instead of file dates or hash names. Probes do not call a model; each has a 1.5-second/16-KiB limit, with four concurrent probes and cancellation cleanup. A valid version outranks failed/unknown probes; all unknown retains discovery order without guaranteeing newest. Each new connection rescans. An explicit stable OpenAI/Codex/bin directory compares only its child installations. Removed version-specific desktop paths recover within that same installation; existing explicit file paths and custom command names stay pinned. CLI freshness alone does not grant account model access.
76
76
 
77
77
  Attachment transfer actions are not reusable workflow steps. Perform the transfer before /remember or a saved alias, and verify its resulting path as an explicit workflow prerequisite.
78
+
79
+ Use `read_tab(mode=delta)` with its unchanged nextCursor for new stream text, or waitFor=output/completion/either for bounded waiting. Drain hasMore pages before waiting. Delta is not a screen: take a fresh snapshot before interactive input. On cursor_expired, inspect the screen and saved logs; never replay a command to recover output. `list_logs`, `read_log` and `search_log` expose only this session scope. Follow pagination and partial search cursors. Logs can be incomplete, sensitive, expired or unavailable; saving and command success are independent.
@@ -119,6 +119,10 @@ On Windows, leave the Codex CLI executable blank or set it to codex for automati
119
119
 
120
120
  Use attachment_list to find this conversation's local file IDs, attachment_upload for an explicit native SSH target and existing absolute parent directory, and attachment_download for a remote regular file. The plugin streams all chunks and verifies SHA-256; never copy base64 through model messages or repeated read_tab/send_input calls. The destination filename is private and unique. Downloads write only to the plugin cache, not model-selected local paths. Both directions are disabled in read-only mode. Use the same requestId for one operation; attachment_status observes it, attachment_cancel stops it. Running status may be queried after a bounded wait; missing acknowledgement or unknown requires remote inspection, not automatic resubmission.
121
121
 
122
- The target tab shows native progress; UI Attachments provides file previews, path/byte details and cancellation. Transports are SFTP, independent exec raw bytes, exec base64 and finally framed PTY base64 only in a verified idle Shell. Do not interrupt an existing Agent to force fallback. Paths and account belong to the outer SSH connection; confirm visibility for nested SSH, containers or sandboxed Agents. Copying a verified image path is not proof of visual input. This release does not automatically attach images to an existing Codex conversation or send them to the sidebar model. Remote uploads remain until explicitly removed; cached attachments can be removed in the panel. Restart does not replay transfers. See installed docs/attachments.md for limits, permissions and verification boundaries.
122
+ The target tab shows native progress; the composer shows inline pasted attachments with image thumbnails and removal. Click a thumbnail for a larger preview; Esc, the close button or the backdrop dismisses it. There is no attachment button or transfer popup. Use attachment_status for path/byte details and attachment_cancel for cancellation. Transports are SFTP, independent exec raw bytes, exec base64 and finally framed PTY base64 only in a verified idle Shell. Do not interrupt an existing Agent to force fallback. Paths and account belong to the outer SSH connection; confirm visibility for nested SSH, containers or sandboxed Agents. Copying a verified image path is not proof of visual input. This release does not automatically attach images to an existing Codex conversation or send them to the sidebar model. Remote uploads remain until explicitly removed; cached attachments can be removed in the panel. Restart does not replay transfers. See installed docs/attachments.md for limits, permissions and verification boundaries.
123
123
 
124
124
  Attachment transfer actions are not reusable workflow steps. Perform the transfer before /remember or a saved alias, and verify its resulting path as an explicit workflow prerequisite.
125
+
126
+ ### Incremental reads and saved logs
127
+
128
+ Start with read_tab(mode=delta,tabId) to obtain nextCursor. Pass it unchanged with waitFor=output/completion/either and waitMs up to 30000. hasMore means immediately read the next page. snapshot is required for interaction controls and fresh workflow evidence. Cursors expire on reconnect, restart or buffer eviction. list_logs discovers task-scoped local logs; read_log pages text, search_log performs literal search and returns partial with a continuation when scanning is incomplete. Hit cursors can be read with read_log; followCursor starts a new bounded read of later appended text. Log tools never execute commands or establish successful workflow completion.