Repository navigation
test(gateway): expect a revoked person's Goal retry to be hidden as not found - #205698
Merged
Merged
Conversation
…ot found #204899 routes chat.send from a session-read personal profile through session participation, which refuses a session the person can no longer join with the hidden not-found error instead of a missing operator.write scope. The test still expected the scope refusal and failed on main.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Member
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Nov 26, 2026
…irement-rule * origin/main: (172 commits) test(gateway): expect a revoked person's Goal retry to be hidden as not found (#205698) fix: keep browser disabled when only hardening relay authentication (#203137) fix: recover Linux stream automations after command-anchor crashes (#203149) fix(whatsapp): identify voice-note captions as text in delivery receipts (#205381) fix(test): unblock restart-auth plugin and worker publication qualification (#205679) chore(ui): refresh control ui locales (#205691) fix: reduce memory during SQLite usage refresh (#201064) fix(plugins): readmit native captures with a dangling host link chore(i18n): refresh native locales (#205680) fix(update): hash SQLite lock bytes as zeros so Windows exclusion cannot fail verification (#205668) fix(skill-workshop): skip the skill diet for skills with Markdown outside support directories (#204881) fix(plugins): clarify dated SDK migration notices (#200932) fix: keep the resident launcher when reinstalling Gateway (#205655) fix: show the whole reply when you reopen a TUI session (#200455) test(ui): wait for restored speech player authorization (#199502) feat: let agents post approved GitHub comments (#204301) fix(agents): honor imageMaxDimensionPx at the provider and CLI image handoffs (#205663) chore(ui): refresh control ui locales (#205664) fix(google): preserve playback when Google Live splits audio into parts (#205364) fix: show named characters in exported session messages (#205362) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 26, 2026
…ot found (openclaw#205698) openclaw#204899 routes chat.send from a session-read personal profile through session participation, which refuses a session the person can no longer join with the hidden not-found error instead of a missing operator.write scope. The test still expected the scope refusal and failed on main.
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
src/gateway/chat-goal-created-authority.e2e.test.tsfails onmainin the revoked-role scenario of "finishes started Goal returns after role loss, refuses the next start, and honors Stop":It turns
checks-node-changedred on every PR whose changed-test selection includes it. For example, #205482 changes onlysrc/agents/subagentsand fails this check.User Impact
None. Test-only change. The product already refuses the revoked person's retry, starts no work and sends no reply. Only the error text the test expected is different.
Why This Change Was Made
#204899 made
chat.sendfrom a personal profile that holdsoperator.sessions.reada session-participation request (requiresSessionParticipationinmethod-scopes.ts, deferred inmethod-authorization.ts). The participation check refuses a session the person can no longer join withhiddenSessionNotFound, so it does not reveal that the session exists. Before #204899 the same request stopped at the scope gate withmissing scope: operator.write. The test still expected that older refusal.The test now expects the hidden not-found refusal for the exact session key. The checks after it are unchanged and pass: the Gateway drains, the parent makes no new provider call (
parentCallsstays 5), and the child call count is unchanged.Evidence
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts src/gateway/chat-goal-created-authority.e2e.test.ts: fails before this change with the error above and passes after it (1/1).oxfmt --checkclean.mainwas refused by the repository ruleset ("Changes must be made through a pull request"), so this repair is a PR.