thinkpool-pair 0.7.276 → 0.7.277

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/codex-session.mjs +10 -1
  2. package/package.json +1 -1
package/codex-session.mjs CHANGED
@@ -267,7 +267,16 @@ export function buildCodexExecArgs({ sessionId, model, effort, sandbox, approval
267
267
  // Both fresh `exec` and `exec resume` accept repeatable --image flags. Only
268
268
  // bridge-derived absolute paths reach this layer; relative values are ignored
269
269
  // so a future caller cannot silently change the child's path interpretation.
270
- for (const imagePath of images) if (path.isAbsolute(String(imagePath || ''))) args.push('--image', String(imagePath))
270
+ let hasNativeImages = false
271
+ for (const imagePath of images) {
272
+ if (!path.isAbsolute(String(imagePath || ''))) continue
273
+ args.push('--image', String(imagePath))
274
+ hasNativeImages = true
275
+ }
276
+ // Codex CLI 0.144.1 defines --image as a variadic option. Without an option
277
+ // terminator it consumes the positional prompt (and, on resume, the thread
278
+ // id), then exits because stdin is intentionally /dev/null in the bridge.
279
+ if (hasNativeImages) args.push('--')
271
280
  if (sessionId) args.push(sessionId)
272
281
  args.push(String(prompt ?? ''))
273
282
  return args
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.276",
3
+ "version": "0.7.277",
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": {