tabby-ai-tools 1.0.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.
- package/README.md +49 -126
- package/README.zh-CN.md +49 -128
- package/VALIDATION.md +24 -0
- package/dist/index.js +1 -1
- package/dist/mcp/electron-host.cjs +132 -38
- package/dist/mcp/utility.cjs +86 -28
- package/dist/pi/sidecar.mjs +39 -5
- package/docs/antigravity.md +11 -0
- package/docs/assets/overview.png +0 -0
- package/docs/assets/overview.svg +81 -59
- package/docs/assets/ssh-command-demo.gif +0 -0
- package/docs/assets/ssh-command-demo.png +0 -0
- package/docs/assets/two-terminal-demo.gif +0 -0
- package/docs/assets/two-terminal-demo.png +0 -0
- package/docs/attachments.md +18 -4
- package/docs/claude-code.md +9 -3
- package/docs/codex-installation-recovery.md +8 -0
- package/docs/development.md +41 -8
- package/docs/guide.md +56 -21
- package/docs/instructions-sessions.md +5 -5
- package/docs/mcp.md +194 -43
- package/docs/releases/1.2.0.md +3 -0
- package/docs/releases/1.2.1.md +15 -0
- package/docs/releases/unreleased.md +1 -1
- package/package.json +1 -1
- package/skills/tabby/SKILL.md +12 -3
- package/skills/tabby/references/operations.md +11 -7
- package/skills/tabby-mcp/SKILL.md +27 -1
- package/skills/tabby-mcp/references/connection.md +40 -7
package/docs/assets/overview.svg
CHANGED
|
@@ -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
|
|
3
|
-
<desc id="desc">MCP controlled terminal preview: portable Agent Skill, credential-free service discovery, Settings external AI connections,
|
|
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">>_</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.
|
|
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"/>
|
|
@@ -28,15 +28,33 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
28
28
|
<text x="1647" y="239" font-size="15" font-weight="400" style="fill:#a7b8cb">+ Settings</text>
|
|
29
29
|
<rect x="49" y="253" width="499" height="588" rx="0" fill="#172130"/>
|
|
30
30
|
<path d="M548 253L548 842" stroke="#3b4b60"/>
|
|
31
|
-
<text x="72" y="285" font-size="23" font-weight="700" style="fill:#eef4ff">
|
|
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
|
-
<
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
<
|
|
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>
|
|
42
|
+
<rect x="412" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
|
|
43
|
+
<rect x="448" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
|
|
44
|
+
<rect x="484" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
|
|
45
|
+
<g transform="translate(420 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
|
46
|
+
<path d="M20 7v5h-5M4 17v-5h5M6.1 6.1A8 8 0 0 1 19.5 9M4.5 15a8 8 0 0 0 13.4 2.9"/>
|
|
47
|
+
</g>
|
|
48
|
+
<circle cx="437" cy="285" r="2.5" fill="#8ae6c2" stroke="none"/>
|
|
49
|
+
<g transform="translate(456 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
|
50
|
+
<circle cx="12" cy="8" r="3.5"/><path d="M5 21v-2a7 7 0 0 1 14 0v2"/>
|
|
51
|
+
</g>
|
|
52
|
+
<g transform="translate(492 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
|
53
|
+
<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16m7-11-3 3 3 3"/>
|
|
54
|
+
</g>
|
|
55
|
+
</g>
|
|
38
56
|
<rect x="72" y="302" width="196" height="33" rx="5" fill="#243247" stroke="#3a4c65"/>
|
|
39
|
-
<text x="82" y="325" font-size="15" style="fill:#e8eff9">
|
|
57
|
+
<text x="82" y="325" font-size="15" style="fill:#e8eff9">Codex local</text>
|
|
40
58
|
<text x="246" y="325" font-size="20" style="fill:#a7b8cb">⌄</text>
|
|
41
59
|
<rect x="276" y="302" width="248" height="33" rx="5" fill="#202d40"/>
|
|
42
60
|
<text x="284" y="325" font-size="14" style="fill:#e8eff9">default</text>
|
|
@@ -49,6 +67,8 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
49
67
|
<rect x="72" y="379" width="452" height="60" rx="8" fill="#21324b" stroke="#3b4f70"/>
|
|
50
68
|
<text x="86" y="402" font-size="14" font-weight="600" style="fill:#b9d3f7">You</text>
|
|
51
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>
|
|
52
72
|
<rect x="72" y="447" width="452" height="24" rx="5" fill="#1b2839" stroke="#344458"/>
|
|
53
73
|
<text x="86" y="464" font-size="14" style="fill:#a7b8cb">› Thinking · Readable summary</text>
|
|
54
74
|
<text x="450" y="464" font-size="12" style="fill:#8ae6c2">Ended</text>
|
|
@@ -123,33 +143,24 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
123
143
|
<text x="574" y="830" font-size="16" font-weight="400" style="fill:#a7b8cb">2 SSH terminals · Output read on demand · Automatic forwarding off</text>
|
|
124
144
|
<rect x="48" y="878" width="1050" height="254" rx="12" fill="#172130" stroke="#35475c"/>
|
|
125
145
|
<text x="72" y="907" font-size="20" font-weight="650" style="fill:#edf5ff">Settings / AI Tools</text>
|
|
126
|
-
<text x="348" y="907" font-size="14" style="fill:#
|
|
127
|
-
<
|
|
128
|
-
<
|
|
129
|
-
<text x="
|
|
130
|
-
<text x="
|
|
131
|
-
<text x="
|
|
132
|
-
<
|
|
133
|
-
<
|
|
134
|
-
<text x="
|
|
135
|
-
<text x="
|
|
136
|
-
<
|
|
137
|
-
<text x="
|
|
138
|
-
<
|
|
139
|
-
<text x="
|
|
140
|
-
<
|
|
141
|
-
<
|
|
142
|
-
<text x="
|
|
143
|
-
<text x="
|
|
144
|
-
<rect x="322" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
|
|
145
|
-
<text x="334" y="1086" font-size="14" font-weight="600">Claude Code</text>
|
|
146
|
-
<text x="334" y="1102" font-size="12" style="fill:#a7b8cb">Local login / per-call CLI checks</text>
|
|
147
|
-
<rect x="572" y="1068" width="240" height="42" rx="5" fill="#203e36" stroke="#43866f"/>
|
|
148
|
-
<text x="584" y="1086" font-size="14" font-weight="600">Example Pi connection</text>
|
|
149
|
-
<text x="584" y="1102" font-size="12" style="fill:#a7b8cb">Google · gemini-2.5-flash</text>
|
|
150
|
-
<text x="830" y="1086" font-size="14" style="fill:#a7b8cb">Scripted workflows + AI</text>
|
|
151
|
-
<text x="830" y="1104" font-size="14" style="fill:#a7b8cb">Scheduled tasks</text>
|
|
152
|
-
<text x="72" y="1125" font-size="12" style="fill:#8ca0b8">Connection drafts · Reconnect when idle to apply · Active tasks keep their snapshot</text>
|
|
146
|
+
<text x="348" y="907" font-size="14" style="fill:#a7b8cb">Example · Settings layout · Editor up to 1080px</text>
|
|
147
|
+
<rect x="72" y="922" width="208" height="30" rx="5" fill="#294564" stroke="#528ee8"/>
|
|
148
|
+
<text x="84" y="942" font-size="15" font-weight="600">Connections & models</text>
|
|
149
|
+
<text x="302" y="942" font-size="15">Tasks & workflows</text>
|
|
150
|
+
<text x="510" y="942" font-size="15">External AI (MCP)</text>
|
|
151
|
+
<text x="718" y="942" font-size="15">General</text>
|
|
152
|
+
<rect x="72" y="967" width="810" height="31" rx="5" fill="#233246" stroke="#3c5068"/>
|
|
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>
|
|
158
|
+
<rect x="72" y="1045" width="999" height="31" rx="5" fill="#1c293a" stroke="#3c5068"/>
|
|
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>
|
|
162
|
+
<text x="72" y="1100" font-size="14" style="fill:#a7b8cb">General: default connection / language · Startup & logs collapsed</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>
|
|
@@ -183,30 +194,36 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
183
194
|
<text x="1096" y="1288" font-size="16">your-model-id / offline catalog or explicit limits</text>
|
|
184
195
|
<text x="72" y="1342" font-size="16" style="fill:#8ae6c2">Save connection / Discard draft / Copy as new · Local checks and paid tool tests are separate</text>
|
|
185
196
|
<rect x="48" y="1372" width="1030" height="172" rx="12" fill="#172130" stroke="#35475c"/>
|
|
186
|
-
<text x="72" y="1403" font-size="21" font-weight="650">
|
|
187
|
-
<text x="72" y="1437" font-size="17" style="fill:#a7b8cb"
|
|
188
|
-
<text x="72" y="1470" font-size="17"
|
|
189
|
-
<text x="72" y="1507" font-size="16" style="fill:#8ae6c2">Save / Discard / Preview ·
|
|
197
|
+
<text x="72" y="1403" font-size="21" font-weight="650">Collapsed groups / example</text>
|
|
198
|
+
<text x="72" y="1437" font-size="17" style="fill:#a7b8cb">› Custom instructions · Default / connection override</text>
|
|
199
|
+
<text x="72" y="1470" font-size="17">› CLI session storage · Private / system space</text>
|
|
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">
|
|
193
|
-
<text x="1124" y="1470" font-size="16">
|
|
194
|
-
<text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">
|
|
203
|
+
<text x="1124" y="1437" font-size="16" style="fill:#a7b8cb">Account menu follows the selected private CLI</text>
|
|
204
|
+
<text x="1124" y="1470" font-size="16">Claude: generate / copy command / check + reconnect</text>
|
|
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">
|
|
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
|
|
200
|
-
<text x="164" y="1676" font-size="16" style="fill:#a7b8cb">
|
|
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">
|
|
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.
|
|
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,22 +232,27 @@ 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"/>
|
|
221
244
|
<text x="72" y="2212" font-size="24" font-weight="650">External AI connections (MCP) / controlled terminal preview — example</text>
|
|
222
245
|
<text x="72" y="2248" font-size="18" style="fill:#8ae6c2">Enable local MCP · Service running · http://127.0.0.1:48123/mcp</text>
|
|
223
|
-
<text x="72" y="2283" font-size="17" style="fill:#a7b8cb">
|
|
246
|
+
<text x="72" y="2283" font-size="17" style="fill:#a7b8cb">Local connection (no token) · Read/write all terminal tabs · No selection needed</text>
|
|
224
247
|
<rect x="72" y="2301" width="780" height="94" rx="7" fill="#111b28" stroke="#3a5267"/>
|
|
225
|
-
<
|
|
226
|
-
<path d="M91 2325l4 4 7-9" fill="none" stroke="#c4f7df" stroke-width="2"/>
|
|
248
|
+
<circle cx="96" cy="2325" r="5" fill="#8ae6c2"/>
|
|
227
249
|
<text x="118" y="2331" font-size="17">staging-app [ssh deploy@staging.example] · Window 1</text>
|
|
228
|
-
<
|
|
229
|
-
<text x="118" y="2367" font-size="17" style="fill:#a7b8cb">
|
|
230
|
-
<text x="908" y="2325" font-size="17">
|
|
231
|
-
<text x="908" y="2360" font-size="16" style="fill:#a7b8cb">
|
|
232
|
-
<text x="72" y="2430" font-size="17" style="fill:#8ae6c2">Read / Command / Keys / Attach / Release ·
|
|
233
|
-
<text x="72" y="2470" font-size="16" style="fill:#a7b8cb">No automatic interruption. Release does not stop a process.
|
|
250
|
+
<circle cx="96" cy="2360" r="5" fill="#8ae6c2"/>
|
|
251
|
+
<text x="118" y="2367" font-size="17" style="fill:#a7b8cb">All current terminals · New / reconnected tabs included</text>
|
|
252
|
+
<text x="908" y="2325" font-size="17">URL-only config → Register Codex → Reload → Handshake</text>
|
|
253
|
+
<text x="908" y="2360" font-size="16" style="fill:#a7b8cb">Skill conflict? Copy current guide; preserve custom files</text>
|
|
254
|
+
<text x="72" y="2430" font-size="17" style="fill:#8ae6c2">All terminal tabs · Read / Command / Keys / Attach / Release · Shared input leases</text>
|
|
255
|
+
<text x="72" y="2470" font-size="16" style="fill:#a7b8cb">No automatic interruption. Release does not stop a process. Local tabs included after reconnect/restart. Other clients pending.</text>
|
|
234
256
|
</g>
|
|
235
257
|
|
|
236
258
|
<g aria-label="Example right question index and shared conversation scrollbar: completed and interrupted">
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/attachments.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# Files, clipboard images and SSH transfers
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
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
|
|
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.
|
package/docs/claude-code.md
CHANGED
|
@@ -7,13 +7,13 @@ Version 0.4.1 includes **Claude Code (local login)** alongside native Codex and
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
|
9
9
|
1. Install the [official Claude Code CLI](https://code.claude.com/docs/en/setup) on the computer running Tabby.
|
|
10
|
-
2. In **Settings → AI Tools → Claude Code →
|
|
10
|
+
2. In **Settings → AI Tools → Connections & models → Claude Code → CLI session storage**, choose the session space. Unused connections default to a Tabby private space; existing saved CLI references retain system compatibility mode. Check the selected-space login first. For a new or expired private login, generate the selected-space login command and run it in a local terminal, choosing your Claude account to use an eligible subscription. The unreleased fix after v1.0.0 no longer copies system OAuth caches. A plain `claude auth login`/`claude auth status` uses your terminal's own configured space and may authenticate a different location.
|
|
11
11
|
3. In **Settings → AI Tools → Claude Code**, set the executable path if discovery cannot find it. Select **Claude Code (local login)** in the sidebar or make it the default connection. The default alias is `sonnet`; `opus`, `haiku`, and full model IDs can also be configured. These are candidate aliases, not an account entitlement list.
|
|
12
12
|
4. Describe a task. Operations use the same Tabby tools, read-only restrictions, approvals, workflow checkpoints, and execution records as API connections. The host's operating system permissions still apply; this mode does not supply an OS sandbox.
|
|
13
13
|
|
|
14
14
|
The executable resolver checks PATH, the official `~/.local/bin` location, common Homebrew/npm directories, and the current executable's directory. Explicit paths, quoted paths, and `~/` paths are supported. A custom command name searches PATH only. Windows `.exe`, `.com`, `.cmd`, and `.bat` launchers are supported. Custom Node/npm prefixes outside these locations need an explicit path and a working Node environment.
|
|
15
15
|
|
|
16
|
-
Connecting checks `--help` and `auth status` without model inference, using the same configuration environment as inference. The CLI must support the integration flags, including `--system-prompt-snapshot`, `--append-system-prompt-file`, strict MCP configuration, and streaming partial messages. Update Claude Code if the connection reports a missing flag.
|
|
16
|
+
Connecting checks `--help` and `auth status` without model inference, using the same configuration environment as inference. The CLI must support the integration flags, including `--system-prompt-snapshot`, `--append-system-prompt-file`, strict MCP configuration, and streaming partial messages. Update Claude Code if the connection reports a missing flag. The authentication warning offers **Generate login command** and **Check login and reconnect**, retaining the conversation and input without replaying tasks. The official CLI owns login and token refresh in the selected space. Tabby no longer reads or copies Claude subscription credentials. Private mode removes inherited API-key/token and cloud-routing overrides, while system compatibility retains existing authentication options. OS credential stores and managed policies can still affect an account. See [instruction snapshots, private history and migration](instructions-sessions.md).
|
|
17
17
|
|
|
18
18
|
## Design decision and official sources
|
|
19
19
|
|
|
@@ -45,7 +45,7 @@ sequenceDiagram
|
|
|
45
45
|
- Each invocation gets an HTTP MCP listener on `127.0.0.1` with a random port and a fresh 256-bit bearer secret. The listener checks the host and rejects browser origins. Calls are serialized before entering the existing executor; intent is saved before execution. The server and private temporary instruction/config files are removed when the invocation ends or stops.
|
|
46
46
|
- `--tools ""` disables built-in shell/file tools. `--strict-mcp-config` loads the Tabby bridge, and `--disable-slash-commands` disables CLI skills and commands for this invocation. `--settings '{"disableAllHooks":true}'` disables user/project/plugin hooks; administrator-managed hooks and enforced policy remain governed by Claude Code. Only user settings are loaded to retain the user's authentication helpers; project/local settings are excluded. These options apply to the launched session, without changing the user's settings files.
|
|
47
47
|
- MCP approval rules allow the bridge to reach the host executor. They do not waive the host's read-only checks, mutation approval, workflow sequencing, sudo authentication, or scheduled-task restrictions.
|
|
48
|
-
- Tabby's conversation index stores portable history and an opaque native session ID. The private CLI directory
|
|
48
|
+
- Tabby's conversation index stores portable history and an opaque native session ID. The private CLI directory retains the official CLI’s own login state; Tabby no longer copies OAuth caches from the system space (unreleased fix after v1.0.0). Successful continuations use `--resume` and send only new input. Model changes and provider switches import portable text and observed tool outcomes into a fresh session. On an interrupted or failed invocation, the next explicit request reconstructs from recorded history, with a warning to verify the terminal before acting. There is no automatic model retry or silent API fallback.
|
|
49
49
|
- Stop cancels pending host requests and terminates the owned CLI process tree before the turn finishes. Commands already submitted to a Tabby terminal may still run. Messages added while Claude Code is working are queued for a new invocation after the current one ends, rather than injected into an in-progress CLI request.
|
|
50
50
|
- Observed usage is counted once per native message and checked against the task budget before further operations. Token usage is not a subscription balance or price. Native context compaction belongs to Claude Code; imported plugin history has a 9 MiB input limit.
|
|
51
51
|
- Schedules can choose this connection. Existing scheduler isolation, logging, and unattended rules apply. An explicitly requested candidate-model test uses an isolated MCP confirmation tool and consumes model quota; normal connection/model-list checks do not.
|
|
@@ -66,3 +66,9 @@ Each native invocation now re-resolves the original configured selector and rech
|
|
|
66
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
67
|
|
|
68
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.
|
|
69
|
+
|
|
70
|
+
## Private-space authentication recovery (unreleased)
|
|
71
|
+
|
|
72
|
+
A system CLI login does not establish that the selected private space is logged in. Tabby no longer imports or replaces Claude OAuth caches, including during settings checks, reconnection and model probes. Existing private state is preserved. When authentication fails, the sidebar warning offers **Generate login command**, a selectable/copyable command for the failed connection’s space, and **Check login and reconnect**. Complete the official command in a local terminal first. It targets `CLAUDE_CONFIG_DIR`, clears inherited API/cloud overrides for that command, and restores the terminal environment afterwards. It never contains credentials.
|
|
73
|
+
|
|
74
|
+
Checking again uses official `auth status` and capability checks without inference. It preserves the conversation, native session, model, cwd, instructions and unsent draft. Active turns cannot be interrupted by recovery. The original configured CLI selector is resolved again when generating commands, connecting and invoking the model; removed explicit paths remain diagnostics. Login status is not proof of a successful model or tool request. CLI/protocol failures remain distinct from verified logout. Platform credential stores and managed policy may still affect account isolation.
|
|
@@ -18,6 +18,14 @@ Only the connection is restored. No historical `turn/start`, steering prompt, to
|
|
|
18
18
|
|
|
19
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
20
|
|
|
21
|
+
## Active writer during session recovery
|
|
22
|
+
|
|
23
|
+
The unreleased restart fix registers window-unload cleanup for every owned Codex client, including private session spaces. Reconnecting the same space reuses its existing client; a replacement server previously attempted to resume the thread while the original server still held its writer.
|
|
24
|
+
|
|
25
|
+
If `thread/resume` receives a confirmed `thread … already has an active writer` rejection, recovery retries the same thread up to three times over 2.5 seconds. It stops if the server changes, disconnects or starts work. It preserves the session ID, history, draft, model and permissions, and submits no model turns or terminal input. Transport timeouts and unrelated failures are not retried by this path.
|
|
26
|
+
|
|
27
|
+
A writer held beyond this wait remains a real recovery error. Close the conversation in the other owning Codex application, then reconnect. The plugin does not delete CLI lock files or terminate an unidentified process to acquire ownership. Window-unload cleanup is not a guarantee after an application or operating-system crash; actual Windows restart recovery remains a desktop validation item.
|
|
28
|
+
|
|
21
29
|
## Why existing SSH agents were blocked
|
|
22
30
|
|
|
23
31
|
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.
|
package/docs/development.md
CHANGED
|
@@ -4,14 +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
|
-
|
|
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
|
+
## 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 独立空间认证
|
|
18
|
+
|
|
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 仍需实测;离线夹具不代表这些通过。
|
|
20
|
+
|
|
13
21
|
## 本地开发
|
|
14
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
|
+
|
|
15
31
|
### Markdown 输出
|
|
16
32
|
|
|
17
33
|
`markdown.ts` 使用固定版本的 `markdown-it` 解析正文,禁用原始 HTML。表格的列对齐转为 CSS class,以保留 Angular 15 清理后的排版;图片转为文字链接,外部 URL 只允许 HTTP、HTTPS 和 mailto。原文留在 `ChatEntry.text`,不把渲染 HTML 写入历史或模型上下文。
|
|
@@ -24,6 +40,8 @@ Markdown 解析器与高亮器随 webpack 主包打包,仅为构建依赖,
|
|
|
24
40
|
|
|
25
41
|
### 对话与终端输出
|
|
26
42
|
|
|
43
|
+
图片发送得到回合 ID 后,将已验证缓存图片的元数据标记为已发送,输入区只列暂存文件。历史按原会话及回合关联,在预览时重新校验内容及所有权。跨连接只交接本地显示关联和模型可用的文本。可读取旧历史中的本地图片数据,远程 URL 和文件路径不用于内联预览。面板回归覆盖恢复、切换、发送失败保留及预览。
|
|
44
|
+
|
|
27
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。输出唤醒只触发观察;多行中间提示符不释放批次锁,新命令、会话更换或结束会清除旧完成记录。
|
|
28
46
|
|
|
29
47
|
2026-11-01 本地 Linux 验证:Node 22.19.0 下完整测试 771 项通过、6 项平台相关跳过;类型检查和生产构建通过。新增夹具覆盖完成前/完成后读屏提前返回、伪提示符与多行批次不提前返回、取消订阅清理、工具结果未到时的过程显示、思考展示上限和历史恢复。当前默认 Node 20 会导致两项 Pi 夹具在运行时版本检查处失败,完整验证使用临时 Node 22.19.0。未调用收费模型,也未验证真实 Tabby 桌面或本次提交的跨平台 CI。
|
|
@@ -57,12 +75,16 @@ Tabby 在应用内安装、升级插件后,已由[内置插件管理器](https
|
|
|
57
75
|
|
|
58
76
|
## 介绍页效果图
|
|
59
77
|
|
|
60
|
-
`docs/assets/
|
|
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` 保留为可编辑的界面示意及导出图。
|
|
61
79
|
|
|
62
|
-
|
|
80
|
+
`ssh-command-demo.gif` 展示用户在侧栏发送指令、在 Tabby 原生 SSH 会话中执行 `./check-health`,再从终端读回 HTTP 200。录制使用隔离的回环 OpenSSH 服务和真实响应健康检查的 HTTP 夹具,侧栏模型响应由本地测试后端提供。`ssh-command-demo.png` 是减弱动态效果时使用的最终结果画面。
|
|
81
|
+
|
|
82
|
+
标题下的 `robot-multitask.gif` 为 1024 × 512、12 帧的装饰动画,在 README 中按 176 × 88 显示;同尺寸的 `robot-multitask.png` 用于减少动态效果时的静态回退,高清生成提示词和编码参数保存在同目录的 `robot-multitask.prompt.md`。两类图片用途不同,更新功能效果图时保留标题动画。
|
|
63
83
|
|
|
64
84
|
## 测试范围与平台说明
|
|
65
85
|
|
|
86
|
+
`test/thread-tools.test.js` 覆盖 Codex 恢复旧会话时的写入冲突、指定回合中断、历史保留与新会话回退。`test/claude-code.test.js` 使用离线 CLI 子进程覆盖系统与独立空间的双窗口锁冲突、退出清理和历史恢复。显式选择历史会话沿用原恢复流程。
|
|
87
|
+
|
|
66
88
|
`test/sidebar-keyboard.test.js` 覆盖侧栏键盘事件隔离、原生默认行为保留、选中文字时的焦点转移和销毁清理。`test/api-agent.test.js` 覆盖空/加密推理记录过滤、真实摘要流式显示与恢复历史;`test/thread-tools.test.js` 核对 Codex 请求开启摘要。浏览器夹具与本地 HTTP 服务用于回归,不消耗真实模型额度;完整 Tabby 桌面中的终端及剪贴板行为仍需实际验证。
|
|
67
89
|
|
|
68
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 测试。
|
|
@@ -200,7 +222,7 @@ Tests use offline process/MCP fixtures and temporary homes. The system Codex CLI
|
|
|
200
222
|
|
|
201
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.
|
|
202
224
|
|
|
203
|
-
The composer
|
|
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.
|
|
204
226
|
|
|
205
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.
|
|
206
228
|
|
|
@@ -225,21 +247,32 @@ See [installation recovery and SSH process identity](codex-installation-recovery
|
|
|
225
247
|
|
|
226
248
|
## MCP 终端预览开发增量(v1.0.0)
|
|
227
249
|
|
|
228
|
-
`runtime/mcp` 独立于 Angular TS 4.9,使用 `typescript-pi` 对应的 TS 5.9 做类型检查。`scripts/build-mcp.mjs` 将官方 SDK server/core、Node adapter 和 schema 依赖打入 `dist/mcp/utility.cjs`,main 协调器为 `electron-host.cjs`,附上 `THIRD_PARTY_NOTICES.txt`;生产包不安装 SDK,也没有新增安装脚本。`mcp:build` 纳入 build/pretest;MCP 运行在 Electron utilityProcess
|
|
250
|
+
`runtime/mcp` 独立于 Angular TS 4.9,使用 `typescript-pi` 对应的 TS 5.9 做类型检查。`scripts/build-mcp.mjs` 将官方 SDK server/core、Node adapter 和 schema 依赖打入 `dist/mcp/utility.cjs`,main 协调器为 `electron-host.cjs`,附上 `THIRD_PARTY_NOTICES.txt`;生产包不安装 SDK,也没有新增安装脚本。`mcp:build` 纳入 build/pretest;MCP 运行在 Electron utilityProcess,保留宿主 OS 环境(包括 Windows SystemRoot/TEMP),大小写变体的 PATH、NODE_OPTIONS、NODE_PATH、ELECTRON_RUN_AS_NODE 均清空,没有系统 Node 回退。窗口桥接初始化失败不会永久缓存成功状态,后续显式刷新可重新注册;不重放设置变更或终端操作。对应回归见 `test/mcp-electron.test.js` 和 `test/mcp-renderer.test.js`。
|
|
251
|
+
|
|
252
|
+
未发布源码的 MCP 默认本机免令牌。policy 的 local 虚拟身份不持久化凭据,默认 auto 并动态纳入全部终端 Tab;headerless 请求使用共享 local 身份,绝不合并旧 bearer 客户端权限。所有免令牌本机程序共享权限、游标、限流和租约;显式无效 Authorization 不回退。旧 bearer 客户端独立保留,轮换/撤销不作用于 local;local 关闭服务撤权,设置页不再提供 local 模式/Tab 选择。新增/重连会话自动获得新 opaque target;删除旧 target 即撤销旧会话,不增加 local revision,避免打断其他 Tab 的观察/租约。停服/崩溃仍推进 revision、清理观察和租约,重启后当前终端自动纳入,绝不重放输入。Host/Origin 检查、loopback bind、有界 HTTP 和工具观察、目标窗口批准及 IPC 最终授权均保留。UI 默认直接复制 URL 配置,可选令牌入口折叠;发现记录标记 local_no_token。
|
|
253
|
+
|
|
254
|
+
MCP utility 在 parentPort 控制监听安装后发送 `ready`;main 为冷进程创建/bundle 加载保留独立 20 秒上限,收到握手后才发送一次 `start`,HTTP 启动回复另限 20 秒。普通控制回复和退出清理仍保留各自 5 秒上限。超时分别标明未 spawn、未 ready 或 HTTP 未回复;保留有界停止和未观察退出时的进程槽,不启动重叠实例,不重放请求。启动期 stderr 仅保留末尾 4096 字符供内部分类,UI 只显示退出码与白名单错误代码/类型,不暴露原始日志、路径或凭据。
|
|
229
255
|
|
|
230
256
|
main 从 Tabby 主进程的 `TABBY_CONFIG_DIRECTORY`(缺省 userData)取 canonical 配置空间,不接受 renderer/HTTP 传入路径或窗口路由。实际 Electron IPC sender、顶层 frame 与 Tabby document URL 校验后注册 renderer。main 管理持久 token 摘要、空初始范围、不透明目标与授权代际,utility 只持有最小认证快照,renderer 在读取前后再验证实际 session/stream 与范围。snapshot/delta cursor 绑定客户端、revision、target、stream,客户端不能指定内部 owner/log scope。范围变更、取消、异常和退出不重放请求;只读适配器不调用输入工具。`mcp-execution.ts` 延迟获取共享 `TabbyTabToolsService`,仅映射四个输入/控制工具;context.beforeInput 在最终发送边界复核,allowTakeover=false 禁止自动中断,onInput 区分尚未发送与未知结果。
|
|
231
257
|
|
|
232
|
-
`src/mcp.service.ts` 从模块启动,设置关闭时不监听网络;`mcp-terminals.ts` 按授权引用计数 watch/unwatch 并取消等待。`mcp-settings.*` 是现有 Settings 内的可折叠分组;`mcp-client-config.ts` 仅生成复制预览,不写客户端文件。新增 MCP
|
|
258
|
+
`src/mcp.service.ts` 从模块启动,设置关闭时不监听网络;`mcp-terminals.ts` 按授权引用计数 watch/unwatch 并取消等待。`mcp-settings.*` 是现有 Settings 内的可折叠分组;`mcp-client-config.ts` 仅生成复制预览,不写客户端文件。新增 MCP 界面文案在简体中文以外可使用英文回退,既有语言选择与翻译不变。独立令牌客户端凭据摘要与端口写入私有文件,其终端范围不跨重启恢复;local 始终自动覆盖当前终端,不持久化终端 ID。
|
|
233
259
|
|
|
234
260
|
`test/mcp.test.js` 覆盖官方 SDK 实际 HTTP 和真实输出服务,`mcp-electron.test.js` 覆盖可信路由/双窗口/崩溃/端口与撤销竞态;它们不能替代真实桌面。Linux Tabby/Codex 无模型真实终端闭环已取得;真实 Cursor/Claude、Windows/macOS、SSH 和旧宿主待补。更新后的 overview 是示意图,明确标注版本与示例,不能冒充运行截图。
|
|
235
261
|
|
|
236
|
-
main
|
|
262
|
+
main 的独立令牌客户端 confirm/auto 权限绑定所选目标;其重启回到 read_only。本机连接默认 auto/全部终端,重启自动覆盖当前会话。输入预约和 lease 在 main 同步创建,批准等待不占用 IPC 串行控制队列。目标窗口可批准/拒绝具体参数,25 秒超时;120 秒输入空闲 lease 自动释放。取消、撤销、范围/模式/会话变化、停止或崩溃清观察和 lease,通过独立 release 消息还原 renderer 控制,不发 Ctrl+C、不重放。客户端不能提供 owner、内部 tabId、sudo、foreground takeover 或日志 scope。33 秒总观察预算含批准等待,晚批准可能得到 unknown_outcome;不得将“已发送”当作命令完成。
|
|
237
263
|
renderer 同时持有独立 lease 截止计时器:即使 main 无法再投递 release/state,输入控制也会在本地截止时解除;续期只使用 main 签发的 expiresAt。
|
|
238
264
|
|
|
239
265
|
输出遮蔽先作用于完整快照;若正文被替换,则省略 interaction 元数据,不能对高亮片段分别调用有状态的 sanitizeView。utility 对已转发的四类写操作在总截止、取消或父通道断开时返回 unknown_outcome;HTTP 边界也将写入 observation_timeout/cancelled 保守映射为未知,只有明确的 main 拒绝保留具体原因。回归覆盖附件重复快照/其他读取者先识别 footer,以及两代真实 HTTP 协议经过 main 的晚批准、丢失 renderer 回复、清理租约和不重放;合成终端与宿主 fixture 不代表实机验证。
|
|
240
266
|
|
|
241
267
|
`runtime/mcp/discovery.cts` 管理独立标准 Agent Skill 的首次发现安装及无凭据位置记录。以 main 的真实 home/config-space 为准,绝不接受 HTTP 传入用户目录;同名已有技能只比较不覆盖。复制支持文件后最后写 SKILL.md,独占创建冲突不覆盖用户文件。每配置空间独立 hash 记录,内容白名单不含客户端摘要/凭据或目标范围;状态未变不写盘。发现写入失败与 MCP 生命周期分开,不修改授权,不注册客户端。设置页提供重试/检查,自定义技能路径仍手动导入。
|
|
242
268
|
|
|
269
|
+
已有 skill 冲突时,设置页说明旧说明可能仍要求 token,显示包内当前 skill 来源,允许复制固定的 `references/connection.md` 供备份后协调;不接受 renderer 指定读取路径,不改已有 skill/客户端配置,也不调用 policy.save 或重启 utility。Codex 接入说明分开描述目标主机/CODEX_HOME 注册、客户端重载、握手/工具与授权目标读取;auto 与勾选范围独立。`mcp-discovery`、`mcp-renderer` 和 `mcp-electron` 回归覆盖自定义旧文档保留、当前说明可用、auto 单目标不扩权及无重启。
|
|
270
|
+
|
|
243
271
|
### v1.0.0 review fixes
|
|
244
272
|
|
|
245
|
-
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
|
|
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.
|
|
274
|
+
|
|
275
|
+
|
|
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.
|