@mmmbuto/nexuscli 0.5.5 → 0.5.6
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.
|
@@ -52,21 +52,27 @@ class CodexWrapper {
|
|
|
52
52
|
args.push('-m', baseModel);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
// Add reasoning effort config override
|
|
56
|
-
if (reasoningEffort) {
|
|
55
|
+
// Add reasoning effort config override (only for new sessions)
|
|
56
|
+
if (reasoningEffort && !threadId) {
|
|
57
57
|
args.push('-c', `model_reasoning_effort="${reasoningEffort}"`);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
// Add image files for multimodal support
|
|
61
|
-
if (imageFiles && imageFiles.length > 0) {
|
|
60
|
+
// Add image files for multimodal support (only for new sessions)
|
|
61
|
+
if (imageFiles && imageFiles.length > 0 && !threadId) {
|
|
62
62
|
for (const imagePath of imageFiles) {
|
|
63
63
|
args.push('-i', imagePath);
|
|
64
64
|
}
|
|
65
65
|
console.log('[CodexWrapper] Attached', imageFiles.length, 'image(s)');
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// Add prompt as argument
|
|
69
|
-
|
|
68
|
+
// Add prompt as argument
|
|
69
|
+
// For new sessions: use '--' to separate from options
|
|
70
|
+
// For resume: prompt goes directly after threadId
|
|
71
|
+
if (threadId) {
|
|
72
|
+
args.push(prompt);
|
|
73
|
+
} else {
|
|
74
|
+
args.push('--', prompt);
|
|
75
|
+
}
|
|
70
76
|
|
|
71
77
|
console.log('[CodexWrapper] Model:', model);
|
|
72
78
|
console.log('[CodexWrapper] Reasoning:', reasoningEffort);
|