Repository navigation
fix: hide inaccessible session keys in cron history errors - #172807
Merged
Merged
Conversation
Contributor
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
Contributor
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. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 16, 2026
…172807) Cron selects transcript sessions internally from recorded run identifiers. Forwarding chat-history errors could expose the selected key to a caller who cannot view that session. Use the Cron owner's generic unavailable error for every delegated failure while retaining current disclosure checks. Add registered-RPC coverage for restricted run-ID/timestamp access, missing runs, invalid cursors, and revocation errors without hidden session keys. Document the generic error contract. Validation: corrected full Cron test shard, selected CI types/lint/source contracts/architecture guards/baseline ratchets, security-sensitive review, and two scoped Codex review rounds passed. CI run 38684579272 attempt 2 retains one pre-checkout actions/setup-go archive HTTP 404 after a failed-only retry; landed under the maintainer-approved small-fixture-fix/infrastructure exception. No product failure remains. T1 stays 0; SQL and request behavior are unchanged.
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.
What Problem This Solves
Fixes
cron.historyerrors exposing the internally selected session key when a restricted caller cannot read that session.User Impact
Unavailable and inaccessible recorded transcripts now return the same generic unavailable response. Successful pages, cursor behavior, and current sharing checks are unchanged.
Why This Change Was Made
Cron selects a session internally from the recorded run and delegates transcript reads to the chat history owner. Chat errors can name their requested session; forwarding them is unsafe when the Cron caller supplied only a job/run identifier. The Cron response adapter now uses its existing generic failure response for every delegated error.
Related: #172386.
Evidence
The registered RPC regression covers restricted access by run ID and timestamp, missing runs, and invalid cursors. Existing sharing/binding/retention/transcript-owner revocation coverage also asserts that errors contain no hidden session keys. Existing successful archived-history and pagination coverage remains in place.
git diff --check.actions/setup-goarchive. One failed-only retry recovered two;checks-node-changed-1still failed during setup because the upstream archive returns HTTP 404. The aggregate CI gate remains red solely for that infrastructure failure.