castle-web-cli 0.4.32 → 0.4.33
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/agent.js +7 -3
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -429,9 +429,13 @@ async function runTaskAgentIn(ctx, task) {
|
|
|
429
429
|
notesPath: path.join(relDir, 'notes.md'),
|
|
430
430
|
depsSummary: ctx.depsSummary,
|
|
431
431
|
});
|
|
432
|
-
//
|
|
433
|
-
//
|
|
434
|
-
|
|
432
|
+
// No /goal wrapper: it makes a fresh evaluator re-check the WHOLE task
|
|
433
|
+
// prompt (including user-only "done when you reach wave 5"-style play
|
|
434
|
+
// criteria) after every turn, which traps the agent in an endless
|
|
435
|
+
// can't-verify-live-play loop. A single message + the autonomy reminder
|
|
436
|
+
// appended to the system prompt (CLAUDE_TASK_SYSTEM_REMINDER) is enough to
|
|
437
|
+
// get the work done; the agent stops when the code is in, the user verifies.
|
|
438
|
+
const invocation = buildAgentInvocation(ctx.backend, 'task', taskPrompt, ctx.claudeModel);
|
|
435
439
|
let result = { ok: false, finalText: '', error: 'not run' };
|
|
436
440
|
let lineBuf = '';
|
|
437
441
|
const flushFeedLines = (delta) => {
|