tabby-ai-tools 0.9.0 → 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 CHANGED
@@ -22,7 +22,9 @@
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
- ![Tabby AI Tools v0.9.0 interface illustration with SSH attachments, native tab progress, native Pi providers, offline model catalog, instruction snapshots, private CLI history and connection drafts: the assistant coordinates two SSH terminals, with verified workflow recording and a saved /pm1 alias, collapsed thinking and tool activity, on-demand terminal reads, scheduled tasks, Pi built-in runtime and compaction settings, provider connections, automatic startup and language settings](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
25
+ ![Tabby AI Tools v0.9.1 interface illustration with SSH attachments, native tab progress, native Pi providers, offline model catalog, instruction snapshots, private CLI history and connection drafts: the assistant coordinates two SSH terminals, with verified workflow recording and a saved /pm1 alias, collapsed thinking and tool activity, on-demand terminal reads, scheduled tasks, Pi built-in runtime and compaction settings, provider connections, automatic startup and language settings](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
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).
26
28
 
27
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).
28
30
 
@@ -56,8 +58,8 @@ Terminal output is read on demand with `read_tab`; it is no longer automatically
56
58
 
57
59
  | Connection | How to use it |
58
60
  | --- | --- |
59
- | **ChatGPT subscription → local Codex** | Install Codex CLI and select **Codex (local login)**. Generate the selected-space login command in Settings → AI Tools → Instructions and sessions. |
60
- | **Claude subscription → local Claude Code** | Install the official CLI and select **Claude Code (local login)**. Generate its selected-space login command, then check that space's login in Settings. |
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. |
61
63
  | **OpenAI API** | Add an OpenAI connection with an API key, Base URL, and model ID. |
62
64
  | **DeepSeek** | Add a DeepSeek API connection and choose the model and Thinking settings. |
63
65
  | **GLM / Zhipu** | Add a GLM API connection using the endpoint and model available to your account. |
@@ -92,7 +94,7 @@ When elevated access is needed, manually run `sudo ls` or `sudo -v` in the same
92
94
  ## Start with your local ChatGPT subscription login
93
95
 
94
96
  1. Install [Codex CLI](https://learn.chatgpt.com/docs/cli) on the computer running Tabby.
95
- 2. Open **Settings → AI Tools → Codex → Instructions and sessions**. Generate the selected-space login command, run it in a local terminal and complete the official ChatGPT login. Then check the selected-space login. Unused connections default to a private space. For an existing **System space (legacy compatibility)** connection, the ordinary commands are:
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:
96
98
 
97
99
  ```bash
98
100
  codex login
package/README.zh-CN.md CHANGED
@@ -22,7 +22,9 @@
22
22
 
23
23
  Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI 助手插件。它可以读取终端输出、发送命令,并根据执行结果继续分析和操作。你在侧栏描述目标,在终端查看过程,也可以随时取回输入控制。
24
24
 
25
- ![Tabby AI Tools v0.9.0 界面示意(含 SSH 附件与原生 tab 进度、原生 Pi 供应商、离线模型目录、指令快照、独立 CLI 历史与连接草稿):侧栏协调两个 SSH 终端,展示流程录制验收与已保存的 /pm1 别名、可折叠思考与工具过程、按需读屏、定时任务、Pi 内置运行时与压缩设置、连接列表、启动与语言设置,含自定义 OpenAI 兼容接口设置](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
25
+ ![Tabby AI Tools v0.9.1 界面示意(含 SSH 附件与原生 tab 进度、原生 Pi 供应商、离线模型目录、指令快照、独立 CLI 历史与连接草稿):侧栏协调两个 SSH 终端,展示流程录制验收与已保存的 /pm1 别名、可折叠思考与工具过程、按需读屏、定时任务、Pi 内置运行时与压缩设置、连接列表、启动与语言设置,含自定义 OpenAI 兼容接口设置](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
26
+
27
+ **v0.9.1 修复:** 流程空闲或关闭时,普通命令、stdin、Enter 与进程接管可正常执行;活动流程的预算和取消校验继续生效。Codex/Claude 独立空间可继承已有本机登录文件缓存,登录失效时可明确选择重新复制并重连,不重放任务;缺失 Codex 会话仅在没有可恢复上下文时替换。Pi 连续压缩回归为 Windows 预留更充足的测试时间。[发布说明](docs/releases/0.9.1.md)。
26
28
 
27
29
  **v0.9.0 新增图片预览、终端增量输出与任务日志。** 点击粘贴图片的缩略图可放大预览;终端支持游标分页和新输出唤醒,任务日志可在本机保存、分页和字面搜索。过期日志可自动回收容量,增量读取沿用受控终端的默认等待。见[终端日志说明](docs/terminal-logs.md)和[发布说明](docs/releases/0.9.0.md)。
28
30
 
@@ -56,8 +58,8 @@ Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI
56
58
 
57
59
  | 连接方式 | 如何使用 |
58
60
  | --- | --- |
59
- | **ChatGPT 订阅 → 本机 Codex** | 安装 Codex CLI 并选择 **Codex(本机登录)**,在设置的“指令与会话”生成选定空间的登录命令。 |
60
- | **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI 并选择 **Claude Code(本机登录)**,生成目标空间登录命令,完成后在设置里检查该空间登录。 |
61
+ | **ChatGPT 订阅 → 本机 Codex** | 安装 Codex CLI 并选择 **Codex(本机登录)**,先在设置的“指令与会话”检查选定空间登录;私有缓存缺失时会继承可用的本机 ChatGPT 文件缓存,必要时生成登录命令。 |
62
+ | **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI 并选择 **Claude Code(本机登录)**,先检查目标空间登录;私有缓存缺失时会继承可用的本机 OAuth 文件缓存,必要时生成登录命令。 |
61
63
  | **OpenAI API** | 添加 OpenAI 连接,配置 API Key、Base URL 和模型 ID。 |
62
64
  | **DeepSeek** | 添加 DeepSeek API 连接,选择模型与 Thinking 设置。 |
63
65
  | **GLM/智谱** | 添加 GLM API 连接,使用账号对应套餐的端点和模型。 |
@@ -92,7 +94,7 @@ v0.4.1 已支持自定义连接。Base URL 示例为 `https://gateway.example/v1
92
94
  ## ChatGPT 订阅用户如何开始
93
95
 
94
96
  1. 在运行 Tabby 的本机安装 [Codex CLI](https://learn.chatgpt.com/docs/cli)。
95
- 2. 打开 **Settings → AI Tools → Codex → 指令与会话**,生成选定空间的登录命令,在本地终端执行并完成 ChatGPT 官方登录,再检查该空间认证。未使用过的连接默认采用独立空间。已有的**系统空间(旧版兼容)**连接可使用以下普通命令:
97
+ 2. 打开 **Settings → AI Tools → Codex → 指令与会话**,先检查选定空间认证;私有缓存缺失时会继承可用的本机 ChatGPT 文件缓存。必要时生成登录命令,在本地终端完成官方登录后再次检查。未使用过的连接默认采用独立空间。已有的**系统空间(旧版兼容)**连接可使用以下普通命令:
96
98
 
97
99
  ```bash
98
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.
@@ -418,3 +428,19 @@ Limits: no new actual desktop/SSH or macOS/Windows validation, no cross-space lo
418
428
  ## Terminal log capacity and delta wait review fixes
419
429
 
420
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.