Commit d1be795
feat(spawn): active-config model matching, tiered boot fallback, PR#128 guard layers; release 1.6.348
Model-entry injection criterion: new server/lib/spawn-model-resolver.js
resolves the spawn-time model from the ACTIVE configuration (workspace
active proxy profile mapping > env CLAUDE_MODEL/ANTHROPIC_MODEL >
settings.json env.ANTHROPIC_MODEL > top-level model; alias "default" is
no signal; no signal -> no injection), replacing the stale
lastModelUsage statistic that force-injected third-party override
prompts into unconfigured sessions. readClaudeProjectModel stays for
context-bar calibration. All 18 README locales updated (Arabic priority
chain spelled in words to avoid RTL bidi mirroring of ">").
Tiered boot fallback for injected system prompts: tier 1 retries once
WITHOUT injection on non-signal exit!=0 within a 5s boot window via a
one-shot skip token consumed at the top of the next spawn (permanent
rejected set reserved for the deterministic "unknown option" signal,
which still self-heals IM workers); !signal and !insideLogDir gates
keep user kills and IM personas out. Tier 2 prints a diagnostic notice
on quick exit-0 without auto-restart or auto-disable.
PR #128 integration (supersedes its branch): findcc resolveNpmClaudePath
falls back to the package bin/claude(.exe) for the Claude Code 2.x
layout that ships no cli.js (extracted findNpmBinFallback; claude.exe is
the real bin filename on every platform in 2.1.x); pty-manager wraps the
whole system-prompt pipeline in try-catch and registers PTY handlers
immediately after spawn; create_system_prompt runs git via spawnSync
with a 15s timeout; server.js's listen callback wraps its async setup in
a caught IIFE so post-bind rejections can't kill the process.
Two review rounds (six roles each) applied: exactly-once token
consumption, weakened causality wording in retry notices, corrected
SIGKILL claim in findcc comments (verified same-inode hard link),
2.x-fallback and null-guard test coverage, history.md dedup.
Tests: npm run test 7883 pass, npm run test:cli 8242 pass, 0 fail.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 26d2e72 commit d1be795
32 files changed
Lines changed: 651 additions & 86 deletions
File tree
- docs
- server
- lib
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments