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.
Binary file
@@ -1,6 +1,6 @@
1
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>
2
+ <title id="title">Tabby AI Tools v0.9.1 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.1 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>
@@ -15,7 +15,7 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
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.9.0 / Task logs</text>
18
+ <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.9.1 / Terminal fix</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)"/>
@@ -182,8 +182,8 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
182
182
  <rect x="1100" y="1372" width="652" height="172" rx="12" fill="#172130" stroke="#35475c"/>
183
183
  <text x="1124" y="1403" font-size="21" font-weight="650">Codex / Claude Code · Private history</text>
184
184
  <text x="1124" y="1437" font-size="16" style="fill:#a7b8cb">Tabby space / system compatibility</text>
185
- <text x="1124" y="1470" font-size="16">Login command / Check login / Save space</text>
186
- <text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">Same workspace · Original histories retained</text>
185
+ <text x="1124" y="1470" font-size="16">Check login / Login command / Save space</text>
186
+ <text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">Local login cache / Explicit recovery / No task replay</text>
187
187
  <rect x="48" y="1562" width="1704" height="248" rx="12" fill="#172130" stroke="#35475c"/>
188
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"/>
@@ -201,5 +201,5 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
201
201
  <text x="72" y="1866" font-size="22" font-weight="650">Incremental output and task logs — example</text>
202
202
  <text x="72" y="1901" font-size="17" fill="#a7b8cb">Cursor pages · Wait for output / completion · Fresh screen before interaction</text>
203
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>
204
+ <text x="72" y="1960" font-size="15" fill="#a7b8cb">Ordinary terminal tools work with workflows idle · Active workflow budgets and cancellation stay enforced</text>
205
205
  </svg>
@@ -7,13 +7,13 @@ Version 0.4.1 includes **Claude Code (local login)** alongside native Codex and
7
7
  ## Setup
8
8
 
9
9
  1. Install the [official Claude Code CLI](https://code.claude.com/docs/en/setup) on the computer running Tabby.
10
- 2. In **Settings → AI Tools → Claude Code → Instructions and sessions**, choose the session space. Unused connections default to a Tabby private space; existing saved CLI references retain system compatibility mode. Generate its login command and run it in a local terminal, choosing your Claude account to use an eligible subscription. Check the selected-space login in Settings. A plain `claude auth login`/`claude auth status` uses your terminal's own configured space and may authenticate a different location.
10
+ 2. In **Settings → AI Tools → Claude Code → Instructions and sessions**, choose the session space. Unused connections default to a Tabby private space; existing saved CLI references retain system compatibility mode. Check the selected-space login first: an empty private space reuses the local CLI's OAuth file cache when available. If it is unavailable or only in the OS keychain, generate the selected-space login command and run it in a local terminal, choosing your Claude account to use an eligible subscription. A plain `claude auth login`/`claude auth status` uses your terminal's own configured space and may authenticate a different location.
11
11
  3. In **Settings → AI Tools → Claude Code**, set the executable path if discovery cannot find it. Select **Claude Code (local login)** in the sidebar or make it the default connection. The default alias is `sonnet`; `opus`, `haiku`, and full model IDs can also be configured. These are candidate aliases, not an account entitlement list.
12
12
  4. Describe a task. Operations use the same Tabby tools, read-only restrictions, approvals, workflow checkpoints, and execution records as API connections. The host's operating system permissions still apply; this mode does not supply an OS sandbox.
13
13
 
14
14
  The executable resolver checks PATH, the official `~/.local/bin` location, common Homebrew/npm directories, and the current executable's directory. Explicit paths, quoted paths, and `~/` paths are supported. A custom command name searches PATH only. Windows `.exe`, `.com`, `.cmd`, and `.bat` launchers are supported. Custom Node/npm prefixes outside these locations need an explicit path and a working Node environment.
15
15
 
16
- Connecting checks `--help` and `auth status` without model inference, using the same configuration environment as inference. The CLI must support the integration flags, including `--system-prompt-snapshot`, `--append-system-prompt-file`, strict MCP configuration, and streaming partial messages. Update Claude Code if the connection reports a missing flag. The official CLI manages its credentials; the plugin does not read or copy credential files. Private mode uses `CLAUDE_CONFIG_DIR` and removes inherited API-key/token and cloud-routing overrides, while system compatibility retains existing authentication options. OS credential stores and managed policies can still affect an account. See [instruction snapshots, private history and migration](instructions-sessions.md).
16
+ Connecting checks `--help` and `auth status` without model inference, using the same configuration environment as inference. The CLI must support the integration flags, including `--system-prompt-snapshot`, `--append-system-prompt-file`, strict MCP configuration, and streaming partial messages. Update Claude Code if the connection reports a missing flag. Before the check, an absent private `.credentials.json` is initialized from the original `CLAUDE_CONFIG_DIR` (default `~/.claude`) OAuth cache. An existing private login is preserved. If authentication later fails, the warning dialog offers **Copy login again and reconnect** to replace the stale private cache, retaining the conversation and input without replaying tasks. The official CLI continues to manage login and token refresh; credentials are never displayed in chat or sent to a separate API adapter. Private mode removes inherited API-key/token and cloud-routing overrides, while system compatibility retains existing authentication options. OS credential stores and managed policies can still affect an account. See [instruction snapshots, private history and migration](instructions-sessions.md).
17
17
 
18
18
  ## Design decision and official sources
19
19
 
@@ -45,7 +45,7 @@ sequenceDiagram
45
45
  - Each invocation gets an HTTP MCP listener on `127.0.0.1` with a random port and a fresh 256-bit bearer secret. The listener checks the host and rejects browser origins. Calls are serialized before entering the existing executor; intent is saved before execution. The server and private temporary instruction/config files are removed when the invocation ends or stops.
46
46
  - `--tools ""` disables built-in shell/file tools. `--strict-mcp-config` loads the Tabby bridge, and `--disable-slash-commands` disables CLI skills and commands for this invocation. `--settings '{"disableAllHooks":true}'` disables user/project/plugin hooks; administrator-managed hooks and enforced policy remain governed by Claude Code. Only user settings are loaded to retain the user's authentication helpers; project/local settings are excluded. These options apply to the launched session, without changing the user's settings files.
47
47
  - MCP approval rules allow the bridge to reach the host executor. They do not waive the host's read-only checks, mutation approval, workflow sequencing, sudo authentication, or scheduled-task restrictions.
48
- - The plugin stores portable conversation history and an opaque native session ID, not credentials. Successful continuations use `--resume` and send only new input. Model changes and provider switches import portable text and observed tool outcomes into a fresh session. On an interrupted or failed invocation, the next explicit request reconstructs from recorded history, with a warning to verify the terminal before acting. There is no automatic model retry or silent API fallback.
48
+ - Tabby's conversation index stores portable history and an opaque native session ID. The private CLI directory can contain the locally copied OAuth login cache. Successful continuations use `--resume` and send only new input. Model changes and provider switches import portable text and observed tool outcomes into a fresh session. On an interrupted or failed invocation, the next explicit request reconstructs from recorded history, with a warning to verify the terminal before acting. There is no automatic model retry or silent API fallback.
49
49
  - Stop cancels pending host requests and terminates the owned CLI process tree before the turn finishes. Commands already submitted to a Tabby terminal may still run. Messages added while Claude Code is working are queued for a new invocation after the current one ends, rather than injected into an in-progress CLI request.
50
50
  - Observed usage is counted once per native message and checked against the task budget before further operations. Token usage is not a subscription balance or price. Native context compaction belongs to Claude Code; imported plugin history has a 9 MiB input limit.
51
51
  - Schedules can choose this connection. Existing scheduler isolation, logging, and unattended rules apply. An explicitly requested candidate-model test uses an isolated MCP confirmation tool and consumes model quota; normal connection/model-list checks do not.
@@ -25,6 +25,12 @@ npm run build
25
25
 
26
26
  CI 使用 Node.js 22.19.0,在 Ubuntu、macOS 和 Windows 上运行类型检查、测试和构建。开发时可用 `TABBY_PLUGINS=/path/to/tabby-ai-tools tabby --debug` 加载插件。
27
27
 
28
+ ### 普通终端工具与流程回归
29
+
30
+ 启用流程库但没有活动录制/别名执行时,当前令牌和工具捕获的令牌都可能为 `undefined`。读取流程运行状态前必须要求令牌存在且与当前令牌一致;普通任务仍经过终端适配器的只读、所有权和进程核验。`test/task-memory-panel.test.js` 覆盖 Codex/API 下流程关闭/idle 时的命令、stdin、按键与进程接管,以及活动流程的辅助 token 预算和取消后失效令牌隔离。
31
+
32
+ Pi 连续压缩回归包含十轮独立 sidecar 启动,统一使用 90 秒时限。Windows Node 22.19.0 的外部实测在约 33.4 秒完成全部断言,超过原来的 30 秒;此调整保留原始历史、两次压缩、摘要成本及恢复断言,不改变产品压缩实现。此处耗时证据不代表本机已完成 Windows 复测。
33
+
28
34
  ### 安装后的重启提示
29
35
 
30
36
  Tabby 在应用内安装、升级插件后,已由[内置插件管理器](https://github.com/Eugeny/tabby/blob/master/tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts)调用 `ConfigService.requestRestart()`。设置页据此显示“Restart the app to apply changes”,点击时通过 `HostAppService.relaunch()` 重启。首次安装时插件尚未加载,提示由宿主负责;本插件启动成功后不需要再次请求重启。`install:tabby` 是独立的文件复制脚本,无法直接调用 Tabby 进程内的注入服务,仍需用户手动重启。
package/docs/guide.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  [安装与首次使用](#安装与首次使用) · [基础配置](#基础配置) · [API 连接](#api-密钥与切换模型) · [内网与 sudo](#内网服务器与-sudo-临时认证) · [任务编排](#任务编排与多服务器协作) · [定时任务](#定时-ai-流程) · [全部功能入口](#全部功能入口) · [启动排查](#cli-自动发现与启动排查)
8
8
 
9
+ v0.9.1 修复流程库空闲时普通终端工具被误拦截的问题。普通任务无需先录制或运行流程,即可发送命令、stdin、Enter 或接管进程;终端只读、所有权、进程核验及活动流程预算限制仍然生效。见 [发布说明](releases/0.9.1.md)。
10
+
9
11
  ## 安装与首次使用
10
12
 
11
13
  ### 准备环境
@@ -14,7 +16,7 @@ v0.5.1 起,Pi SDK 及其所需 JavaScript 已打包。通过 Tabby 安装/
14
16
 
15
17
  - 本机安装 [Tabby](https://github.com/Eugeny/tabby),并能访问所选 AI 服务。操作内网服务器时,本机还需能通过 Tabby 连接目标服务器。
16
18
  - **ChatGPT 订阅/Codex 登录模式**:本机安装 Codex CLI,选择 **Codex(本机登录)**,在“指令与会话”生成选定空间的登录命令。使用具备 Codex 权限的 ChatGPT 账号完成官方登录,再检查该空间认证,无需填写 API Key。普通 `codex login`/`codex login status` 针对终端当前配置的空间;未使用过的插件连接默认使用 Tabby 独立空间。可用模型、用量和工作区权限以账号实际权益为准。见 [OpenAI 官方认证说明](https://learn.chatgpt.com/docs/auth)。CLI 需支持 `thread/goal/*`;已测试版本见[验证记录](../VALIDATION.md)。
17
- - **Claude 订阅/Claude Code 本机模式**:本机安装官方 Claude Code,选择 **Claude Code(本机登录)**,在“指令与会话”生成并执行选定空间的 `auth login` 命令,再检查该空间认证。普通 `claude auth login`/`auth status` 可能针对另一份系统配置。插件不复制凭据;账号权益及系统兼容模式的 API/云计费以官方 CLI 状态为准。完整方案、权限、恢复机制与验证限制见 [Claude Code 接入](claude-code.md)。
19
+ - **Claude 订阅/Claude Code 本机模式**:本机安装官方 Claude Code,选择 **Claude Code(本机登录)**,在“指令与会话”生成并执行选定空间的 `auth login` 命令,再检查该空间认证。普通 `claude auth login`/`auth status` 可能针对另一份系统配置。私有缓存缺失时会继承可用的本机 OAuth 文件缓存;账号权益及系统兼容模式的 API/云计费以官方 CLI 状态为准。完整方案、权限、恢复机制与验证限制见 [Claude Code 接入](claude-code.md)。
18
20
  - **API 模式**:准备 OpenAI、DeepSeek、GLM、Kimi、百炼 Coding Plan 或 Claude 对应的 Key,无需安装 Codex CLI。订阅登录与 API 连接是两种独立配置方式。
19
21
 
20
22
  ### 安装插件
@@ -351,7 +353,7 @@ Pi 的使用、存储、预算和验证限制见 [Pi runtime](pi.md)。开发与
351
353
 
352
354
  每个连接下方的 **Instructions and sessions/指令与会话** 支持 AI Tools 全局默认与连接级覆盖。可编辑正文、绑定本地 AGENTS.md 文件、继承默认或关闭自定义层;保存和放弃均显式操作。文件要求绝对路径、UTF-8、最多 32 KiB,可预览内容、来源、摘要和修改时间,不会覆盖源文件。新会话保存指令快照;原文件修改或丢失不影响已有会话恢复。使用 `/new` 应用新指令,文件不可读则阻止依赖它的新会话。内置工具说明与宿主权限检查仍生效,Pi 不因此启用自动发现;Codex/Claude 的原生项目规则另由引擎管理。
353
355
 
354
- 未使用过的 Codex/Claude Code 默认采用 **Tabby 独立空间**,已有 CLI 会话引用保留 **系统空间(旧版兼容)**。独立空间隔离磁盘历史及索引,而不仅过滤列表;任务 cwd 保持不变。选择目标空间后生成登录命令,在本地终端完成官方登录,再检查该空间认证并保存。系统 CLI 已登录不代表目标空间已登录,插件不会复制凭据。Windows 命令使用 PowerShell,Linux/macOS 使用 POSIX shell。
356
+ 未使用过的 Codex/Claude Code 默认采用 **Tabby 独立空间**,已有 CLI 会话引用保留 **系统空间(旧版兼容)**。独立空间隔离磁盘历史及索引,而不仅过滤列表;任务 cwd 保持不变。选择目标空间后生成登录命令,在本地终端完成官方登录,再检查该空间认证并保存。系统 CLI 已登录不代表目标空间已登录,私有登录文件缓存缺失时,会从原 CLI 目录初始化有效的 ChatGPT/OAuth 缓存,已有私有登录保持不变;系统历史和配置不随之复制。OS keychain-only 登录仍需在目标空间完成官方认证。登录失效时可通过侧栏警告明确选择重新复制并重连,不重放任务。Windows 命令使用 PowerShell,Linux/macOS 使用 POSIX shell。
355
357
 
356
358
  空闲时点击侧栏重连以切换空间并交接当前对话,或用 `/new` 开始新对话。旧记录保留原处,失败时仍保留原侧栏会话;不会搬走全部系统历史。定时任务后续运行使用连接当前选定空间和新指令快照,活动任务保留启动时的配置。详细路径、认证边界与验证范围见 [指令与会话说明](instructions-sessions.md)。
357
359
 
@@ -27,16 +27,26 @@ tabby-agent-sessions/spaces/<stable-space-id>/
27
27
 
28
28
  Codex receives an explicit `CODEX_HOME`, SQLite and log location after executable discovery. Its process identity includes the space, and its private credential store is file-based. Claude Code receives `CLAUDE_CONFIG_DIR` for both authentication checks and inference. The plugin changes only its child-process environment; it does not change your shell, OS HOME or ordinary CLI directories. Private-mode launch removes inherited API-key/token overrides so a subscription connection does not silently use an unrelated API credential. Proxy and certificate settings remain available. The chosen workspace directory stays unchanged.
29
29
 
30
+ Before starting a private Codex app-server, Tabby initializes an absent `native/auth.json` from the local CLI's ChatGPT login cache. It uses the `CODEX_HOME` found during CLI discovery, including the login-shell environment, or `~/.codex` by default. Only the login cache is copied; system configuration and history stay separate. The new file is owner-only on POSIX, is published atomically, and never replaces an existing space-local login. The original cache stays unchanged, and Codex manages subsequent token refreshes in the private space.
31
+
32
+ Claude Code follows the same rule before its login check or model probe: an absent `native/.credentials.json` is initialized from `CLAUDE_CONFIG_DIR/.credentials.json`, or `~/.claude/.credentials.json` by default. Only an OAuth login cache is imported; API-key-only files are not copied. CLI history, settings, hooks and project trust remain separate. OS-keychain-only credentials cannot be copied through this file path; use the selected-space official login command if its login check fails.
33
+
30
34
  Tabby only lists/resumes private native sessions whose local metadata belongs to the selected space. A raw native ID cannot cross this boundary. Spaces and thread references are stable across restarts; sessions are not made ephemeral to hide them. Concurrent writers are rejected rather than sharing one native conversation silently.
31
35
 
32
36
  ## Log in and migrate
33
37
 
34
- 1. Select the target space. **Generate login command** prepares that space and displays a command for the discovered CLI. It does not execute the command.
35
- 2. Copy and run it in a local terminal. The generated command uses POSIX shell syntax on Linux/macOS and PowerShell syntax on Windows, quotes paths, and targets the selected space. Complete the official account login there.
36
- 3. Use **Check selected-space login**. This performs a local CLI/account check without model inference. A logged-in result does not prove a particular model is available or that quota remains.
38
+ 1. Select the target space and use **Check selected-space login**. For Codex, this automatically initializes a missing private login cache from the local ChatGPT login when available, including for previously created empty spaces. This performs a local CLI/account check without model inference. A logged-in result does not prove a particular model is available or that quota remains.
39
+ 2. If the check reports no login, use **Generate login command** and run the command in a local terminal. The generated command uses POSIX shell syntax on Linux/macOS and PowerShell syntax on Windows, quotes paths, and targets the selected space. Complete the official account login there, then check again. This fallback is needed when no ChatGPT file cache is available, when the local login exists only in an OS credential store, or when the cached login has expired. API-key-only caches are not imported.
40
+ 3. Existing private logins are preserved, including a login for a different account. Initialization is a one-time copy when the cache is absent, not continuous account synchronization. Claude Code performs the same cache initialization before its selected-space login check.
37
41
  4. **Save session space**, then click the sidebar's reconnect control when idle. When switching spaces, the current conversation can be transferred through Tabby's portable context handoff into a new native session. Existing source records stay in their original location. Use `/new` to start fresh instead.
38
42
 
39
- The plugin never copies credential files or imports all system history. Changing the space does not move or erase old shared sessions from your ordinary CLI list. Failed reconnection retains the current sidebar conversation; log in to the target or restore the previous space setting before trying again. Scheduled tasks use the connection's selected space for subsequent runs; active runs keep the backend they started with.
43
+ Changing the space does not move or erase old shared sessions from your ordinary CLI list. Failed reconnection retains the current sidebar conversation; check login for the target or restore the previous space setting before trying again. Scheduled tasks use the connection's selected space for subsequent runs; active runs keep the backend they started with.
44
+
45
+ ## Recover an expired login
46
+
47
+ The sidebar opens an authentication warning dialog when Codex or Claude Code reports a 401, an expired/revoked token or a missing login. Repeated errors share one warning; dismissing it leaves a visible entry to reopen it. Permission failures (403), rate limits (429) and unrelated thread/model errors do not trigger this authentication dialog.
48
+
49
+ In a private space, choose **Copy login again and reconnect** to replace its login cache from the original local CLI directory, even when an older private cache already exists. The action stops an active turn, copies only a valid login cache, checks the selected-space account, and reconnects the existing conversation. It preserves the input draft and does not send a model request or replay a tool. If the source file is missing or invalid, the old private cache remains intact and the dialog explains that local/selected-space login is needed. System mode instead prompts you to sign in with the local official CLI and reconnect.
40
50
 
41
51
  System mode deliberately retains existing CLI authentication/environment behavior. Private history does not imply account isolation: platform credential stores and managed policies may still affect an account, particularly with Claude Code. A separate login may be required. This feature is not an operating-system sandbox.
42
52
 
@@ -46,4 +56,4 @@ Offline process fixtures cover private persistence, process replacement, source/
46
56
 
47
57
  Real Claude subscription login, model entitlement and macOS/Windows desktop behavior need their own platform/account validation; fixtures are not proof of those results. See [validation](../VALIDATION.md) for the exact local checks. Native account login remains an action you complete through the official CLI; no paid model smoke test is run automatically.
48
58
 
49
- Official references: [Codex locations and overrides](https://learn.chatgpt.com/docs/config-file/environment-variables), [Codex app-server](https://learn.chatgpt.com/docs/app-server), [Claude Code settings](https://code.claude.com/docs/en/settings), [Claude Code CLI](https://code.claude.com/docs/en/cli-reference).
59
+ Official references: [Codex login caching and copying auth caches](https://learn.chatgpt.com/docs/auth), [Codex locations and overrides](https://learn.chatgpt.com/docs/config-file/environment-variables), [Codex app-server](https://learn.chatgpt.com/docs/app-server), [Claude Code authentication and separate configuration directories](https://code.claude.com/docs/en/authentication), [Claude Code settings](https://code.claude.com/docs/en/settings), [Claude Code CLI](https://code.claude.com/docs/en/cli-reference).
@@ -0,0 +1,15 @@
1
+ # v0.9.1 — Terminal dispatch, CLI login recovery and Pi test stability
2
+
3
+ Ordinary terminal commands, stdin, Enter and process attachment now reach the terminal adapter when the workflow library is idle or disabled. An undefined workflow token is no longer mistaken for an active workflow. Active workflow helper-token budgets, cancellation isolation, checkpoint rules and terminal adapter checks remain enforced.
4
+
5
+ Private Codex and Claude Code spaces initialize missing login caches from available local ChatGPT/OAuth files. Existing private logins are preserved. Authentication warnings offer explicit cache replacement and reconnect while preserving conversations and input drafts without replaying tasks. Missing/invalid source caches leave the private cache intact; OS-keychain-only login still requires official selected-space authentication. Missing Codex rollouts are replaced only when no recoverable context exists; successful reconnect clears stale connection errors.
6
+
7
+ The repeated Pi compaction regression allows 90 seconds on every platform for ten sidecar turns. Windows diagnostics completed the unchanged assertions in about 33.4 seconds, exceeding the previous 30-second limit. Product compaction behavior and the history, summary-cost and resumption assertions are unchanged.
8
+
9
+ Both READMEs, the guide, development notes and synchronized overview SVG/PNG describe the patch. The overview uses example tasks and connections; it is an illustration. The robot animation and reduced-motion fallback are retained. The preceding CLI recovery commit already updated model-facing skill/knowledge and localized guidance. No tool schema or runtime dependency changed.
10
+
11
+ ## Validation and limits
12
+
13
+ The release requires skill bundle/check, typecheck, the full automated suite, production webpack/Pi builds, whitespace checks and exact-tarball installation with scripts enabled and no Node on PATH. The GitHub Release records the actual results, branch/tag Linux/macOS/Windows CI links and verified tarball SHA-256.
14
+
15
+ Offline/local HTTP fixtures cover ordinary and active workflow dispatch, helper budgets, cancellation/replacement isolation and repeated compaction. The earlier CLI recovery checks include real local Codex account/cache recovery without inference and browser dialog fixtures; real Claude account recovery remains unverified. No paid model requests or new actual Tabby desktop/SSH or Windows/macOS desktop validation are included. CI evidence does not establish desktop behavior. Plugin users do not need a system Node installation.
@@ -2,6 +2,6 @@
2
2
 
3
3
  AI Tools settings now support shared and per-connection instruction text or a local AGENTS.md reference, with explicit Save/Discard, source preview and bounded UTF-8 validation. New sessions persist an instruction snapshot, so file changes or removal do not silently alter a restored conversation. `/new` applies new instructions. The selected layer works across Codex, Claude Code, Pi and API runtimes, retaining built-in tool guidance and host policies.
4
4
 
5
- Unused Codex/Claude Code connections default to a Tabby private session space. Existing CLI references retain an explicit system compatibility mode. Native state, indexes, restore checks and authentication inspection target the chosen space without changing the workspace or copying credentials. Settings generate a quoted login command for the selected space; the user completes official authentication locally. Idle reconnection can transfer the current conversation while preserving source history; completed identical handoffs are reused and concurrent native writers are rejected.
5
+ Unused Codex/Claude Code connections default to a Tabby private session space. Existing CLI references retain an explicit system compatibility mode. Native state, indexes, restore checks and authentication inspection target the chosen space without changing the workspace. Before connecting Codex or Claude Code, an absent private login cache is initialized from the corresponding local CLI OAuth/ChatGPT file cache; existing private logins and source credentials stay intact. System configuration/history and API-key-only caches are not copied. Keyring-only or unavailable logins still need official authentication. Authentication failures open a warning with an explicit copy-login-and-reconnect action that can replace an expired private cache while preserving the conversation/input and never replaying model/tool requests. Settings generate a quoted login command for the selected space when needed. Idle reconnection can transfer the current conversation while preserving source history; completed identical handoffs are reused and concurrent native writers are rejected.
6
6
 
7
7
  The bilingual README, guide, developer notes, model-facing skill/knowledge and SVG/PNG overview are synchronized. Local Node 22 tests, offline CLI/MCP fixtures, an isolated real Linux Tabby settings preview and no-inference Codex startup checks provide the validation scope recorded in VALIDATION.md. Actual Claude account login, subscription/model access and macOS/Windows desktop behavior remain unverified. No release or npm publication is included in this implementation session.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-ai-tools",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
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",
@@ -26,7 +26,7 @@ This is the single model-facing skill for the plugin. Its operation reference re
26
26
 
27
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
- 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.
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. Codex and Claude Code automatically initialize absent private login caches from their respective local CLI file caches before connecting, preserving existing private logins. Unavailable/keyring-only caches still require official login. Use the selected-space login check before requesting another login. Authentication failures open a warning with a copy-login-and-reconnect action that preserves history and input without replaying a task. Existing system histories are retained in compatibility mode until explicitly switched. Never expose credentials in chat or replay historical tool calls during context handoff. These are Settings routes, not permission-changing model tools.
30
30
 
31
31
  For a new kind of Tabby task, call `get_capabilities`. Discover the live profiles, commands and tabs rather than guessing IDs, installed plugins or protocol support. Read [references/operations.md](references/operations.md) (or `read_skill` with `section=operations`) for the appropriate route. Use `read_skill` with `section=upstream` to list versioned official source paths and the last snapshot check; add `source` with a returned path to read its API notes. The reference may describe features newer than the installed host; live discovery and tool results take precedence.
32
32
 
@@ -1,6 +1,6 @@
1
1
  # Operation routes
2
2
 
3
- For custom AGENTS.md instructions or separate CLI history, guide the user to Settings → AI Tools → the selected connection → Instructions and sessions. Shared defaults can be overridden or disabled per connection. Previewing and saving perform no inference; new sessions read and freeze the chosen text/file, while existing snapshots remain usable. Codex/Claude Code private spaces keep native history separate from ordinary CLI use, use the same workspace and require their own authentication check. Generate the selected-space login command and let the user complete official authentication locally; never ask for a password/token in chat. Save space changes and reconnect only when idle to transfer the current conversation, or use `/new` to start fresh. Source histories remain in place; private storage does not grant an OS sandbox or additional tools. See the packaged instructions/session documentation for platform validation limits.
3
+ For custom AGENTS.md instructions or separate CLI history, guide the user to Settings → AI Tools → the selected connection → Instructions and sessions. Shared defaults can be overridden or disabled per connection. Previewing and saving perform no inference; new sessions read and freeze the chosen text/file, while existing snapshots remain usable. Codex/Claude Code private spaces keep native history separate from ordinary CLI use and use the same workspace. Check the selected space's login first: Codex and Claude Code automatically seed an absent private login from their respective local CLI file caches before connecting, including during that check; existing private logins are preserved. If no usable file cache is available (including keyring-only login), generate the selected-space login command and let the user complete official authentication locally. On a 401/expired login, the sidebar warning offers to copy the original local CLI login cache again and reconnect, retaining history/input without sending another model request. Never ask for a password/token in chat. Save space changes and reconnect only when idle to transfer the current conversation, or use `/new` to start fresh. Source histories remain in place; private storage does not grant an OS sandbox or additional tools. See the packaged instructions/session documentation for platform validation limits.
4
4
 
5
5
  | Task | Tools and verification |
6
6
  | --- | --- |