thinkpool-pair 0.7.53 → 0.7.54
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/claude-session.mjs +10 -1
- package/package.json +1 -1
package/claude-session.mjs
CHANGED
|
@@ -362,7 +362,16 @@ export function startClaudeSession({ cwd, model, resume, env, mode: initialMode
|
|
|
362
362
|
// Anthropic flips on/off during rollout — so the ghost-text chip silently died
|
|
363
363
|
// mid-day with NO change on our side. CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION is the
|
|
364
364
|
// documented override. opts.env REPLACES the child env, so spread the inherited one.
|
|
365
|
-
opts.env = { ...(env || process.env), CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION: '
|
|
365
|
+
opts.env = { ...(env || process.env), CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION: 'true' }
|
|
366
|
+
// …but the env override only flips the FEATURE GATE. The SDK forwards
|
|
367
|
+
// `promptSuggestions` solely into the control-init payload — it NEVER adds the
|
|
368
|
+
// `--prompt-suggestions` CLI flag the binary actually requires to generate a
|
|
369
|
+
// suggestion per turn (verified live: the spawned `claude` argv never carried it,
|
|
370
|
+
// and only `rate_limit_event` ever reached the bridge — no prompt_suggestion). Force
|
|
371
|
+
// it via extraArgs, which the SDK appends to argv as `--prompt-suggestions true`.
|
|
372
|
+
// Safe in SDK stream-json mode: the sibling `--include-partial-messages` flag carries
|
|
373
|
+
// the identical "requires --print/stream-json" rule and already runs here. (2026-06-22)
|
|
374
|
+
opts.extraArgs = { ...(opts.extraArgs || {}), 'prompt-suggestions': 'true' }
|
|
366
375
|
|
|
367
376
|
// Before the SDK replays this transcript, heal any cross-provider tool blocks
|
|
368
377
|
// it left behind (e.g. a room that ran on Z.ai GLM, now back on anthropic).
|