Repository navigation
refactor: simplify timeout and announcement helpers - #148450
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 2:37 PM ET / 18:37 UTC. ClawSweeper reviewWhat this changesRemoves an unreachable Codex message-timeout branch and inlines a private subagent announcement formatter while preserving timeout selection and warning text. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, behavior-preserving cleanup with no actionable correctness findings. Current main retains both redundant paths, and the related merged timeout fix does not supersede this work. Priority: P3 Review scores
Verification
How this fits togetherThe Codex plugin assigns time budgets to OpenClaw tools requested by the model. Separately, subagent announcement delivery formats diagnostic warnings when it cannot wake the requesting session. flowchart TD
A[Codex tool request] --> B[Select tool time budget]
B --> C[Execute tool with watchdog]
D[Subagent completion] --> E[Wake requesting session]
E --> F[Format wake failure]
F --> G[Warning and delivery fallback]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -11. Total -11 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep timeout selection in its existing resolver and preserve the exported announcement formatter with the redundant private paths removed. Do we have a high-confidence way to reproduce the issue? Not applicable: this is internal cleanup, and source inspection establishes that the removed timeout branch is unreachable and the formatter expression is preserved. Is this the best way to solve the issue? Yes: the patch removes redundancy within the existing owners without adding APIs, changing settings, or altering cancellation and delivery decisions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb8f6bb18334. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Remove the unreachable message-specific configuration branch after the dynamic-tool resolver early return. Inline the private announcement failure formatter into its only exported caller, preserving exact output and timeout behavior. Validation: 353 focused tests, changed-file checks, and independent review through P2 passed. Follow-up cleanup from the timeout ownership audit after #148388.
The compact Node planner correctly refuses repeated file identities. Remove the second registry entry while preserving all 68 unique database-worker consumers and their execution owner. This is the same inherited CI correction identified in #148423 and #148425. Validation: reproduced the original preflight error, all six planner profiles now generate, 76 planner tests and scoped changed checks pass, and independent review of the complete candidate is clean through P2.
0c932cc to
2e379e4
Compare
* refactor: simplify timeout and announcement helpers Remove the unreachable message-specific configuration branch after the dynamic-tool resolver early return. Inline the private announcement failure formatter into its only exported caller, preserving exact output and timeout behavior. Validation: 353 focused tests, changed-file checks, and independent review through P2 passed. Follow-up cleanup from the timeout ownership audit after openclaw#148388. * fix(ci): remove duplicate Wizard recovery test registration The compact Node planner correctly refuses repeated file identities. Remove the second registry entry while preserving all 68 unique database-worker consumers and their execution owner. This is the same inherited CI correction identified in openclaw#148423 and openclaw#148425. Validation: reproduced the original preflight error, all six planner profiles now generate, 76 planner tests and scoped changed checks pass, and independent review of the complete candidate is clean through P2.
Related: #148388
What Problem This Solves
The maintainer timeout-ownership audit found an unreachable timeout branch and a redundant subagent announcement formatter.
User Impact
No user-visible behavior changes. Timeout selection, cancellation, and announcement text stay the same.
Why This Change Was Made
The dynamic-tool resolver returns the message timeout before reaching its configuration helper, so that helper's message branch cannot run. The private announcement formatter has one caller; inlining its body preserves the exported contract. Together these remove 11 net production lines.
The final merge commit contains only these two cleanup files. The six functional timeout findings from the broader audit remain separate work.
Evidence
git diff --checkpassed.2e379e45e8ba49e4ef87bcaad192b042c6fb304b; all 140 PR checks passed. Native prepare and merge verified that same head.