thinkpool-pair 0.7.141 → 0.7.142

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.
@@ -763,8 +763,14 @@ export function startClaudeSession({ cwd, model, resume, env, mode: initialMode
763
763
  // m.slash_commands (init message) — the commands this session really
764
764
  // supports: built-ins + the host's custom .claude/commands. Surfaced
765
765
  // so the room composer's autocomplete lists what ACTUALLY exists.
766
- curModel = m.model || model || curModel
767
- emit({ kind: 'system', sessionId, model: m.model || model || null, commands: Array.isArray(m.slash_commands) ? m.slash_commands : undefined })
766
+ // Prefer the INTENDED model (opts.model — set at open and on every /model switch)
767
+ // over the message's own `m.model`. A RESUMED session REPLAYS the transcript's old
768
+ // init messages, all carrying the PRE-switch model, and each one used to reset the
769
+ // displayed model back (Max 2026-07-02: switch to Fable, then 24 replayed
770
+ // "init model=claude-opus-4-8" dragged the chip back to Opus with no result yet to
771
+ // correct it). opts.model reflects what the session will actually run, so trust it.
772
+ curModel = opts.model || m.model || model || curModel
773
+ emit({ kind: 'system', sessionId, model: opts.model || m.model || model || null, commands: Array.isArray(m.slash_commands) ? m.slash_commands : undefined })
768
774
  // Dynamic model list — ask the SDK for its OWN supported models and surface
769
775
  // them to the room so the /model picker renders live options (incl. new
770
776
  // models like Fable) instead of a hardcoded three-item list. Fire-and-forget:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.141",
3
+ "version": "0.7.142",
4
4
  "description": "Share a local coding-agent CLI (Claude Code, Codex, Gemini, Aider, …) into a ThinkPool Code room, live.",
5
5
  "type": "module",
6
6
  "bin": {