tabby-ai-tools 1.1.0 → 1.2.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.
@@ -1,6 +1,6 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="1800" height="2600" viewBox="0 0 1800 2600" role="img" aria-labelledby="title desc">
2
- <title id="title">Tabby AI Tools v1.1.0 interface illustration — external MCP controlled-input preview, Markdown replies, terminal tools, local login and API connections</title>
3
- <desc id="desc">MCP controlled terminal preview: portable Agent Skill, credential-free service discovery, Settings external AI connections, service disabled by default, local automatic read/write access to all terminal tabs and optional bearer grants, input leases, snapshot/delta/wait, token-free local access with shared grants, and optional bearer clients. Preserved skill conflicts show current instructions; Codex registration, reload and handshake are separate from terminal scope. Example panel only; actual Linux Tabby/Codex verification is documented separately. Tabby AI Tools v1.1.0 shared Agent question navigation: hover or focus to preview, click to jump. Centered compact 1px lines share an 18px right strip with a draggable conversation scrollbar; previews open left and there is no left gutter; theme-aware up/down buttons appear on overflow. Green indicates completion; pale green indicates ordinary interruption. Blue indicates running or external prerequisites; red indicates user Stop or unfinished/limited work. Turns with no known execution result remain neutral; overall goal completion is separate. Markdown output: assistant tables preserve column alignment, code blocks have syntax highlighting and copy buttons and wide content scrolls inside messages. Codex checks known Windows companions and recovers once at an idle boundary without replay; Claude private-login fix: official selected-space login command, no OAuth cache copying; 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. Commands and multiline workflow scripts retain up to 10,000 characters; explicit AI decision steps return to scripted execution after judgment. Conditional recordings preserve interaction intent; local rules run first, with an optional current-connection helper model and rebind-before-resume checkpoints. Settings redesign uses four category buttons, a compact connection picker and an adaptive editor up to 1080px, lifting the default 600px host limit only for AI Tools. Low-frequency CLI paths, custom instructions, session storage, startup/log switches, preferences and helper models default to collapsed; workflows appear before helper configuration. One page scrolls without a nested connection sidebar. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Header actions use matching 32px reconnect/account/collapse buttons and 16px stroke icons; the account disclosure shows sign-in state, supports Arrow Down and closes on outside interactions or Escape; status summaries open details without a duplicate header button. 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. Internal terminal snapshots wake on unread output or reliable completion; observation never proves completion. Terminal output is read on demand without automatic forwarding; an example health table and a copyable code block 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. Compact navigation UI 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 interface illustration — sidebar attachments, terminal tools, local login and API connections</title>
3
+ <desc id="desc">MCP controlled terminal preview: portable Agent Skill, credential-free service discovery, Settings external AI connections, service disabled by default, local automatic read/write access to all terminal tabs and optional bearer grants, input leases, snapshot/delta/wait, token-free local access with shared grants, and optional bearer clients. Preserved skill conflicts show current instructions; Codex registration, reload and handshake are separate from terminal scope. Example panel only; actual Linux Tabby/Codex verification is documented separately. Tabby AI Tools v1.2.1 shared Agent question navigation: hover or focus to preview, click to jump. Centered compact 1px lines share an 18px right strip with a draggable conversation scrollbar; previews open left and there is no left gutter; theme-aware up/down buttons appear on overflow. Green indicates completion; pale green indicates ordinary interruption. Blue indicates running or external prerequisites; red indicates user Stop or unfinished/limited work. Turns with no known execution result remain neutral; overall goal completion is separate. Markdown output: assistant tables preserve column alignment, code blocks have syntax highlighting and copy buttons and wide content scrolls inside messages. Codex checks known Windows companions and recovers once at an idle boundary without replay; Claude private-login fix: official selected-space login command, no OAuth cache copying; Claude rechecks its original CLI selector before every invocation; native Linux SSH agents use an independent PID and output-only PTY identity proof; sidebar model attachments with an Add attachments button, selectable files, thumbnail previews, clickable sent images in message history and separate SSH 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. Commands and multiline workflow scripts retain up to 10,000 characters; explicit AI decision steps return to scripted execution after judgment. Conditional recordings preserve interaction intent; local rules run first, with an optional current-connection helper model and rebind-before-resume checkpoints. Task routing includes independent complexity classification and three configurable execution targets. Settings redesign uses four category buttons, a compact connection picker and an adaptive editor up to 1080px, lifting the default 600px host limit only for AI Tools. Low-frequency CLI paths, custom instructions, session storage, startup/log switches, preferences and helper models default to collapsed; workflows appear before helper configuration. One page scrolls without a nested connection sidebar. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Header actions use matching 32px new session, reconnect, account and collapse buttons and 16px stroke icons; the account disclosure follows the selected private CLI: Codex sign-in state or Claude login command and check/reconnect, supports Arrow Down and closes on outside interactions or Escape; status summaries open details without a duplicate header button. 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. Internal terminal snapshots wake on unread output or reliable completion; observation never proves completion. Terminal output is read on demand without automatic forwarding; an example health table and a copyable code block 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. Compact navigation UI 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,9 +15,9 @@ 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">v1.1.0 / MCP preview</text>
18
+ <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v1.2.1 / MCP preview</text>
19
19
  <text x="48" y="134" font-size="54" font-weight="700" style="fill:#f1f6ff">Your terminals. Working together.</text>
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>
20
+ <text x="50" y="176" font-size="23" font-weight="400" style="fill:#a7b8cb">Codex + Claude Code + Antigravity + 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)"/>
22
22
  <rect x="49" y="211" width="1702" height="42" rx="13" fill="#1c2635"/>
23
23
  <rect x="49" y="235" width="1702" height="18" rx="0" fill="#1c2635"/>
@@ -30,7 +30,15 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
30
30
  <path d="M548 253L548 842" stroke="#3b4b60"/>
31
31
  <text x="72" y="285" font-size="23" font-weight="700" style="fill:#eef4ff">Codex</text>
32
32
  <text x="248" y="284" font-size="16" font-weight="400" style="fill:#8ca0b8">workspace</text>
33
- <g aria-label="Matching reconnect, account and collapse controls — example" fill="none" stroke="#a7b8cb" stroke-width="1.2">
33
+ <g aria-label="New session, reconnect, account and collapse controls — example" fill="none" stroke="#a7b8cb" stroke-width="1.2">
34
+ <g aria-label="New session">
35
+ <title>New session</title>
36
+ <rect x="376" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
37
+ <g transform="translate(384 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
38
+ <path d="M20 11.5a7.5 7.5 0 0 1-7.5 7.5H5l1.7-3.4A7.5 7.5 0 1 1 20 11.5Z"/>
39
+ <path d="M12.5 8.5v6m-3-3h6"/>
40
+ </g>
41
+ </g>
34
42
  <rect x="412" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
35
43
  <rect x="448" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
36
44
  <rect x="484" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
@@ -59,6 +67,8 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
59
67
  <rect x="72" y="379" width="452" height="60" rx="8" fill="#21324b" stroke="#3b4f70"/>
60
68
  <text x="86" y="402" font-size="14" font-weight="600" style="fill:#b9d3f7">You</text>
61
69
  <text x="86" y="426" font-size="16">Check staging services; verify health.</text>
70
+ <rect x="366" y="387" width="142" height="22" rx="5" fill="#273954" stroke="#527095"/>
71
+ <text x="374" y="402" font-size="13" style="fill:#b9d3f7">screenshot.png</text>
62
72
  <rect x="72" y="447" width="452" height="24" rx="5" fill="#1b2839" stroke="#344458"/>
63
73
  <text x="86" y="464" font-size="14" style="fill:#a7b8cb">› Thinking · Readable summary</text>
64
74
  <text x="450" y="464" font-size="12" style="fill:#8ae6c2">Ended</text>
@@ -140,16 +150,17 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
140
150
  <text x="510" y="942" font-size="15">External AI (MCP)</text>
141
151
  <text x="718" y="942" font-size="15">General</text>
142
152
  <rect x="72" y="967" width="810" height="31" rx="5" fill="#233246" stroke="#3c5068"/>
143
- <text x="86" y="988" font-size="16">Select connection: Codex (local login)</text>
144
- <text x="914" y="988" font-size="15">+ Add API</text>
145
- <text x="72" y="1030" font-size="16" font-weight="600">Codex · Default</text>
146
- <text x="302" y="1030" font-size="15" style="fill:#a7b8cb">Model / approvals / sandbox</text>
153
+ <text x="86" y="988" font-size="16">Select connection: Antigravity (local login)</text>
154
+ <text x="899" y="988" font-size="14">+ Add API</text>
155
+ <text x="977" y="988" font-size="14">Task routing</text>
156
+ <text x="72" y="1030" font-size="16" font-weight="600">Antigravity ACP</text>
157
+ <text x="302" y="1030" font-size="15" style="fill:#a7b8cb">Local sign-in · CLI defaults</text>
147
158
  <rect x="72" y="1045" width="999" height="31" rx="5" fill="#1c293a" stroke="#3c5068"/>
148
- <text x="86" y="1066" font-size="14">› CLI path &amp; directory</text>
149
- <text x="380" y="1066" font-size="14">› Custom instructions</text>
150
- <text x="684" y="1066" font-size="14">› CLI session storage</text>
159
+ <text x="86" y="1066" font-size="14">CLI path: agy</text>
160
+ <text x="380" y="1066" font-size="14">Model: CLI default</text>
161
+ <text x="684" y="1066" font-size="14">Reasoning: CLI default</text>
151
162
  <text x="72" y="1100" font-size="14" style="fill:#a7b8cb">General: default connection / language · Startup &amp; logs collapsed</text>
152
- <text x="72" y="1121" font-size="12" style="fill:#a7b8cb">Drafts retained across categories · Workflows first; preferences and helper model expand on demand</text>
163
+ <text x="72" y="1121" font-size="14" style="fill:#a7b8cb">Example defaults · Codex Luna / Terra / Sol · Claude Code Haiku / Sonnet / Opus</text>
153
164
  <rect x="1122" y="878" width="630" height="254" rx="12" fill="#172130" stroke="#35475c"/>
154
165
  <text x="1146" y="915" font-size="22" font-weight="650" style="fill:#edf5ff">Pi SDK / Example connection draft</text>
155
166
  <text x="1146" y="946" font-size="16" style="fill:#a7b8cb">SDK bundled · Tabby built-in Node by default</text>
@@ -189,24 +200,30 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
189
200
  <text x="72" y="1507" font-size="16" style="fill:#8ae6c2">Expand to Save / Discard / Preview · Existing behavior retained</text>
190
201
  <rect x="1100" y="1372" width="652" height="172" rx="12" fill="#172130" stroke="#35475c"/>
191
202
  <text x="1124" y="1403" font-size="21" font-weight="650">Codex / Claude Code · Private history</text>
192
- <text x="1124" y="1437" font-size="16" style="fill:#a7b8cb">Tabby space / system compatibility</text>
203
+ <text x="1124" y="1437" font-size="16" style="fill:#a7b8cb">Account menu follows the selected private CLI</text>
193
204
  <text x="1124" y="1470" font-size="16">Claude: generate / copy command / check + reconnect</text>
194
205
  <text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">Codex browser login / Claude official login command</text>
195
206
  <rect x="48" y="1562" width="1704" height="248" rx="12" fill="#172130" stroke="#35475c"/>
196
- <text x="72" y="1596" font-size="22" font-weight="650">Clipboard attachments / click-to-preview example</text>
207
+ <text x="72" y="1596" font-size="22" font-weight="650">Sidebar attachments · example</text>
197
208
  <rect x="72" y="1620" width="72" height="72" rx="8" fill="#243247" stroke="#4c657f"/>
198
209
  <path d="M85 1677L103 1655L117 1668L131 1647" fill="none" stroke="#8ae6c2" stroke-width="4"/>
199
- <text x="164" y="1645" font-size="19">screenshot.png · 128 KiB ×</text>
200
- <text x="164" y="1676" font-size="16" style="fill:#a7b8cb">Ctrl+V / Cmd+V · Click thumbnail to enlarge · Esc to close</text>
210
+ <text x="164" y="1645" font-size="19">screenshot.png · 128 KiB</text>
211
+ <text x="164" y="1676" font-size="16" style="fill:#a7b8cb">Add attachments, paste or drop · Click thumbnail to preview</text>
212
+ <rect x="560" y="1627" width="19" height="19" rx="3" fill="#27654f" stroke="#8ae6c2"/>
213
+ <path d="M564 1636L568 1640L575 1631" fill="none" stroke="#e8fff5" stroke-width="2"/>
214
+ <text x="588" y="1643" font-size="17">Send with message</text>
215
+ <rect x="900" y="1620" width="176" height="36" rx="6" fill="#263a4e" stroke="#4c657f"/>
216
+ <text x="918" y="1644" font-size="17">Add attachments</text>
217
+ <text x="1100" y="1644" font-size="17" style="fill:#8ae6c2">Attachments use the current connection</text>
201
218
  <rect x="72" y="1714" width="1010" height="10" rx="5" fill="#263a4e"/>
202
219
  <rect x="72" y="1714" width="686" height="10" rx="5" fill="#8ae6c2"/>
203
220
  <text x="1110" y="1724" font-size="18" style="fill:#8ae6c2">68% · Native target-tab progress</text>
204
221
  <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>
205
- <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>
222
+ <text x="72" y="1790" font-size="15" style="fill:#a7b8cb">Supported images, UTF-8 files and PDFs can be sent from the sidebar. SSH upload remains a separate action.</text>
206
223
  <text x="49" y="2538" font-size="16" font-weight="400" style="fill:#8ca0b8">INTERFACE ILLUSTRATION · Example connections and task output; not a running screenshot.</text>
207
224
  <text x="49" y="2570" font-size="14" font-weight="400" style="fill:#8ca0b8">Appearance varies with your Tabby theme, window size and configured connections.</text>
208
225
  <rect x="48" y="1830" width="1704" height="145" rx="12" fill="#172130" stroke="#35475c"/>
209
- <text x="72" y="1866" font-size="22" font-weight="650">Output-aware terminal reads and task logs — v1.1.0 example</text>
226
+ <text x="72" y="1866" font-size="22" font-weight="650">Output-aware terminal reads and task logs — v1.2.1 example</text>
210
227
  <text x="72" y="1901" font-size="17" fill="#a7b8cb">New output wakes reads · 50 ms coalescing / 200 ms cap · Output is not completion</text>
211
228
  <text x="72" y="1934" font-size="17" fill="#8ae6c2">Settings: Save task terminal logs · Local retention · Paging and literal search</text>
212
229
  <text x="72" y="1960" font-size="15" fill="#a7b8cb">Workflows: full scripts up to 10,000 characters · Fixed checks run locally · AI decisions at marked steps</text>
@@ -215,6 +232,12 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
215
232
  <text x="72" y="2063" font-size="17" style="fill:#a7b8cb">Codex: clear unavailable saved CLI · Auto-discover · Check companions · No task replay</text>
216
233
  <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>
217
234
  <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>
235
+ <g aria-label="Sidebar example after startup opens a new conversation">
236
+ <rect x="1016" y="2010" width="710" height="123" rx="8" fill="#1c2b3e" stroke="#3b526c"/>
237
+ <text x="1034" y="2040" font-size="15" style="fill:#9fb1c7">RESTART RECOVERY · EXAMPLE SIDEBAR NOTICE</text>
238
+ <text x="1034" y="2073" font-size="19" font-weight="650" style="fill:#8ae6c2">New session created</text>
239
+ <text x="1034" y="2103" font-size="16">The previous task blocked recovery. Find the original session in history.</text>
240
+ </g>
218
241
 
219
242
  <g aria-label="MCP controlled terminal preview settings example">
220
243
  <rect x="48" y="2174" width="1704" height="318" rx="12" fill="#172130" stroke="#35475c"/>
Binary file
Binary file
@@ -1,6 +1,20 @@
1
1
  # Files, clipboard images and SSH transfers
2
2
 
3
- Paste a screenshot or copied file directly into the AI Tools composer with **Ctrl+V** (**Cmd+V** on macOS), or drag files into it. Attachments appear inline above the input with their name, size and a remove button; pasted images show thumbnails. Click a thumbnail (or focus it and press Enter/Space) to open a larger image preview, sized to the window. Press Esc, use the close button or click the backdrop to close it and return focus to the thumbnail. Changing conversations or removing the attachment closes its preview. Plain text pastes normally.
3
+ Choose **Add attachments**, paste a screenshot or copied file with **Ctrl+V** (**Cmd+V** on macOS), or drag files into the AI Tools composer. The composer displays names, sizes and image thumbnails. Select a thumbnail to enlarge it. Press Esc, use the close button or click the backdrop to close the preview and return focus to the thumbnail. Plain text pastes normally.
4
+
5
+ ## Send attachments to the sidebar model
6
+
7
+ **Send with message** selects attachments for the next turn on the current connection. Adding a file in the composer selects it. Files downloaded over SSH and files already in the cache stay unselected until you choose them. You can send attachments by themselves or with a prompt. A message with attachments uses the current connection and skips automatic task classification. A submitted image moves to its message and frees a slot in the composer. Click the image name in that message to open it, including after reopening the conversation. Other cached files remain available for the next message or an SSH transfer.
8
+
9
+ | File | Connections |
10
+ | --- | --- |
11
+ | PNG, JPEG, WebP | Codex and Claude Code, OpenAI and Claude APIs, compatible custom HTTP endpoints, and Pi catalog models marked as image-capable. The chosen model must support images. |
12
+ | UTF-8 text, including code, logs, Markdown and CSV | All sidebar backends. The model receives the file contents with its name. |
13
+ | PDF | OpenAI Responses and Claude Messages, including compatible custom Responses endpoints. Use a model that supports document input. |
14
+
15
+ The model input limit is 6 MiB per message, with up to 128 KiB per text file and 256 KiB of text files per message. The selected service may impose smaller limits. Files outside the supported formats can still use the SSH transfer workflow. Tabby keeps a local reference to each submitted image by conversation and turn. The preview stays available after restoring or switching connections while that local image exists. Supported image data still present in older API or Codex histories can also be opened. Older records with only a filename keep their text. Cross-connection handoff sends the new model filenames and conversation text. Removing a staged file does not change messages already submitted to a model.
16
+
17
+ ## Transfer attachments using SSH
4
18
 
5
19
  For SSH uploads and downloads, ask the assistant to use the attachment tools with the exact connected native SSH terminal and an existing absolute upload parent directory (default `/tmp` on POSIX servers). The plugin creates a unique private subdirectory and never overwrites an existing project file. Downloads require the remote file's absolute path and are stored in the attachment cache. Query transfer status or request cancellation through the assistant; the target tab also shows Tabby's native progress bar. Integrity verification finishes before an operation reports success. Closing the sidebar does not stop a transfer.
6
20
 
@@ -14,11 +28,11 @@ An upload accepts an attachment ID from the current conversation. Its optional `
14
28
 
15
29
  Transport order is the existing connection's SFTP, independent SSH exec with raw byte streams, independent exec with base64, then framed base64 in a positively identified idle Shell. Only a missing capability permits fallback. Permission errors, full disks, checksum failures and ambiguous results do not bypass those checks by trying another transport. Independent channels reuse SSH authentication and jump-host handling, without X11, a separate login, a file panel or a remote Agent installation.
16
30
 
17
- Where independent exec is available, SFTP uploads create their private directory with `umask 077` on that connection, avoiding a directory SETSTAT incompatibility in the host's russh 0.1.38. File contents still use SFTP. SFTP verifies uploads by streaming them back and comparing SHA-256. Downloads reread the source and compare metadata and digest before publishing the local cache entry. Exec and PTY modes require an existing POSIX Shell, `base64` where used, and `sha256sum` or `shasum`; no runtime is installed. Limits are 100 MiB per file, 20 MiB / 40 million pixels per composer image, and eight attachments / 200 MiB per conversation. Transfers have a two-minute timeout. Payload capture is separate from ordinary screen snapshots.
31
+ Where independent exec is available, SFTP uploads create their private directory with `umask 077` on that connection, avoiding a directory SETSTAT incompatibility in the host's russh 0.1.38. File contents still use SFTP. SFTP verifies uploads by streaming them back and comparing SHA-256. Downloads reread the source and compare metadata and digest before publishing the local cache entry. Exec and PTY modes require an existing POSIX Shell, `base64` where used, and `sha256sum` or `shasum`; no runtime is installed. Limits are 100 MiB per file, 20 MiB / 40 million pixels per composer image, and eight staged attachments / 200 MiB per conversation. Transfers have a two-minute timeout. Payload capture is separate from ordinary screen snapshots.
18
32
 
19
33
  ## Remote Codex and other terminal Agents
20
34
 
21
- Independent SFTP/exec can upload while Codex keeps running. Copy the resulting path and give it to the intended Agent through its supported image/file input. Uploading a picture is not proof that the Agent attached or read it. This release does not automatically press Enter, alter a terminal draft, attach an image to an existing Codex conversation or send it to the sidebar model.
35
+ Independent SFTP/exec can upload while Codex keeps running. Copy the resulting path and give it to the terminal agent through its supported image or file input. A verified upload confirms delivery to the remote filesystem. Use **Send with message** in the sidebar when the intended recipient is the sidebar model.
22
36
 
23
37
  The target is the **outer SSH host and account**. Nested SSH, containers, switched users and Agent sandboxes may not see that path. Confirm access before reporting delivery. On servers without `/tmp`, choose an appropriate existing parent; exec/PTY fallbacks are POSIX-only.
24
38
 
@@ -28,4 +42,4 @@ Cancellation closes this operation's resources, not the shared SSH connection. A
28
42
 
29
43
  ## Validation scope
30
44
 
31
- Fixtures exercise byte-exact SFTP, real local POSIX exec and Linux PTY round trips, changing files, owner isolation, request deduplication and native progress contention. Local subprocess fixtures are not authenticated SSH network tests. Actual desktop/SSH evidence is recorded separately in `VALIDATION.md` and the release notes; tests make no paid model requests.
45
+ Fixtures check the raw model input for different protocols, same-connection history, attachment ownership and integrity, byte-exact SFTP, local POSIX exec, Linux PTY transfers, and progress contention. Desktop and SSH evidence is recorded separately in `VALIDATION.md` and the release notes. Tests use local fixtures without paid model requests.
@@ -4,18 +4,30 @@
4
4
 
5
5
  粘贴、图片预览与附件传输回归直接运行 `npm run test:attachments`,无需切换 Node。`npm test` 自动包含这些用例;真正启动 Pi 的测试会检查当前 Node,低于 22.19 时显示明确的跳过原因。API 压缩测试使用独立的 API 夹具,不启动 Pi,也不因 Pi 的版本要求跳过。完整 Pi 集成验证仍由 Node 22.19+ 的开发环境/CI 执行;脚本不下载或切换运行时。
6
6
 
7
- 设置页已本地实现四分类导航、全宽连接编辑与低频分组折叠,尚未发布;跨 Provider 自动任务分配、统一保存和定时任务表单编辑仍待实现。界面沿用宿主主题与单一页面滚动,不引入远程字体或运行依赖。 AI Tools 宿主元素使用专属类,父级宽度覆盖仅匹配包含该元素的 `settings-tab-body`:从宿主默认的 600px 扩展至最多 1080px;其他设置页保持原限制。界面验证须覆盖深浅主题、窄宽窗口、键盘展开与导航、API/指令/会话空间草稿保留;MCP 使用原有独立组件。规划和研究资料仅保留在本地,不随插件分发。功能与发布状态以实际代码和发布说明为准。
7
+ 设置页已本地实现四分类导航、全宽连接编辑与低频分组折叠,尚未发布;跨连接自动任务分配已接入交互发送入口。统一保存和定时任务表单编辑仍待实现。界面沿用宿主主题与单一页面滚动,不引入远程字体或运行依赖。 AI Tools 宿主元素使用专属类,父级宽度覆盖仅匹配包含该元素的 `settings-tab-body`:从宿主默认的 600px 扩展至最多 1080px;其他设置页保持原限制。界面验证须覆盖深浅主题、窄宽窗口、键盘展开与导航、API/指令/会话空间草稿保留;MCP 使用原有独立组件。规划和研究资料仅保留在本地,不随插件分发。功能与发布状态以实际代码和发布说明为准。
8
8
 
9
9
  v0.4.1 已优先加入 `provider: custom`:可选 `apiFormat: chat-completions | responses`,缺省为 Chat Completions。`apiPath` / `usesResponsesApi` 统一推理路径与工具结果格式;模型发现仍用 `/models`。`keySource: none` 仅限自定义连接,密钥服务返回空值且请求省略认证头。自定义协议加入历史指纹,既有供应商指纹不变;切换协议通过已有通用上下文导入路径处理。设置中变更协议、端点或密钥会取消并清除旧连接测试和模型列表,旧异步结果不能覆盖新状态。自定义接口不推断厂商 Thinking 参数,不硬编码模型能力。
10
10
 
11
11
  `test/api-agent.test.js` 覆盖自定义 Chat Completions 的现有 Agent 回归、Responses 连续工具往返与恢复、协议切换、无密钥模型发现与流式回复、配置失效及原供应商指纹兼容。全部使用本地 HTTP/SSE 夹具;真实第三方服务和桌面端需另行验证。协议参考:[OpenAI Chat Completions](https://developers.openai.com/api/reference/resources/chat/subresources/completions/methods/create)、[Responses 迁移与原生历史](https://developers.openai.com/api/docs/guides/migrate-to-responses)。
12
12
 
13
- ## Claude 独立空间认证(未发布)
13
+ ## Antigravity ACP 与侧栏连接
14
+
15
+ `test/antigravity.test.js` 通过本地 ACP 子进程覆盖认证探测、模型列表、默认及显式选模、附件、会话续接、协议版本拒绝、原生审批取消和 30 分钟模型目录缓存。缓存夹具覆盖切换连接复用、到期后后台去重、旧选项快照及认证失效。`test/user-input.test.js` 验证连接失败时的草稿/会话保留及旧模型列表隔离。`test/task-memory-panel.test.js` 验证顶部新会话入口和重复点击保护。真实账号、桌面与自动化夹具证据分别记录。 [配置说明](antigravity.md)
16
+
17
+ ## Claude 独立空间认证
14
18
 
15
19
  Claude 的 connect、设置检查、模型探针和认证恢复不再读取或复制系统 OAuth 缓存。过期后通过官方 `auth login` 在同一 `CLAUDE_CONFIG_DIR` 重新登录;认证提示提供可复制命令及检查重连。恢复禁止打断运行中回合,不删除 native session、不重放推理或工具。`test/session-space.test.js`、`test/claude-code.test.js`、`test/task-memory-panel.test.js` 覆盖系统缓存不导入、失败保留会话、原 selector 更新、活动任务保护和切换失败目标的命令/草稿恢复。真实账号、keychain、桌面、多平台及 SSH 仍需实测;离线夹具不代表这些通过。
16
20
 
17
21
  ## 本地开发
18
22
 
23
+ ### 任务复杂度路由
24
+
25
+ `task-routing.ts` 负责严格判定协议、两次调用上限和取消。侧栏在空闲任务边界校验配置和会话,向目标后端传入仅本次执行用的模型参数。跨连接复用便携上下文交接,保存提交回执和会话指向。未配置档位沿用当前连接,Codex 依据 model/list 在发送前核对,Claude Code 交由本机 CLI 解析型号别名。策略在 Tabby ConfigProxy 中作为整体保存,旧配置中的空档保持自动,已有显式值优先。回执不保存原始任务文本、对话或凭据。恢复时读取记录,提交状态未知时保留核验提示。凭据由各后端单独处理。
26
+
27
+ 用 `npx webpack --mode development` 构建开发版侧栏。其 **Debug** 按钮从交互式发送入口记录输入,并通过判定观察事件、跨连接交接与回合提交更新面板。目标模型以传给执行后端的配置为准,回合提交成功以 `startTurn` 返回为准。关闭、手动换会话或销毁面板时清除本地内容,流式判定回复只更新观察界面。`npm run build` 和 `npm pack` 使用生产构建,编译时移除按钮和面板,同时关闭调试数据采集。
28
+
29
+ `test/api-agent.test.js` 使用本地 HTTP 验证判定与执行,面板用例覆盖晚到结果和停止,Pi 与 Claude 分别验证各自的隔离执行路径。Codex CLI 0.171.0 离线探针仍观察到原生提问工具,故其本机登录仅可用作执行连接。
30
+
19
31
  ### Markdown 输出
20
32
 
21
33
  `markdown.ts` 使用固定版本的 `markdown-it` 解析正文,禁用原始 HTML。表格的列对齐转为 CSS class,以保留 Angular 15 清理后的排版;图片转为文字链接,外部 URL 只允许 HTTP、HTTPS 和 mailto。原文留在 `ChatEntry.text`,不把渲染 HTML 写入历史或模型上下文。
@@ -28,6 +40,8 @@ Markdown 解析器与高亮器随 webpack 主包打包,仅为构建依赖,
28
40
 
29
41
  ### 对话与终端输出
30
42
 
43
+ 图片发送得到回合 ID 后,将已验证缓存图片的元数据标记为已发送,输入区只列暂存文件。历史按原会话及回合关联,在预览时重新校验内容及所有权。跨连接只交接本地显示关联和模型可用的文本。可读取旧历史中的本地图片数据,远程 URL 和文件路径不用于内联预览。面板回归覆盖恢复、切换、发送失败保留及预览。
44
+
31
45
  对话过程展示由 `chat-activity.ts` 统一转换实时条目与历史条目。思考摘要/文本增量与工具开始、完成事件更新同一记录;原生 `details/summary` 默认折叠,正文按需挂载,`trackBy` 保留展开状态。API、Claude Code 和 Pi 仅转发服务提供的可展示文本,不渲染加密载荷;展示记录与模型原生历史分开保存。默认终端快照可由规范化的新输出或 OSC 133 的 C→D→A 完成序列提前唤醒,保留约 50 ms 渲染/合并时间、持续输出约 200 ms 合并上限和原 waitMs 上限。控制状态保存 observedCursor,在输入前重置、同 owner 成功快照后推进(屏幕读取前的高水位),因此读屏前已到达的输出不必继续空等,其他 owner 不消费该游标。只订阅过滤后的 output.updates$,遵循附件遮蔽;取消、会话更换/关闭清理等待订阅。快照返回 wakeReason/waitedMs;目录和进程元数据并行读取,读取后仍复核 session。输出唤醒只触发观察;多行中间提示符不释放批次锁,新命令、会话更换或结束会清除旧完成记录。
32
46
 
33
47
  2026-11-01 本地 Linux 验证:Node 22.19.0 下完整测试 771 项通过、6 项平台相关跳过;类型检查和生产构建通过。新增夹具覆盖完成前/完成后读屏提前返回、伪提示符与多行批次不提前返回、取消订阅清理、工具结果未到时的过程显示、思考展示上限和历史恢复。当前默认 Node 20 会导致两项 Pi 夹具在运行时版本检查处失败,完整验证使用临时 Node 22.19.0。未调用收费模型,也未验证真实 Tabby 桌面或本次提交的跨平台 CI。
@@ -61,12 +75,16 @@ Tabby 在应用内安装、升级插件后,已由[内置插件管理器](https
61
75
 
62
76
  ## 介绍页效果图
63
77
 
64
- `docs/assets/overview.svg` 是功能界面示意的可编辑源文件,`overview.png` 是中英文 README 使用的导出图。功能变化时一起更新,图中版本号须与发布版本一致,示例任务、连接与输出应明确标注;示意图不能代替真实 Tabby 桌面验证。Linux 上可用 `gdk-pixbuf-thumbnailer -s 1800 docs/assets/overview.svg docs/assets/overview.png` 导出,也可使用支持 SVG 的图形工具,导出后检查字体、布局和图片引用。
78
+ 中英文 README 共用 `docs/assets/two-terminal-demo.gif` 和减弱动态效果时使用的 `two-terminal-demo.png`。6 秒 GIF 由真实 Tabby 界面截图合成。隔离的 OpenAI 兼容 HTTP 测试后端返回工具调用,真实终端先把 `brief.md` 从 Tab 1 复制到 Tab 2,再把 `checks.txt` 复制回来。演示脚本读取两个终端的输出,并逐字节核对两份副本。重新录制时使用示例文件和隔离配置,检查两方向的操作、最终结果、文字可读性和静态回退。`overview.svg` 和 `overview.png` 保留为可编辑的界面示意及导出图。
79
+
80
+ `ssh-command-demo.gif` 展示用户在侧栏发送指令、在 Tabby 原生 SSH 会话中执行 `./check-health`,再从终端读回 HTTP 200。录制使用隔离的回环 OpenSSH 服务和真实响应健康检查的 HTTP 夹具,侧栏模型响应由本地测试后端提供。`ssh-command-demo.png` 是减弱动态效果时使用的最终结果画面。
65
81
 
66
- 标题下的 `robot-multitask.gif` 为 1024 × 512、12 帧的装饰动画,在 README 中按 560 × 280 显示;同尺寸的 `robot-multitask.png` 用于减少动态效果时的静态回退,高清生成提示词和编码参数保存在同目录的 `robot-multitask.prompt.md`。两类图片用途不同,更新功能效果图时保留标题动画。
82
+ 标题下的 `robot-multitask.gif` 为 1024 × 512、12 帧的装饰动画,在 README 中按 176 × 88 显示;同尺寸的 `robot-multitask.png` 用于减少动态效果时的静态回退,高清生成提示词和编码参数保存在同目录的 `robot-multitask.prompt.md`。两类图片用途不同,更新功能效果图时保留标题动画。
67
83
 
68
84
  ## 测试范围与平台说明
69
85
 
86
+ `test/thread-tools.test.js` 覆盖 Codex 恢复旧会话时的写入冲突、指定回合中断、历史保留与新会话回退。`test/claude-code.test.js` 使用离线 CLI 子进程覆盖系统与独立空间的双窗口锁冲突、退出清理和历史恢复。显式选择历史会话沿用原恢复流程。
87
+
70
88
  `test/sidebar-keyboard.test.js` 覆盖侧栏键盘事件隔离、原生默认行为保留、选中文字时的焦点转移和销毁清理。`test/api-agent.test.js` 覆盖空/加密推理记录过滤、真实摘要流式显示与恢复历史;`test/thread-tools.test.js` 核对 Codex 请求开启摘要。浏览器夹具与本地 HTTP 服务用于回归,不消耗真实模型额度;完整 Tabby 桌面中的终端及剪贴板行为仍需实际验证。
71
89
 
72
90
  运行 `npm test`、`npm run typecheck` 和 `npm run build`。自动测试覆盖显式路径和命令名兼容、PATH 优先级、PATH 无 codex、大小写环境变量、哈希目录缺文件、按文件时间选择、升级后重新扫描、无效显式路径不降级,以及 JSONL 握手、进程重用、流式通知和 stderr。`test/executable.test.js` 在 Linux 上模拟 Windows 定位规则;`test/windows-launch.test.js` 仅在真实 Windows 上执行含空格 exe/cmd/bat 和无 PATH 自动定位管道测试,其他平台明确跳过。exe 夹具使用真正的 Node PE 可执行文件配合测试用 preload;它验证启动方式,不代替真实 Codex 测试。
@@ -204,7 +222,7 @@ Tests use offline process/MCP fixtures and temporary homes. The system Codex CLI
204
222
 
205
223
  AttachmentStore owns immutable private snapshots; AttachmentTransferService owns bounded operations, idempotency and UI events. Model tools return receipts rather than base64. attachment-transport.ts streams SFTP and independent exec, with SHA-256 verification before publication; attachment-pty.ts provides the guarded POSIX fallback. Native tab progress uses the actual percentage rendering of TabHeader (0–100), despite the host type comment claiming 0–1. Other progress producers take precedence. Do not infer an Agent attached an image from an upload receipt.
206
224
 
207
- The composer accepts clipboard files and drag-and-drop directly, displays inline thumbnails and removal, and has no attachment button or transfer popup. Cached raster previews enforce conversation ownership and are restored asynchronously; SSH transfers remain available through model tools.
225
+ The composer supports adding, pasting and dropping files. The per-file selection applies only to the next submission on the active connection. Before dispatch, the host checks ownership, size and SHA-256 against the cache. Each model adapter handles its native input format. Portable connection handoff carries filenames without file contents. SSH transfer tools operate on the separate cache and return receipts.
208
226
 
209
227
  Run test/attachments.test.js for filesystem/SFTP fixtures, actual POSIX subprocess and Linux PTY round trips, changing files and owner/idempotency/progress checks. Tests never call a real model. Native desktop, authenticated SSH, Windows/macOS desktop and simulated cross-platform cases must be reported separately.
210
228
 
@@ -252,7 +270,9 @@ renderer 同时持有独立 lease 截止计时器:即使 main 无法再投递
252
270
 
253
271
  ### v1.0.0 review fixes
254
272
 
255
- Codex browser sign-in retains completion notifications received before the login-start await resumes, including a reply and notification in one stdout chunk. Cancellation still prevents accepting a completed login. MCP HTTP body iteration retains the socket on early body-limit exit and drains unread bytes after the adapter responds, so oversized requests can receive HTTP 413 rather than a connection reset. Regressions cover real fixture subprocess output and known-length/chunked HTTP requests; these do not establish real account or desktop acceptance.
273
+ Codex browser sign-in retains completion notifications received before the login-start await resumes, including a reply and notification in one stdout chunk. Cancellation still prevents accepting a completed login. MCP returns HTTP 413 for an oversized declared request body while draining incoming bytes on the existing connection. Chunked requests retain the socket on early body-limit exit and drain unread bytes after the adapter responds. Regressions cover real fixture subprocess output and known-length/chunked HTTP requests; these do not establish real account or desktop acceptance.
256
274
 
257
275
 
258
276
  Header actions share `.codex-header-action`: 32px border-box targets, 16px inline SVGs, theme colors, stable hover/pressed/focus states and reduced-motion progress. The optional Codex account disclosure retains outside/focus dismissal and Escape return-focus; Arrow Down opens it and focuses the first enabled action. Reconnect retains existing busy/request guards. Collapse keeps the running session. Validate actual button rectangles and menu actions in both themes, narrow panes and RTL; stub authentication and reconnection in UI checks to avoid account changes or paid model requests.
277
+
278
+ CLI account-menu regression: verify Codex → Claude Code → Codex and API transitions, including stale failed-target authentication warnings. The header targets the current backend; Claude uses the existing selected-space login-command/check dialog and never inherits Codex account status. Keep busy/request guards and verify draft preservation with no task/tool replay.
package/docs/guide.md CHANGED
@@ -124,6 +124,26 @@ AI 会发现并核对各连接与终端,将每一步的实际输出作为下
124
124
 
125
125
  语言文件随插件分发,使用期间无需联网翻译。仅翻译插件的界面和提示;用户消息、模型回复、终端输出、连接名称和保存的任务内容保留原文。部分语言由机器翻译提供初稿,欢迎提交校对。默认 README 为[英文](../README.md),另提供[简体中文](../README.zh-CN.md)。
126
126
 
127
+ ## Antigravity 本机连接
128
+
129
+ 安装官方 Antigravity CLI,在本机运行 `agy acp --login`。在侧栏选择 **Antigravity(本机登录)**;模型与推理强度留空时沿用 CLI 默认值,也可打开模型选择器读取 CLI 当前提供的选项。首次成功读取后,同一 CLI 和工作目录的列表缓存 30 分钟。到期后仍可用上次的列表选模,后台刷新完成后,下次打开显示新列表。连接失败时,侧栏保留之前的会话和输入,显示所选连接的错误,可重连该连接或切回原连接。 [Antigravity 配置](antigravity.md)
130
+
131
+ ## 按任务难度自动选模
132
+
133
+ 在 **设置 → AI Tools → 连接与模型 → 任务分配** 启用自动选模。选定判定器,执行档位可保留 **随当前连接**,也可单独指定已保存的连接、模型 ID 和推理强度。关闭自动选模可使用侧栏的手选连接与模型。自动模式下,点击输入区的 **本次固定模型** 可保留难度判定,把后续执行固定在当前手选模型。
134
+
135
+ | 任务难度 | Codex 本机登录 | Claude Code 本机登录 |
136
+ | --- | --- | --- |
137
+ | 简单 | GPT-6 Luna · `high` | `haiku` · CLI 默认 |
138
+ | 中等 | GPT-6.1 Terra · `high` | `sonnet` · `high` |
139
+ | 困难 | GPT-6.2 Sol · `high` | `opus` · `high` |
140
+
141
+ 已保存的单档设置优先。Codex 在提交前检查当前 CLI 的模型列表,缺少 GPT-6.2 Sol 时先查 GPT-6.1 Sol,其他缺失的内置档位使用 CLI 报告的默认模型和强度。Claude Code 按本机版本和账号解析别名。API 连接的未配置档位沿用当前连接的模型与强度。 [Codex 模型](https://learn.chatgpt.com/docs/models) · [Claude Code 型号与强度](https://code.claude.com/docs/en/model-config)
142
+
143
+ 判定器收到任务文本及最多六条近期对话片段,会产生单独的模型用量。可使用已保存的 API、Pi 或支持无工具模式的 Claude Code CLI 作为判定器。Codex 本机登录可作为执行连接,判定阶段当前需要另选连接。跨连接时,当前会话经现有的上下文交接方式转给选定连接。勾选随消息发送的附件时,此回合跳过自动选模并使用当前连接。需要换模型时,先选择目标连接,再在目标会话添加或选择文件。
144
+
145
+ 判定失败会保留草稿。点 **停止** 可取消判定或中止已提交的回合。提交结果未知时,核对会话与终端状态后再继续。现有任务的追加指令、继续目标、已录制流程和定时任务沿用原执行路径。
146
+
127
147
  ## API 密钥与切换模型
128
148
 
129
149
  1. 打开 **Settings → AI Tools → 连接与模型 → + 添加 API 连接**,选择供应商并为连接命名。
@@ -210,7 +230,7 @@ AI Tools 默认在启动 Tabby 时自动展开侧栏,使用默认连接,无
210
230
 
211
231
  - 默认读取当前本地终端的工作目录;设置页可指定固定目录。每个目录保存一个 Codex 线程 ID;收起侧栏后面板仍保留,重启 Tabby 后调用 `thread/resume` 恢复上下文。首次升级到支持全标签工具的版本时会为该目录创建新线程,旧线程仍保存在 Codex 本地历史中。
212
232
 
213
- - 再次点击工具栏图标会打开同一侧栏;切换目录时复用对应目录的面板和线程。Codex 侧栏独立位于普通标签栏左侧,右边缘可以拖动改变宽度,宽度会记住。灰色按钮表示连接或会话恢复中,绿色表示会话已就绪,红色表示未连接,点击可重连。输入 `new` 或 `/new` 会创建新线程,旧会话和目标保留,可用 `/resume` 恢复。
233
+ - 再次点击工具栏图标会打开同一侧栏;切换目录时复用对应目录的面板和线程。Codex 侧栏独立位于普通标签栏左侧,右边缘可以拖动改变宽度,宽度会记住。灰色按钮表示连接或会话恢复中,绿色表示会话已就绪,红色表示未连接,点击可重连。侧栏空闲时,点击顶部的 **新会话** 可创建新线程,并保留未发送的文字;也可以输入 `new` 或 `/new`。旧会话和目标保留,可用 `/resume` 恢复。
214
234
 
215
235
  - 输入 `/resume` 仅查看当前工作目录下由 Tabby AI Tools 创建的会话,再次输入可关闭列表。列表显示标题或首条消息、更新时间和当前会话标记;点击某项即可恢复,也可在空输入框中用上下方向键选择、Enter 恢复、Esc 关闭,支持刷新和分页加载。正在执行任务时可在列表中点击“停止当前任务”,等待停止后再恢复;等待回答或审批时请先处理。
216
236
 
@@ -304,7 +324,9 @@ Goal 通过证据检查和持续执行降低过早结束的概率,但无法数
304
324
 
305
325
  ## CLI 自动发现与启动排查
306
326
 
307
- 若重启后出现 `会话恢复失败:thread … already has an active writer`,表示该会话的写入占用尚未释放。当前源码补丁会在窗口退出时回收各独立 Codex 客户端,同空间重连复用原连接,并对明确的 writer 拒绝最多短暂重试三次(共等待 2.5 秒);原会话、历史、草稿和权限保留,不重发任务。持续占用仍会报错:关闭其他 Codex 窗口中占用该会话的连接后,再点击重连。不要删除锁文件或把此错误当作未登录;此修复尚未发布,用户端 Windows 重启仍待实机验收。
327
+ 重启时,AI Tools 会尝试恢复保存的会话。Codex 对明确的写入占用最多短暂重试三次(共等待 2.5 秒)。若回合仍在运行并阻塞旧会话的工具升级,只对当前连接新接入且能确认回合 ID 的旧任务请求中断。确认空闲后迁移聊天历史。若会话由其他进程占用,或无法确认旧回合已经结束,则打开新会话,侧栏提示原因,并保留原会话供 `/resume` 查看。
328
+
329
+ Claude Code 会在窗口退出时取消本窗口运行的 CLI;重启后,如果旧任务只留下未完成的记录,恢复时会将它标为中断,并保留聊天历史。系统与独立空间的会话若仍由其他窗口持有,会短暂等待锁释放;持续占用时自动打开新会话。两种连接都保留草稿,不重发旧任务或终端操作。登录、权限和存储错误仍按原原因显示。
308
330
 
309
331
  v0.9.4 起,保存 Codex/Claude Code CLI 路径后,空闲侧栏会自动重新检查并恢复原会话;清空路径使用自动发现,无需发送消息刷新。启动中或执行中修改时等待空闲边界,正在等待审批/回答时先处理当前请求。恢复成功立即清除旧连接告警;实际启动失败仍显示诊断,不重发任务或工具调用。
310
332
 
@@ -375,13 +397,13 @@ Pi 的使用、存储、预算和验证限制见 [Pi runtime](pi.md)。开发与
375
397
 
376
398
  空闲时点击侧栏重连以切换空间并交接当前对话,或用 `/new` 开始新对话。旧记录保留原处,失败时仍保留原侧栏会话;不会搬走全部系统历史。定时任务后续运行使用连接当前选定空间和新指令快照,活动任务保留启动时的配置。详细路径、认证边界与验证范围见 [指令与会话说明](instructions-sessions.md)。
377
399
 
378
- ## 文件、剪贴板图片与 SSH 传输(v0.8.0)
400
+ ## 文件、剪贴板图片与 SSH 传输
379
401
 
380
- 在输入框中直接按 Ctrl+V(macOS 为 Cmd+V)粘贴截图或文件,也可拖入文件。附件直接显示在输入框上方,包含文件名、大小和移除按钮;粘贴的图片显示缩略图,点击可放大预览;按 Esc、点击关闭按钮或遮罩关闭,并返回原缩略图。普通文本仍正常粘贴。需要 SSH 上传/下载时,让助手使用附件工具,并明确指定已连接的 SSH 终端与绝对路径;目标 tab 显示原生进度,可向助手查询传输状态、取消或取得校验后的远端路径。收起侧栏不停止传输。
402
+ 点击**添加附件**、粘贴截图或拖入文件。点击缩略图可以放大,按 Esc 返回。勾选**随消息发送**后,可配合提示词或只发附件。PNG、JPEG 和 WebP 可发送给支持图片的连接,UTF-8 文本和代码可发送给所有侧栏后端,OpenAI Responses 和 Claude Messages 支持 PDF。单次模型附件总计 6 MiB,每个文本 128 KiB,文本总计 256 KiB。只发送选中的文件,当前连接无法处理时在发送区显示原因。图片提交后从输入区移到对应消息,恢复会话后仍可点击文件名预览。切换连接时,新模型收到文件名和对话文字,图片预览保存在本地。仅保存文件名的旧消息继续显示原文字。
381
403
 
382
- 传输复用 SSH,优先 SFTP,再使用独立 exec 的二进制/base64,最后才在已确认空闲的 Shell 中使用 PTY base64。插件连续处理分块,不让 AI 逐段读写 base64。只读模式禁止传输。目标是外层 SSH 的机器与账户;容器、嵌套 SSH、切换用户及 Codex 沙箱需另行确认可见性。上传图片不代表 Codex 已附图或读取;本版仅提供复制远端路径,不自动按回车或向侧栏模型发送图片。
404
+ 需要 SSH 上传/下载时,让助手使用附件工具,并明确指定已连接的 SSH 终端与绝对路径。目标标签显示传输进度,可查询状态、取消或获取已校验的远端路径。传输优先使用 SFTP,再尝试独立 exec 的二进制或 base64,最后在已确认空闲的 Shell 中使用 PTY base64。只读模式禁止传输。目标是外层 SSH 的机器与账户,容器、嵌套 SSH、切换用户和沙箱的路径可见性需要另行确认。远端 Agent 需要在其终端会话中另行附图。
383
405
 
384
- 图片最多 20 MiB/4000 万像素,普通文件最多 100 MiB;每会话 8 个附件/200 MiB。下载、缓存清理、取消、未知结果及 POSIX 回退限制见 [附件传输说明](attachments.md)。
406
+ 图片最多 20 MiB/4000 万像素,普通文件最多 100 MiB;每会话最多暂存 8 个待发送附件,合计 200 MiB。下载、缓存清理、取消、未知结果及 POSIX 回退限制见 [附件传输说明](attachments.md)。
385
407
 
386
408
  ### 终端增量输出与任务日志
387
409
 
@@ -426,4 +448,4 @@ Linux 官方 Tabby 1.0.238(Electron 43.7.0 / Node 24.21.0)与 Codex CLI 0.16
426
448
  例如告诉 Codex「通过 MCP 连接 Tabby」时,它可根据 skill 描述选择该技能,再读取本机 `~/.agents/tabby/mcp/` 无凭据发现记录,取得状态和 loopback 地址。发现记录若标记 local_no_token,首次直接注册地址并在 Tabby 授权终端,无需令牌;旧版仍可能要求独立令牌配置。重连客户端后进行 MCP 握手/工具发现,并读取获准终端验证。发现 skill、找到端点、完成握手和终端权限是不同状态。skill 不保存 token,不从其他客户端提取凭据,也不扫描端口;多配置空间记录独立,崩溃后的记录可能陈旧。
427
449
 
428
450
 
429
- 侧栏右上角的重连、Codex 账号菜单(可用时)和收起使用统一 32px 点击区域与线性图标。重连按钮显示连接中反馈,任务或提问处理中仍禁用;账号菜单显示登录状态,按 ↓ 聚焦操作,Esc 关闭并回到账号按钮,点击外部或移出焦点也会关闭。收起只隐藏侧栏。
451
+ 侧栏右上角的 **新会话**、重连、当前 CLI 账号菜单(可用时)和收起使用统一 32px 点击区域与线性图标。新会话按钮在任务运行、连接切换或提问等待回复时禁用。重连按钮显示连接中反馈,任务或提问处理中仍禁用;账号菜单跟随当前独立空间:Codex 显示登录状态并提供浏览器登录/退出;Claude Code 提供官方登录命令和检查登录并重连,不沿用 Codex 状态。按 ↓ 聚焦操作,Esc 关闭并回到账号按钮,点击外部或移出焦点也会关闭。收起只隐藏侧栏。
package/docs/mcp.md CHANGED
@@ -8,8 +8,9 @@ Node installation or proxy process for the user to manage.
8
8
 
9
9
  ## Connect a client
10
10
 
11
- The unreleased source adds **local connections without a token**. Published
12
- v1.0.0 packages use the optional named-client credential flow described below.
11
+ **Local connections without a token** are available since v1.1.0. v1.2.1 adds an
12
+ Antigravity configuration format, native SSH execution and confirmed SFTP
13
+ transfers. The v1.0.0 package uses the named-client credential flow.
13
14
 
14
15
  1. Open **Settings → AI Tools → External AI connections (MCP)**. The service is
15
16
  disabled by default. Enable it and wait for **Service running** and an endpoint.
@@ -111,6 +112,7 @@ Use the actual configuration space for the client you intend to connect:
111
112
  | Codex CLI | TOML `mcp_servers.tabby` with `url`; optional bearer connections also use `http_headers`. Normally `~/.codex/config.toml`, or the selected custom `CODEX_HOME/config.toml`. [Official configuration](https://learn.chatgpt.com/docs/extend/mcp?surface=cli). |
112
113
  | Cursor | JSON `mcpServers.tabby` with `url`; optional bearer connections also use `headers`. Normally `~/.cursor/mcp.json`. [Official configuration](https://cursor.com/docs/mcp). |
113
114
  | Claude Code | JSON `mcpServers.tabby` with `type: "http"` and `url`; optional bearer connections also use `headers`. Merge into user-scope configuration in `~/.claude.json`, respecting the client's configured location. [Official scopes and configuration](https://code.claude.com/docs/en/mcp). |
115
+ | Google Antigravity | JSON `mcpServers.tabby` with `url`; optional bearer connections also use `headers`. Merge into `~/.gemini/config/mcp_config.json`, or run `agy mcp add tabby http://127.0.0.1:PORT/mcp` (verify with `agy mcp list`). Global skills install to `~/.gemini/config/skills/tabby-mcp`. [Official MCP configuration](https://antigravity.google/docs/mcp). |
114
116
 
115
117
  Do not replace an existing configuration file with a snippet or commit a credential
116
118
  into project configuration. Automatic merge, backups and recovery helpers are
@@ -121,14 +123,18 @@ clients are modified by Tabby.
121
123
 
122
124
  | Tool | Behavior |
123
125
  | --- | --- |
124
- | `get_capabilities` | Reports this client's mode, all eight tools, and actual limits. |
125
- | `read_skill` | Static instructions for these eight external tools only; no arbitrary knowledge sections or upstream files. |
126
- | `list_tabs` | Only this client's granted, currently valid terminal sessions; opaque IDs, no hidden terminal names or raw profiles. |
126
+ | `get_capabilities` | Reports this client's mode, the advertised tools, and actual limits. |
127
+ | `read_skill` | Static instructions for the external tools only; no arbitrary knowledge sections or upstream files. |
128
+ | `list_tabs` | Only this client's granted sessions. Local clients also see disconnected native SSH panes with `connected: false` and a new opaque ID. |
127
129
  | `read_tab` | A snapshot of up to 300 lines / 20,000 characters. Pass its `nextCursor` for output deltas; optional `waitMs` is bounded at 30 seconds. |
128
- | `send_input` | Command or owned-process stdin; explicit confirm/auto grant, maximum 10,000 characters. |
130
+ | `send_input` | Command or owned-process stdin; explicit confirm/auto grant, maximum 10,000 characters. Optionally observe the exit code of a submitted single-line command. |
129
131
  | `send_keys` | Key input only for the current lease; explicit Ctrl+C follows the same permission. |
130
132
  | `attach_process` | Claim a verified existing process without interrupting it. |
131
133
  | `release_tab` | Release only your lease; restore input without stopping a process. |
134
+ | `ssh_exec` | Execute in a separate channel on a connected native SSH tab. Returns stdout, stderr and exit code. |
135
+ | `manage_tab` | Select, rename, split, duplicate or close a terminal pane. Local clients can also list/open saved profiles and reconnect disconnected SSH panes. |
136
+ | `sftp_transfer` | Submit one confirmed SSH file upload or download, up to 100 MiB. Returns the receipt before transfer. |
137
+ | `sftp_status` | Read the owning client’s transfer receipt, including paths, current status, and completed byte count and SHA-256. |
132
138
 
133
139
  Snapshot cursors are captured before the snapshot so concurrent fresh output can
134
140
  appear again in the next delta. A delta cursor follows the returned bytes. Output
@@ -167,6 +173,84 @@ and cancellation can still reach the service while observations are saturated.
167
173
  Legacy cancellation notifications are matched to the client identity and
168
174
  grant revision; newer HTTP cancellation follows the request's abort signal.
169
175
 
176
+ ### Observe a command's exit code
177
+
178
+ For a submitted single-line command, set `waitForExitMs` to an integer from 1 to
179
+ 5000. The existing input, permission and lease rules apply. For example, on a
180
+ local shell that emits OSC 133 completion with exit status:
181
+
182
+ ```json
183
+ { "tabId": "your-tab-id", "text": "false", "waitForExitMs": 3000 }
184
+ ```
185
+
186
+ The response includes `sent: true` and `exitCode: 1` if the shell reports status
187
+ 1. A successful command reports `exitCode: 0`. Use `read_tab` for terminal output.
188
+ Without shell integration, add `"exitCodeShell": "posix"` if the target is
189
+ known to be Bash, Zsh or another POSIX-compatible shell. This explicitly wraps
190
+ the command in same-shell `eval` and prints its status using an invisible OSC
191
+ marker. The wrapper accepts at most 768 UTF-8 bytes of command text. Leave it
192
+ unset for Fish, PowerShell, CMD and other incompatible shells.
193
+
194
+ `exitCode: null` means no status was observed, for example when the wait expires,
195
+ when integration omits the code, or when the command replaces or exits the shell.
196
+ The wait neither stops nor resubmits the command. Observe the terminal and
197
+ continue using the lease when input is needed. If the terminal is still owned
198
+ after a POSIX result, read the output and release input when finished. The five
199
+ second bound leaves room in the existing observation budget for approval and
200
+ dispatch. Calls without `waitForExitMs` retain immediate input acknowledgements.
201
+
202
+ ### Work with SSH, terminal panes and files
203
+
204
+ Use `send_input` when the task must run in the actual shell in the chosen tab,
205
+ including its current directory, environment, and any nested SSH or container.
206
+ For native SSH, Tabby AI Tools requires a completed OSC 133
207
+ `C → D → A → B` prompt sequence for this session. Outgoing terminal input
208
+ during that prompt sequence or after it, a new shell command, a session change or the alternate screen
209
+ blocks submission until a fresh prompt is verified. There is no automatic
210
+ fallback to `ssh_exec`.
211
+
212
+ Use `ssh_exec` explicitly for non-interactive work on the outer native Tabby
213
+ SSH connection. It requires the native exec API and a remote `/bin/sh`.
214
+ The channel starts in the remote account’s default working directory. It
215
+ returns up to 16,000 bytes of stdout and the last 4,096 bytes of stderr as UTF-8,
216
+ plus an exit code after the shell reports it. Use the actual pane for interactive
217
+ commands. An observation timeout can occur after the remote command started.
218
+
219
+ For `manage_tab`, use `list_tabs` to obtain a target ID. `split` accepts
220
+ `left`, `right`, `up` or `down`. The target anchors saved-profile operations
221
+ to its window. Wrapping an existing pane for its first split preserves its ID and grant. Profile listing returns up to 200 profile IDs, names and types.
222
+ Use one of those IDs with `open_profile` and then call `list_tabs` again.
223
+ `reconnect` targets a pane with `connected: false` where Tabby offers
224
+ reconnection. That operation and `close` require confirmation. Successful
225
+ reconnection gets a fresh opaque ID. Bearer grants are never copied to a new
226
+ or reconnected pane. Saved-profile actions, close and reconnect are local-only.
227
+
228
+ Generate a lowercase UUIDv4 as `requestId` before calling `sftp_transfer`.
229
+ The reply immediately acknowledges the request and includes an exact destination.
230
+ Confirm both paths in the target window. Both paths must be absolute.
231
+ For upload, pass the remote parent directory. The receipt gives the destination
232
+ in the new private directory. For download, pass the remote source file.
233
+ Downloads write to a new local file and preserve existing destinations.
234
+ The transfer uses the same order as sidebar attachments: SFTP, independent SSH
235
+ with raw bytes, then independent SSH with Base64. Fallback requires an unavailable
236
+ capability before payload delivery. Permission, verification and uncertain
237
+ outcomes stop the operation. To also permit the last-resort pane shell, set
238
+ `allowPtyFallback: true` and confirm that exact shell as a file endpoint.
239
+ Tabby requires a fresh idle prompt before the PTY fallback and verifies
240
+ authorization on each write. The pane shell may be on a nested host.
241
+
242
+ Call `sftp_status` with `transferId` equal to the original `requestId` to
243
+ observe `awaiting_approval`, `running`, `completed`, `failed` or `unknown`.
244
+ A completed receipt gives the transport, byte count and SHA-256. Poll the same ID after
245
+ a lost response. Repeating identical submission arguments with a retained ID
246
+ returns the same receipt, and changing any argument results in a conflict.
247
+ If the outcome is unknown, inspect the exact path in the receipt.
248
+
249
+ Approval has its own 25-second deadline and approved transfer work gets up to
250
+ 90 seconds. The transfer continues independently of the submission response.
251
+ Receipts are retained in memory for 15 minutes after completion and remain scoped
252
+ to the submitting client's permission revision.
253
+
170
254
  ## Verification and current limits
171
255
 
172
256
  The production implementation has been exercised on Linux x64 with official
@@ -181,12 +265,9 @@ desktop behavior and user SSH terminals remain unverified. A compatible host nee
181
265
  utilityProcess, Node 20+ and the supported main-process bridge; an unsupported
182
266
  host reports an MCP-specific error and does not require another model login.
183
267
 
184
- The endpoint registers eight tools: `get_capabilities`, `read_skill`, `list_tabs`,
185
- `read_tab`, `send_input`, `send_keys`, `attach_process`, and `release_tab`. All tools
186
- can be discovered by a read-only client, but server-side permission checks reject
187
- its input requests. Tool annotations and client-side approvals never grant access.
188
- External logs, files, workflows, application settings and automatic client-file
189
- installation remain outside this preview. Internal Codex/Claude/API operations
268
+ A read-only bearer can discover the write tools, but server-side permission
269
+ checks reject calls to them. External logs, workflows and application settings
270
+ remain outside the MCP interface. Internal Codex, Claude and API operations
190
271
  retain their separate behavior.
191
272
 
192
273
  ## Enable command execution and interaction
@@ -212,10 +293,10 @@ explicit grant without repeating operation approvals.
212
293
  1. `list_tabs`, then `read_tab` to inspect the target. Snapshot results also include
213
294
  available cursor/highlight interaction metadata; delta results contain text.
214
295
  2. `send_input({tabId,text,mode:"command",submit:true})` starts a command only when
215
- local foreground inspection confirms idle. Maximum text length is 10,000;
296
+ local foreground inspection or a current native SSH shell prompt confirms idle. Maximum text length is 10,000;
216
297
  control characters are rejected (use `send_keys`). No automatic Ctrl+C or
217
- foreground takeover is allowed. Unknown inspection, including normal SSH
218
- enumeration, blocks a new command; generic SSH shell execution is not yet supported.
298
+ foreground takeover is allowed. Unknown shell state blocks a new command.
299
+ See the SSH section above for same-shell and independent execution.
219
300
  3. A successful input or `attach_process` returns a server-generated `leaseId`.
220
301
  Pass it with `send_input(mode:"stdin")`, `send_keys`, further same-lease commands,
221
302
  or `release_tab`. Never invent an owner or reuse another client's lease.
@@ -0,0 +1,3 @@
1
+ # 1.2.0
2
+
3
+ This candidate tag failed macOS and Windows CI. [1.2.1](1.2.1.md) includes the complete release with fixes for HTTP body handling and Windows fixture cleanup.
@@ -0,0 +1,15 @@
1
+ # 1.2.1
2
+
3
+ - Start a conversation with **New session** in the sidebar header. Unsent text is retained and earlier conversations remain available through `/resume`.
4
+ - Connect to a local Antigravity CLI over ACP. Leave the model and reasoning level blank to use CLI defaults, or select options reported by the CLI. Tabby cancels native ACP permission prompts. Tabby MCP tools retain their own approval checks.
5
+ - Reuse Antigravity model catalogs for 30 minutes. After expiry the picker opens with its previous list and refreshes it in the background for the next open.
6
+ - Switch connections with clear loading and failure states. A failed switch keeps the previous conversation and draft. Model lists follow the selected connection and its authentication state.
7
+ - Move sent images from the composer to their message and open them from conversation history. Older entries with preserved image data can also be opened.
8
+ - Attach text files and supported images or PDFs to sidebar messages. Unselected files remain in the cache. Codex, Claude Code and Antigravity support image attachments subject to the selected CLI and model.
9
+ - Route new interactive tasks through an optional tool-free classifier and configurable simple, medium and hard execution tiers. Attachment turns use the current connection.
10
+ - Recover Codex and Claude Code sessions after restart while preserving history and drafts without replaying requests. Claude private-space sign-in uses the CLI's official login flow.
11
+ - Extend the external MCP terminal preview with native SSH execution, opt-in same-pane shell submission, terminal and profile management, and confirmed SFTP transfers with SHA-256 and queryable receipts. Add an Antigravity configuration snippet.
12
+ - Return HTTP 413 for oversized MCP requests with a declared body length while draining the upload.
13
+ - Update both READMEs, the setup guide and overview illustration. The README demos use an isolated test backend with actual Tabby terminals.
14
+
15
+ [Validation scope](../../VALIDATION.md) · [User guide](../guide.md)