tabby-ai-tools 0.9.1 → 0.9.2

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="2060" viewBox="0 0 1800 2060" role="img" aria-labelledby="title 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>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1800" height="2250" viewBox="0 0 1800 2250" role="img" aria-labelledby="title desc">
2
+ <title id="title">Tabby AI Tools v0.9.2 interface illustration — conditional interactive workflows, helper models, local login and API connections</title>
3
+ <desc id="desc">Codex checks known Windows companions and recovers once at an idle boundary without replay; Claude rechecks its original CLI selector before every invocation; native Linux SSH agents use an independent PID and output-only PTY identity proof; 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.2 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="2060" rx="24" fill="url(#background)"/>
13
+ <rect x="0" y="0" width="1800" height="2250" 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.9.1 / Terminal fix</text>
18
+ <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.9.2 / CLI recovery</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 / shared discovery</text>
135
+ <text x="84" y="1102" font-size="12" style="fill:#a7b8cb">Local login / CLI health checks</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 / shared discovery</text>
138
+ <text x="334" y="1102" font-size="12" style="fill:#a7b8cb">Local login / per-call CLI checks</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>
@@ -195,11 +195,16 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
195
195
  <text x="1110" y="1724" font-size="18" style="fill:#8ae6c2">68% · Native target-tab progress</text>
196
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="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>
198
+ <text x="49" y="2188" 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="2219" font-size="14" font-weight="400" style="fill:#8ca0b8">Appearance varies with your Tabby theme, window size and configured connections.</text>
200
200
  <rect x="48" y="1830" width="1704" height="145" rx="12" fill="#172130" stroke="#35475c"/>
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
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
+ <rect x="48" y="1994" width="1704" height="158" rx="12" fill="#172130" stroke="#35475c"/>
206
+ <text x="72" y="2029" font-size="22" font-weight="650">Native CLI recovery and Linux SSH identity — example behavior</text>
207
+ <text x="72" y="2063" font-size="17" style="fill:#a7b8cb">Codex: known companion checks · One idle-boundary rebuild · No task or tool replay</text>
208
+ <text x="72" y="2096" font-size="17" style="fill:#a7b8cb">Claude local: recheck original CLI before each invocation · Preserve session on preflight failure</text>
209
+ <text x="72" y="2129" font-size="17" style="fill:#8ae6c2">Existing Linux SSH Agent: independent PID / PTY proof before input · No restart or stdin probe</text>
205
210
  </svg>
@@ -55,3 +55,14 @@ sequenceDiagram
55
55
  Offline tests use a real child process and authenticated HTTP MCP, with simulated Claude events. They cover streaming, native resume, migration, approvals, read-only mode, durable intent, cancellation, malformed/truncated output, failed results, token accounting/budgets, connection selection, and the scheduler's model probe. They make no model requests.
56
56
 
57
57
  A real subscription end-to-end run still requires an installed CLI, an eligible user's official login, and real Tabby desktop testing. Passing the offline tests does not establish actual subscription entitlement, model quality, or Windows/macOS execution results.
58
+
59
+
60
+ ## v0.9.2 update-path review — 2026-11-07
61
+
62
+ Claude local has a related cached-entrypoint risk, but this repository does not establish that its distributions use the same companion EXEs as Codex. Connection-time help/auth checks previously resolved one absolute path and later invocations reused it. A removed version directory could therefore break the next invocation.
63
+
64
+ Each native invocation now re-resolves the original configured selector and rechecks the required CLI flags and selected-space auth status before inference, including native goal continuations. Default `claude` follows a changed installation/PATH target; explicit files and custom command names keep their original discovery scope. An invocation already submitted to the CLI is never retried after failure or timeout. Preflight failure leaves the last successful native session reference intact. Private spaces, cwd, selected model, instruction snapshot, tool bridge and authorization are preserved.
65
+
66
+ A launcher disappearing between `--help` and `auth status`, malformed status JSON or a changed status schema now produces a CLI/protocol diagnostic rather than a fabricated logged-out result. Valid `loggedIn=false` remains an authentication failure, including the CLI's exit-1 JSON response. This does not inspect credential files or change login/permission settings.
67
+
68
+ The review/test evidence covers simulated official CLI processes, MCP tool round trips, updated default entrypoints, pinned-path failure, changed tool flags, native session retention and no inference replay. Real Claude account/desktop and vendor layouts remain unverified. The resolver retains existing discovery priority; this is not a claim that every third-party/npm layout is repaired automatically.
@@ -0,0 +1,40 @@
1
+ # Codex installation recovery and existing SSH agents
2
+
3
+ Included in v0.9.2, 2026-11-07. See [release scope and validation limits](releases/0.9.2.md).
4
+
5
+ The reported Windows log identifies a failure to spawn `codex-code-mode-host.exe` from the `a159911ff70742e9` installation. It is evidence of tool-helper startup failure after the CLI had reached tool dispatch, not evidence of failed login. The later `f71a721e0e6193a9` installation and successful user-reported conversation/tool execution demonstrate that a complete alternative existed. Why the older files disappeared is unconfirmed: the repository has no evidence establishing desktop update, cleanup or cache invalidation as the cause.
6
+
7
+ The plugin previously validated the main executable and compared `--version`, including desktop hash directories. It already rescanned on a new connection; there was no persistent discovery cache to clear. A reused app-server could nevertheless retain an installation that had since become incomplete. The fix retains a per-connection rejection set for confirmed faulty entrypoints, rescans once, and drops that set on a subsequent explicit fresh connection.
8
+
9
+ Native Windows distributions from the observed `0.167.0-alpha.3.2` baseline check an adjacent code-mode host for tool-enabled connections. Windows sandbox shell execution additionally checks the adjacent command runner. Account inspection and decision-only connections do not require the tool host. This is a version/layout compatibility rule based on the reported distribution, not a claim that every earlier CLI needs these files. Unknown versions and batch/npm launchers keep their existing layout contract and rely on explicit runtime failure recognition. A future distribution with a different layout will require adapting this rule; helper version equality is not independently established by a universally supported helper `--version` command.
10
+
11
+ Automatic Windows selection excludes incomplete installations before applying existing semantic version ranking; valid-version/unknown-version ordering and tie behavior remain unchanged. Existing explicit files and custom command names stay pinned. An explicit stable desktop `OpenAI/Codex/bin` selector, and a removed version-specific desktop entrypoint, retain recovery within that same installation only. Helpers are never copied between installations.
12
+
13
+ Health is checked during discovery, before spawn, on connection reuse and before new task admission. Explicit owned-process stderr/RPC/turn helper errors cover removal after a successful check. Chat text, unrelated file ENOENTs and observation timeouts cannot initiate recovery.
14
+
15
+ One automatic rescan/rebuild is allowed per connection lifecycle. Concurrent reports share the same attempt. Recovery waits until all known turns, RPCs and server requests on this client have ended. It never interrupts another active panel to replace the server. A transport loss with an admitted turn leaves execution unknown and prevents automatic recovery at that boundary. If an active turn never reports completion, recovery waits rather than killing it to manufacture an idle boundary.
16
+
17
+ Only the connection is restored. No historical `turn/start`, steering prompt, tool call, terminal input, native goal activation or implicit `thread/resume` is sent by recovery. The original thread is resumed when the user next submits a new message, with the existing cwd, model, private space, instruction snapshot and permission settings. The panel retains its history/draft and explicitly asks for actual terminal-state inspection before continuing. A confirmed RPC rejection differs from an unanswered request; the latter is never treated as proof an operation did not run. Native session locks wait for process cleanup without cancelling the recovery controller. Recovery does not refresh or modify login credentials.
18
+
19
+ If recovery cannot find an allowed complete installation, it stops with the original helper/CLI/install path, attempted rescan and action to select a complete CLI and reconnect. Background runtime timers do not defeat this limit. An explicit user reconnect may start a fresh lifecycle; this still never replays old actions.
20
+
21
+ ## Why existing SSH agents were blocked
22
+
23
+ Tabby's native SSH shell `getChildProcesses()` returns a placeholder empty array, not a remote process list. The plugin correctly treated it as unknown, but had no alternate identity path, so repeated screen reads could never authorize attachment.
24
+
25
+ Attachment now uses the existing authenticated SSH transport's independent exec channel, without pasting a probe into the Agent. On Linux it collects only current-user foreground PIDs, start times, PTYs and `/proc/PID/exe` paths. It then writes a random private OSC marker to candidate PTY output and accepts only the identity whose marker is observed in the exact target session. The marker does not enter terminal stdin or display a visible message. A host-wide executable name or a screen saying “Codex” is insufficient. Every later input repeats the identity proof, and existing ownership, cancellation, session-change, read-only and workflow checks still apply.
26
+
27
+ A proof is bounded to four seconds, 32 KiB and at most 16 candidate processes. Inspection failure retains ownership and sends no answer. Unsupported independent exec, missing/inaccessible procfs, non-native executable names, inaccessible PTYs, nested SSH, containers and terminal multiplexers may remain unsupported; no identity is guessed from a different host or pane. Do not restart a waiting Agent to work around this boundary.
28
+
29
+ ## Verification and loading
30
+
31
+ Regression tests cover incomplete successful-version probes, complete/incomplete candidates, deleted paths, removal between preflight and spawn, explicit/custom/default selector scope, older/unknown/batch layouts, helper failures, bounded and concurrent recovery, unrelated active turns, pending tool replies, unknown execution state, private-thread resumption and no replay. Remote tests cover pane proof, stale identity, failed inspection, ownership and cancellation. A real local Linux PTY probe verifies output-only identity without stdin writes; SSH channel behavior is covered by transport fixtures. These do not establish a real Windows Tabby or the user's current SSH-pane end-to-end result.
32
+
33
+ Update to v0.9.2 or later from Tabby's plugin manager and fully exit/restart Tabby. To load a local source build, run `npm run build`, use Tabby's **Open Plugins Directory**, then run `npm run install:tabby -- "<that directory>"` from this checkout. For another machine, transfer the verified `.tgz`, extract its `package` directory, rename it `tabby-ai-tools`, and place it under the `node_modules` directory inside Tabby’s Open Plugins Directory before restarting. Manual extraction needs no separate Node installation.
34
+
35
+ Protocol reference: [official Codex app-server documentation](https://learn.chatgpt.com/docs/app-server). The implementation uses distinct initialization, thread resume, turn start and completion boundaries; only a completed/failed/interrupted turn event establishes the corresponding observed boundary.
36
+
37
+
38
+ ## Claude local review added on 2026-11-07
39
+
40
+ The same review found cached absolute entrypoints between Claude invocations and over-broad auth-status error classification. Claude now re-resolves/checks its configured selector before every native invocation and keeps its previous native session on preflight failure; submitted inference is not retried. CLI spawn/format failures no longer establish that an account is logged out. This does not establish a shared Codex/Claude helper layout. See [the Claude update-path review](claude-code.md#v092-update-path-review--2026-11-07).
@@ -199,3 +199,8 @@ The scoped russh event-buffer retention adapter is adapted from [tabby-ai-worksp
199
199
  ## Terminal streams and task logs
200
200
 
201
201
  `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.
202
+
203
+
204
+ ### v0.9.2 Codex installation and SSH identity maintenance (2026-11-07)
205
+
206
+ See [installation recovery and SSH process identity](codex-installation-recovery.md) for the fault boundaries, known Windows version/layout rule and loading a local build. Regression sources are `test/client.test.js`, `codex-version.test.js`, `installations.test.js`, `thread-tools.test.js`, `remote-process.test.js`, `tab-tools.test.js`, `task-memory-panel.test.js` and `runtime.test.js`. The real Linux PTY probe is local; transport fixtures and Windows discovery simulations do not prove a real Windows desktop or user SSH session. Run the full suite on Node >=22.19 to include the bundled Pi integration checks. The repair does not add runtime dependencies or require a separate system Node installation for ordinary plugin use.
package/docs/guide.md CHANGED
@@ -100,7 +100,7 @@ sudo -v
100
100
 
101
101
  AI 会发现并核对各连接与终端,将每一步的实际输出作为下一步依据。终端接管无需人工确认;检测到无关前台任务时由 AI 判断后自动中断,SSH 等无法检测进程的终端先读取输出再自主执行。新连接的认证仍可能需要人工处理。多台服务器协作不等于同时执行;定时任务在同一配置目录下串行调度。
102
102
 
103
- 也可以要求 AI 操作终端中的 Codex、Claude 等交互式 Agent:根据其最新输出回答问题、发送按键并读取反馈。已有进程需可检测并通过接管检查;状态未知的远程现有进程不能自动接管。详见[交互式 Agent](scheduled-tasks.md#控制另一个交互式-agent)。
103
+ 也可以要求 AI 操作终端中的 Codex、Claude 等交互式 Agent:根据其最新输出回答问题、发送按键并读取反馈。已有进程需通过接管检查;原生 Linux SSH 现在可通过独立 exec 查询前台进程,并用随机输出标记确认其属于目标 PTY。其他不支持独立 exec、缺少 `/proc` 或无法核验身份的终端仍会停止输入,保留原 Agent。详见[交互式 Agent](scheduled-tasks.md#控制另一个交互式-agent)。
104
104
 
105
105
  以 `/remember 任务描述` 开始的任务在成功核对后保存流程,并提示设置别名;下次发送 `/task1` 即执行。普通任务不自动固化。查看[流程复用与偏好](task-workflows.md)。需要定期执行同一目标时,在对话中明确创建[定时任务](scheduled-tasks.md),保存完整的目标与处理规则。
106
106
 
@@ -368,3 +368,12 @@ Pi 的使用、存储、预算和验证限制见 [Pi runtime](pi.md)。开发与
368
368
  ### 终端增量输出与任务日志
369
369
 
370
370
  `read_tab(mode=delta)` 支持游标分页和 `waitFor=output/completion/either` 等待;交互程序仍需读取当前画面。设置中的“保存任务终端日志”控制当前任务访问终端的本机保存,日志支持分页与字面搜索。缺失、截断、写盘失败和命令结果分别报告,详见 [Terminal streaming and task logs](terminal-logs.md)。
371
+
372
+
373
+ ### CLI 安装不完整与远端 Agent 身份核验(v0.9.2)
374
+
375
+ 发现/启动、选定空间认证、模型访问、工具辅助进程是不同阶段。`--version` 和登录检查成功,不能证明工具辅助程序存在。Windows 原生 0.167.0-alpha.3.2 及以后的工具连接检查相邻 `codex-code-mode-host.exe`;实际启用 Windows 沙箱执行时再检查 `codex-command-runner.exe`。旧版本、未知版本和 npm/batch 启动器不套用这一原生目录规则;明确的运行期辅助启动错误仍可触发有界恢复。
376
+
377
+ 自动选择排除已确认不完整的安装并保留原语义版本排序;显式文件/自定义命令不跳到其他安装。稳定 desktop bin 路径及已删除 desktop codex.exe 的同安装恢复范围保持不变。每次启动重扫,复用连接和提交新回合前检查文件;检查后文件才被删除的竞态由运行期错误识别处理。
378
+
379
+ 同一连接生命周期最多自动重新扫描一次,等待所有已知回合、RPC 和工具回复结束后才更换服务;其他面板仍运行时不重启。连接恢复不自动恢复推理、不重发任务、终端命令或工具调用;原会话在下一次明确的新消息时恢复。执行结果未知或仅观察超时时不自动重启任务。恢复失败给出文件/安装路径及已尝试的扫描,选择完整安装后手动重连;重新登录、改权限或 PATH 不能直接补齐缺失文件。详见 [实现和验证边界](codex-installation-recovery.md)。
@@ -0,0 +1,15 @@
1
+ # v0.9.2 — Native CLI installation recovery and SSH agent identity
2
+
3
+ Codex tool connections validate known Windows companion requirements before choosing a CLI version. Discovery, connection reuse and new-turn admission check installation health; explicit runtime helper failures cover files removed after preflight. One connection rebuild is allowed at a known idle boundary, preserving the original selector, session space, model, permissions and conversation. Concurrent turns, pending tool replies and unknown execution outcomes prevent unsafe replacement. Recovery never replays a task, tool call or terminal command. Older/unknown versions and npm/batch launchers retain their layout boundaries.
4
+
5
+ Claude local re-resolves the original configured CLI and rechecks its required flags and selected-space authentication before each invocation, including goal continuation. Preflight failure retains the last successful native session. Spawn failures and malformed authentication responses produce CLI/protocol diagnostics; only explicit logged-out status establishes logout. Submitted inference is never automatically retried.
6
+
7
+ Existing native agents in Linux SSH panes can be attached through an independent exec channel. PID, start time, foreground group and an output-only random PTY proof establish the target identity, repeated before every input. The probe sends no Agent input and does not restart it. Unsupported exec/procfs, nested SSH, multiplexers and unverifiable identities remain blocked. See [recovery behavior and limits](../codex-installation-recovery.md).
8
+
9
+ The bilingual README, guide, Claude/development documentation, model-facing skill/knowledge and synchronized overview SVG/PNG reflect this patch. The overview contains example connections and task output; the robot GIF and reduced-motion fallback remain available. Runtime dependencies and the default built-in Electron runtime are unchanged; ordinary installation requires no separate Node installation.
10
+
11
+ Validation requires skill bundle/check, typecheck, the full offline suite, production webpack/Pi builds, whitespace checks and installation of the exact release tarball with scripts enabled and no Node on PATH. The GitHub Release records the final results, branch/tag Linux/macOS/Windows CI and tarball SHA-256. The earlier implementation run passed 943 tests (937 passed, six platform skips); the release validation is recorded separately in VALIDATION.md.
12
+
13
+ Windows deletion-race fixtures intercept the batch launcher before cross-spawn rewrites it to `cmd.exe`, ensuring the intended removal really occurs on that platform.
14
+
15
+ Evidence includes simulated Codex/Claude processes, MCP tool round trips, bounded recovery, session retention and no replay, plus a real local Linux PTY proof without stdin writes. It does not establish actual Windows/macOS Tabby operation, the user's SSH pane, real Claude account access or paid model execution. No new paid model smoke test is performed. Future native CLI layout changes may require adapting the known companion rule.
@@ -61,7 +61,7 @@ AI 需通过 `scheduled_task_finish` 提交有验证依据的完成结论或需
61
61
 
62
62
  用户只需要给出任务目标。每次触发后,外层 AI 先读取被控 Agent 的最新输出、当前问题和选择状态,结合目标决定这一步该按什么键、回答什么或继续等待;每次操作后再读一次并重新判断。Agent 改变提示时,后续操作随之改变;流程中不预设按键或回答顺序。`read_tab` 除文字外,还返回光标、当前缓冲区和高亮片段,避免选项状态在纯文本里丢失。`send_keys(tabId,key="Left",shift=true)` 表示 Shift+左方向;另支持方向键、回车、Tab、Shift+Tab、Escape、Ctrl+字母等明确支持的组合。文本回答使用 `send_input(mode=stdin,text=...,submit=true)`。
63
63
 
64
- 已经运行的 Agent 可通过 `attach_process(tabId,expectedProcess="codex",purpose=...)` 获取输入控制,不发送 Ctrl+C,也不重启进程。进程名称必须与当前检测结果匹配;每次向接管的 Agent 输入前再次检查进程、会话和所有权。Agent 退出后不继续向 Shell 发送回答。无法检测已有进程的远程终端暂不支持自动接管,可由本次任务启动目标 Agent 后操作。按键遵循 [xterm 键盘协议](https://invisible-island.net/xterm/ctlseqs/ctlseqs.html),终端模式使用 [xterm.js 公开接口](https://xtermjs.org/docs/api/terminal/classes/terminal/)。不同 Agent 的具体快捷键仍以实际界面反馈为准。
64
+ 已经运行的 Agent 可通过 `attach_process(tabId,expectedProcess="codex",purpose=...)` 获取输入控制,不发送 Ctrl+C,也不重启进程。进程名称必须与当前检测结果匹配;每次向接管的 Agent 输入前再次检查进程、会话和所有权。Agent 退出后不继续向 Shell 发送回答。原生 Linux SSH 可通过独立 exec 查询同一账户的前台原生进程,使用 PID、启动时间、前台组及随机 PTY 输出标记确认目标窗口;每次输入前重新验证。探针不向 Agent 输入、不发送 Ctrl+C、不重启它。缺少独立 exec、`/proc`、PTY 写权限,或嵌套 SSH/tmux 等无法建立直接对应时保留 Agent 并说明限制,不凭进程名或屏幕文字放行。按键遵循 [xterm 键盘协议](https://invisible-island.net/xterm/ctlseqs/ctlseqs.html),终端模式使用 [xterm.js 公开接口](https://xtermjs.org/docs/api/terminal/classes/terminal/)。不同 Agent 的具体快捷键仍以实际界面反馈为准。
65
65
 
66
66
  终端里被控制 Agent 的常规提问可以按用户任务自动回答;这是终端操作的一部分。外层 AI 后端通过 `requestUserInput` 请求决策时,插件会用本次实际模型开启独立的只读决策会话,结合任务目标、最近记录与选项选择最优答案;信息不足时先查询终端、配置、连接或文档。不机械选择第一个选项。答案与依据写入执行记录后回传原会话,继续本次执行,不弹提问。每次决策最多 3 回合、20 次只读查询、60 秒,每次运行最多自动回答 8 次;用量计入本次预算。需要秘密信息、额外授权、查询后仍无法判断或达到限制时停止留档。决策会话不能操作终端或修改配置,定时执行也不扩大原沙箱范围。执行记录包含每次按键的名称、修饰键、回答文本、读屏结果和最终结论。
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-ai-tools",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
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",
@@ -77,3 +77,6 @@ On Windows, leave the Codex CLI executable blank or set it to codex for automati
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
78
 
79
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.
80
+
81
+
82
+ For existing native agents in Linux SSH panes, `attach_process` can verify the foreground PID and PTY using independent exec and an output-only random proof. Read again after attachment and each input; never restart a waiting agent to bypass an identity failure. Consult the operation reference for unsupported topologies and Codex installation recovery boundaries.
@@ -89,11 +89,11 @@ The terminal/application tool namespace remains `tabby_tabs` for compatibility.
89
89
 
90
90
  For controls, always use IDs returned by a fresh `read_tab`. Do not assume a hidden, disabled or modal control is actionable. OS-native dialogs outside the application DOM require the user's interaction. A failure or unavailable provider should lead to fresh discovery or a clear explanation, not repeated identical calls.
91
91
 
92
- Terminal takeover does not ask for user confirmation, including SSH/unknown process enumeration. Inspect the screen before sending commands; keep needed foreground tasks, mark unrelated detected tasks with `foregroundTaskNeeded=false` for automatic interruption. Unknown enumeration alone does not trigger Ctrl+C. Existing process attachment still requires verified process identity; ownership, stop and read-only checks remain enforced.
92
+ Terminal takeover does not ask for user confirmation, including SSH/unknown process enumeration. Inspect the screen before sending commands; keep needed foreground tasks, mark unrelated detected tasks with `foregroundTaskNeeded=false` for automatic interruption. Unknown enumeration alone does not trigger Ctrl+C. Existing process attachment still requires verified process identity; ownership, stop and read-only checks remain enforced. Native Linux SSH agents can be verified through independent exec plus PID/start-time/foreground-group and a random output-only PTY proof. This never sends agent input or restarts it. Unsupported exec/procfs, nested terminals and unverifiable identities remain blocked; do not repeatedly retry identical checks or tell the user to restart an idle agent.
93
93
 
94
94
  ## Local Claude Code engine
95
95
 
96
- The built-in `claude-code` connection runs the user's official, unmodified Claude Code CLI. Users install and log in with `claude auth login` outside chat, and check `claude auth status` for the intended account and billing method. Never read, copy, request or forward subscription tokens. API/cloud authentication may use separate billing. CLI capability and login checks do not perform inference; model aliases are candidates, not entitlement or quality rankings.
96
+ The built-in `claude-code` connection runs the user's official, unmodified Claude Code CLI. Users install and log in with `claude auth login` outside chat, and check `claude auth status` for the intended account and billing method. Never read, copy, request or forward subscription tokens. API/cloud authentication may use separate billing. CLI capability and selected-space login checks do not perform inference and run again before each native invocation using the original configured selector. Launcher/spawn failures or invalid auth-status output indicate CLI/protocol problems, not proven logout. Preflight failure retains the last successful native session; submitted inference is never retried. Model aliases are candidates, not entitlement or quality rankings.
97
97
 
98
98
  Claude Code receives Tabby operations as `mcp__tabby__TOOL` through a temporary authenticated loopback MCP bridge, including scheduled tools and `agent_goal_update`. Built-in local shell/file tools are disabled. Terminal operations still require the existing read-only, approval, ownership and workflow checkpoint checks; no OS sandbox is provided. Administrator-managed CLI policies remain in effect. Use a flat tool name only when that is what the active provider exposes.
99
99
 
@@ -126,3 +126,8 @@ Attachment transfer actions are not reusable workflow steps. Perform the transfe
126
126
  ### Incremental reads and saved logs
127
127
 
128
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.
129
+
130
+
131
+ ### Codex installation faults
132
+
133
+ Distinguish CLI discovery/startup, selected-space authentication, model access and tool-helper startup. Version/login success does not prove helper availability. Native Windows code-mode tool connections validate known companion layouts; older/unknown versions and npm/batch wrappers are not rejected by this native layout rule. Clear auxiliary-process spawn errors can trigger one rescan at a known idle boundary, retaining the configured CLI selector, space, cwd, model and permission constraints. Recovery rebuilds only the connection: it does not replay tools/terminal commands, resume inference or activate a goal. On the next explicit message, resume the original history and inspect real terminal state before modifying anything. An observation timeout means execution may already have occurred. If recovery stops, report the actual missing program/install and attempted scan; use a complete same-distribution installation. Do not suggest re-login, PATH/permission changes or copying helpers between versions as the default fix.