@0xgeorgemathew/zcode 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/lib/executor.js +6 -1
  2. package/package.json +1 -1
package/lib/executor.js CHANGED
@@ -454,6 +454,10 @@ async function execute(inv, opts = {}) {
454
454
  if (inv.kind !== 'task') break;
455
455
 
456
456
  const next = parseHandback(turn.response);
457
+ // A report-only visual follow-up that comes back without a valid block
458
+ // keeps the earlier (valid) handback instead of losing it.
459
+ const visualReport = phase === 'reporting' && askedForVisual;
460
+ if (visualReport && !next.handback && parsed.handback) break;
457
461
  // A handback-only follow-up keeps the substantive report from before.
458
462
  parsed = { ...next, report: next.report || parsed.report };
459
463
  if (parsed.error && !askedForHandback && Date.now() < deadline) {
@@ -466,7 +470,8 @@ async function execute(inv, opts = {}) {
466
470
  if (parsed.handback && parsed.handback.status === 'blocked') break;
467
471
  if (!inv.checks.length && !visualDeclared.length) break;
468
472
 
469
- if (inv.checks.length) {
473
+ // The visual report-only turn changes nothing: the checks already passed.
474
+ if (inv.checks.length && !visualReport) {
470
475
  setPhase('checking', { count: inv.checks.length });
471
476
  const preChecks = before ? snapshot(root) : null;
472
477
  checks = await runChecks(inv.checks, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xgeorgemathew/zcode",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Lean GLM-5.3 execution engine for orchestrator agents: task contracts, independent sessions, zcode-run verification, structured handbacks, subagents, MCP, skills. Wraps the ZCode engine. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "private": false,