tabby-ai-tools 0.9.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1,6 +1,6 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="1800" height="2250" viewBox="0 0 1800 2250" role="img" aria-labelledby="title desc">
2
- <title id="title">Tabby AI Tools v0.9.4 interface illustration — Markdown replies, terminal tools, local login and API connections</title>
3
- <desc id="desc">Tabby AI Tools v0.9.4 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 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 use two-row connection cards and editor summaries, compact headings and full-page scrolling for connections, workflows/preferences and scheduled tasks, with no fixed-height editor. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Scheduled tasks, provider connections, startup opening enabled by default and twelve interface languages and the Claude Code local-login connection are shown below. Active goals continue automatically by default. Thinking and tool calls appear as collapsed conversation entries that can be expanded. Terminal reads return early after reliable shell completion. Terminal output is read on demand without automatic forwarding; 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>
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>
4
4
  <defs>
5
5
  <linearGradient id="background" x2="1" y2="1"><stop stop-color="#0c1622"/><stop offset="1" stop-color="#151729"/></linearGradient>
6
6
  <linearGradient id="outline"><stop stop-color="#375d5d"/><stop offset="1" stop-color="#3b3d5c"/></linearGradient>
@@ -10,12 +10,12 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
10
10
  .mono{font-family:"DejaVu Sans Mono",monospace}
11
11
  </style>
12
12
 
13
- <rect x="0" y="0" width="1800" height="2250" rx="24" fill="url(#background)"/>
13
+ <rect x="0" y="0" width="1800" height="2600" rx="24" fill="url(#background)"/>
14
14
  <rect x="48" y="38" width="42" height="38" rx="10" fill="#173a33" stroke="#306355"/>
15
15
  <text x="56" y="65" font-size="23" font-weight="700" style="fill:#8ae6c2" class="mono">&gt;_</text>
16
16
  <text x="106" y="66" font-size="21" font-weight="700" style="fill:#a7b8cb">TABBY AI TOOLS</text>
17
17
  <rect x="1534" y="44" width="218" height="28" rx="6" fill="#22313f"/>
18
- <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">Navigation / Preview</text>
18
+ <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v1.1.0 / 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
20
  <text x="50" y="176" font-size="23" font-weight="400" style="fill:#a7b8cb">Codex + Claude Code + APIs + optional Pi SDK / Terminal tools / Scheduled AI tasks</text>
21
21
  <rect x="48" y="210" width="1704" height="632" rx="14" fill="#0d1520" stroke="url(#outline)"/>
@@ -28,15 +28,25 @@ 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">Pi example</text>
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
- <rect x="368" y="263" width="62" height="28" rx="6" fill="#1a4a3a"/>
34
- <text x="378" y="283" font-size="14" font-weight="600" style="fill:#8ae6c2">Linked</text>
35
- <rect x="438" y="263" width="64" height="28" rx="6" fill="#253348"/>
36
- <text x="448" y="283" font-size="14" font-weight="600" style="fill:#a7b8cb">Details</text>
37
- <text x="519" y="285" font-size="22" font-weight="400" style="fill:#8ca0b8">×</text>
33
+ <g aria-label="Matching reconnect, account and collapse controls — example" fill="none" stroke="#a7b8cb" stroke-width="1.2">
34
+ <rect x="412" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
35
+ <rect x="448" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
36
+ <rect x="484" y="260" width="32" height="32" rx="7" fill="#202d40" stroke="#3a4c65"/>
37
+ <g transform="translate(420 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
38
+ <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"/>
39
+ </g>
40
+ <circle cx="437" cy="285" r="2.5" fill="#8ae6c2" stroke="none"/>
41
+ <g transform="translate(456 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
42
+ <circle cx="12" cy="8" r="3.5"/><path d="M5 21v-2a7 7 0 0 1 14 0v2"/>
43
+ </g>
44
+ <g transform="translate(492 268) scale(.6667)" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
45
+ <rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16m7-11-3 3 3 3"/>
46
+ </g>
47
+ </g>
38
48
  <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">Pi SDK (example)</text>
49
+ <text x="82" y="325" font-size="15" style="fill:#e8eff9">Codex local</text>
40
50
  <text x="246" y="325" font-size="20" style="fill:#a7b8cb">⌄</text>
41
51
  <rect x="276" y="302" width="248" height="33" rx="5" fill="#202d40"/>
42
52
  <text x="284" y="325" font-size="14" style="fill:#e8eff9">default</text>
@@ -123,33 +133,23 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
123
133
  <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
134
  <rect x="48" y="878" width="1050" height="254" rx="12" fill="#172130" stroke="#35475c"/>
125
135
  <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:#8ca0b8">Example · Two-row summaries · Full-page scrolling</text>
127
- <text x="72" y="952" font-size="18" font-weight="400" style="fill:#a7b8cb">Default connection</text>
128
- <rect x="496" y="929" width="575" height="33" rx="6" fill="#233246" stroke="#3c5068"/>
129
- <text x="512" y="952" font-size="17" font-weight="400" style="fill:#e8eff9">Claude Code (local login)</text>
130
- <text x="1048" y="952" font-size="20" font-weight="400" style="fill:#a7b8cb">⌄</text>
131
- <text x="72" y="993" font-size="18" font-weight="400" style="fill:#e8eff9">Open AI Tools when Tabby starts</text>
132
- <text x="740" y="993" font-size="16" font-weight="500" style="fill:#8ae6c2">On by default</text>
133
- <rect x="1047" y="974" width="22" height="22" rx="4" fill="#2c8062"/>
134
- <text x="1050" y="991" font-size="18" font-weight="700" style="fill:#e9fff4">✓</text>
135
- <text x="72" y="1035" font-size="18" font-weight="400" style="fill:#a7b8cb">Interface language</text>
136
- <rect x="496" y="1012" width="575" height="33" rx="6" fill="#233246" stroke="#3c5068"/>
137
- <text x="512" y="1035" font-size="17" font-weight="400" style="fill:#e8eff9">Follow Tabby</text>
138
- <text x="892" y="1035" font-size="15" font-weight="400" style="fill:#8ca0b8">12 languages</text>
139
- <text x="1048" y="1035" font-size="20" font-weight="400" style="fill:#a7b8cb">⌄</text>
140
- <path d="M72 1061H1071" stroke="#2b3a4d"/>
141
- <rect x="72" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
142
- <text x="84" y="1086" font-size="14" font-weight="600">Codex · Default</text>
143
- <text x="84" y="1102" font-size="12" style="fill:#a7b8cb">Local login / CLI health checks</text>
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>
136
+ <text x="348" y="907" font-size="14" style="fill:#a7b8cb">Example · Settings layout · Editor up to 1080px</text>
137
+ <rect x="72" y="922" width="208" height="30" rx="5" fill="#294564" stroke="#528ee8"/>
138
+ <text x="84" y="942" font-size="15" font-weight="600">Connections &amp; models</text>
139
+ <text x="302" y="942" font-size="15">Tasks &amp; workflows</text>
140
+ <text x="510" y="942" font-size="15">External AI (MCP)</text>
141
+ <text x="718" y="942" font-size="15">General</text>
142
+ <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>
147
+ <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>
151
+ <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>
153
153
  <rect x="1122" y="878" width="630" height="254" rx="12" fill="#172130" stroke="#35475c"/>
154
154
  <text x="1146" y="915" font-size="22" font-weight="650" style="fill:#edf5ff">Pi SDK / Example connection draft</text>
155
155
  <text x="1146" y="946" font-size="16" style="fill:#a7b8cb">SDK bundled · Tabby built-in Node by default</text>
@@ -183,15 +183,15 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
183
183
  <text x="1096" y="1288" font-size="16">your-model-id / offline catalog or explicit limits</text>
184
184
  <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
185
  <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">Instructions and sessions / example</text>
187
- <text x="72" y="1437" font-size="17" style="fill:#a7b8cb">AI Tools default / per-connection override</text>
188
- <text x="72" y="1470" font-size="17">AGENTS.md · Inline text · Inherit · No custom layer</text>
189
- <text x="72" y="1507" font-size="16" style="fill:#8ae6c2">Save / Discard / Preview · New sessions freeze a snapshot</text>
186
+ <text x="72" y="1403" font-size="21" font-weight="650">Collapsed groups / example</text>
187
+ <text x="72" y="1437" font-size="17" style="fill:#a7b8cb">› Custom instructions · Default / connection override</text>
188
+ <text x="72" y="1470" font-size="17">› CLI session storage · Private / system space</text>
189
+ <text x="72" y="1507" font-size="16" style="fill:#8ae6c2">Expand to Save / Discard / Preview · Existing behavior retained</text>
190
190
  <rect x="1100" y="1372" width="652" height="172" rx="12" fill="#172130" stroke="#35475c"/>
191
191
  <text x="1124" y="1403" font-size="21" font-weight="650">Codex / Claude Code · Private history</text>
192
192
  <text x="1124" y="1437" font-size="16" style="fill:#a7b8cb">Tabby space / system compatibility</text>
193
- <text x="1124" y="1470" font-size="16">Check login / Login command / Save space</text>
194
- <text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">Local login cache / Explicit recovery / No task replay</text>
193
+ <text x="1124" y="1470" font-size="16">Claude: generate / copy command / check + reconnect</text>
194
+ <text x="1124" y="1507" font-size="16" style="fill:#8ae6c2">Codex browser login / Claude official login command</text>
195
195
  <rect x="48" y="1562" width="1704" height="248" rx="12" fill="#172130" stroke="#35475c"/>
196
196
  <text x="72" y="1596" font-size="22" font-weight="650">Clipboard attachments / click-to-preview example</text>
197
197
  <rect x="72" y="1620" width="72" height="72" rx="8" fill="#243247" stroke="#4c657f"/>
@@ -203,11 +203,11 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
203
203
  <text x="1110" y="1724" font-size="18" style="fill:#8ae6c2">68% · Native target-tab progress</text>
204
204
  <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
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>
206
- <text x="49" y="2188" font-size="16" font-weight="400" style="fill:#8ca0b8">INTERFACE ILLUSTRATION · Example connections and task output; not a running screenshot.</text>
207
- <text x="49" y="2219" font-size="14" font-weight="400" style="fill:#8ca0b8">Appearance varies with your Tabby theme, window size and configured connections.</text>
206
+ <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
+ <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
208
  <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">Incremental output and task logs — example</text>
210
- <text x="72" y="1901" font-size="17" fill="#a7b8cb">Cursor pages · Wait for output / completion · Fresh screen before interaction</text>
209
+ <text x="72" y="1866" font-size="22" font-weight="650">Output-aware terminal reads and task logs — v1.1.0 example</text>
210
+ <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
211
  <text x="72" y="1934" font-size="17" fill="#8ae6c2">Settings: Save task terminal logs · Local retention · Paging and literal search</text>
212
212
  <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>
213
213
  <rect x="48" y="1994" width="1704" height="158" rx="12" fill="#172130" stroke="#35475c"/>
@@ -215,6 +215,23 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
215
215
  <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
216
  <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
217
  <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>
218
+
219
+ <g aria-label="MCP controlled terminal preview settings example">
220
+ <rect x="48" y="2174" width="1704" height="318" rx="12" fill="#172130" stroke="#35475c"/>
221
+ <text x="72" y="2212" font-size="24" font-weight="650">External AI connections (MCP) / controlled terminal preview — example</text>
222
+ <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">Local connection (no token) · Read/write all terminal tabs · No selection needed</text>
224
+ <rect x="72" y="2301" width="780" height="94" rx="7" fill="#111b28" stroke="#3a5267"/>
225
+ <circle cx="96" cy="2325" r="5" fill="#8ae6c2"/>
226
+ <text x="118" y="2331" font-size="17">staging-app [ssh deploy@staging.example] · Window 1</text>
227
+ <circle cx="96" cy="2360" r="5" fill="#8ae6c2"/>
228
+ <text x="118" y="2367" font-size="17" style="fill:#a7b8cb">All current terminals · New / reconnected tabs included</text>
229
+ <text x="908" y="2325" font-size="17">URL-only config → Register Codex → Reload → Handshake</text>
230
+ <text x="908" y="2360" font-size="16" style="fill:#a7b8cb">Skill conflict? Copy current guide; preserve custom files</text>
231
+ <text x="72" y="2430" font-size="17" style="fill:#8ae6c2">All terminal tabs · Read / Command / Keys / Attach / Release · Shared input leases</text>
232
+ <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>
233
+ </g>
234
+
218
235
  <g aria-label="Example right question index and shared conversation scrollbar: completed and interrupted">
219
236
  <rect x="543" y="480" width="3" height="104" rx="1.5" fill="#a7b8cb" opacity=".4"/>
220
237
  <path d="M532 510h10" stroke="#8ae6c2" stroke-width="1"/>
@@ -7,13 +7,13 @@ Version 0.4.1 includes **Claude Code (local login)** alongside native Codex and
7
7
  ## Setup
8
8
 
9
9
  1. Install the [official Claude Code CLI](https://code.claude.com/docs/en/setup) on the computer running Tabby.
10
- 2. In **Settings → AI Tools → Claude Code → Instructions and sessions**, choose the session space. Unused connections default to a Tabby private space; existing saved CLI references retain system compatibility mode. Check the selected-space login first: an empty private space reuses the local CLI's OAuth file cache when available. If it is unavailable or only in the OS keychain, generate the selected-space login command and run it in a local terminal, choosing your Claude account to use an eligible subscription. A plain `claude auth login`/`claude auth status` uses your terminal's own configured space and may authenticate a different location.
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. Before the check, an absent private `.credentials.json` is initialized from the original `CLAUDE_CONFIG_DIR` (default `~/.claude`) OAuth cache. An existing private login is preserved. If authentication later fails, the warning dialog offers **Copy login again and reconnect** to replace the stale private cache, retaining the conversation and input without replaying tasks. The official CLI continues to manage login and token refresh; credentials are never displayed in chat or sent to a separate API adapter. Private mode removes inherited API-key/token and cloud-routing overrides, while system compatibility retains existing authentication options. OS credential stores and managed policies can still affect an account. See [instruction snapshots, private history and migration](instructions-sessions.md).
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 can contain the locally copied OAuth login cache. Successful continuations use `--resume` and send only new input. Model changes and provider switches import portable text and observed tool outcomes into a fresh session. On an interrupted or failed invocation, the next explicit request reconstructs from recorded history, with a warning to verify the terminal before acting. There is no automatic model retry or silent API fallback.
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.
@@ -4,12 +4,16 @@
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
+ 设置页已本地实现四分类导航、全宽连接编辑与低频分组折叠,尚未发布;跨 Provider 自动任务分配、统一保存和定时任务表单编辑仍待实现。界面沿用宿主主题与单一页面滚动,不引入远程字体或运行依赖。 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 独立空间认证(未发布)
14
+
15
+ 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
+
13
17
  ## 本地开发
14
18
 
15
19
  ### Markdown 输出
@@ -24,7 +28,7 @@ Markdown 解析器与高亮器随 webpack 主包打包,仅为构建依赖,
24
28
 
25
29
  ### 对话与终端输出
26
30
 
27
- 对话过程展示由 `chat-activity.ts` 统一转换实时条目与历史条目。思考摘要/文本增量与工具开始、完成事件更新同一记录;原生 `details/summary` 默认折叠,正文按需挂载,`trackBy` 保留展开状态。API、Claude Code 和 Pi 仅转发服务提供的可展示文本,不渲染加密载荷;展示记录与模型原生历史分开保存。终端读取以 OSC 133 的 C→D→A 完成序列提前唤醒,保留 50 ms 渲染缓冲和原等待上限;新命令、会话更换或结束会清除旧完成记录。多行批次不因中间提示符提前返回。
31
+ 对话过程展示由 `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
32
 
29
33
  2026-11-01 本地 Linux 验证:Node 22.19.0 下完整测试 771 项通过、6 项平台相关跳过;类型检查和生产构建通过。新增夹具覆盖完成前/完成后读屏提前返回、伪提示符与多行批次不提前返回、取消订阅清理、工具结果未到时的过程显示、思考展示上限和历史恢复。当前默认 Node 20 会导致两项 Pi 夹具在运行时版本检查处失败,完整验证使用临时 Node 22.19.0。未调用收费模型,也未验证真实 Tabby 桌面或本次提交的跨平台 CI。
30
34
 
@@ -222,3 +226,33 @@ See [installation recovery and SSH process identity](codex-installation-recovery
222
226
  ### v0.9.4 navigation outcomes
223
227
 
224
228
  `agent-conversation-state.ts` resolves task evidence separately from transport status. Ordinary interruptions are pale green; only confirmed user Stop, unfinished goals and execution limits are red. Completed turns await goal observation; external blockers are blue. API turns retain typed termination causes; Claude native result subtypes identify execution limits. Snapshots use v2 storage with v1 fallback, downgrading unclassified legacy failures. Goal reads are guarded against later turns and goal events; navigation does not invoke providers or replay tools.
229
+
230
+ ## MCP 终端预览开发增量(v1.0.0)
231
+
232
+ `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`。
233
+
234
+ 未发布源码的 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。
235
+
236
+ MCP utility 在 parentPort 控制监听安装后发送 `ready`;main 为冷进程创建/bundle 加载保留独立 20 秒上限,收到握手后才发送一次 `start`,HTTP 启动回复另限 20 秒。普通控制回复和退出清理仍保留各自 5 秒上限。超时分别标明未 spawn、未 ready 或 HTTP 未回复;保留有界停止和未观察退出时的进程槽,不启动重叠实例,不重放请求。启动期 stderr 仅保留末尾 4096 字符供内部分类,UI 只显示退出码与白名单错误代码/类型,不暴露原始日志、路径或凭据。
237
+
238
+ 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 区分尚未发送与未知结果。
239
+
240
+ `src/mcp.service.ts` 从模块启动,设置关闭时不监听网络;`mcp-terminals.ts` 按授权引用计数 watch/unwatch 并取消等待。`mcp-settings.*` 是现有 Settings 内的可折叠分组;`mcp-client-config.ts` 仅生成复制预览,不写客户端文件。新增 MCP 界面文案在简体中文以外可使用英文回退,既有语言选择与翻译不变。独立令牌客户端凭据摘要与端口写入私有文件,其终端范围不跨重启恢复;local 始终自动覆盖当前终端,不持久化终端 ID。
241
+
242
+ `test/mcp.test.js` 覆盖官方 SDK 实际 HTTP 和真实输出服务,`mcp-electron.test.js` 覆盖可信路由/双窗口/崩溃/端口与撤销竞态;它们不能替代真实桌面。Linux Tabby/Codex 无模型真实终端闭环已取得;真实 Cursor/Claude、Windows/macOS、SSH 和旧宿主待补。更新后的 overview 是示意图,明确标注版本与示例,不能冒充运行截图。
243
+
244
+ 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;不得将“已发送”当作命令完成。
245
+ renderer 同时持有独立 lease 截止计时器:即使 main 无法再投递 release/state,输入控制也会在本地截止时解除;续期只使用 main 签发的 expiresAt。
246
+
247
+ 输出遮蔽先作用于完整快照;若正文被替换,则省略 interaction 元数据,不能对高亮片段分别调用有状态的 sanitizeView。utility 对已转发的四类写操作在总截止、取消或父通道断开时返回 unknown_outcome;HTTP 边界也将写入 observation_timeout/cancelled 保守映射为未知,只有明确的 main 拒绝保留具体原因。回归覆盖附件重复快照/其他读取者先识别 footer,以及两代真实 HTTP 协议经过 main 的晚批准、丢失 renderer 回复、清理租约和不重放;合成终端与宿主 fixture 不代表实机验证。
248
+
249
+ `runtime/mcp/discovery.cts` 管理独立标准 Agent Skill 的首次发现安装及无凭据位置记录。以 main 的真实 home/config-space 为准,绝不接受 HTTP 传入用户目录;同名已有技能只比较不覆盖。复制支持文件后最后写 SKILL.md,独占创建冲突不覆盖用户文件。每配置空间独立 hash 记录,内容白名单不含客户端摘要/凭据或目标范围;状态未变不写盘。发现写入失败与 MCP 生命周期分开,不修改授权,不注册客户端。设置页提供重试/检查,自定义技能路径仍手动导入。
250
+
251
+ 已有 skill 冲突时,设置页说明旧说明可能仍要求 token,显示包内当前 skill 来源,允许复制固定的 `references/connection.md` 供备份后协调;不接受 renderer 指定读取路径,不改已有 skill/客户端配置,也不调用 policy.save 或重启 utility。Codex 接入说明分开描述目标主机/CODEX_HOME 注册、客户端重载、握手/工具与授权目标读取;auto 与勾选范围独立。`mcp-discovery`、`mcp-renderer` 和 `mcp-electron` 回归覆盖自定义旧文档保留、当前说明可用、auto 单目标不扩权及无重启。
252
+
253
+ ### v1.0.0 review fixes
254
+
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.
256
+
257
+
258
+ 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.
package/docs/guide.md CHANGED
@@ -15,8 +15,8 @@ v0.9.1 修复流程库空闲时普通终端工具被误拦截的问题。普通
15
15
  v0.5.1 起,Pi SDK 及其所需 JavaScript 已打包。通过 Tabby 安装/升级插件不需要系统中存在 `node` 命令,也不会执行 `protobufjs` 等 Pi 依赖的安装脚本;Pi 默认通过 Electron 独立进程复用 Tabby 自带 Node;兼容版本的 Tabby 无需额外安装 Node。旧版宿主应优先升级 Tabby,也可显式选择可选的 Node 22.19+ 兼容路径。v0.5.0 的安装兼容性问题请通过升级 v0.5.1 修复,无需全局关闭安装脚本。
16
16
 
17
17
  - 本机安装 [Tabby](https://github.com/Eugeny/tabby),并能访问所选 AI 服务。操作内网服务器时,本机还需能通过 Tabby 连接目标服务器。
18
- - **ChatGPT 订阅/Codex 登录模式**:本机安装 Codex CLI,选择 **Codex(本机登录)**,在“指令与会话”生成选定空间的登录命令。使用具备 Codex 权限的 ChatGPT 账号完成官方登录,再检查该空间认证,无需填写 API Key。普通 `codex login`/`codex login status` 针对终端当前配置的空间;未使用过的插件连接默认使用 Tabby 独立空间。可用模型、用量和工作区权限以账号实际权益为准。见 [OpenAI 官方认证说明](https://learn.chatgpt.com/docs/auth)。CLI 需支持 `thread/goal/*`;已测试版本见[验证记录](../VALIDATION.md)。
19
- - **Claude 订阅/Claude Code 本机模式**:本机安装官方 Claude Code,选择 **Claude Code(本机登录)**,在“指令与会话”生成并执行选定空间的 `auth login` 命令,再检查该空间认证。普通 `claude auth login`/`auth status` 可能针对另一份系统配置。私有缓存缺失时会继承可用的本机 OAuth 文件缓存;账号权益及系统兼容模式的 API/云计费以官方 CLI 状态为准。完整方案、权限、恢复机制与验证限制见 [Claude Code 接入](claude-code.md)。
18
+ - **ChatGPT 订阅/Codex 登录模式**:本机安装 Codex CLI,选择 **Codex(本机登录)**,在“CLI 会话存储”展开后生成选定空间的登录命令。使用具备 Codex 权限的 ChatGPT 账号完成官方登录,再检查该空间认证,无需填写 API Key。普通 `codex login`/`codex login status` 针对终端当前配置的空间;未使用过的插件连接默认使用 Tabby 独立空间。可用模型、用量和工作区权限以账号实际权益为准。见 [OpenAI 官方认证说明](https://learn.chatgpt.com/docs/auth)。CLI 需支持 `thread/goal/*`;已测试版本见[验证记录](../VALIDATION.md)。
19
+ - **Claude 订阅/Claude Code 本机模式**:本机安装官方 Claude Code,选择 **Claude Code(本机登录)**,在“CLI 会话存储”展开后生成并执行选定空间的 `auth login` 命令,再检查该空间认证。普通 `claude auth login`/`auth status` 可能针对另一份系统配置。独立空间通过官方命令登录,不再复制本机 OAuth 缓存(未发布修复);账号权益及系统兼容模式的 API/云计费以官方 CLI 状态为准。完整方案、权限、恢复机制与验证限制见 [Claude Code 接入](claude-code.md)。
20
20
  - **API 模式**:准备 OpenAI、DeepSeek、GLM、Kimi、百炼 Coding Plan 或 Claude 对应的 Key,无需安装 Codex CLI。订阅登录与 API 连接是两种独立配置方式。
21
21
 
22
22
  ### 安装插件
@@ -49,7 +49,7 @@ npm run install:tabby -- "<Tabby 插件目录路径>"
49
49
  3. 输入“读取当前终端的报错,先分析原因,再提出修复方案”,按 **Ctrl+Enter / Cmd+Enter** 发送。普通 Enter 换行。
50
50
  4. 在侧栏查看回复、工具结果、提问与审批,在终端核对实际输出。执行中可追加要求,也可点击 **停止**;点击 **释放** 可取回终端输入权。
51
51
 
52
- 侧栏顶部的连接(Provider)与模型(Model)并排显示;长名称可悬停查看。状态详情等面板只滚动内容区,标题栏与关闭按钮始终保留在顶部。
52
+ 侧栏顶部的连接(Provider)与模型(Model)并排显示;长名称可悬停查看。状态详情等面板只滚动内容区,标题栏与关闭按钮始终保留在顶部。顶部不再重复显示 Detail 按钮,点击状态、上下文或控制摘要仍可打开详情。登录/退出下拉菜单在点击外部或键盘焦点移出后收起;Esc 收起并返回账号按钮。
53
53
 
54
54
  ## Markdown 输出
55
55
 
@@ -63,7 +63,11 @@ HTTP、HTTPS 和邮件链接经宿主交给外部应用打开;相对文件路
63
63
 
64
64
  ## 基础配置
65
65
 
66
- 打开 **Settings → AI Tools**。配置自动保存;修改连接参数后,在侧栏点击连接图标应用。默认连接和当前正在编辑的连接分别选择,编辑连接不会自动把它设为默认。
66
+ 打开 **Settings → AI Tools**,使用“连接与模型/任务与流程/外部 AI 连接(MCP)/通用设置”四个分类(本次布局尚未发布)。连接页通过“选择连接”切换 Codex、Claude Code 或 API,详情占完整宽度,窄窗口自动改为单列;不再嵌套连接侧栏。模型与权限优先展示,CLI 路径与工作目录、自定义指令和 CLI 会话存储默认折叠。API 的运行时及高级参数也按需展开,当前协议所需字段仍可直接填写。
67
+
68
+ 默认连接和界面语言位于“通用设置”;“启动与日志”内的开关默认折叠。“任务与流程”中先显示流程列表,再按需展开操作偏好和交互辅助模型;编辑流程时的条件策略默认折叠。`/remember` 只用于开始录制,普通任务不自动归档。
69
+
70
+ API 连接使用草稿,切换连接或分类保留编辑,需“保存连接”提交;自定义指令和会话空间各自有保存/放弃按钮,其他设置自动保存。保存后在侧栏空闲时重新连接应用,新指令通过 `/new` 开始新会话;不会重放任务。默认连接和正在编辑的连接分别选择,编辑连接不会自动把它设为默认。
67
71
 
68
72
  | 配置 | 设置方法与作用 |
69
73
  | --- | --- |
@@ -116,13 +120,13 @@ AI 会发现并核对各连接与终端,将每一步的实际输出作为下
116
120
 
117
121
  ## 界面语言
118
122
 
119
- 在 **Settings → AI Tools → 界面语言** 选择跟随 Tabby,或独立指定语言。支持英语、简体中文、繁体中文、西班牙语、法语、德语、葡萄牙语、俄语、日语、韩语、阿拉伯语和印地语;区域语言代码会匹配对应语言,不支持的语言和缺少的翻译回退到英语。阿拉伯语界面采用从右向左排版。
123
+ 在 **Settings → AI Tools → 通用设置 → 界面语言** 选择跟随 Tabby,或独立指定语言。支持英语、简体中文、繁体中文、西班牙语、法语、德语、葡萄牙语、俄语、日语、韩语、阿拉伯语和印地语;区域语言代码会匹配对应语言,不支持的语言和缺少的翻译回退到英语。阿拉伯语界面采用从右向左排版。
120
124
 
121
125
  语言文件随插件分发,使用期间无需联网翻译。仅翻译插件的界面和提示;用户消息、模型回复、终端输出、连接名称和保存的任务内容保留原文。部分语言由机器翻译提供初稿,欢迎提交校对。默认 README 为[英文](../README.md),另提供[简体中文](../README.zh-CN.md)。
122
126
 
123
127
  ## API 密钥与切换模型
124
128
 
125
- 1. 打开 **Settings → AI Tools → 添加 API 连接**,选择供应商并为连接命名。
129
+ 1. 打开 **Settings → AI Tools → 连接与模型 → + 添加 API 连接**,选择供应商并为连接命名。
126
130
  2. 确认 Base URL,填写基础地址,不附加 `/responses`、`/messages` 或 `/chat/completions`。可使用对应协议的代理地址;GLM 按平台和套餐选择端点。
127
131
  3. 直接填写 API Key,或指定 Tabby 进程可读取的密钥环境变量。
128
132
  4. 获取模型列表并选择模型,或手动输入完整模型 ID,然后点击 **测试连接**。
@@ -143,9 +147,9 @@ Kimi API、Kimi Coding Plan 和阿里云百炼 Coding Plan 提供 **中国内地
143
147
 
144
148
  修改环境变量后需要完全退出并重启 Tabby。API 模式当前不自动压缩上下文,长任务可用 `/new` 新建会话;用量显示请求和本地累计 tokens,不显示 Codex 订阅额度。协议和存储设计见[多模型 Agent 说明](multi-provider-agent.md)。
145
149
 
146
- 在 **Settings → AI Tools → 添加 API 连接** 配置供应商、Base URL 和模型 ID。密钥来源默认选择“直接输入”,填写 API Key 即可,该方式将密钥保存在本地 Tabby 插件配置中。也可选择环境变量;自定义接口还支持“无需密钥”。插件不访问 Vault,旧 Vault 连接需重新选择密钥来源。
150
+ 在 **Settings → AI Tools → 连接与模型 → + 添加 API 连接** 配置供应商、Base URL 和模型 ID。密钥来源默认选择“直接输入”,填写 API Key 即可,该方式将密钥保存在本地 Tabby 插件配置中。也可选择环境变量;自定义接口还支持“无需密钥”。插件不访问 Vault,旧 Vault 连接需重新选择密钥来源。
147
151
 
148
- 设置页通过连接列表切换编辑对象,一次只显示一个连接的配置。列表显示供应商、模型和默认标记,各供应商使用不同色标;连接卡片将名称、默认标记与供应商/模型压缩为两行,编辑区用两行摘要展示名称及供应商/模型,缩小图标与内边距;标题和通用设置采用紧凑间距。连接配置、任务流程与偏好、定时任务随设置页整体滚动,内容区不再限制高度或单独滚动。窄窗口下连接列表改为横向滚动。新增连接自动进入编辑,删除当前连接后切换到相邻连接;Codex 本机引擎也从列表单独选择。切换编辑对象不会改变默认连接,默认连接通过顶部选择器或编辑区的“设为默认”修改。思考模式、推理强度、上下文窗口和工具轮数上限在 **高级参数** 中展开配置。
152
+ 设置页通过“连接与模型 → 选择连接”切换编辑对象,一次只显示一个连接的配置。连接选择器显示名称和供应商,编辑区显示模型与默认标记。详情使用宿主可用宽度(最多 1080px),随页面整体滚动,窄窗口改为单列表单。新增连接自动进入编辑,删除当前连接后切换到相邻连接;Codex、Claude Code 本机引擎也从选择器切换。编辑不会改变默认连接;在“通用设置”选择默认连接,或在编辑区点击“设为默认”。API 运行时与兼容选项在“Agent 运行时”中展开,思考模式、推理强度、上下文和工具轮数上限在“高级参数”中展开。
149
153
 
150
154
  点击当前连接编辑区下方的 **测试连接** 会发送一条简短请求,实际验证密钥、模型和流式响应,并产生少量 API 用量。进度与结果显示在按钮下方,测试中可以取消,60 秒超时;HTTP 错误、错误模型或不支持 SSE 的代理会显示相应提示。
151
155
 
@@ -153,7 +157,7 @@ Kimi API、Kimi Coding Plan 和阿里云百炼 Coding Plan 提供 **中国内地
153
157
 
154
158
  DeepSeek 的 Thinking 开关在顶部保留,Low / High / Max 等级统一在模型浮窗中选择。关闭 Thinking 后不发送可能将其重新打开的推理强度参数;在浮窗主动选择非空等级会重新启用 Thinking,使等级生效。点击模型摘要或 `/model` 选择模型与推理强度,侧栏中的修改会自动应用。设置页修改供应商、端点或模型后仍需点击连接图标应用配置。思考阶段显示接收进度,正文增量到达后立即刷新;实际片段到达速度取决于服务商和代理。
155
159
 
156
- API 连接的“每回合工具轮数上限”设为 **0** 时不按固定次数中止任务,新连接默认使用 0;历史默认值 20 自动迁移为不限,无需逐个修改。其他已有自定义数值保留;今后主动设置的 20 也会保留。设为 1–100 时,仅工具调用轮次计数,最后额外保留收尾请求读取结果、更新一次目标状态并给出回复,收尾阶段不再操作终端;目标未完成仍显示未完成。停止和目标 token 预算在两种模式下都生效。读取受控终端默认等待 1 秒,也支持等待最多 30 秒后读取,减少等待命令输出时的空轮询。
160
+ API 连接的“每回合工具轮数上限”设为 **0** 时不按固定次数中止任务,新连接默认使用 0;历史默认值 20 自动迁移为不限,无需逐个修改。其他已有自定义数值保留;今后主动设置的 20 也会保留。设为 1–100 时,仅工具调用轮次计数,最后额外保留收尾请求读取结果、更新一次目标状态并给出回复,收尾阶段不再操作终端;目标未完成仍显示未完成。停止和目标 token 预算在两种模式下都生效。读取受控终端默认等待上限 1 秒,最多支持 30 秒;源码未发布优化在新输出或可靠完成时提前读屏,安静终端继续有界等待,减少空轮询。
157
161
 
158
162
  API 与 Claude Code 的 Goal 仍为 active 时,普通文本回复或阶段总结不会结束执行;运行器在同一回合内自动继续,不询问是否 Continue goal。模型核对原始要求并验证结果后须调用 `agent_goal_update(status=complete, evidence=...)`。确实缺少用户信息、凭据、额外授权或外部依赖时可标记 blocked 并说明原因;仅用户明确要求暂停时使用 paused。停止、预算、主动设置的工具轮数上限和重复无进展检测仍有效;自动续行不绕过操作审批,不重试失败的模型请求,也不会重放历史命令。定时任务仍遵守其独立的整次运行限制。
159
163
 
@@ -186,7 +190,7 @@ API 工具循环检测始终启用,无需等到轮数上限。近期同一段
186
190
 
187
191
  在对话中提出“每天北京时间 9 点检查服务,异常时分析日志并修复,最多三次,最后验证恢复”等要求。AI 会保存独立定时任务,触发后根据每次输出继续判断和操作,留下逐次执行记录。支持单次、固定分钟间隔和指定时区的每日任务。
188
192
 
189
- 点击 **定时任务** 或输入 `/schedules` 查看计划、暂停/恢复、立即运行、停止本次运行、展开执行记录。设置 → AI Tools → 定时任务显示所有目录的计划,支持暂停、恢复、停止和删除任务及记录。定时会话不等待用户,遇到问题先查找并自主选择最优答案,保留原沙箱范围。任务在重启后自动加载,仅在 Tabby 打开时执行;关闭期间错过的触发合并一次,异常中断不自动重放。详情见[定时任务说明](scheduled-tasks.md)。
193
+ 点击 **定时任务** 或输入 `/schedules` 查看计划、暂停/恢复、立即运行、停止本次运行、展开执行记录。设置 → AI Tools → 任务与流程 → 定时任务显示所有目录的计划,支持暂停、恢复、停止和删除任务及记录。定时会话不等待用户,遇到问题先查找并自主选择最优答案,保留原沙箱范围。任务在重启后自动加载,仅在 Tabby 打开时执行;关闭期间错过的触发合并一次,异常中断不自动重放。详情见[定时任务说明](scheduled-tasks.md)。
190
194
 
191
195
  也可让外层 AI 控制另一个终端 Agent:读取提问,发送 Shift+方向键、回车等按键,按原始目标回答,再检查反馈。支持接管已检测到的现有进程;具体边界见[交互式 Agent 说明](scheduled-tasks.md#控制另一个交互式-agent)。
192
196
 
@@ -196,7 +200,7 @@ API 工具循环检测始终启用,无需等到轮数上限。近期同一段
196
200
 
197
201
  ## 后台连接与生命周期
198
202
 
199
- AI Tools 默认在启动 Tabby 时自动展开侧栏,使用默认连接,无需先进入设置启用。未保存过此选项的已有配置也会默认打开;已明确关闭的配置保持关闭。如需关闭,在 **Settings → AI Tools** 取消勾选 **启动 Tabby 时自动打开 AI Tools**,下次启动生效。工作目录沿用工具栏打开侧栏时的规则:优先使用固定目录,否则尝试读取当前本地终端目录,无法读取时使用用户主目录。手动收起后,本次运行不会再次自动展开。
203
+ AI Tools 默认在启动 Tabby 时自动展开侧栏,使用默认连接,无需先进入设置启用。未保存过此选项的已有配置也会默认打开;已明确关闭的配置保持关闭。如需关闭,在 **Settings → AI Tools → 通用设置 → 启动与日志** 取消勾选 **启动 Tabby 时自动打开 AI Tools**,下次启动生效。工作目录沿用工具栏打开侧栏时的规则:优先使用固定目录,否则尝试读取当前本地终端目录,无法读取时使用用户主目录。手动收起后,本次运行不会再次自动展开。
200
204
 
201
205
  使用 Codex 系统会话空间且未选择其他默认连接时,插件加载并读取配置后会启动常驻的 `codex app-server --listen stdio://`,每个 Tabby 窗口共用一个进程。打开、收起或切换侧栏均复用该服务,通过 JSONL 通知逐段显示流式应答。进程异常退出后自动重连,重试间隔从 1 秒逐步增加到最多 30 秒;服务启动失败会提示检查 CLI 路径。修改并保存 CLI 路径后自动更换进程,其他设置保存不会重启服务。窗口退出或插件销毁时关闭进程并清理重连定时器。
202
206
 
@@ -271,7 +275,7 @@ AI Tools 默认在启动 Tabby 时自动展开侧栏,使用默认连接,无
271
275
  - 思考过程和工具调用在对话中实时更新,默认折叠。点击记录或用 Tab 聚焦后按 Enter/空格展开,可查看服务返回的思考文本、正在调用的工具及返回结果,也可复制。展开状态在同一条记录更新期间保留,恢复会话后默认折叠。
272
276
  - 只显示后端实际返回的思考内容或摘要,不推测未返回的内部过程,不显示加密推理载荷。API、Claude Code 与 Pi 的过程记录随会话保存;旧会话没有的记录不会补造。思考展示每段最多保留前 32,000 字符,超出部分显示省略号,原生模型上下文不受展示限制影响。
273
277
  - 收到可读文本后才创建思考记录;服务只返回开始/结束事件、空摘要或加密载荷时不显示空卡片。等待期间顶部仍会提示正在思考。Codex 请求使用 `summary: "auto"`;OpenAI Responses 对已知或明确配置的推理模型请求 `reasoning.summary: "auto"`,显式关闭推理时不请求摘要。摘要取决于服务与模型支持,不保证每回合都有。[Codex App Server](https://learn.chatgpt.com/docs/app-server)、[OpenAI 推理摘要](https://developers.openai.com/api/docs/guides/reasoning#reasoning-summaries)。
274
- - `read_tab(waitMs)` 是等待上限。受控单条命令通过 Shell 集成确认已结束并回到提示符时,会提前结束等待,给终端渲染留出约 50 ms 后读屏。没有可靠完成信号时仍等待指定时间;普通输出或多行批次中的中间提示符不会提前结束等待。
278
+ - `read_tab(waitMs)` 是等待上限。源码未发布优化:默认快照在新输出或可靠 Shell 完成时提前返回,留约 50 ms 渲染/输出合并时间,持续输出最多合并约 200 ms。本任务输入后、读屏前已到达的未观察输出也会唤醒;读过的旧输出不会反复唤醒。同一任务的 stdin/按键输入会重置观察起点。`wakeReason` 和 `waitedMs` 分别说明返回原因和实际等待时长。新输出与多行中间提示符只触发观察,不证明命令结束、不释放批次输入锁;无新输出或可靠完成时仍等到上限。非交互日志优先使用 `mode=delta` 与 `nextCursor`,交互前读取快照。
275
279
 
276
280
  - 对话消息可以选中文字并使用系统快捷键复制;每条消息也有“复制”按钮。侧栏内的键盘事件不会触发活动终端快捷键,`Ctrl+C`/`Cmd+C` 保留原生复制,终端区域的 `Ctrl+C` 中断行为不变。
277
281
 
@@ -300,6 +304,8 @@ Goal 通过证据检查和持续执行降低过早结束的概率,但无法数
300
304
 
301
305
  ## CLI 自动发现与启动排查
302
306
 
307
+ 若重启后出现 `会话恢复失败:thread … already has an active writer`,表示该会话的写入占用尚未释放。当前源码补丁会在窗口退出时回收各独立 Codex 客户端,同空间重连复用原连接,并对明确的 writer 拒绝最多短暂重试三次(共等待 2.5 秒);原会话、历史、草稿和权限保留,不重发任务。持续占用仍会报错:关闭其他 Codex 窗口中占用该会话的连接后,再点击重连。不要删除锁文件或把此错误当作未登录;此修复尚未发布,用户端 Windows 重启仍待实机验收。
308
+
303
309
  v0.9.4 起,保存 Codex/Claude Code CLI 路径后,空闲侧栏会自动重新检查并恢复原会话;清空路径使用自动发现,无需发送消息刷新。启动中或执行中修改时等待空闲边界,正在等待审批/回答时先处理当前请求。恢复成功立即清除旧连接告警;实际启动失败仍显示诊断,不重发任务或工具调用。
304
310
 
305
311
  `codexAgent.executable` 留空或保持默认 `codex` 时,**Windows 会收集并比较已发现安装的实际 CLI 版本**:Tabby 进程 PATH 的所有匹配项、`CODEX_INSTALL_DIR`、`%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe`、`CODEX_HOME` 下的 standalone 入口、`%LOCALAPPDATA%\OpenAI\Codex\bin\<目录>\codex.exe`、用户 `.local\bin` 及 npm 常见目录和全局 prefix。不会命中第一个 PATH 旧版就停止。多个候选使用不消耗模型额度的 `--version` 查询,按语义版本选择较新者;稳定版优先于同版本预发布版,版本相同时保留发现顺序。哈希名及文件修改时间不作为版本新旧依据。单项查询限时 1.5 秒、输出最多 16 KiB,最多四项并发;失败或无法解析的候选不压过有有效版本号的候选。所有版本均未知时保留原发现顺序(桌面子目录内部以程序修改时间排序),此时不能保证最新。每次新连接重新扫描,不缓存版本结果;已有连接复用当前进程。Linux/macOS 仍先检查 PATH,再检查 `CODEX_INSTALL_DIR` 和下文的补充来源。
@@ -340,7 +346,7 @@ C:\Users\用户名\AppData\Local\OpenAI\Codex\bin
340
346
 
341
347
  显式配置的绝对路径、相对路径或 `~/` 路径优先(可带一对外层引号),会验证真实文件存在;v0.9.4 起,入口文件缺失、断链或文件类型无效时,自动清空保存的配置并查找一次;权限访问拒绝保留配置并报告错误。自定义命令名(如 `my-codex`、`codex.cmd`)仅按 PATH / Windows PATHEXT 查找,保留命令名配置兼容性;未找到时清空保存的命令并自动查找。Windows 支持原生 exe/com 和 cmd/bat 启动器,含空格、中文路径可用。原生程序使用绝对路径、参数数组和 `shell:false`;cmd/bat 由 cross-spawn 负责 cmd.exe 转义,stdin/stdout JSONL 及 stderr 均保留为管道。只填写文件路径或命令名,不附加参数。
342
348
 
343
- 子进程环境会移除所有大小写形式的 `CODEX_INTERNAL_ORIGINATOR_OVERRIDE`,初始化始终使用插件自己的 `clientInfo.name = tabby_codex_agent`,父进程环境不变。定位失败会给出 PATH 检查情况、Windows 安装扫描路径或 LOCALAPPDATA 缺失、Linux/macOS 的 Shell 探测结果及补充安装目录、候选拒绝原因,以及 **Settings → AI Tools → Codex CLI 可执行文件(`codexAgent.executable`)** 设置入口。
349
+ 子进程环境会移除所有大小写形式的 `CODEX_INTERNAL_ORIGINATOR_OVERRIDE`,初始化始终使用插件自己的 `clientInfo.name = tabby_codex_agent`,父进程环境不变。定位失败会给出 PATH 检查情况、Windows 安装扫描路径或 LOCALAPPDATA 缺失、Linux/macOS 的 Shell 探测结果及补充安装目录、候选拒绝原因,以及 **Settings → AI Tools → 连接与模型 → Codex → CLI 路径与工作目录 → Codex CLI 可执行文件(`codexAgent.executable`)** 设置入口。
344
350
 
345
351
  出现 `Codex app-server exited (1)` 时,侧栏会同时显示实际启动路径和 CLI 的错误输出。可在终端运行 `codex app-server --listen stdio://` 查看相同安装的启动错误;命令启动后等待输入是正常现象,按 Ctrl+C 退出。路径、Codex 配置和安装问题应以错误输出为准。
346
352
 
@@ -363,9 +369,9 @@ Pi 的使用、存储、预算和验证限制见 [Pi runtime](pi.md)。开发与
363
369
 
364
370
  ### 自定义 AGENTS.md 与独立 CLI 会话
365
371
 
366
- 每个连接下方的 **Instructions and sessions/指令与会话** 支持 AI Tools 全局默认与连接级覆盖。可编辑正文、绑定本地 AGENTS.md 文件、继承默认或关闭自定义层;保存和放弃均显式操作。文件要求绝对路径、UTF-8、最多 32 KiB,可预览内容、来源、摘要和修改时间,不会覆盖源文件。新会话保存指令快照;原文件修改或丢失不影响已有会话恢复。使用 `/new` 应用新指令,文件不可读则阻止依赖它的新会话。内置工具说明与宿主权限检查仍生效,Pi 不因此启用自动发现;Codex/Claude 的原生项目规则另由引擎管理。
372
+ 每个连接下方默认折叠的 **自定义指令** 支持 AI Tools 全局默认与连接级覆盖。可编辑正文、绑定本地 AGENTS.md 文件、继承默认或关闭自定义层;保存和放弃均显式操作。文件要求绝对路径、UTF-8、最多 32 KiB,可预览内容、来源、摘要和修改时间,不会覆盖源文件。新会话保存指令快照;原文件修改或丢失不影响已有会话恢复。使用 `/new` 应用新指令,文件不可读则阻止依赖它的新会话。内置工具说明与宿主权限检查仍生效,Pi 不因此启用自动发现;Codex/Claude 的原生项目规则另由引擎管理。
367
373
 
368
- 未使用过的 Codex/Claude Code 默认采用 **Tabby 独立空间**,已有 CLI 会话引用保留 **系统空间(旧版兼容)**。独立空间隔离磁盘历史及索引,而不仅过滤列表;任务 cwd 保持不变。选择目标空间后生成登录命令,在本地终端完成官方登录,再检查该空间认证并保存。系统 CLI 已登录不代表目标空间已登录,私有登录文件缓存缺失时,会从原 CLI 目录初始化有效的 ChatGPT/OAuth 缓存,已有私有登录保持不变;系统历史和配置不随之复制。OS keychain-only 登录仍需在目标空间完成官方认证。登录失效时可通过侧栏警告明确选择重新复制并重连,不重放任务。Windows 命令使用 PowerShell,Linux/macOS 使用 POSIX shell。
374
+ 未使用过的 Codex/Claude Code 默认采用 **Tabby 独立空间**,已有 CLI 会话引用保留 **系统空间(旧版兼容)**。独立空间隔离磁盘历史及索引,而不仅过滤列表;任务 cwd 保持不变。选择目标空间后生成登录命令,在本地终端完成官方登录,再检查该空间认证并保存。系统 CLI 已登录不代表目标空间已登录,Codex 私有登录文件缺失时可初始化有效的本机 ChatGPT 缓存;Claude 不再复制系统 OAuth 缓存,认证提示可生成独立空间的官方登录命令,完成后检查并重连(未发布修复)。已有私有登录保持不变;系统历史和配置不随之复制。OS keychain-only 登录仍需在目标空间完成官方认证。Codex 确认认证失败后,可用同一用户、同一工作区的较新系统凭据恢复已导入的登录,最多自动尝试一次。源登录也失效时,从侧栏右上角账号菜单登录。退出独立空间后会停用自动导入。恢复时保留会话和草稿。Windows 命令使用 PowerShell,Linux/macOS 使用 POSIX shell。
369
375
 
370
376
  空闲时点击侧栏重连以切换空间并交接当前对话,或用 `/new` 开始新对话。旧记录保留原处,失败时仍保留原侧栏会话;不会搬走全部系统历史。定时任务后续运行使用连接当前选定空间和新指令快照,活动任务保留启动时的配置。详细路径、认证边界与验证范围见 [指令与会话说明](instructions-sessions.md)。
371
377
 
@@ -394,3 +400,30 @@ Pi 的使用、存储、预算和验证限制见 [Pi runtime](pi.md)。开发与
394
400
  ## 会话内问题导航
395
401
 
396
402
  所有 Agent 后端共享右侧问题索引,与聊天滚动条整合为 18px 窄区域,不再占用左侧留白。滚动滑块支持拖动、滚轮和键盘 Home/End、PageUp/PageDown;问题预览向左展开。悬停或键盘聚焦查看原问题,点击定位;方向键切换问题,Enter 跳转,Esc 关闭预览。“回到最新消息”恢复自动跟随。点击后加长线保持对应所选问题,即使内容较短或滚动到底部无法顶端对齐;手动滚动聊天后继续按视口更新。索引使用居中的紧凑短线(1px),不附加符号,不显示独立的目录滚动条;问题过多时使用与主题一致的 ↑ / ↓ 按钮翻动,也可滚轮浏览。绿色表示确认完成;淡绿色表示没有用户 Stop 证据的普通 interrupted。蓝色表示执行中、自动续行或等待外部条件(如重启 Tabby、认证或补充资料);红色仅表示确认的主动 Stop、目标仍 active 却结束执行,或轮数/token/预算上限导致未完成。单凭 failed 不标红,未知原因保持灰色。点击 Stop 后先等待真实中断,停止请求失败不标红。导航不发送消息或重放工具;结果快照按本地会话空间、连接、目录和会话隔离保存,最多保留最近 1000 个回合状态,不另存问题原文。completed 回合先等待 Goal 检查:无 Goal 的普通问答/Goal complete 为绿色,blocked/paused 为蓝色,active 为未完成红色,检查失败为灰色。自动续行重新变蓝,最终结果同步到本次已关联的问题;较早 Goal 读取不会覆盖较新回合。新版按停止原因保存快照,旧 failed 缺少原因降为灰色,旧 interrupted 为淡绿色,不猜测主动 Stop。
403
+
404
+ ## 外部 AI MCP 终端预览(源码未发布)
405
+
406
+ 附件传输遮蔽会先处理完整快照;正文被遮蔽时,同时省略光标/高亮交互元数据,避免样式片段暴露附件内容。写操作转发后,utility 总观察超时、取消或父通道失联均保留 `unknown_outcome`,不能据此认定“没有发送输入”;请先读取终端核验,勿自动重发。明确的批准拒绝/过期仍返回对应原因。
407
+
408
+ 异常处理复审:自动启动失败不会中断当前窗口的终端注册;解决端口冲突后可停用/重新启用恢复。IPC 失败会结算或取消相关观察,失联窗口的范围被移除,不重放读取或终端输入。utility 的 error 或 kill 返回值不作为退出证据,收到真实 exit 前保留进程槽位;超过有界退出期限会显示错误,不能确认退出时不启动重叠进程。设置操作失败会回读实际状态并恢复勾选,不把失败的取消授权显示为成功;写入权限文件失败会停用当前服务,但该变更未保存,解决存储问题并重启后须复核旧客户端记录(终端范围不会自动恢复)。
409
+
410
+ 「设置 → AI Tools → 外部 AI 连接(MCP)」提供独立于侧栏模型的终端入口。当前源码默认本机免令牌:启用服务后直接复制地址配置,手动合并到 Codex CLI/Cursor/Claude Code 的个人配置,无需添加客户端或签发令牌。本机程序共享一组终端范围、操作权限、游标和输入租约,不能凭客户端名称区分身份。默认自动读写所有终端 Tab,无需选择权限或逐个勾选;新开、重连和重启后的当前终端自动纳入,关闭服务撤销所有访问。旧令牌客户端作为可选项保留独立范围;切换旧配置到免令牌时需移除 Authorization/令牌环境变量,显式无效令牌仍返回401。最近请求不代表持续在线或工具成功。本机免令牌改动尚未发布。
411
+
412
+ 独立令牌客户端默认只读,可用 `get_capabilities`、`read_skill`、`list_tabs`、`read_tab`。快照最多 300 行/20,000 字符,客户端绑定的 cursor 支持增量及最多 30 秒等待;独立令牌客户端不能共用游标;免令牌本机程序属于同一共享身份。MCP 有自己的输出订阅,不依赖侧栏是否打开,只读时不开始任务日志或争用输入。独立令牌客户端在关闭/重连/替换终端会话、停用服务、进程异常或重启后需要重新选择终端;本机连接自动覆盖当前会话,旧会话的观察与租约失效,不重放操作。窗口与 profile 主机/账号标签仅帮助识别,不自动证明 nested SSH/容器身份。独立令牌客户端另选「每次操作确认」或「允许自动操作」可开放 `send_input`、`send_keys`、`attach_process`、`release_tab`。确认请求在目标窗口本设置页展示,25 秒内批准;main 签发客户端/终端绑定租约,120 秒无输入操作到期。输入与侧栏/调度共用所有权,不自动 Ctrl+C;新命令要求可验证空闲,普通 SSH 的未知进程枚举会阻止新命令。接管既有进程需独立身份核验。撤销/取消/释放仅解锁,不终止进程;发送后观察丢失可能已执行,必须读取核验,不得自动重发。独立令牌客户端重启恢复只读且清具体范围;本机连接保持自动读写所有当前终端。日志导出及自动改写客户端配置仍未开放。
413
+
414
+ 运行时复用 Tabby/Electron 的 Node,不要求用户额外安装 Node。首次启动保存空闲 loopback 端口,之后重用;占用时停止并报告,停用服务后可明确修改端口,不会杀其他进程或静默换 URL。权限摘要与端口在真实 Tabby 配置目录的私有 `ai-tools-mcp/state.json`,不复用模型 API key。只适用于同一台机器、同一网络命名空间的 `127.0.0.1`,不包含 LAN/公网、OAuth 服务端、云连接器或 WSL/容器隧道。
415
+
416
+ Linux 官方 Tabby 1.0.238(Electron 43.7.0 / Node 24.21.0)与 Codex CLI 0.167.1 已验证真实终端读取、未授权终端隐藏、增量/等待、撤销/轮换/停用;无模型请求。Cursor/Claude Code 的真实客户端、Windows/macOS/旧宿主/用户 SSH 尚待验。此功能包含于 v1.0.0;不能将配置示例当作三个客户端均已验收。完整步骤与配置位置见 [MCP guide](mcp.md)。
417
+
418
+ ### 通用 Agent 发现与首次配对
419
+
420
+ 支持的 Tabby 宿主首次启动后,将独立 `tabby-mcp` Skill 安装到用户 `.agents/skills`,并兼容用户已存在的 `.claude` 技能目录(Codex/Cursor 使用共享目录);不覆盖同名已有修改。MCP 设置页可「安装/检查 Agent Skill」,其他客户端/自定义技能目录可导入包内 `skills/tabby-mcp`。这不是所有 Agent 通用的自动扫描目录。
421
+
422
+ 提示已有 skill 冲突时,旧版说明可能仍要求 token。设置页提供当前来源路径和「复制当前连接说明」;先备份已有 skill,对照当前 `SKILL.md` 与 `references/connection.md` 更新并保留自定义内容,再重新加载客户端。复制说明不改已有文件。免令牌模式无需新增命名客户端;独立令牌客户端仍保留自己的凭据和范围。
423
+
424
+ 生成/复制配置不等于已注册。Codex 应在目标 CLI 所在主机、实际 `CODEX_HOME`(未设置时 `~/.codex`)合并配置,或用设置页显示的免令牌 `codex mcp add` 命令注册;保留其他条目及同名冲突。保存后用 `codex mcp list --json` 回读,并重载 MCP 客户端或在当前任务结束后新建 Codex 会话,接着验证握手、工具发现和已授权终端读取。无需重启 Tabby。本机连接默认 `auto` 且覆盖所有终端 Tab;独立令牌客户端的 `auto` 仅适用于已勾选范围。两者均不绕过进程接管检查。
425
+
426
+ 例如告诉 Codex「通过 MCP 连接 Tabby」时,它可根据 skill 描述选择该技能,再读取本机 `~/.agents/tabby/mcp/` 无凭据发现记录,取得状态和 loopback 地址。发现记录若标记 local_no_token,首次直接注册地址并在 Tabby 授权终端,无需令牌;旧版仍可能要求独立令牌配置。重连客户端后进行 MCP 握手/工具发现,并读取获准终端验证。发现 skill、找到端点、完成握手和终端权限是不同状态。skill 不保存 token,不从其他客户端提取凭据,也不扫描端口;多配置空间记录独立,崩溃后的记录可能陈旧。
427
+
428
+
429
+ 侧栏右上角的重连、Codex 账号菜单(可用时)和收起使用统一 32px 点击区域与线性图标。重连按钮显示连接中反馈,任务或提问处理中仍禁用;账号菜单显示登录状态,按 ↓ 聚焦操作,Esc 关闭并回到账号按钮,点击外部或移出焦点也会关闭。收起只隐藏侧栏。