feat: Add more hook types to codewith: onError, onSafetyFlag, and onNewAgentThread (extensible hook framework). — Start a goal#404
Conversation
…ewAgentThread (extensible hook framework). — Start a goal
|
Closing without merging. Detailed rationale below, plus a concrete split/plan for a follow-up that can actually land. 1. It does not build (regression caused by this PR, not a baseline failure)
( Everything downstream of that crate never even got compiled. The remaining known blockers:
Generated artifacts would also have to be regenerated, and there are freshness tests for each:
The PR description reports 2. Even if it compiled, the three events would never fireHook dispatch in this repo is per-event and strongly typed: every event has a module under This PR adds names only — no event module, no schema, no 3. Two of the three duplicate hooks that already exist
4. The names break the hook-name contract
Recommended split
Reviewed on a clean rebase of this branch onto current |
Objective
Add more hook types to codewith: onError, onSafetyFlag, and onNewAgentThread (extensible hook framework). — Start a goal plan for this task and drive it node by node (required). Investigate the current codewith implementation first and cite file:line. Build and test on remote Blacksmith ONLY (never compile locally). Keep cargo fmt, clippy -D warnings, and prettier clean. Land a PR into hasna/codewith main.
Verification
Run
run_d9dcc6717988· backendcodewith· taskinline🏭 Generated by @hasnaxyz/factory