Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 7:04 PM ET / 23:04 UTC. ClawSweeper reviewWhat this changesThe branch makes Merge readiness⛔ Blocked until stronger real behavior proof is added - 4 items remain This PR remains necessary: current main still derives Priority: P3 Review scores
Verification
How this fits togetherHook discovery combines workspace and plugin-managed hook metadata into one status report. The hooks CLI then turns that report into list, info, and check output for operators, so it should preserve the status owner’s recorded reason rather than collapse distinct non-ready states. flowchart TD
A[Workspace and plugin hook metadata] --> B[Hook status evaluation]
B --> C[Blocked reason recorded]
C --> D[Hooks check output]
C --> E[Hooks list output]
C --> F[Hooks info output]
E --> G[Operator diagnosis]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +17, Tests +76. Total +93 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the focused formatter-and-test change onto current main, retain the single producer-owned Do we have a high-confidence way to reproduce the issue? Yes—source provides a high-confidence path: an enabled hook with Is this the best way to solve the issue? Yes—the proposed boundary is the CLI presentation layer, which should reuse the authoritative status reason rather than infer readiness from separate fields. The PR also preserves the established disabled and true-missing-requirements wording paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against eb8c22ed13f9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
f42bbbe to
70decfe
Compare
Co-authored-by: sunlit-deng <[email protected]>
|
Land-ready; thanks @sunlit-deng for the focused fix. Verified contributor head Real on-disk hook definitions were parsed through the production status owner and every human/JSON CLI formatter:
Focused proof: Result: 15 passed. Full-branch structured review found no actionable issues. Exact-head hosted CI is green, including |
|
Merged via squash.
|
…r-117788-empty-startup-race * commit '9517b10778ba69b94471cb1f122a5f1e19aa22a4': fix(hooks): show eventless status consistently (openclaw#116127) refactor(cli): consolidate security-sensitive regression fixtures (openclaw#114411) perf(plugins): list from installed metadata (openclaw#117900) fix(memory): remove interrupted Dreaming sessions after Gateway restart (openclaw#117885) test(gateway): reuse startup plugin metadata snapshot (openclaw#117897)
* fix(hooks): show eventless status consistently * fix(hooks): preserve disabled hook status compatibility Co-authored-by: sunlit-deng <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where eventless hooks were classified correctly by
openclaw hooks check, butopenclaw hooks listandopenclaw hooks infostill described the same state as a generic missing-requirements problem.Why This Change Was Made
The CLI now reuses the hook status
blockedReasonfor human list and info output, while keeping true missing-requirement hooks labeled as missing requirements.User Impact
Operators see the actionable reason
no events definedconsistently across hook status commands.Evidence
pnpm test src/cli/hooks-cli.test.ts src/hooks/hooks-status.test.ts70decfe1ee783c9803815a8e501e31820cc313f4main.pnpm openclaw hooks listandpnpm openclaw hooks info eventless-demoagainst the same isolated hook fixture.pnpm openclaw hooks info missing-req-demoand kept true missing-requirement output unchanged.Additional module-boundary proof imported
src/cli/hooks-cli.tsdirectly and confirmed eventless list/info output now uses the blocked reason while missing-requirement output remains unchanged.proof-live.ts
AI-assisted: built with Codex