Repository navigation
fix: let users schedule their own work in handed-off chats - #201015
Conversation
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 94beea52-fe66-8c24-a445-c7d4162dc8bb
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR lets authenticated Control UI users schedule their own work in spawned dashboard chats after parent control ends. Example: A user with operator.write continues agent:main:dashboard:delegated-task after its parent releases control and requests a daily reminder.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a current scheduling admission bug, and source review found no actionable correctness defects. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway chat admission combines authenticated caller permissions, input provenance, and session control facts into the authority carried to the agent's automation tool. flowchart TD
A[Authenticated Control UI input] --> B[Gateway chat admission]
C[Session lineage and live controller] --> B
B --> D[Cron creator authority]
D --> E[Agent automation tool]
E --> F[Caller scoped scheduler operations]
Technical reviewBest possible solution: Keep the narrow exception in the existing admission owner while preserving live parent control, direct-input checks, and caller ownership limits. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the spawnedBy rejection, and the author reports red/green chat.send regressions for write-scoped and administrator callers; no target code was executed during this review. Is this the best way to solve the issue? The patch addresses the admission mismatch using the existing controller and scoped-authority owners, without adding another scheduling path or broadening administrator privileges. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4698d8f832a0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +20, Tests +56. Total +76 across 5 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 Reviewed November 18, 2026, 12:50 AM ET / 05:50 UTC. |
…201015) * fix: let users schedule their own work in handed-off chats Co-authored-by: VACInc <[email protected]> * fix: let users schedule their own work in handed-off chats Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 94beea52-fe66-8c24-a445-c7d4162dc8bb --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]>
* fix: let users schedule their own work in handed-off chats Co-authored-by: VACInc <[email protected]> * fix: let users schedule their own work in handed-off chats Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 94beea52-fe66-8c24-a445-c7d4162dc8bb --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]> (cherry picked from commit 9c105a4) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
A user with
operator.writecould resume a dashboard chat that an agent had started, ask for a recurring job, and repeatedly get “this turn was not started by the owner.” The scheduler never received the request.User Impact
After the parent agent releases the chat, fresh authenticated Control UI requests can use the caller’s existing permission to schedule their own work. No administrator role or configuration change is needed.
Why This Change Was Made
The chat still records which session spawned it. That record describes how the chat began, not who sent the current message. For cron creation, distinguish a dashboard chat with no live parent controller from an actively supervised child. Keep the direct-input checks and the caller’s tool restrictions. Even an administrator using this exception receives no global cron management or local-operator grant.
Evidence
Reproduced the denial through
chat.sendwith a persisted spawned dashboard session, for both a write-scoped user and an administrator. Both cases failed on unchangedmainand passed with the fix. The focused WebChat suite passed (17 cases), as did the operator admission and cron transport suites, production and test type checks, and formatting and lint. No live job was created or Discord message sent during these checks.Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by