Repository navigation
fix: keep active workspaces usable after personal Hide or Show - #186479
Conversation
|
🦞👀 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 changesCarries private involvement metadata through collaboration receipts so personal Hide and Show actions preserve authorized workspace operations. Example: A guest edits project.txt while another participant selects Hide from Involving me.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a concrete workspace interruption through the existing metadata owner; no actionable introduced defect was found, and exact-head CI remains pending. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe collaboration worker commits personal session metadata and sends private postimages to retained predicates, which workspace owners consult before filesystem operations. flowchart TD
A[Personal Hide or Show] --> B[Involvement handler]
B --> C[Collaboration worker]
C --> D[Private metadata receipt]
D --> E[Retained predicates]
E --> F[Workspace owner]
F --> G[Live authority guard]
G --> H[Filesystem operation]
Technical reviewBest possible solution: Preserve truthful metadata postimages through the existing receipt owner while retaining live authority checks before filesystem effects. Do we have a high-confidence way to reproduce the issue? Source establishes the missing-postimage path to workspace rejection, and the supplied baseline regression reports that exact failure; no target code was executed during this review. Is this the best way to solve the issue? This repairs information loss at the producer-to-publication boundary using existing owners, preserves private event projection, and keeps generic predicates and workspace guards intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80b4a31273d5. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +53, Tests +285, Docs 0. Total +338 across 8 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 HistoryReviewed October 28, 2026, 1:02 AM ET / 05:02 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Fixed: personal Hide and Show preserve ongoing authorized workspace work while real access revocation still blocks new operations. |
…law#186479) Personal Hide and Show preserve ongoing authorized workspace work while private involvement predicates and real revocation continue to invalidate correctly. Fixes openclaw#186472.
Fixes #186472
What Problem This Solves
Personal Hide from Involving me and Show in Involving me actions can interrupt an active guest's workspace operations with
Local sandbox workspace authority changed, even though the session, workspace and permissions remain the same. A fresh native reproduction reaches the registered involvement handler and then fails at the retained workspace predicate guard. The failure also appeared during an ordinary shared Studio task before its active runs ended.User Impact
Personal list choices should leave ongoing authorized workspace work usable. This repair preserves saved files and existing workspace authority while still publishing the actual private involvement change to readers that depend on it. Resets, archives, worktree replacement and permission revocation retain their existing guards. There is no new configuration, storage schema, public field or access grant.
Why This Change Was Made
The involvement writer already produces exact session metadata, but the collaboration receipt discarded that postimage and retained only an
unchangedsharing marker. The generic retained-entry publisher could not reconstruct a truthful entry from that marker and made the workspace predicate unknown.The collaboration receipt now carries the existing private metadata receipt from the native writer. Pending and committed readers use the writer's entry and available snapshot postimages; superseded commits preserve observed mismatches without overwriting newer state. Public session notifications retain their existing marker and omit the private payload. This reuses the current metadata owner and optional-snapshot size budget without adding SQL reads or teaching generic predicates that every sharing marker means the entire entry stayed unchanged.
Evidence
On baseline
b61ab6d, the registered-handler regression failed immediately after successful personal Hide at the retained workspace guard. The fixed case keeps one real managed-workspace owner across Hide and Show, synchronizes newly saved files after each, and confirms that a later reset revokes that owner. The existing lost-reply test also checks stable, involvement-sensitive and full-entry predicates, single dispatch and private-event projection.The protected-behavior case uses a real restricted guest profile, canonical role revocation, an admitted run and its managed workspace. It delays delivery of an untouched native post-COMMIT involvement receipt, revokes the guest's role, then delivers the receipt. The committed change settles once, but the guest's final
fsBridge.writeFileis rejected by the live authority guard before any backend call or file write. Previously accepted file contents remain intact. The run and workspace remain open, so Stop or disposal cannot explain the denial.Changed-file formatting/lint, selected production/test type graphs and 202 related cases passed. The 11-case registered-handler/worker run passed; its workspace regression took 1.774 seconds and lost-reply case 0.517 seconds. The workspace projection suite's 50 unaffected cases passed; after correcting the new case's error-wrapper assertion, that case passed in 10.817 seconds (48.31-second file wall time, mostly cold worker preparation). Optional PostgreSQL and Podman cases were not exercised in this setup. The docs link audit passed.
The natural Studio candidate completed the original guest task after both admin Hide and Show. Native command results establish 17 focused tests, 48 full tests and local commit
c229d5e; independent filesystem readback confirms the saved files and clean guest checkout. No workspace-authority error occurred in that guest task or the ordinary admin review continuation. The baseline capture shows Hide interrupting an active admin review continuation in the guest workspace after the original guest task had already completed; it is not a same-phase comparison. The paired native regression supplies the causal comparison.The runtime and recording are exactly
529986143205f938fc8e66843b0768cfb936b5ce. Current head5bf0b86f8bb07ed5d20936bdf4907a9efe229b20adds only the protected-behavior test; all production, UI, documentation and dependency bytes are identical. Independent engineering review is clean. Current-head CI completed with 85 successful jobs and 25 skipped by scope selection, including all three PostgreSQL conformance shards passing. The exact-head automated review reports Platinum readiness and proof, Diamond patch quality, and no findings or remaining before-merge items.Visual evidence
Recorded Hide and Show, then original guest completion
candidate-proof-v2.mp4
Visual verification
529986143205f938fc8e66843b0768cfb936b5ce