Hooks were dispatched (runtime record created with phase="dispatched") but never properly tracked through completion. Four issues fixed: 1. Hook runtime records now finalized: handleAgentEnd writes phase="finalized" and clears the record when a hook completes. Previously records stayed at "dispatched" forever because verifyExpectedArtifact returned false for hook types. 2. Supervision timer for hooks: hook dispatch now sets a hard timeout so stuck hooks don't hang auto-mode indefinitely. 3. Hook retry removes completion key: when a hook requests retry via retry_on, the trigger unit's completion key is removed from the idempotency set so dispatchNextUnit will re-dispatch it. 4. Hook closeout in dispatchNextUnit: hook units are properly closed out (pushed to completedUnits, runtime cleared) without polluting the idempotency set. verifyExpectedArtifact returns true for hook/ types. Fixes #140 (comment 4063396798) |
||
|---|---|---|
| .. | ||
| resources | ||
| tests | ||
| app-paths.ts | ||
| bundled-extension-paths.ts | ||
| cli.ts | ||
| loader.ts | ||
| logo.ts | ||
| onboarding.ts | ||
| pi-migration.ts | ||
| resource-loader.ts | ||
| tool-bootstrap.ts | ||
| update-check.ts | ||
| update-cmd.ts | ||
| wizard.ts | ||