Repository navigation
fix: keep unresolved session owners from blocking authorized work - #176401
Merged
Merged
Conversation
Expose canonical owner profiles and preserve authorized work when assignment is unresolved. Repair the pnpm 12 freshness-hook invocation encountered while validating this change, without skipping its checks. Co-authored-by: steipete <[email protected]>
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: e9db1b25-4ffd-4377-bf8d-38e354b9a3bb
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
October 18, 2026 20:13
This was referenced Oct 18, 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.
What Problem This Solves
Fixes agents stalling otherwise authorized work when session-owner assignment cannot resolve a person or is mistaken for a permission denial.
User Impact
Owner-authorized agents can resolve existing canonical human profiles without visitor-management access. Unknown-owner errors explain the required identity namespace, and tool/default-workspace guidance keeps unresolved responsibility separate from task authorization and completion.
Existing customized workspaces need the equivalent instruction update; this change does not overwrite them. No identity links, roles, creator attribution, or access-control checks change.
Why This Change Was Made
The existing
sessionstool gains a boundedowner_profilesaction backed byusers.list. Optional verified GitHub account mappings select canonical profiles without guessing by name. Pages contain at most 32 profiles and omit emails and roles; restricted non-owner actions remain restricted.The normal commit path also exposed pnpm 12 rejecting the freshness hook's removed
-soption. Usingpnpm runpreserves the checks and their arguments; a real CLI/Git fixture covers that recovery. No hook was bypassed.Evidence
-s; all 8 hook tests then passed, and the normal commit hooks completed.pnpm buildpassed in 5m 22.6s on the implementation source.OPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_OWNER_ASSIGNMENT=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.live.config.ts test/gateway-owner-assignment.live.test.ts --maxWorkers=1.Known inherited local check:
check:max-lines-ratchetreports existing suppressions inui/src/pages/chat/components/chat-message.test.tsx,ui/src/pages/config/config-page-state.ts, andui/src/pages/sessions/sessions-page-state.ts. Those files and the baseline are byte-identical to starting commit6fcf1c433273aa44c0663c09a4c0432bc5567ece; this PR does not widen that baseline or alter those files.Thanks @steipete for reporting and directing the repair.
Work sessions
Worked on by