Repository navigation
fix(cron): scheduled scripts reject configured creator accounts - #176158
Merged
Merged
Conversation
Preserve the recorded creator origin during shared trigger/script tool preparation and bind the preparation cache to it. Keep missing-origin and unavailable-account behavior fail-closed without using delivery settings as authority. Add real headless scheduler-boundary coverage for named Telegram accounts, invalid origin changes, missing/disabled accounts, and delivery/owner separation. Fixes #176157
Contributor
|
🦞👀 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. |
vincentkoc
marked this pull request as ready for review
October 18, 2026 09:08
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 19, 2026
openclaw#176158) Preserve the recorded creator origin during shared trigger/script tool preparation and bind the preparation cache to it. Keep missing-origin and unavailable-account behavior fail-closed without using delivery settings as authority. Add real headless scheduler-boundary coverage for named Telegram accounts, invalid origin changes, missing/disabled accounts, and delivery/owner separation. Fixes openclaw#176157 Co-authored-by: Vincent Koc <[email protected]>
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #176157
What Problem This Solves
Fixes configured named accounts being reported unavailable when an account-scoped scheduled trigger or script prepares its tools, even though the job already records the creator's channel.
User Impact
Scheduled scripts can run with their existing account-scoped tool grant. Missing accounts and unknown creator origins still fail closed; delivery settings do not supply authorization. This does not infer missing origins for legacy jobs or change message-send account selection. No configuration or migration is required.
Why This Change Was Made
Pass the recorded caller origin to the existing scheduled-policy resolver, matching the agent-turn path. Include that origin in runtime preparation's cache key so a changed or missing origin cannot reuse an earlier account context. Both script entry points use the same runner.
The necessary production growth is seven net lines: the typed handoff and its cache identity. There is no new policy owner, fallback, configuration, or compatibility layer.
Evidence
workaccount withScheduled account "work" is unavailable, before reaching the script's message transport.gateway-roothas 730 test roots andinfrahas 740 against its 720-root budget. This change adds no roots to either graph and does not suppress that failure.