codeep 1.2.61 → 1.2.62
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/utils/agent.js +10 -6
- package/package.json +1 -1
package/dist/utils/agent.js
CHANGED
|
@@ -349,13 +349,17 @@ export async function runAgent(prompt, projectContext, options = {}) {
|
|
|
349
349
|
break;
|
|
350
350
|
}
|
|
351
351
|
fixAttempt++;
|
|
352
|
-
// If we've exceeded attempts,
|
|
352
|
+
// If we've exceeded fix attempts, hand back to the main agent loop
|
|
353
|
+
// instead of stopping — let it keep working freely without the verification constraint
|
|
353
354
|
if (fixAttempt >= maxFixAttempts) {
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
:
|
|
358
|
-
|
|
355
|
+
const errorMessage = formatErrorsForAgent(verifyResults);
|
|
356
|
+
messages.push({ role: 'assistant', content: finalResponse });
|
|
357
|
+
messages.push({
|
|
358
|
+
role: 'user',
|
|
359
|
+
content: `${errorMessage}\n\nVerification has failed ${fixAttempt} time(s). Stop trying the same approach. Step back, re-read ALL relevant files, and think about the root cause from scratch. Try a fundamentally different solution.`,
|
|
360
|
+
});
|
|
361
|
+
// Re-enter the main agent loop — it will continue until maxIterations
|
|
362
|
+
iteration++;
|
|
359
363
|
break;
|
|
360
364
|
}
|
|
361
365
|
// Detect if the same errors are repeating (previous fix attempt didn't help)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.62",
|
|
4
4
|
"description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|