Repository navigation
fix: keep reminder scheduling visible in crowded Code Mode sessions - #187392
vincentkoc merged 8 commits into
Conversation
…ritize messaging tools in code mode
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR prioritizes the admitted native scheduler in Code Mode’s bounded tool index. Example: Schedule a reminder in the reported 154-tool Gateway session.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep open: this is a focused, maintainer-supported catalog repair, and the earlier command-blocking findings are resolved. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCode Mode converts admitted tool descriptors into a bounded model-facing index; tool execution continues through the existing catalog and authorization owners. flowchart TD
A[Admitted tools] --> B[Ownership descriptors]
B --> C[Code Mode bindings]
C --> D[Bounded catalog index]
D --> E[Agent tool selection]
E --> F[Existing tool execution]
Technical reviewBest possible solution: Land the narrow catalog-priority repair after required CI succeeds, while keeping restart recovery tracked separately. Do we have a high-confidence way to reproduce the issue? Current-main source permits the scheduler to fall behind a crowded declared-output tier, and the supplied paired Gateway run demonstrates the resulting CLI selection; no target code was executed during this review. Is this the best way to solve the issue? The existing index owner can fix discovery with one priority-predicate extension while preserving the character budget, plugin ownership, learned ranking, and independent shell execution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e4517b0ef2f4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +38. Total +40 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed November 25, 2026, 11:17 PM ET / November 26, 2026, 04:17 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
|
@clawsweeper re-review Please review the current contributor head @fonchaves, I updated your branch in place and retained all six contributor commits. The restart recovery reproduction remains open separately. |
Resolve the contributor branch onto the current catalog owner. Preserve shell access for independently targeted Gateways and profiles.
…atalogs Prioritize the admitted core scheduler alongside the shell and file tools. Keep plugin tools under their normal catalog ranking and preserve independent CLI profiles. Co-authored-by: Leandro F. Chaves <[email protected]>
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#187392) * fix(agent): block direct openclaw cli state mutation in exec and prioritize messaging tools in code mode * fix(agent): scope openclaw cli footgun guard to gateway host and support root options * fix(infra): allow optional host in rejectUnsafeExecLiveStateSqliteShellCommand context * fix(lint): rename shadowed path identifier and apply project formatting * fix(agents): keep the native scheduler visible in crowded Code Mode catalogs Prioritize the admitted core scheduler alongside the shell and file tools. Keep plugin tools under their normal catalog ranking and preserve independent CLI profiles. Co-authored-by: Leandro F. Chaves <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Leandro F. Chaves <[email protected]>
…187392) * fix(agent): block direct openclaw cli state mutation in exec and prioritize messaging tools in code mode * fix(agent): scope openclaw cli footgun guard to gateway host and support root options * fix(infra): allow optional host in rejectUnsafeExecLiveStateSqliteShellCommand context * fix(lint): rename shadowed path identifier and apply project formatting * fix(agents): keep the native scheduler visible in crowded Code Mode catalogs Prioritize the admitted core scheduler alongside the shell and file tools. Keep plugin tools under their normal catalog ranking and preserve independent CLI profiles. Co-authored-by: Leandro F. Chaves <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Leandro F. Chaves <[email protected]> (cherry picked from commit f76b87b)
Related to #187354.
What Problem This Solves
A crowded Code Mode catalog can expose shell execution while omitting the native scheduling signature. An agent can then start a second OpenClaw CLI merely to schedule a reminder. Leandro F. Chaves identified the catalog issue and proposed promoting scheduler tools in this PR.
User Impact
The compact index pins the admitted core scheduler alongside the core file and shell tools. The existing character budget, capability grants, independent profiles, and shell execution are preserved. Plugin or client tools that share the scheduler name retain ordinary catalog ranking.
Why This Change Was Made
Tool ownership and admission are already established when Code Mode builds its index. Using those facts preserves independent-profile CLI use and gives same-named plugins their ordinary ranking.
Evidence
A scripted agent chose the visible scheduler when present, otherwise shell exec. Both runs used the same 154-tool catalog, Linux x86-64 host, reminder name, scheduled time and payload. The Gateway, CLI, scheduling tool, and state store were real.
--profile devGatewayRSS covers the CLI child that successfully executed
automations create. The same scripted tool-selection rule ran against each catalog. Provider-specific selection rates and arm64 container memory remain open.The packaged build passed. The final regression failed against the frozen baseline on native-scheduler priority. All 9 tests in the changed suite passed on the published tree, including learned ranking, ordinary plugin ranking and the absent-scheduler control. Local autoreview of
4986dd0c31cac5d92c7692651bd7ae688536965bthrough P2 returned no actionable findings. The production diff is +5/−3 lines; the remaining changes are regression tests.Remaining scope
Restart recovery can still report that a rejected or unacknowledged reminder was saved. This change addresses tool discovery and child-process cost. The paired restart results and the outstanding arm64 container OOM are tracked on the issue.