tabby-ai-tools 0.8.2 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/README.zh-CN.md +9 -5
- package/VALIDATION.md +49 -0
- package/dist/index.js +1 -1
- package/docs/assets/overview.png +0 -0
- package/docs/assets/overview.svg +16 -11
- package/docs/attachments.md +1 -1
- package/docs/claude-code.md +3 -3
- package/docs/development.md +12 -0
- package/docs/guide.md +9 -3
- package/docs/instructions-sessions.md +15 -5
- package/docs/releases/0.9.0.md +15 -0
- package/docs/releases/0.9.1.md +15 -0
- package/docs/releases/instructions-sessions.md +1 -1
- package/docs/terminal-logs.md +37 -0
- package/package.json +3 -1
- package/skills/tabby/SKILL.md +3 -1
- package/skills/tabby/references/operations.md +6 -2
package/README.md
CHANGED
|
@@ -22,11 +22,15 @@
|
|
|
22
22
|
|
|
23
23
|
Tabby AI Tools is an AI assistant inside [Tabby](https://github.com/Eugeny/tabby). It reads terminal output, sends commands, and uses the results to decide what to do next. Describe your goal in the sidebar, follow the work in your terminals, and reclaim terminal input whenever needed.
|
|
24
24
|
|
|
25
|
-

|
|
26
|
+
|
|
27
|
+
**Fixed in v0.9.1:** ordinary commands, stdin, Enter and process attachment work when workflows are idle or disabled. Active workflow budgets and cancellation checks remain enforced. Private Codex/Claude spaces inherit available local login caches; an expired login offers explicit cache recovery and reconnect without replaying tasks. Missing Codex rollouts recover only when no saved context is available. Pi repeated-compaction tests allow more time on Windows. [Release notes](docs/releases/0.9.1.md).
|
|
28
|
+
|
|
29
|
+
**New in v0.9.0: image previews, incremental output and task logs.** Click a pasted image thumbnail to open a larger preview. Terminal reads support cursor paging and output waiting; task-scoped local logs provide bounded paging and literal search. Expired logs reclaim capacity, and delta reads preserve the controlled-terminal default wait. See [terminal logs](docs/terminal-logs.md) and [release notes](docs/releases/0.9.0.md).
|
|
26
30
|
|
|
27
31
|
**v0.8.2 startup fix:** Codex background startup and the sidebar now share CLI discovery, preventing a false “app-server was closed during CLI discovery” alert. Concurrent Claude Code connections also share readiness checks. Clipboard files and images appear inline with thumbnails and removal. [Release notes](docs/releases/0.8.2.md).
|
|
28
32
|
|
|
29
|
-
**New in v0.8.0: SSH attachments.** Paste screenshots or files directly with Ctrl+V (Cmd+V on macOS); inline attachments show image thumbnails
|
|
33
|
+
**New in v0.8.0: SSH attachments.** Paste screenshots or files directly with Ctrl+V (Cmd+V on macOS); inline attachments show image thumbnails. Click a thumbnail to open a larger preview; close it with Esc, the close button or the backdrop. Ask the assistant to upload/download through your existing SSH connection and follow native tab progress. The plugin handles every chunk and base64 fallback without model relay. Use the verified remote path for your terminal Agent; automatic Codex image attachment and sidebar visual input are not included. [Files, limits and compatibility](docs/attachments.md).
|
|
30
34
|
|
|
31
35
|
<sub>Interface illustration with example tasks and connections; appearance varies with your Tabby theme and window size.</sub>
|
|
32
36
|
|
|
@@ -54,8 +58,8 @@ Terminal output is read on demand with `read_tab`; it is no longer automatically
|
|
|
54
58
|
|
|
55
59
|
| Connection | How to use it |
|
|
56
60
|
| --- | --- |
|
|
57
|
-
| **ChatGPT subscription → local Codex** | Install Codex CLI and select **Codex (local login)**.
|
|
58
|
-
| **Claude subscription → local Claude Code** | Install the official CLI and select **Claude Code (local login)**.
|
|
61
|
+
| **ChatGPT subscription → local Codex** | Install Codex CLI and select **Codex (local login)**. Check selected-space login in Settings → AI Tools → Instructions and sessions; a missing private cache inherits a local ChatGPT file cache when available. Generate a login command if needed. |
|
|
62
|
+
| **Claude subscription → local Claude Code** | Install the official CLI and select **Claude Code (local login)**. Check the selected-space login; a missing private cache inherits a local OAuth file cache when available. Generate a login command if needed. |
|
|
59
63
|
| **OpenAI API** | Add an OpenAI connection with an API key, Base URL, and model ID. |
|
|
60
64
|
| **DeepSeek** | Add a DeepSeek API connection and choose the model and Thinking settings. |
|
|
61
65
|
| **GLM / Zhipu** | Add a GLM API connection using the endpoint and model available to your account. |
|
|
@@ -90,7 +94,7 @@ When elevated access is needed, manually run `sudo ls` or `sudo -v` in the same
|
|
|
90
94
|
## Start with your local ChatGPT subscription login
|
|
91
95
|
|
|
92
96
|
1. Install [Codex CLI](https://learn.chatgpt.com/docs/cli) on the computer running Tabby.
|
|
93
|
-
2. Open **Settings → AI Tools → Codex → Instructions and sessions**.
|
|
97
|
+
2. Open **Settings → AI Tools → Codex → Instructions and sessions**. Check the selected-space login first; a missing private cache imports an available local ChatGPT file cache. If needed, generate the selected-space login command, run it in a local terminal, complete the official ChatGPT login and check again. Unused connections default to a private space. For an existing **System space (legacy compatibility)** connection, the ordinary commands are:
|
|
94
98
|
|
|
95
99
|
```bash
|
|
96
100
|
codex login
|
package/README.zh-CN.md
CHANGED
|
@@ -22,11 +22,15 @@
|
|
|
22
22
|
|
|
23
23
|
Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI 助手插件。它可以读取终端输出、发送命令,并根据执行结果继续分析和操作。你在侧栏描述目标,在终端查看过程,也可以随时取回输入控制。
|
|
24
24
|
|
|
25
|
-

|
|
26
|
+
|
|
27
|
+
**v0.9.1 修复:** 流程空闲或关闭时,普通命令、stdin、Enter 与进程接管可正常执行;活动流程的预算和取消校验继续生效。Codex/Claude 独立空间可继承已有本机登录文件缓存,登录失效时可明确选择重新复制并重连,不重放任务;缺失 Codex 会话仅在没有可恢复上下文时替换。Pi 连续压缩回归为 Windows 预留更充足的测试时间。[发布说明](docs/releases/0.9.1.md)。
|
|
28
|
+
|
|
29
|
+
**v0.9.0 新增图片预览、终端增量输出与任务日志。** 点击粘贴图片的缩略图可放大预览;终端支持游标分页和新输出唤醒,任务日志可在本机保存、分页和字面搜索。过期日志可自动回收容量,增量读取沿用受控终端的默认等待。见[终端日志说明](docs/terminal-logs.md)和[发布说明](docs/releases/0.9.0.md)。
|
|
26
30
|
|
|
27
31
|
**v0.8.2 启动修复:** Codex 后台预连接与侧栏共享 CLI 探测,避免启动时误报“app-server was closed during CLI discovery”;Claude Code 并发连接也复用就绪检查。粘贴的文件和图片内联显示,可预览缩略图和移除。[发布说明](docs/releases/0.8.2.md)。
|
|
28
32
|
|
|
29
|
-
**v0.8.0 新增 SSH 附件传输:** 直接 Ctrl+V(macOS 为 Cmd+V
|
|
33
|
+
**v0.8.0 新增 SSH 附件传输:** 直接 Ctrl+V(macOS 为 Cmd+V)粘贴截图或文件,附件内联显示,图片带缩略图;点击缩略图可放大预览,按 Esc、点击关闭按钮或遮罩即可关闭。让助手复用已有 SSH 上传/下载,并在目标 tab 显示原生进度。插件连续处理所有分块及 base64 回退,无需模型逐段接力。取得校验后的远端路径再交给终端 Agent;本版不自动附图到 Codex,也不向侧栏模型发送图片。[操作、限制与兼容范围](docs/attachments.md)。
|
|
30
34
|
|
|
31
35
|
<sub>根据当前功能绘制的英文界面示意,任务和连接均为示例;实际外观随 Tabby 主题与窗口尺寸变化。</sub>
|
|
32
36
|
|
|
@@ -54,8 +58,8 @@ Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI
|
|
|
54
58
|
|
|
55
59
|
| 连接方式 | 如何使用 |
|
|
56
60
|
| --- | --- |
|
|
57
|
-
| **ChatGPT 订阅 → 本机 Codex** | 安装 Codex CLI 并选择 **Codex
|
|
58
|
-
| **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI 并选择 **Claude Code
|
|
61
|
+
| **ChatGPT 订阅 → 本机 Codex** | 安装 Codex CLI 并选择 **Codex(本机登录)**,先在设置的“指令与会话”检查选定空间登录;私有缓存缺失时会继承可用的本机 ChatGPT 文件缓存,必要时生成登录命令。 |
|
|
62
|
+
| **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI 并选择 **Claude Code(本机登录)**,先检查目标空间登录;私有缓存缺失时会继承可用的本机 OAuth 文件缓存,必要时生成登录命令。 |
|
|
59
63
|
| **OpenAI API** | 添加 OpenAI 连接,配置 API Key、Base URL 和模型 ID。 |
|
|
60
64
|
| **DeepSeek** | 添加 DeepSeek API 连接,选择模型与 Thinking 设置。 |
|
|
61
65
|
| **GLM/智谱** | 添加 GLM API 连接,使用账号对应套餐的端点和模型。 |
|
|
@@ -90,7 +94,7 @@ v0.4.1 已支持自定义连接。Base URL 示例为 `https://gateway.example/v1
|
|
|
90
94
|
## ChatGPT 订阅用户如何开始
|
|
91
95
|
|
|
92
96
|
1. 在运行 Tabby 的本机安装 [Codex CLI](https://learn.chatgpt.com/docs/cli)。
|
|
93
|
-
2. 打开 **Settings → AI Tools → Codex →
|
|
97
|
+
2. 打开 **Settings → AI Tools → Codex → 指令与会话**,先检查选定空间认证;私有缓存缺失时会继承可用的本机 ChatGPT 文件缓存。必要时生成登录命令,在本地终端完成官方登录后再次检查。未使用过的连接默认采用独立空间。已有的**系统空间(旧版兼容)**连接可使用以下普通命令:
|
|
94
98
|
|
|
95
99
|
```bash
|
|
96
100
|
codex login
|
package/VALIDATION.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# 0.9.1 native CLI login inheritance and recovery — 2026-11-06
|
|
2
|
+
|
|
3
|
+
Codex and Claude Code private spaces initialize missing OAuth/ChatGPT file caches from the original CLI directory. Explicit authentication recovery atomically replaces a stale private cache, checks the selected account and reconnects without replaying a turn or tool. Existing private logins are preserved during ordinary connections. Missing/invalid sources leave the private cache intact. A native warning dialog handles 401/expired/missing login, deduplicates repeated errors, retains a reopening entry after dismissal, and targets the failing CLI even after a provider switch rolls back.
|
|
4
|
+
|
|
5
|
+
Linux / Node 22.22.0 full suite: **890 tests, 884 passed, 0 failed, 6 platform-only skips** (`/tmp/tabby-native-auth-tests.log`). Final provider-rollback and localized-template checks: **32 passed, 0 failed**. Tests cover both cache formats, original/custom/default paths, concurrent atomic initialization, private permissions, missing/API-key-only/invalid sources, explicit stale-cache replacement, real fixture process restarts, native history persistence, warning/draft preservation, no task replay, and Claude auth errors reported only in final JSON before exit 1. Type checking, skill bundle/check and production build pass.
|
|
6
|
+
|
|
7
|
+
The real local Codex CLI recognized ChatGPT login in a temporary private home and again after replacing a deliberately invalid private cache through the recovery method. Only initialization and `account/read` ran; no model request was sent. Temporary credential copies were removed after process shutdown; retained evidence contains only account type and a zero model-request count (`/tmp/tabby-native-auth-real-result.json`). There is no local Claude file cache, so real Claude account recovery remains unverified; offline CLI fixtures cover its recovery path. OS-keychain-only login still needs official authentication in the selected space.
|
|
8
|
+
|
|
9
|
+
Chrome exercised the actual component warning/recovery methods with a stubbed backend and the dialog template/CSS at 375×640 in light/dark themes. Native modal display, autofocus, Tab navigation, Escape dismissal, reopening, explicit recovery and draft retention passed (`/tmp/tabby-native-auth-ui/`). This is a component browser fixture, not a full Tabby desktop or Windows/macOS account validation.
|
|
10
|
+
|
|
1
11
|
# v0.8.2 CLI startup and inline attachment fixes — 2026-11-03
|
|
2
12
|
|
|
3
13
|
The startup regression tests reproduce a background Codex connection with no space metadata followed by the sidebar’s explicit system-space connection, and verify one process/connected event with no cancellation. Runtime tests suppress superseded attempts after recovery. Claude Code tests cover concurrent discovery reuse, replacement/close cancellation, failure and subsequent retry. Clipboard fixtures cover text preservation, WebP previews/removal/partial failure; cached previews enforce conversation ownership.
|
|
@@ -395,3 +405,42 @@ The host's russh 0.1.38 directory chmod replays directory size metadata, which O
|
|
|
395
405
|
The bilingual READMEs were rendered with GitHub's Markdown API and previewed in Chromium. The 1800×1900 overview SVG/PNG were synchronized and visually inspected, with example attachment/native-progress data and an explicit illustration label. Robot GIF and reduced-motion PNG remain unchanged. Final tarball installation without system Node, checksum/inventory checks, Linux/macOS/Windows branch/tag CI and Registry readback are recorded separately in the GitHub Release.
|
|
396
406
|
|
|
397
407
|
Validation boundaries: actual desktop and SSH evidence above is Linux loopback, not every server/network, Windows/macOS desktop, remote Windows filesystem or real-model image analysis. Existing CLI login/session and provider-account limits continue to apply. This release offers verified remote paths, not automatic Codex image attachment or sidebar model visual input. Unattended transfers are not reusable workflow steps; transfer files before a recording/alias. General incremental read-screen improvements remain deferred.
|
|
408
|
+
|
|
409
|
+
## Clipboard image preview and scripted regression checks
|
|
410
|
+
|
|
411
|
+
Clipboard image thumbnails now open a native modal preview. Tests cover preserving plain-text paste, file staging, available-image checks, closing and releasing previews on removal/conversation changes, delayed cache reads, and image staging that completes after switching conversations or destroying the panel. `npm run test:attachments` runs these checks and the existing transfer fixtures directly (19 passed on Linux / Node 20.20.2); `npm test` includes them automatically. The two API compaction regressions now use an API fixture rather than unnecessarily connecting Pi. Actual Pi runtime tests retain their version condition, with an explicit skip reason below Node 22.19; scripts neither download nor switch Node.
|
|
412
|
+
|
|
413
|
+
The final full suite on the default Node 20.20.2 ran 865 tests: 826 passed, zero failed and 39 runtime/platform skips. Typecheck, skill consistency and production build passed. A Chromium fixture using the source preview methods, rendered Pug and CSS checked 375px/1280px widths, native modal focus behavior and focus restoration, Escape, backdrop and close-button dismissal. The synchronized overview SVG/PNG was previewed. These checks do not establish actual Tabby desktop clipboard or cross-platform desktop behavior; no paid model calls were made.
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
## Unreleased terminal streams and task logs — 2026-11-04
|
|
417
|
+
|
|
418
|
+
The design was reviewed against current output subscriptions and tool dispatch before implementation. Public cursors now bind the host session scope and terminal stream; internal positions retain UTF-16 compatibility and page boundaries preserve Unicode pairs. Completion revisions prevent a previous shell prompt from satisfying a later completion wait. Session changes reset both the stream buffer and the panel summary cursor. Stateful filtering spans terminal control chunks; attachment suppression runs before the shared stream/persistence outlet.
|
|
419
|
+
|
|
420
|
+
Task-scoped local captures feed a bounded asynchronous segmented store. The panel supplies connection/session-space and thread scope; scheduled tasks supply profile/run/thread scope. Release, close and reconnect stop captures. Logs support literal search and bounded pages with a fixed committed high water mark, separate follow cursors, private file permissions, explicit partial/interrupted states and lazy seven-day retention. Saving can be disabled in Settings. It neither verifies workflow completion nor replays commands.
|
|
421
|
+
|
|
422
|
+
Validation on Linux / existing Node 22.19.0: final `npm test` ran 876 cases, 870 passed, zero failed, six actual Windows cases skipped. The earlier Node 20.20.2 run passed 837 with 39 version/platform skips; the Node 22 run additionally exercised the Pi protocol fixtures without real model inference. `npm run skill:bundle`, `npm run skill:check`, `npm run typecheck`, production build including Pi packaging, and `git diff --check` passed. Per-command exit codes and final logs: `/tmp/tabby-stream-node22-checks.json`, `/tmp/tabby-stream-node22-tests.log`, `/tmp/tabby-stream-node22-typecheck.log`, `/tmp/tabby-stream-node22-build.log`, `/tmp/tabby-stream-node22-skill.log`. New fixtures cover Unicode/control splits, cursor tampering/scope/restart, reconnect resets, output wake/cancel listener cleanup, old-prompt rejection, log scope isolation, task release, queue overload, stable growing-log pagination and restart interruption. No real model inference was called.
|
|
423
|
+
|
|
424
|
+
The English/Chinese README, guide, development notes, model-facing skill/references and generated knowledge were updated. The synchronized 1800x2060 overview SVG/PNG was visually inspected; it remains an illustration, not desktop evidence. The log setting uses the existing labelled checkbox layout with descriptive text; non-Chinese locales currently receive English fallback for its two new strings.
|
|
425
|
+
|
|
426
|
+
Limits: no new actual desktop/SSH or macOS/Windows validation, no cross-space log transfer or interactive browsing of a separate scheduled-run scope, and no complete pre-capture screen-history reconstruction. Filesystem power-loss durability and cross-process concurrent use of one log root are not established by these fixtures. This was local implementation only; no version bump, commit, CI or publication was performed. Research and AGENTS.md remain locally ignored.
|
|
427
|
+
|
|
428
|
+
## Terminal log capacity and delta wait review fixes
|
|
429
|
+
|
|
430
|
+
Expired sealed log metadata is reclaimed before the 2,000-record admission check; file deletion and byte accounting run after pending writes on the same queue. Active captures and pinned readers remain protected. Delta reads receive the resolved read_tab wait, preserving the 1,000 ms controlled-terminal default, explicit zero and uncontrolled-terminal behavior. `npm run test:terminal-logs` passed all 50 cases on the current Node runtime, including full-capacity recovery with queued writes and pinned readers. The full suite passed 839 tests with 39 conditional skips and zero failures (878 total); typecheck, skill consistency, production build and diff whitespace checks passed. No real model or desktop session was used for these fixes.
|
|
431
|
+
|
|
432
|
+
## 0.9.0 ordinary terminal dispatch and Pi test timeout fixes — 2026-11-05
|
|
433
|
+
|
|
434
|
+
An enabled but idle workflow library returned the same undefined token captured by an ordinary terminal call. The helper-budget guard treated that equality as an active run and called `runtime`, which rejected the call before terminal dispatch. The panel now requires a defined token as well as current-token equality before reading workflow runtime. The existing runtime validation, checkpoint rules and terminal adapter checks remain in place.
|
|
435
|
+
|
|
436
|
+
Panel regressions exercise actual adapter calls for command input, stdin, Enter and process attachment under Codex/API with workflows idle or disabled. They also cover active workflow helper costs below/at the goal budget, no-helper handling, and cancellation/replacement while a budget query is pending; a stale runtime token still rejects and the cancelled action cannot reach the adapter or alter the replacement run. Existing workflow and terminal adapter tests cover checkpoint ordering, read-only policy, ownership and live-process verification. The targeted four-file suite passed all 120 cases on Linux / Node 20.20.2.
|
|
437
|
+
|
|
438
|
+
The repeated Pi compaction test now allows 90 seconds on every platform for ten sidecar turns. User-provided Windows Node 22.19.0 diagnostics completed the unchanged assertions in 33,408 ms, exceeding the previous 30-second limit. Product compaction code and all history, summary-cost and resumption assertions are unchanged. On this Linux host with existing Node 22.19.0, the isolated test passed in 6.03 seconds and the full-suite case in 8.49 seconds.
|
|
439
|
+
|
|
440
|
+
Final local `npm test` on Node 22.19.0: 903 cases, 897 passed, zero failed/cancelled, six Windows-only skips. `npm run skill:bundle`, `npm run skill:check`, `npm run typecheck`, `npm run build` (including Pi packaging) and `git diff --check` passed. Logs: `/tmp/tabby-090-fix-targeted.log`, `/tmp/tabby-090-fix-compaction.log`, `/tmp/tabby-090-fix-node22-tests.log`, `/tmp/tabby-090-fix-typecheck.log`, `/tmp/tabby-090-fix-build.log`. No paid model requests, actual Windows/macOS desktop retest, remote CI, version bump, commit or publication was performed. AGENTS.md and research remain locally ignored.
|
|
441
|
+
|
|
442
|
+
## 0.9.1 patch release scope — 2026-11-06
|
|
443
|
+
|
|
444
|
+
This patch packages the preceding native CLI login/session recovery commit, ordinary terminal dispatch fix and repeated-compaction test timeout adjustment described in the preceding implementation snapshot. The bilingual README, guide, development notes, release notes and synchronized overview SVG/PNG describe the final scope; robot GIF/static assets remain unchanged. The preceding recovery commit updated model-facing skill/knowledge; tool schemas and runtime dependencies are unchanged. ChatGPT entitlement/login wording was checked against the official authentication and developer-command pages on 2026-11-06.
|
|
445
|
+
|
|
446
|
+
Release checks and exact-tarball installation evidence are retained in `/tmp/tabby-release-0.9.1-20261106/`; the published GitHub Release records the final check results, branch/tag three-platform CI links and tarball SHA-256. The preceding implementation snapshot's statement that no publication was performed applies to that earlier validation run. No new paid model or actual desktop/SSH tests are included in this patch release.
|