@taj-special/dravix-code 1.1.8 → 1.1.9
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/dist/cli/repl.js +5 -1
- package/package.json +1 -1
package/dist/cli/repl.js
CHANGED
|
@@ -2805,7 +2805,9 @@ export async function startRepl(cwd) {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
const normalized = normalizeResponse(fullResponse);
|
|
2807
2807
|
lastAIResponse = normalized;
|
|
2808
|
-
|
|
2808
|
+
if (normalized.trim()) {
|
|
2809
|
+
history.push({ role: 'assistant', content: normalized });
|
|
2810
|
+
}
|
|
2809
2811
|
if (conversationTitle === null) {
|
|
2810
2812
|
const _msgs = history.slice(1).filter(m => m.role === 'user' || m.role === 'assistant');
|
|
2811
2813
|
const _u = _msgs.find(m => m.role === 'user');
|
|
@@ -2841,6 +2843,7 @@ export async function startRepl(cwd) {
|
|
|
2841
2843
|
if (inlineFileOpErrors.length > 0) {
|
|
2842
2844
|
history.push({ role: 'system', content: inlineFileOpErrors.join('\n\n') + '\n\nFix the above errors and retry the failed operations.' });
|
|
2843
2845
|
readFileContinue = true;
|
|
2846
|
+
useProModel = true;
|
|
2844
2847
|
}
|
|
2845
2848
|
const allOps = parseOps(normalized);
|
|
2846
2849
|
// ── Detect incomplete plan: AI described steps but didn't output tags ──
|
|
@@ -3163,6 +3166,7 @@ export async function startRepl(cwd) {
|
|
|
3163
3166
|
if (fileOpErrors.length > 0) {
|
|
3164
3167
|
history.push({ role: 'system', content: fileOpErrors.join('\n\n') + '\n\nFix the above errors and retry the failed operations.' });
|
|
3165
3168
|
readFileContinue = true;
|
|
3169
|
+
useProModel = true;
|
|
3166
3170
|
}
|
|
3167
3171
|
if (declinedCmds.length > 0) {
|
|
3168
3172
|
const content = declinedCmds.map(cmd => `[User declined to run — ${cmd}]: User pressed No. Do not retry or ask about this command.`).join('\n\n');
|