thinkpool-pair 0.7.122 → 0.7.123

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.
Files changed (2) hide show
  1. package/bridge.mjs +13 -0
  2. package/package.json +1 -1
package/bridge.mjs CHANGED
@@ -2174,6 +2174,19 @@ channel
2174
2174
  if (re && rec.flowTaskKey && !restoredTurnOpen(rec.log || [])) {
2175
2175
  setTimeout(() => { try { re.markFlowDone?.() } catch { /* noop */ } }, 2000)
2176
2176
  }
2177
+ // Auto-resume (Max, 2026-07-02): a PLAIN terminal (NOT a flow lane — those have their
2178
+ // own re-dispatch) that was MID-TURN when the bridge stopped picks the work back up
2179
+ // instead of sitting aborted. If its SDK context resumes (canResume), send ONE
2180
+ // "continue" once the session is live — like the user typing "continue" after a
2181
+ // restart. openStructured already closed the interrupted turn idle, so a continue that
2182
+ // can't be delivered just leaves it idle (recoverable) — never a hang or a loop.
2183
+ if (re && !rec.flowSessionId && canResume(rec) && restoredTurnOpen(rec.log || [])) {
2184
+ const rid = rec.id
2185
+ setTimeout(() => {
2186
+ const e = sessions.get(rid)
2187
+ try { e?.session?.sendTurn('continue') } catch { /* session still starting — stays idle, user can resume manually */ }
2188
+ }, 2500)
2189
+ }
2177
2190
  }
2178
2191
  // Fresh open: ONLY for an explicit `-- <claude>` share. In account mode
2179
2192
  // (autoAgent set, no attachedCmd) the web's `?new=1` flow opens the first
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.122",
3
+ "version": "0.7.123",
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": {