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.
- package/codex-session.mjs +10 -1
- 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
|
-
|
|
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
|