thinkpool-pair 0.7.136 → 0.7.137

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.
@@ -880,6 +880,14 @@ export function startClaudeSession({ cwd, model, resume, env, mode: initialMode
880
880
  // instead, and echo a note line so both drivers see the change.
881
881
  async setModel(m) {
882
882
  try { await q?.setModel?.(m) } catch { /* may reject unknown model */ }
883
+ // setModel switches only the LIVE query object. runQuery() re-runs query() with
884
+ // `opts` on every auto-restart (transient stream drop / reconnect), so unless we
885
+ // also update opts.model the reconnect re-launches on the ORIGINAL model — which
886
+ // is why a /model switch kept snapping back to Opus after a few turns (Max
887
+ // 2026-07-02: 11× "init model=claude-opus-4-8" after switching to Fable). Pin the
888
+ // switch into opts + curModel so every subsequent re-run carries it.
889
+ opts.model = m
890
+ curModel = m
883
891
  emit({ kind: 'note', text: `model → ${m}` })
884
892
  },
885
893
  async listModels() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.136",
3
+ "version": "0.7.137",
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": {