headlesscode 1.2.0 → 1.2.1
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/package.json +1 -1
- package/src/engine/loop.ts +11 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "headlesscode",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Standalone headless coding-agent harness: runs the Zoo Code agent loop (prompts, tools, modes) without a VS Code UI, driven by CLI, HTTP, and parallel worktree orchestration.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/src/engine/loop.ts
CHANGED
|
@@ -3776,10 +3776,17 @@ export class HeadlessSession {
|
|
|
3776
3776
|
siblingCount: calls.length - 1,
|
|
3777
3777
|
})
|
|
3778
3778
|
} else if (completionCall) {
|
|
3779
|
-
const
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3779
|
+
const rawResult = completionCall.args?.result
|
|
3780
|
+
if (typeof rawResult !== "string" || rawResult.trim() === "") {
|
|
3781
|
+
return this.boundedFailure(
|
|
3782
|
+
"malformed attempt_completion result",
|
|
3783
|
+
iteration,
|
|
3784
|
+
toolCalls + 1,
|
|
3785
|
+
1,
|
|
3786
|
+
1,
|
|
3787
|
+
)
|
|
3788
|
+
}
|
|
3789
|
+
const result = rawResult
|
|
3783
3790
|
|
|
3784
3791
|
// Verify-before-finishing guardrail (see
|
|
3785
3792
|
// HeadlessSessionConfig.verifyBeforeCompletion's doc comment): the
|