@in-the-loop-labs/pair-review 5.3.2 → 5.3.4
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 +3 -3
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
- package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
- package/public/js/components/ChatPanel.js +253 -14
- package/src/ai/claude-provider.js +35 -70
- package/src/ai/codex-provider.js +67 -64
- package/src/ai/provider.js +15 -7
- package/src/chat/omp-bridge.js +56 -0
- package/src/chat/pi-bridge.js +72 -5
- package/src/chat/session-manager.js +8 -1
- package/src/main.js +2 -3
- package/src/routes/chat.js +10 -0
|
@@ -27,8 +27,8 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
27
27
|
* (e.g., Haiku uses adaptive thinking for efficiency).
|
|
28
28
|
*
|
|
29
29
|
* Effort support by model (newest CLIs): Fable 5.1, Fable 5, Opus 5.5, Opus 5,
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* and Sonnet 5 support low|medium|high|xhigh|max; Sonnet 4.6 supports
|
|
31
|
+
* low|medium|high|max (no xhigh); Haiku has no effort levels.
|
|
32
32
|
* The CLI's own default effort for Opus 5.5 is `medium` (and it ignores a
|
|
33
33
|
* top-level `effortLevel` in user settings), so its entries rely on the env var,
|
|
34
34
|
* which the CLI treats as an explicit choice at the top of its effort precedence.
|
|
@@ -95,8 +95,10 @@ const CLAUDE_MODELS = [
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
id: 'opus-5.5-xhigh',
|
|
98
|
-
// Generation alias; see fable-5.1-xhigh above.
|
|
99
|
-
|
|
98
|
+
// Generation alias; see fable-5.1-xhigh above. The Opus 4.x entries were
|
|
99
|
+
// dropped; their ids resolve to the Opus 5.5 entry at the matching effort so
|
|
100
|
+
// saved configs, councils, and --model flags keep working.
|
|
101
|
+
aliases: ['opus', 'opus-4.8-xhigh', 'opus-4.7-xhigh'],
|
|
100
102
|
cli_model: 'claude-opus-5-5',
|
|
101
103
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
102
104
|
name: 'Opus 5.5 XHigh',
|
|
@@ -112,6 +114,7 @@ const CLAUDE_MODELS = [
|
|
|
112
114
|
},
|
|
113
115
|
{
|
|
114
116
|
id: 'opus-5.5-high',
|
|
117
|
+
aliases: ['opus-4.8-high', 'opus-4.7-high', 'opus-4.6-high', 'opus-4.6-1m', 'opus-4.5'],
|
|
115
118
|
cli_model: 'claude-opus-5-5',
|
|
116
119
|
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
117
120
|
name: 'Opus 5.5 High',
|
|
@@ -145,62 +148,6 @@ const CLAUDE_MODELS = [
|
|
|
145
148
|
badge: 'High Effort',
|
|
146
149
|
badgeClass: 'badge-power'
|
|
147
150
|
},
|
|
148
|
-
{
|
|
149
|
-
id: 'opus-4.8-xhigh',
|
|
150
|
-
cli_model: 'claude-opus-4-8',
|
|
151
|
-
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
152
|
-
name: 'Opus 4.8 XHigh',
|
|
153
|
-
tier: 'thorough',
|
|
154
|
-
tagline: 'Previous Gen',
|
|
155
|
-
description: 'Opus 4.8 with extra-high effort',
|
|
156
|
-
badge: 'Previous Gen',
|
|
157
|
-
badgeClass: 'badge-power'
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
id: 'opus-4.8-high',
|
|
161
|
-
cli_model: 'claude-opus-4-8',
|
|
162
|
-
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
163
|
-
name: 'Opus 4.8 High',
|
|
164
|
-
tier: 'thorough',
|
|
165
|
-
tagline: 'High Effort',
|
|
166
|
-
description: 'Opus 4.8 with high effort — thorough, quicker than XHigh',
|
|
167
|
-
badge: 'Thorough',
|
|
168
|
-
badgeClass: 'badge-power'
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: 'opus-4.7-xhigh',
|
|
172
|
-
cli_model: 'claude-opus-4-7',
|
|
173
|
-
env: { CLAUDE_CODE_EFFORT_LEVEL: 'xhigh' },
|
|
174
|
-
name: 'Opus 4.7 XHigh',
|
|
175
|
-
tier: 'thorough',
|
|
176
|
-
tagline: 'Previous Gen',
|
|
177
|
-
description: 'Opus 4.7 with extra-high effort',
|
|
178
|
-
badge: 'Previous Gen',
|
|
179
|
-
badgeClass: 'badge-power'
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: 'opus-4.7-high',
|
|
183
|
-
cli_model: 'claude-opus-4-7',
|
|
184
|
-
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
185
|
-
name: 'Opus 4.7 High',
|
|
186
|
-
tier: 'thorough',
|
|
187
|
-
tagline: 'High Effort',
|
|
188
|
-
description: 'Opus 4.7 with high effort — thorough, quicker than XHigh',
|
|
189
|
-
badge: 'Thorough',
|
|
190
|
-
badgeClass: 'badge-power'
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
id: 'opus-4.6-high',
|
|
194
|
-
aliases: ['opus-4.6-low', 'opus-4.6-medium', 'opus-4.5'],
|
|
195
|
-
cli_model: 'claude-opus-4-6',
|
|
196
|
-
env: { CLAUDE_CODE_EFFORT_LEVEL: 'high' },
|
|
197
|
-
name: 'Opus 4.6 High',
|
|
198
|
-
tier: 'thorough',
|
|
199
|
-
tagline: 'Previous Gen',
|
|
200
|
-
description: 'Opus 4.6 with high effort',
|
|
201
|
-
badge: 'Previous Gen',
|
|
202
|
-
badgeClass: 'badge-power'
|
|
203
|
-
},
|
|
204
151
|
// ── Balanced tier ───────────────────────────────────────────────────────
|
|
205
152
|
{
|
|
206
153
|
id: 'sonnet-5-xhigh',
|
|
@@ -224,6 +171,19 @@ const CLAUDE_MODELS = [
|
|
|
224
171
|
badge: 'Quick & Sharp',
|
|
225
172
|
badgeClass: 'badge-speed'
|
|
226
173
|
},
|
|
174
|
+
{
|
|
175
|
+
id: 'opus-5.5-medium',
|
|
176
|
+
aliases: ['opus-4.6-medium'],
|
|
177
|
+
cli_model: 'claude-opus-5-5',
|
|
178
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'medium' },
|
|
179
|
+
name: 'Opus 5.5 Medium',
|
|
180
|
+
tier: 'balanced',
|
|
181
|
+
tagline: 'Everyday Opus',
|
|
182
|
+
description: 'Opus 5.5 with medium effort — strong everyday reviews at lower cost and latency',
|
|
183
|
+
badge: 'Medium Effort',
|
|
184
|
+
badgeClass: 'badge-balanced',
|
|
185
|
+
extra_args: ['--thinking', 'adaptive']
|
|
186
|
+
},
|
|
227
187
|
{
|
|
228
188
|
id: 'sonnet-4.6',
|
|
229
189
|
cli_model: 'claude-sonnet-4-6',
|
|
@@ -234,16 +194,6 @@ const CLAUDE_MODELS = [
|
|
|
234
194
|
badge: 'Previous Gen',
|
|
235
195
|
badgeClass: 'badge-balanced'
|
|
236
196
|
},
|
|
237
|
-
{
|
|
238
|
-
id: 'opus-4.6-1m',
|
|
239
|
-
cli_model: 'claude-opus-4-6[1m]',
|
|
240
|
-
name: 'Opus 4.6 1M',
|
|
241
|
-
tier: 'balanced',
|
|
242
|
-
tagline: 'Extended Context',
|
|
243
|
-
description: 'Opus 4.6 high effort with 1M token context window',
|
|
244
|
-
badge: 'More Context',
|
|
245
|
-
badgeClass: 'badge-power'
|
|
246
|
-
},
|
|
247
197
|
// ── Fast tier ───────────────────────────────────────────────────────────
|
|
248
198
|
{
|
|
249
199
|
id: 'haiku',
|
|
@@ -255,6 +205,21 @@ const CLAUDE_MODELS = [
|
|
|
255
205
|
badge: 'Fastest',
|
|
256
206
|
badgeClass: 'badge-speed',
|
|
257
207
|
extra_args: ['--thinking', 'adaptive']
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
// Kept after haiku: getFastTierModel() takes the first fast-tier entry for
|
|
211
|
+
// extraction and hunk summaries, which should stay on Haiku.
|
|
212
|
+
id: 'opus-5.5-low',
|
|
213
|
+
aliases: ['opus-4.6-low'],
|
|
214
|
+
cli_model: 'claude-opus-5-5',
|
|
215
|
+
env: { CLAUDE_CODE_EFFORT_LEVEL: 'low' },
|
|
216
|
+
name: 'Opus 5.5 Low',
|
|
217
|
+
tier: 'fast',
|
|
218
|
+
tagline: 'Quick Opus',
|
|
219
|
+
description: 'Opus 5.5 with low effort — fast passes over simple changes',
|
|
220
|
+
badge: 'Low Effort',
|
|
221
|
+
badgeClass: 'badge-speed',
|
|
222
|
+
extra_args: ['--thinking', 'adaptive']
|
|
258
223
|
}
|
|
259
224
|
];
|
|
260
225
|
|
package/src/ai/codex-provider.js
CHANGED
|
@@ -21,40 +21,24 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
21
21
|
/**
|
|
22
22
|
* Codex model definitions with tier mappings
|
|
23
23
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `codex --version`, and nothing falls back to GPT-5.6 at runtime. A GPT-6
|
|
32
|
-
* default would fail every default analysis for users without access.
|
|
33
|
-
* - gpt-6-astra: GPT-6 flagship, the most capable model for complex, demanding
|
|
34
|
-
* work ($10/$50 per MTok, same context as Sol). About five times GPT-6 Sol's
|
|
35
|
-
* price, so it stays an opt-in thorough choice rather than the default.
|
|
36
|
-
* - gpt-6-sol: Frontier model built for complex coding and agentic workflows
|
|
37
|
-
* ($2/$10 per MTok; 1.05M API context, capped at 272K in the Codex catalog;
|
|
38
|
-
* 128K output; API input above 272K bills at 2x, output at 1.5x). Newer than
|
|
39
|
-
* GPT-5.6 Sol at half its price, but opt-in until GPT-6 access is universal.
|
|
40
|
-
* - gpt-6-luna: GPT-6's most efficient model for focused, high-volume work
|
|
41
|
-
* ($0.10/$0.50 per MTok, same context as Sol). Per OpenAI, GPT-6 Luna (max)
|
|
42
|
-
* exceeds GPT-5.6 Sol (medium) at a tenth of its cost. No `ultra` effort.
|
|
43
|
-
* Opt-in, like GPT-6 Sol.
|
|
44
|
-
* - gpt-5.6-sol / gpt-5.6-terra / gpt-5.6-luna: "legacy" in Codex but still
|
|
45
|
-
* available (no retirement date announced)
|
|
46
|
-
* - gpt-5.5: older frontier model. OpenAI retires it from Codex on ALL plans
|
|
47
|
-
* on 2026-10-14 (the API is unaffected); remove the gpt-5.5-* entries then.
|
|
48
|
-
* - Every model is exposed only through explicit reasoning-effort variants.
|
|
24
|
+
* Descriptions follow the Codex CLI model catalog. GPT-5.6 Sol High stays the
|
|
25
|
+
* recommended default during the GPT-6 rollout. GPT-6 Sol/Luna require admin
|
|
26
|
+
* enablement in Enterprise; GPT-6.1 Sol requires it in Enterprise and Edu.
|
|
27
|
+
* Selecting a model locally does not grant access. testAvailability() checks
|
|
28
|
+
* only `codex --version`, and model rejection does not trigger a fallback,
|
|
29
|
+
* so GPT-6 and GPT-6.1 remain explicit choices.
|
|
30
|
+
* Each picker entry specifies a reasoning effort explicitly.
|
|
49
31
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* Entries are ordered thorough → balanced → fast; the first `fast` entry
|
|
55
|
-
* serves JSON extraction and hunk summaries (see AIProvider.getFastTierModel).
|
|
32
|
+
* Entries are ordered thorough → balanced → fast. The first balanced entry
|
|
33
|
+
* controls provider-switch selection and resolveDefaultModel's fallback. The
|
|
34
|
+
* first fast entry serves JSON extraction and hunk summaries. Both stay on
|
|
35
|
+
* GPT-5.6 during rollout for access compatibility.
|
|
56
36
|
* Guided tours use the provider default, not the fast tier.
|
|
57
37
|
*
|
|
38
|
+
* GPT-5.5 retires from Codex on all plans on 2026-10-14 (API unaffected);
|
|
39
|
+
* remove the gpt-5.5-* entries then.
|
|
40
|
+
* Workspace access: learn.chatgpt.com/docs/enterprise/workspace-model-availability
|
|
41
|
+
*
|
|
58
42
|
* Reasoning-effort variants (-low / -high / -xhigh / -max) use `cli_model` to pass
|
|
59
43
|
* the base model ID to `codex exec -m` and add `-c model_reasoning_effort="..."`
|
|
60
44
|
* via extra_args so Codex picks up the effort level through its config override.
|
|
@@ -74,6 +58,28 @@ const BIN_DIR = path.join(__dirname, '..', '..', 'bin');
|
|
|
74
58
|
*/
|
|
75
59
|
const CODEX_MODELS = [
|
|
76
60
|
// ── Thorough tier ───────────────────────────────────────────────────────
|
|
61
|
+
{
|
|
62
|
+
id: 'gpt-6.1-sol-high',
|
|
63
|
+
cli_model: 'gpt-6.1-sol',
|
|
64
|
+
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
65
|
+
name: 'GPT-6.1 Sol High',
|
|
66
|
+
tier: 'thorough',
|
|
67
|
+
tagline: 'Latest Workhorse',
|
|
68
|
+
description: 'Latest workhorse model for coding and everyday work, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6.1 Sol access; Enterprise and Edu administrators must enable it during rollout.',
|
|
69
|
+
badge: 'Newest',
|
|
70
|
+
badgeClass: 'badge-power'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'gpt-6.1-sol-xhigh',
|
|
74
|
+
cli_model: 'gpt-6.1-sol',
|
|
75
|
+
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
76
|
+
name: 'GPT-6.1 Sol XHigh',
|
|
77
|
+
tier: 'thorough',
|
|
78
|
+
tagline: 'Latest Workhorse Depth',
|
|
79
|
+
description: 'Latest workhorse model for coding and everyday work, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6.1 Sol access; Enterprise and Edu administrators must enable it during rollout.',
|
|
80
|
+
badge: 'Extra High',
|
|
81
|
+
badgeClass: 'badge-power'
|
|
82
|
+
},
|
|
77
83
|
{
|
|
78
84
|
id: 'gpt-6-astra-high',
|
|
79
85
|
cli_model: 'gpt-6-astra',
|
|
@@ -81,7 +87,7 @@ const CODEX_MODELS = [
|
|
|
81
87
|
name: 'GPT-6 Astra High',
|
|
82
88
|
tier: 'thorough',
|
|
83
89
|
tagline: 'Most Capable',
|
|
84
|
-
description: '
|
|
90
|
+
description: 'Frontier intelligence for the most demanding work, with high reasoning effort for deep cross-file analysis and demanding architectural reviews.',
|
|
85
91
|
badge: 'Most Capable',
|
|
86
92
|
badgeClass: 'badge-power'
|
|
87
93
|
},
|
|
@@ -92,7 +98,7 @@ const CODEX_MODELS = [
|
|
|
92
98
|
name: 'GPT-6 Astra XHigh',
|
|
93
99
|
tier: 'thorough',
|
|
94
100
|
tagline: 'Maximum Depth',
|
|
95
|
-
description: '
|
|
101
|
+
description: 'Frontier intelligence for the most demanding work, with extra-high reasoning effort for concurrency, security-sensitive changes, and large codebase context.',
|
|
96
102
|
badge: 'Extra High',
|
|
97
103
|
badgeClass: 'badge-power'
|
|
98
104
|
},
|
|
@@ -102,9 +108,9 @@ const CODEX_MODELS = [
|
|
|
102
108
|
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
103
109
|
name: 'GPT-6 Sol High',
|
|
104
110
|
tier: 'thorough',
|
|
105
|
-
tagline: '
|
|
106
|
-
description: '
|
|
107
|
-
badge: '
|
|
111
|
+
tagline: 'Previous Gen',
|
|
112
|
+
description: 'Previous generation workhorse model, with high reasoning effort for demanding reviews and cross-file analysis. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
|
|
113
|
+
badge: 'Previous Gen',
|
|
108
114
|
badgeClass: 'badge-power'
|
|
109
115
|
},
|
|
110
116
|
{
|
|
@@ -113,8 +119,8 @@ const CODEX_MODELS = [
|
|
|
113
119
|
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
114
120
|
name: 'GPT-6 Sol XHigh',
|
|
115
121
|
tier: 'thorough',
|
|
116
|
-
tagline: '
|
|
117
|
-
description: '
|
|
122
|
+
tagline: 'Previous Gen Depth',
|
|
123
|
+
description: 'Previous generation workhorse model, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
|
|
118
124
|
badge: 'Extra High',
|
|
119
125
|
badgeClass: 'badge-power'
|
|
120
126
|
},
|
|
@@ -124,8 +130,8 @@ const CODEX_MODELS = [
|
|
|
124
130
|
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
125
131
|
name: 'GPT-5.6 Sol High',
|
|
126
132
|
tier: 'thorough',
|
|
127
|
-
tagline: '
|
|
128
|
-
description: '
|
|
133
|
+
tagline: 'Older Workhorse',
|
|
134
|
+
description: 'Older generation workhorse model, with high reasoning effort for demanding reviews and cross-file analysis. The default while GPT-6 and GPT-6.1 access rolls out.',
|
|
129
135
|
badge: 'Recommended',
|
|
130
136
|
badgeClass: 'badge-recommended',
|
|
131
137
|
default: true
|
|
@@ -136,8 +142,8 @@ const CODEX_MODELS = [
|
|
|
136
142
|
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
137
143
|
name: 'GPT-5.6 Sol XHigh',
|
|
138
144
|
tier: 'thorough',
|
|
139
|
-
tagline: '
|
|
140
|
-
description: '
|
|
145
|
+
tagline: 'Older Workhorse Depth',
|
|
146
|
+
description: 'Older generation workhorse model, with extra-high reasoning effort for difficult architectural reviews, subtle regressions, and security-sensitive changes.',
|
|
141
147
|
badge: 'Extra High',
|
|
142
148
|
badgeClass: 'badge-power'
|
|
143
149
|
},
|
|
@@ -147,9 +153,9 @@ const CODEX_MODELS = [
|
|
|
147
153
|
extra_args: ['-c', 'model_reasoning_effort="high"'],
|
|
148
154
|
name: 'GPT-5.5 High',
|
|
149
155
|
tier: 'thorough',
|
|
150
|
-
tagline: '
|
|
151
|
-
description: '
|
|
152
|
-
badge: '
|
|
156
|
+
tagline: 'Legacy Coding',
|
|
157
|
+
description: 'Legacy coding model, with high reasoning effort for demanding reviews and careful cross-file analysis. OpenAI retires GPT-5.5 from Codex on 2026-10-14.',
|
|
158
|
+
badge: 'Legacy',
|
|
153
159
|
badgeClass: 'badge-power'
|
|
154
160
|
},
|
|
155
161
|
{
|
|
@@ -158,24 +164,22 @@ const CODEX_MODELS = [
|
|
|
158
164
|
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
159
165
|
name: 'GPT-5.5 XHigh',
|
|
160
166
|
tier: 'thorough',
|
|
161
|
-
tagline: '
|
|
162
|
-
description: '
|
|
167
|
+
tagline: 'Legacy Coding Depth',
|
|
168
|
+
description: 'Legacy coding model, with extra-high reasoning effort for architecture, concurrency, and security-sensitive reviews. OpenAI retires GPT-5.5 from Codex on 2026-10-14.',
|
|
163
169
|
badge: 'Max Reasoning',
|
|
164
170
|
badgeClass: 'badge-power'
|
|
165
171
|
},
|
|
166
172
|
// ── Balanced tier ───────────────────────────────────────────────────────
|
|
167
|
-
//
|
|
168
|
-
// from a balanced model, and resolveDefaultModel's fallback when the flagged
|
|
169
|
-
// default is disabled, so it must run for every account: GPT-6 goes last.
|
|
173
|
+
// Provider switching and default fallback must work without GPT-6 access.
|
|
170
174
|
{
|
|
171
175
|
id: 'gpt-5.6-terra-xhigh',
|
|
172
176
|
cli_model: 'gpt-5.6-terra',
|
|
173
177
|
extra_args: ['-c', 'model_reasoning_effort="xhigh"'],
|
|
174
178
|
name: 'GPT-5.6 Terra XHigh',
|
|
175
179
|
tier: 'balanced',
|
|
176
|
-
tagline: '
|
|
177
|
-
description: '
|
|
178
|
-
badge: '
|
|
180
|
+
tagline: 'Older Balanced',
|
|
181
|
+
description: 'Older balanced model for straightforward work, with extra-high reasoning effort for careful everyday reviews.',
|
|
182
|
+
badge: 'Previous Gen',
|
|
179
183
|
badgeClass: 'badge-balanced'
|
|
180
184
|
},
|
|
181
185
|
{
|
|
@@ -185,7 +189,7 @@ const CODEX_MODELS = [
|
|
|
185
189
|
name: 'GPT-5.6 Luna Max',
|
|
186
190
|
tier: 'balanced',
|
|
187
191
|
tagline: 'Previous Gen',
|
|
188
|
-
description: '
|
|
192
|
+
description: 'Older fast and efficient model, with max reasoning effort for high-volume reviews and broad codebase scans.',
|
|
189
193
|
badge: 'Previous Gen',
|
|
190
194
|
badgeClass: 'badge-balanced'
|
|
191
195
|
},
|
|
@@ -195,14 +199,13 @@ const CODEX_MODELS = [
|
|
|
195
199
|
extra_args: ['-c', 'model_reasoning_effort="max"'],
|
|
196
200
|
name: 'GPT-6 Luna Max',
|
|
197
201
|
tier: 'balanced',
|
|
198
|
-
tagline: '
|
|
199
|
-
description: '
|
|
200
|
-
badge: '
|
|
202
|
+
tagline: 'Affordable Depth',
|
|
203
|
+
description: 'Fast and affordable model for easier tasks, with max reasoning effort for high-volume reviews and broad codebase scans. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
|
|
204
|
+
badge: 'Affordable',
|
|
201
205
|
badgeClass: 'badge-speed'
|
|
202
206
|
},
|
|
203
207
|
// ── Fast tier ───────────────────────────────────────────────────────────
|
|
204
|
-
//
|
|
205
|
-
// run for every account: keep it on GPT-5.6 until GPT-6 access is universal.
|
|
208
|
+
// JSON extraction and hunk summaries must work without GPT-6 access.
|
|
206
209
|
{
|
|
207
210
|
id: 'gpt-5.6-luna-low',
|
|
208
211
|
cli_model: 'gpt-5.6-luna',
|
|
@@ -210,8 +213,8 @@ const CODEX_MODELS = [
|
|
|
210
213
|
name: 'GPT-5.6 Luna Low',
|
|
211
214
|
tier: 'fast',
|
|
212
215
|
tagline: 'Quick Scan',
|
|
213
|
-
description: '
|
|
214
|
-
badge: '
|
|
216
|
+
description: 'Older fast and efficient model, with low reasoning effort for surface scans: obvious bugs, style issues, and lint-level feedback.',
|
|
217
|
+
badge: 'Previous Gen',
|
|
215
218
|
badgeClass: 'badge-speed'
|
|
216
219
|
},
|
|
217
220
|
{
|
|
@@ -220,9 +223,9 @@ const CODEX_MODELS = [
|
|
|
220
223
|
extra_args: ['-c', 'model_reasoning_effort="low"'],
|
|
221
224
|
name: 'GPT-6 Luna Low',
|
|
222
225
|
tier: 'fast',
|
|
223
|
-
tagline: '
|
|
224
|
-
description: '
|
|
225
|
-
badge: '
|
|
226
|
+
tagline: 'Quick Scan',
|
|
227
|
+
description: 'Fast and affordable model for easier tasks, with low reasoning effort for surface scans: obvious bugs, style issues, and lint-level feedback. Requires GPT-6 access; Enterprise administrators must enable it during rollout.',
|
|
228
|
+
badge: 'Fast',
|
|
226
229
|
badgeClass: 'badge-speed'
|
|
227
230
|
}
|
|
228
231
|
];
|
package/src/ai/provider.js
CHANGED
|
@@ -593,7 +593,7 @@ function resolveCliModelConfig(builtIn, configModel, modelId) {
|
|
|
593
593
|
/**
|
|
594
594
|
* Match a model definition against a selector that may be the model's canonical
|
|
595
595
|
* id OR one of its aliases. Used by config-driven selectors (`default_model`,
|
|
596
|
-
* `
|
|
596
|
+
* `models` overrides) so legacy config naming an alias (e.g.
|
|
597
597
|
* `opus`, an alias of the canonical `opus-5.5-xhigh`) keeps working.
|
|
598
598
|
*
|
|
599
599
|
* Optional-chaining is intentional: a model with no `aliases` short-circuits to
|
|
@@ -918,7 +918,8 @@ function mergeModels(builtInModels, configModels) {
|
|
|
918
918
|
|
|
919
919
|
/**
|
|
920
920
|
* Compute the effective model list for a provider: built-in models merged with
|
|
921
|
-
* config-override models, then with any `disabled_models` IDs removed.
|
|
921
|
+
* config-override models, then with any `disabled_models` IDs removed. Only
|
|
922
|
+
* canonical ids disable a model; aliases are ignored (see below).
|
|
922
923
|
*
|
|
923
924
|
* This is the single source of truth for "which models does this provider
|
|
924
925
|
* actually expose" — every call site that surfaces or selects a model should go
|
|
@@ -940,8 +941,11 @@ function applyModelOverrides(builtInModels, overrides) {
|
|
|
940
941
|
if (!Array.isArray(disabled) || disabled.length === 0) {
|
|
941
942
|
return merged;
|
|
942
943
|
}
|
|
943
|
-
// Drop a model
|
|
944
|
-
|
|
944
|
+
// Drop a model only when a disabled selector names its canonical id. Aliases
|
|
945
|
+
// are deliberately not matched: they include redirects for retired ids (e.g.
|
|
946
|
+
// `opus-4.7-high` -> `opus-5.5-high`), so a list that hid an old model would
|
|
947
|
+
// otherwise hide the newer model that inherited its id.
|
|
948
|
+
const filtered = merged.filter(m => !disabled.includes(m.id));
|
|
945
949
|
// Never strip a provider down to zero models — fall back to the unfiltered set.
|
|
946
950
|
return filtered.length > 0 ? filtered : merged;
|
|
947
951
|
}
|
|
@@ -986,11 +990,15 @@ function validateModelSelectors(providerId, builtInModels, configModels, disable
|
|
|
986
990
|
|
|
987
991
|
if (disabledModels) {
|
|
988
992
|
for (const id of disabledModels) {
|
|
989
|
-
if (
|
|
993
|
+
if (merged.some(m => m.id === id)) continue;
|
|
994
|
+
const aliased = merged.find(m => modelMatches(m, id));
|
|
995
|
+
if (aliased) {
|
|
996
|
+
logger.warn(`Provider "${providerId}": disabled_models entry "${id}" is an alias of "${aliased.id}", not an id; disabled_models needs canonical ids. Ignored.`);
|
|
997
|
+
} else {
|
|
990
998
|
logger.warn(`Provider "${providerId}": disabled_models references unknown model "${id}".`);
|
|
991
999
|
}
|
|
992
1000
|
}
|
|
993
|
-
const remaining = merged.filter(m => !disabledModels.
|
|
1001
|
+
const remaining = merged.filter(m => !disabledModels.includes(m.id));
|
|
994
1002
|
if (merged.length > 0 && remaining.length === 0) {
|
|
995
1003
|
logger.warn(`Provider "${providerId}": disabled_models removes every model; the filter will be ignored.`);
|
|
996
1004
|
}
|
|
@@ -999,7 +1007,7 @@ function validateModelSelectors(providerId, builtInModels, configModels, disable
|
|
|
999
1007
|
if (defaultModel != null) {
|
|
1000
1008
|
if (!isKnown(defaultModel)) {
|
|
1001
1009
|
logger.warn(`Provider "${providerId}": default_model "${defaultModel}" is not a known model; falling back to automatic default.`);
|
|
1002
|
-
} else if (disabledModels && disabledModels.includes(defaultModel)) {
|
|
1010
|
+
} else if (disabledModels && disabledModels.includes(merged.find(m => modelMatches(m, defaultModel)).id)) {
|
|
1003
1011
|
logger.warn(`Provider "${providerId}": default_model "${defaultModel}" is also listed in disabled_models; falling back to automatic default.`);
|
|
1004
1012
|
}
|
|
1005
1013
|
}
|
package/src/chat/omp-bridge.js
CHANGED
|
@@ -18,11 +18,38 @@
|
|
|
18
18
|
* - OMP's `autoResume` setting reopens the most recent session in the cwd
|
|
19
19
|
* when no session flag is passed, so new chats must explicitly request a
|
|
20
20
|
* fresh session via the `new_session` RPC command before session discovery.
|
|
21
|
+
* - OMP emits session events Pi does not: `notice` diagnostics and status-line
|
|
22
|
+
* updates (advisor, compaction, retry, ...). See _handleOtherEvent.
|
|
21
23
|
*/
|
|
22
24
|
|
|
23
25
|
const PiBridge = require('./pi-bridge');
|
|
24
26
|
const logger = require('../utils/logger');
|
|
25
27
|
|
|
28
|
+
/**
|
|
29
|
+
* OMP session events that only drive its TUI status line. They carry nothing
|
|
30
|
+
* the chat panel renders, so they are acknowledged at debug level rather than
|
|
31
|
+
* reported as unhandled. Mirrors the informational members of OMP's
|
|
32
|
+
* `AgentSessionEvent` union (src/session/agent-session-events.ts).
|
|
33
|
+
*/
|
|
34
|
+
const OMP_STATUS_EVENTS = new Set([
|
|
35
|
+
'advisor_cost_changed',
|
|
36
|
+
'advisor_yielded',
|
|
37
|
+
'auto_compaction_end',
|
|
38
|
+
'auto_compaction_start',
|
|
39
|
+
'auto_retry_end',
|
|
40
|
+
'auto_retry_start',
|
|
41
|
+
'config_warnings_changed',
|
|
42
|
+
'goal_updated',
|
|
43
|
+
'irc_message',
|
|
44
|
+
'model_changed',
|
|
45
|
+
'retry_fallback_applied',
|
|
46
|
+
'retry_fallback_succeeded',
|
|
47
|
+
'thinking_level_changed',
|
|
48
|
+
'todo_auto_clear',
|
|
49
|
+
'todo_reminder',
|
|
50
|
+
'ttsr_triggered',
|
|
51
|
+
]);
|
|
52
|
+
|
|
26
53
|
class OmpBridge extends PiBridge {
|
|
27
54
|
/**
|
|
28
55
|
* @param {Object} options - Same options as PiBridge, except:
|
|
@@ -55,6 +82,35 @@ class OmpBridge extends PiBridge {
|
|
|
55
82
|
this._splitProviderModel = false;
|
|
56
83
|
}
|
|
57
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Handle OMP-only session events. A `notice` is OMP reporting a problem or
|
|
87
|
+
* status of its own (config warnings, advisor quota, session persistence
|
|
88
|
+
* failures), so it is logged at its own level; status-line events are
|
|
89
|
+
* acknowledged quietly.
|
|
90
|
+
* @param {Object} event - The parsed event
|
|
91
|
+
*/
|
|
92
|
+
_handleOtherEvent(event) {
|
|
93
|
+
if (event.type === 'notice') {
|
|
94
|
+
const source = event.source ? ` (${event.source})` : '';
|
|
95
|
+
const text = `[${this.logName}] OMP notice${source}: ${event.message}`;
|
|
96
|
+
if (event.level === 'error') {
|
|
97
|
+
logger.error(text);
|
|
98
|
+
} else if (event.level === 'warning') {
|
|
99
|
+
logger.warn(text);
|
|
100
|
+
} else {
|
|
101
|
+
logger.debug(text);
|
|
102
|
+
}
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (OMP_STATUS_EVENTS.has(event.type)) {
|
|
107
|
+
logger.debug(`[${this.logName}] ${event.type}`);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
super._handleOtherEvent(event);
|
|
112
|
+
}
|
|
113
|
+
|
|
58
114
|
/**
|
|
59
115
|
* No sessionPath means this is a new chat. Launching OMP without a session
|
|
60
116
|
* flag would let its `autoResume` setting reopen the user's most recent
|