pi-ui-extend 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import type { ResolvedToolRule } from "../config.js";
2
2
  export declare const THINKING_LEVELS: readonly ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
3
3
  export declare const THINKING_MENU_MAX_ROWS: number;
4
- export declare const PI_FAVORITE_MODEL_REFS: readonly ["amazon-bedrock/us.anthropic.claude-opus-4-6-v1", "anthropic/claude-opus-4-8", "openai/gpt-5.4", "azure-openai-responses/gpt-5.4", "openai-codex/gpt-5.6-sol", "deepseek/deepseek-v4-pro", "google/gemini-3.1-pro-preview", "google-vertex/gemini-3.1-pro-preview", "github-copilot/gpt-5.4", "openrouter/moonshotai/kimi-k2.6", "vercel-ai-gateway/zai/glm-5.2", "xai/grok-4.5", "groq/openai/gpt-oss-120b", "cerebras/zai-glm-4.7", "zai/glm-5.2", "mistral/devstral-medium-latest", "minimax/MiniMax-M2.7", "minimax-cn/MiniMax-M2.7", "moonshotai/kimi-k2.6", "moonshotai-cn/kimi-k2.6", "huggingface/moonshotai/Kimi-K2.6", "fireworks/accounts/fireworks/models/kimi-k2p6", "together/moonshotai/Kimi-K2.6", "opencode/kimi-k2.6", "opencode-go/kimi-k2.6", "kimi-coding/kimi-for-coding", "cloudflare-workers-ai/@cf/moonshotai/kimi-k2.6", "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6", "xiaomi/mimo-v2.5-pro", "xiaomi-token-plan-cn/mimo-v2.5-pro", "xiaomi-token-plan-ams/mimo-v2.5-pro", "xiaomi-token-plan-sgp/mimo-v2.5-pro"];
4
+ export declare const PI_FAVORITE_MODEL_REFS: readonly ["amazon-bedrock/us.anthropic.claude-opus-4-6-v1", "anthropic/claude-opus-4-8", "openai/gpt-5.4", "azure-openai-responses/gpt-5.4", "openai-codex/gpt-5.6-sol", "deepseek/deepseek-v4-pro", "google/gemini-3.1-pro-preview", "google-vertex/gemini-3.1-pro-preview", "github-copilot/gpt-5.4", "openrouter/moonshotai/kimi-k2.6", "vercel-ai-gateway/zai/glm-5.2", "xai/grok-4.5", "groq/openai/gpt-oss-120b", "cerebras/zai-glm-4.7", "zai/glm-5.3", "mistral/devstral-medium-latest", "minimax/MiniMax-M2.7", "minimax-cn/MiniMax-M2.7", "moonshotai/kimi-k2.6", "moonshotai-cn/kimi-k2.6", "huggingface/moonshotai/Kimi-K2.6", "fireworks/accounts/fireworks/models/kimi-k2p6", "together/moonshotai/Kimi-K2.6", "opencode/kimi-k2.6", "opencode-go/kimi-k2.6", "kimi-coding/kimi-for-coding", "cloudflare-workers-ai/@cf/moonshotai/kimi-k2.6", "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6", "xiaomi/mimo-v2.5-pro", "xiaomi-token-plan-cn/mimo-v2.5-pro", "xiaomi-token-plan-ams/mimo-v2.5-pro", "xiaomi-token-plan-sgp/mimo-v2.5-pro"];
5
5
  export declare const SLASH_COMMAND_MENU_MAX_ROWS = 6;
6
6
  export declare const RESUME_MENU_MAX_ROWS = 20;
7
7
  export declare const RESUME_MENU_INITIAL_SESSION_ROWS = 30;
@@ -16,7 +16,7 @@ export const PI_FAVORITE_MODEL_REFS = [
16
16
  "xai/grok-4.5",
17
17
  "groq/openai/gpt-oss-120b",
18
18
  "cerebras/zai-glm-4.7",
19
- "zai/glm-5.2",
19
+ "zai/glm-5.3",
20
20
  "mistral/devstral-medium-latest",
21
21
  "minimax/MiniMax-M2.7",
22
22
  "minimax-cn/MiniMax-M2.7",
@@ -50,6 +50,7 @@ function extensionRendererTheme(theme) {
50
50
  dim: colors.muted,
51
51
  text: colors.foreground,
52
52
  thinkingText: colors.thinkingForeground,
53
+ searchMatchText: colors.popupSelectedForeground,
53
54
  userMessageText: colors.userForeground,
54
55
  customMessageText: colors.foreground,
55
56
  customMessageLabel: colors.accent,
@@ -88,6 +89,7 @@ function extensionRendererTheme(theme) {
88
89
  };
89
90
  const backgrounds = {
90
91
  selectedBg: colors.popupSelectedBackground,
92
+ searchMatchBg: colors.popupSelectedBackground,
91
93
  userMessageBg: colors.userMessageBackground || colors.background,
92
94
  customMessageBg: colors.assistantMessageBackground || colors.background,
93
95
  toolPendingBg: colors.thinkingMessageBackground || colors.background,
@@ -253,9 +253,9 @@ Example shared async-subagents config section:
253
253
  "cheap": {
254
254
  "description": "Use GLM for text/code roles.",
255
255
  "types": {
256
- "quick": { "model": "zai/glm-5.2", "thinking": "off" },
257
- "frontend": { "model": "antigravity/gemini-3-flash-preview", "fallbackModels": ["zai/glm-5.2"], "thinking": "medium" },
258
- "review": { "model": "zai/glm-5.2", "thinking": "high" }
256
+ "quick": { "model": "zai/glm-5.3", "thinking": "off" },
257
+ "frontend": { "model": "antigravity/gemini-3-flash-preview", "fallbackModels": ["zai/glm-5.3"], "thinking": "medium" },
258
+ "review": { "model": "zai/glm-5.3", "thinking": "high" }
259
259
  }
260
260
  }
261
261
  },
@@ -283,18 +283,18 @@ The canonical use case is an **`oracle`** role that consults a flagship model fr
283
283
  "oracle": {
284
284
  "description": "Cross-provider second opinion: consult a flagship from a different provider than the parent to pressure-test a hard decision. Read-only; advise, do not edit.",
285
285
  "model": "openai-codex/gpt-5.6-sol",
286
- "fallbackModels": ["zai/glm-5.2"],
286
+ "fallbackModels": ["zai/glm-5.3"],
287
287
  "thinking": "xhigh",
288
288
  "modelByParent": {
289
- "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] },
290
- "openai-codex/*": "zai/glm-5.2",
291
- "antigravity/*": { "model": "zai/glm-5.2", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
292
- "anthropic/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] }
289
+ "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] },
290
+ "openai-codex/*": "zai/glm-5.3",
291
+ "antigravity/*": { "model": "zai/glm-5.3", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
292
+ "anthropic/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] }
293
293
  }
294
294
  }
295
295
  ```
296
296
 
297
- With this config a GLM parent (`zai/*`) spawns the oracle on `gpt-5.6-sol`, a GPT parent (`openai-codex/*`) spawns it on `glm-5.2`, and so on — automatically, at spawn time, with no `task.model` needed. The parent model ref is read from the spawn context (`ctx.model`) and passed into resolution. Pattern matching is case-insensitive `*` glob (same engine as `vision.blindModelPatterns`). When no key matches (or no parent model is known), the role falls back to its static `model` + `fallbackModels`. An explicit `task.model` or `ASYNC_SUBAGENTS_FORCE_CURRENT_MODEL=1` still overrides the match.
297
+ With this config a GLM parent (`zai/*`) spawns the oracle on `gpt-5.6-sol`, a GPT parent (`openai-codex/*`) spawns it on `glm-5.3`, and so on — automatically, at spawn time, with no `task.model` needed. The parent model ref is read from the spawn context (`ctx.model`) and passed into resolution. Pattern matching is case-insensitive `*` glob (same engine as `vision.blindModelPatterns`). When no key matches (or no parent model is known), the role falls back to its static `model` + `fallbackModels`. An explicit `task.model` or `ASYNC_SUBAGENTS_FORCE_CURRENT_MODEL=1` still overrides the match.
298
298
 
299
299
  Sub-agents run with `--no-session` by default to avoid writing duplicate Pi session JSONL files for fire-and-forget background work. Set `ASYNC_SUBAGENTS_ENABLE_SESSIONS=1` to restore persisted per-agent sessions under each agent's `sessions/` directory; this also registers the session-navigation slash commands (`/sub-open`, `/sub-back`, `/sub-where`) needed for switching and deeper post-mortem navigation.
300
300
 
@@ -43,9 +43,9 @@
43
43
  "vscode-languageserver-protocol": "^3.17.5"
44
44
  },
45
45
  "peerDependencies": {
46
- "@earendil-works/pi-ai": "0.84.1",
47
- "@earendil-works/pi-coding-agent": "0.84.1",
48
- "@earendil-works/pi-tui": "0.84.1",
46
+ "@earendil-works/pi-ai": "0.84.2",
47
+ "@earendil-works/pi-coding-agent": "0.84.2",
48
+ "@earendil-works/pi-tui": "0.84.2",
49
49
  "typebox": "*"
50
50
  },
51
51
  "devDependencies": {
@@ -56,9 +56,9 @@
56
56
  // profile model, so a role like an "oracle" can always pick a flagship from a
57
57
  // DIFFERENT provider than the parent. Example:
58
58
  // "modelByParent": {
59
- // "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] },
60
- // "openai-codex/*": "zai/glm-5.2",
61
- // "antigravity/*": { "model": "zai/glm-5.2", "fallbackModels": ["openai-codex/gpt-5.6-sol"] }
59
+ // "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] },
60
+ // "openai-codex/*": "zai/glm-5.3",
61
+ // "antigravity/*": { "model": "zai/glm-5.3", "fallbackModels": ["openai-codex/gpt-5.6-sol"] }
62
62
  // }
63
63
 
64
64
  // Role auto-selection when subagentType is omitted is handled by a small LLM
@@ -115,11 +115,11 @@
115
115
  "scan": { "model": "zai/glm-4.5-air", "thinking": "off" },
116
116
  "research": { "model": "zai/glm-5-turbo", "thinking": "low" },
117
117
  "docs": { "model": "zai/glm-4.5-air", "thinking": "low" },
118
- "frontend": { "model": "antigravity/gemini-3-flash-preview", "fallbackModels": ["zai/glm-5.2"], "thinking": "medium" },
118
+ "frontend": { "model": "antigravity/gemini-3-flash-preview", "fallbackModels": ["zai/glm-5.3"], "thinking": "medium" },
119
119
  "tests": { "model": "zai/glm-5-turbo", "thinking": "medium" },
120
- "review": { "model": "zai/glm-5.2", "thinking": "high" },
121
- "implement": { "model": "zai/glm-5.2", "thinking": "high" },
122
- "deep": { "model": "zai/glm-5.2", "thinking": "high" }
120
+ "review": { "model": "zai/glm-5.3", "thinking": "high" },
121
+ "implement": { "model": "zai/glm-5.3", "thinking": "high" },
122
+ "deep": { "model": "zai/glm-5.3", "thinking": "high" }
123
123
  }
124
124
  },
125
125
 
@@ -130,11 +130,11 @@
130
130
  "scan": { "model": "openai-codex/gpt-5.6-luna", "fallbackModels": ["zai/glm-4.5-air"], "thinking": "off" },
131
131
  "research": { "model": "openai-codex/gpt-5.6-terra", "fallbackModels": ["zai/glm-5-turbo"], "thinking": "low" },
132
132
  "docs": { "model": "openai-codex/gpt-5.6-luna", "fallbackModels": ["zai/glm-4.5-air"], "thinking": "low" },
133
- "frontend": { "model": "openai-codex/gpt-5.6-terra", "fallbackModels": ["antigravity/gemini-3-flash-preview", "zai/glm-5.2"], "thinking": "medium" },
133
+ "frontend": { "model": "openai-codex/gpt-5.6-terra", "fallbackModels": ["antigravity/gemini-3-flash-preview", "zai/glm-5.3"], "thinking": "medium" },
134
134
  "tests": { "model": "openai-codex/gpt-5.6-terra", "fallbackModels": ["zai/glm-5-turbo"], "thinking": "medium" },
135
- "review": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"], "thinking": "high" },
136
- "implement": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"], "thinking": "high" },
137
- "deep": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"], "thinking": "high" }
135
+ "review": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"], "thinking": "high" },
136
+ "implement": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"], "thinking": "high" },
137
+ "deep": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"], "thinking": "high" }
138
138
  }
139
139
  },
140
140
 
@@ -145,11 +145,11 @@
145
145
  "scan": { "model": "antigravity/gemini-3-flash-preview", "fallbackModels": ["openai-codex/gpt-5.3-codex-spark", "zai/glm-4.5-air"], "thinking": "off" },
146
146
  "research": { "model": "antigravity/gemini-3.1-pro-preview", "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5-turbo"], "thinking": "medium" },
147
147
  "docs": { "model": "antigravity/gemini-2.5-flash", "fallbackModels": ["openai-codex/gpt-5.3-codex-spark", "zai/glm-4.5-air"], "thinking": "medium" },
148
- "frontend": { "model": "antigravity/gemini-3.1-pro-preview-customtools", "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5.2"], "thinking": "low" },
148
+ "frontend": { "model": "antigravity/gemini-3.1-pro-preview-customtools", "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5.3"], "thinking": "low" },
149
149
  "tests": { "model": "antigravity/antigravity-claude-sonnet-4-6", "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5-turbo"], "thinking": "high" },
150
- "review": { "model": "antigravity/antigravity-claude-sonnet-4-6", "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.2"], "thinking": "high" },
151
- "implement": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"], "thinking": "high" },
152
- "deep": { "model": "antigravity/antigravity-claude-opus-4-6-thinking", "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.2"], "thinking": "high" }
150
+ "review": { "model": "antigravity/antigravity-claude-sonnet-4-6", "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.3"], "thinking": "high" },
151
+ "implement": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"], "thinking": "high" },
152
+ "deep": { "model": "antigravity/antigravity-claude-opus-4-6-thinking", "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.3"], "thinking": "high" }
153
153
  }
154
154
  }
155
155
  },
@@ -184,7 +184,7 @@
184
184
  "frontend": {
185
185
  "description": "Use for frontend UI/UX visual work: styling, layout, typography, animation, responsive states, component polish, accessibility. Avoid backend/business logic unless needed for UI behavior.",
186
186
  "model": "antigravity/gemini-3-flash-preview",
187
- "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5.2"],
187
+ "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5.3"],
188
188
  "thinking": "medium",
189
189
  "promptAppend": [
190
190
  "Act as a frontend UI/UX engineer for visual and product-facing work.",
@@ -204,7 +204,7 @@
204
204
  "review": {
205
205
  "description": "Use for review/audit of existing code or changes: correctness, security, performance, maintainability, API risks, quality. Do not implement new code.",
206
206
  "model": "openai-codex/gpt-5.6-sol",
207
- "fallbackModels": ["zai/glm-5.2"],
207
+ "fallbackModels": ["zai/glm-5.3"],
208
208
  "thinking": "high",
209
209
  "tools": ["read", "grep"]
210
210
  },
@@ -212,28 +212,28 @@
212
212
  "implement": {
213
213
  "description": "Use when the sub-agent should make or plan code changes for a feature, bug fix, or refactor.",
214
214
  "model": "openai-codex/gpt-5.6-sol",
215
- "fallbackModels": ["zai/glm-5.2"],
215
+ "fallbackModels": ["zai/glm-5.3"],
216
216
  "thinking": "high"
217
217
  },
218
218
 
219
219
  "deep": {
220
220
  "description": "Use for broad hard reasoning: architecture, system design, cross-module impact, complex tradeoffs.",
221
221
  "model": "openai-codex/gpt-5.6-sol",
222
- "fallbackModels": ["zai/glm-5.2"],
222
+ "fallbackModels": ["zai/glm-5.3"],
223
223
  "thinking": "high"
224
224
  },
225
225
 
226
226
  "oracle": {
227
227
  "description": "Oracle: cross-provider flagship second opinion for hard or high-stakes uncertainty. Use sparingly to pressure-test architecture, plans, root-cause hypotheses, risk/security calls, or final recommendations when independent disagreement is valuable. Read-only; advise, do not edit.",
228
228
  "model": "openai-codex/gpt-5.6-sol",
229
- "fallbackModels": ["zai/glm-5.2"],
229
+ "fallbackModels": ["zai/glm-5.3"],
230
230
  "thinking": "xhigh",
231
231
  "tools": ["read", "grep", "bash"],
232
232
  "modelByParent": {
233
- "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] },
234
- "openai-codex/*": { "model": "zai/glm-5.2", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
235
- "antigravity/*": { "model": "zai/glm-5.2", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
236
- "anthropic/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] }
233
+ "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] },
234
+ "openai-codex/*": { "model": "zai/glm-5.3", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
235
+ "antigravity/*": { "model": "zai/glm-5.3", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
236
+ "anthropic/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] }
237
237
  },
238
238
  "promptAppend": "You are an oracle: a flagship model from a different provider giving a second opinion to the parent agent. Give a concise, decisive recommendation with key tradeoffs and risks. Disagree when warranted; do not rubber-stamp. Do not edit unless explicitly asked."
239
239
  }
@@ -220,12 +220,12 @@ const BUILTIN_CONFIG: SubagentConfig = {
220
220
  oracle: {
221
221
  description: "Oracle: cross-provider flagship second opinion for hard or high-stakes uncertainty. Use sparingly to pressure-test architecture, plans, root-cause hypotheses, risk/security calls, or final recommendations when independent disagreement is valuable. Read-only; advise, do not edit.",
222
222
  model: "openai-codex/gpt-5.6-sol",
223
- fallbackModels: ["zai/glm-5.2"],
223
+ fallbackModels: ["zai/glm-5.3"],
224
224
  modelByParent: {
225
- "zai/*": { model: "openai-codex/gpt-5.6-sol", fallbackModels: ["zai/glm-5.2"] },
226
- "openai-codex/*": { model: "zai/glm-5.2", fallbackModels: ["openai-codex/gpt-5.6-sol"] },
227
- "antigravity/*": { model: "zai/glm-5.2", fallbackModels: ["openai-codex/gpt-5.6-sol"] },
228
- "anthropic/*": { model: "openai-codex/gpt-5.6-sol", fallbackModels: ["zai/glm-5.2"] },
225
+ "zai/*": { model: "openai-codex/gpt-5.6-sol", fallbackModels: ["zai/glm-5.3"] },
226
+ "openai-codex/*": { model: "zai/glm-5.3", fallbackModels: ["openai-codex/gpt-5.6-sol"] },
227
+ "antigravity/*": { model: "zai/glm-5.3", fallbackModels: ["openai-codex/gpt-5.6-sol"] },
228
+ "anthropic/*": { model: "openai-codex/gpt-5.6-sol", fallbackModels: ["zai/glm-5.3"] },
229
229
  },
230
230
  thinking: "xhigh",
231
231
  tools: ["read", "grep", "bash"],
@@ -41,8 +41,10 @@ const DEFAULT_LOOKUP_MAX_IMAGES = 6;
41
41
  const DEFAULT_LOOKUP_MAX_TOKENS = 1_600;
42
42
  const DEFAULT_LOOKUP_TIMEOUT_MS = 120_000;
43
43
  const MAX_IMAGE_BYTES = 16 * 1024 * 1024;
44
- const SILENCE_REMINDER_MIN_VIOLATION_GAP = 3;
45
- const SILENCE_REMINDER_MIN_MESSAGE_GAP = 12;
44
+ // Keep recovery nudges sparse: newer GLM coding models are substantially better at
45
+ // long-horizon tool use, and repeated developer reminders can become prompt noise.
46
+ const SILENCE_REMINDER_MIN_VIOLATION_GAP = 5;
47
+ const SILENCE_REMINDER_MIN_MESSAGE_GAP = 20;
46
48
  // When the visible history shrinks by more than this many messages (compaction or
47
49
  // truncation), the chatter baseline is reset so it isn't measured against a stale peak.
48
50
  const SILENCE_REMINDER_COMPACTION_MARGIN = 8;
@@ -89,7 +91,9 @@ function buildDisciplineLines(strictness: CodingDisciplineStrictness): readonly
89
91
  isStrict ? "- WORKING: exactly one next tool call with empty text;" : "- WORKING: one or more independent tool calls with empty text;",
90
92
  "- FINAL: one final answer after completion or practical verification;",
91
93
  "- BLOCKED: one concise question only when no safe/useful tool action can continue.",
92
- "No transition permits commentary between tool calls.",
94
+ isStrict
95
+ ? "No transition permits commentary between tool calls."
96
+ : "When a thinking/reasoning channel is available, do not duplicate that reasoning as visible commentary between tool calls.",
93
97
  "",
94
98
  "PRIORITY: this overrides default assistant friendliness and conversational behavior.",
95
99
  "",
@@ -107,7 +111,7 @@ function buildDisciplineLines(strictness: CodingDisciplineStrictness): readonly
107
111
  const LOOKUP_DISCIPLINE_LINES = [
108
112
  "",
109
113
  "Visual lookup discipline:",
110
- "The current GLM model may be unable to inspect images/screenshots directly.",
114
+ "Treat the current GLM coding endpoint as text-only; do not assume it can inspect images/screenshots directly.",
111
115
  "When the user refers to an image, screenshot, UI visual bug, layout problem, arrow, annotation, highlight, visible text, chart, diagram, or any visual evidence, call the `lookup` tool before making visual claims.",
112
116
  "Use a focused lookup query that includes the user's visual concern and asks the helper to pay attention to arrows, annotations, highlights, visible UI state, text, spacing/layout, and suspected bugs.",
113
117
  "Treat lookup output as visual evidence; do not invent visual details beyond it.",
@@ -141,7 +145,8 @@ const DISCIPLINE_PROMPT_BLOCK_PATTERN = new RegExp(
141
145
  * Strips pi's built-in "Pi documentation" reference block from the system prompt.
142
146
  * That block (≈10 lines listing docs/examples paths and "when asked about X" routing)
143
147
  * is useless dead weight for non-pi work and dilutes attention to the trailing
144
- * <available_skills> section, which especially hurts weaker models like GLM.
148
+ * <available_skills> section and wastes attention that should stay on the task and
149
+ * the extension-provided agent contract.
145
150
  * Anchored on the fixed header/footer strings from buildSystemPrompt() so it only
146
151
  * ever matches pi's own block regardless of resolved doc/example paths.
147
152
  */
@@ -151,7 +156,7 @@ const PI_DOCS_BLOCK_PATTERN = new RegExp(
151
156
  );
152
157
 
153
158
  const LOOKUP_SYSTEM_PROMPT = [
154
- "You are a vision-capable lookup helper for a blind GLM coding agent.",
159
+ "You are a vision-capable lookup helper for a text-only GLM coding agent.",
155
160
  "Inspect the provided screenshots/images and answer the parent agent's focused question using concrete visual evidence.",
156
161
  "Pay special attention to arrows, annotations, highlights, cursor position, visible UI state, text, layout, spacing, colors, overlays, visual bugs, and error messages.",
157
162
  "Use recent session context only to understand what the user is asking; do not perform code changes.",
@@ -676,7 +681,7 @@ function codingDisciplineStrictnessFromConfig(cwd?: string): CodingDisciplineStr
676
681
 
677
682
  function buildLookupPrompt(params: LookupParams, recentContext: string, imageCount: number, warnings: string[]): string {
678
683
  return [
679
- "Lookup request from a blind GLM parent model.",
684
+ "Lookup request from a text-only GLM parent model.",
680
685
  "",
681
686
  "Focused question:",
682
687
  params.query.trim(),
@@ -9,7 +9,7 @@
9
9
  // Lossy and irreversible within a session; disabled by default and gated by a
10
10
  // patience counter + the emergency threshold. The summary can be produced
11
11
  // either by a deterministic programmatic digest (default) or by a configured
12
- // list of summarizer models (e.g. a cheap model like zai/glm-5.2), with
12
+ // list of summarizer models (e.g. a cheap model like zai/glm-5.3), with
13
13
  // automatic fallback to the programmatic digest on any failure/timeout.
14
14
  // ---------------------------------------------------------------------------
15
15
 
@@ -72,13 +72,13 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
72
72
  "maxContextPercent": "30%"
73
73
  }
74
74
  },
75
- // glm-5.2 reports a ~1M-token window. Even zai/* 16%/30% = 160K/300K is
75
+ // glm-5.3 reports a ~1M-token window. Even zai/* 16%/30% = 160K/300K is
76
76
  // above the ~15% (~150K) point where long sessions degrade, and an
77
- // observed 14h/273K-token session never crossed 16%. Lower ONLY glm-5.2
77
+ // observed 14h/273K-token session never crossed 16%. Lower ONLY glm-5.3
78
78
  // within the zai family: 8%/15% (~80K/150K) so nudging starts early and
79
79
  // auto-compress fires at the observed degradation point. Other zai/*
80
80
  // models keep 16%/30%.
81
- "zai/glm-5.2": {
81
+ "zai/glm-5.3": {
82
82
  "compress": {
83
83
  "minContextPercent": "8%",
84
84
  "maxContextPercent": "15%",
@@ -128,7 +128,7 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
128
128
  "autoCompress": {
129
129
  "enabled": false,
130
130
  "patience": 2,
131
- "summarizerModel": ["zai/glm-5.2", "zai/glm-4.5-air"],
131
+ "summarizerModel": ["zai/glm-5.3", "zai/glm-4.5-air"],
132
132
  "timeoutMs": 20000
133
133
  }
134
134
  }
@@ -146,13 +146,13 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
146
146
  "docs": { "model": "zai/glm-4.5-air", "thinking": "low" },
147
147
  "frontend": {
148
148
  "model": "antigravity/gemini-3-flash-preview",
149
- "fallbackModels": ["zai/glm-5.2"],
149
+ "fallbackModels": ["zai/glm-5.3"],
150
150
  "thinking": "medium"
151
151
  },
152
152
  "tests": { "model": "zai/glm-5-turbo", "thinking": "medium" },
153
- "review": { "model": "zai/glm-5.2", "thinking": "high" },
154
- "implement": { "model": "zai/glm-5.2", "thinking": "high" },
155
- "deep": { "model": "zai/glm-5.2", "thinking": "high" }
153
+ "review": { "model": "zai/glm-5.3", "thinking": "high" },
154
+ "implement": { "model": "zai/glm-5.3", "thinking": "high" },
155
+ "deep": { "model": "zai/glm-5.3", "thinking": "high" }
156
156
  }
157
157
  },
158
158
  "gpt": {
@@ -180,7 +180,7 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
180
180
  },
181
181
  "frontend": {
182
182
  "model": "openai-codex/gpt-5.6-terra",
183
- "fallbackModels": ["antigravity/gemini-3-flash-preview", "zai/glm-5.2"],
183
+ "fallbackModels": ["antigravity/gemini-3-flash-preview", "zai/glm-5.3"],
184
184
  "thinking": "medium"
185
185
  },
186
186
  "tests": {
@@ -190,17 +190,17 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
190
190
  },
191
191
  "review": {
192
192
  "model": "openai-codex/gpt-5.6-sol",
193
- "fallbackModels": ["zai/glm-5.2"],
193
+ "fallbackModels": ["zai/glm-5.3"],
194
194
  "thinking": "high"
195
195
  },
196
196
  "implement": {
197
197
  "model": "openai-codex/gpt-5.6-sol",
198
- "fallbackModels": ["zai/glm-5.2"],
198
+ "fallbackModels": ["zai/glm-5.3"],
199
199
  "thinking": "high"
200
200
  },
201
201
  "deep": {
202
202
  "model": "openai-codex/gpt-5.6-sol",
203
- "fallbackModels": ["zai/glm-5.2"],
203
+ "fallbackModels": ["zai/glm-5.3"],
204
204
  "thinking": "high"
205
205
  }
206
206
  }
@@ -230,7 +230,7 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
230
230
  },
231
231
  "frontend": {
232
232
  "model": "antigravity/gemini-3.1-pro-preview-customtools",
233
- "fallbackModels": ["zai/glm-5.2"],
233
+ "fallbackModels": ["zai/glm-5.3"],
234
234
  "thinking": "low"
235
235
  },
236
236
  "tests": {
@@ -240,17 +240,17 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
240
240
  },
241
241
  "review": {
242
242
  "model": "antigravity/antigravity-claude-sonnet-4-6",
243
- "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.2"],
243
+ "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.3"],
244
244
  "thinking": "high"
245
245
  },
246
246
  "implement": {
247
247
  "model": "openai-codex/gpt-5.6-sol",
248
- "fallbackModels": ["zai/glm-5.2"],
248
+ "fallbackModels": ["zai/glm-5.3"],
249
249
  "thinking": "high"
250
250
  },
251
251
  "deep": {
252
252
  "model": "antigravity/antigravity-claude-opus-4-6-thinking",
253
- "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.2"],
253
+ "fallbackModels": ["openai-codex/gpt-5.6-sol", "zai/glm-5.3"],
254
254
  "thinking": "high"
255
255
  }
256
256
  }
@@ -278,7 +278,7 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
278
278
  "frontend": {
279
279
  "description": "Use for frontend UI/UX visual work: styling, layout, typography, animation, responsive states, component polish, accessibility. Avoid backend/business logic unless needed for UI behavior.",
280
280
  "model": "antigravity/gemini-3-flash-preview",
281
- "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5.2"],
281
+ "fallbackModels": ["openai-codex/gpt-5.4-mini", "zai/glm-5.3"],
282
282
  "thinking": "medium",
283
283
  "promptAppend": [
284
284
  "Act as a frontend UI/UX engineer for visual and product-facing work.",
@@ -296,33 +296,33 @@ export const DEFAULT_PI_TOOLS_SUITE_CONFIG_JSONC = String.raw`{
296
296
  "review": {
297
297
  "description": "Use for review/audit of existing code or changes: correctness, security, performance, maintainability, API risks, quality. Do not implement new code.",
298
298
  "model": "openai-codex/gpt-5.6-sol",
299
- "fallbackModels": ["zai/glm-5.2"],
299
+ "fallbackModels": ["zai/glm-5.3"],
300
300
  "thinking": "high",
301
301
  "tools": ["read", "grep"]
302
302
  },
303
303
  "implement": {
304
304
  "description": "Use when the sub-agent should make or plan code changes for a feature, bug fix, or refactor.",
305
305
  "model": "openai-codex/gpt-5.6-sol",
306
- "fallbackModels": ["zai/glm-5.2"],
306
+ "fallbackModels": ["zai/glm-5.3"],
307
307
  "thinking": "high"
308
308
  },
309
309
  "deep": {
310
310
  "description": "Use for broad hard reasoning: architecture, system design, cross-module impact, complex tradeoffs.",
311
311
  "model": "openai-codex/gpt-5.6-sol",
312
- "fallbackModels": ["zai/glm-5.2"],
312
+ "fallbackModels": ["zai/glm-5.3"],
313
313
  "thinking": "high"
314
314
  },
315
315
  "oracle": {
316
316
  "description": "Oracle: cross-provider flagship second opinion for hard or high-stakes uncertainty. Use sparingly to pressure-test architecture, plans, root-cause hypotheses, risk/security calls, or final recommendations when independent disagreement is valuable. Read-only; advise, do not edit.",
317
317
  "model": "openai-codex/gpt-5.6-sol",
318
- "fallbackModels": ["zai/glm-5.2"],
318
+ "fallbackModels": ["zai/glm-5.3"],
319
319
  "thinking": "xhigh",
320
320
  "tools": ["read", "grep", "bash"],
321
321
  "modelByParent": {
322
- "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] },
323
- "openai-codex/*": { "model": "zai/glm-5.2", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
324
- "antigravity/*": { "model": "zai/glm-5.2", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
325
- "anthropic/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.2"] }
322
+ "zai/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] },
323
+ "openai-codex/*": { "model": "zai/glm-5.3", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
324
+ "antigravity/*": { "model": "zai/glm-5.3", "fallbackModels": ["openai-codex/gpt-5.6-sol"] },
325
+ "anthropic/*": { "model": "openai-codex/gpt-5.6-sol", "fallbackModels": ["zai/glm-5.3"] }
326
326
  },
327
327
  "promptAppend": "You are an oracle: a flagship model from a different provider giving a second opinion to the parent agent. Give a concise, decisive recommendation with key tradeoffs and risks. Disagree when warranted; do not rubber-stamp. Do not edit unless explicitly asked."
328
328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ui-extend",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Pix: a workspace-first terminal UI for Pi with tabs, readable tool activity, voice input, and bundled agent tools.",
5
5
  "private": false,
6
6
  "repository": {
@@ -75,9 +75,9 @@
75
75
  "prepublishOnly": "npm run check && npm run build:pix && npm run generate-schemas"
76
76
  },
77
77
  "dependencies": {
78
- "@earendil-works/pi-ai": "0.84.1",
79
- "@earendil-works/pi-coding-agent": "0.84.1",
80
- "@earendil-works/pi-tui": "0.84.1",
78
+ "@earendil-works/pi-ai": "0.84.2",
79
+ "@earendil-works/pi-coding-agent": "0.84.2",
80
+ "@earendil-works/pi-tui": "0.84.2",
81
81
  "@mariozechner/clipboard": "^0.3.9",
82
82
  "jsonc-parser": "3.3.1",
83
83
  "typebox": "1.1.38",