Skip to content

fix: keep active workspaces usable after personal Hide or Show - #186479

Merged
shakkernerd merged 2 commits into
mainfrom
guest-involvement-workspace-continuity
Oct 28, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
guest-involvement-workspace-continuity

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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 unchanged sharing 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.writeFile is 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 head 5bf0b86f8bb07ed5d20936bdf4907a9efe229b20 adds 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

Open preview

Before After
Before: Hide blocked the active admin review continuation in the guest workspace. After: original guest task completed following Hide and Show; unrelated failure indicators remain visible.

Recorded Hide and Show, then original guest completion

candidate-proof-v2.mp4

Visual verification

  • Baseline: b61ab6d
  • Exact head: 529986143205f938fc8e66843b0768cfb936b5ce
  • Scenario: Personal Hide blocked the active admin review continuation on the baseline; the original guest task had already finished. On the candidate, Hide and Show both occurred during the original guest task, which completed.
  • Runtime/build: 2026.10.8-529986143205-2026-10-28T03-34-43.647Z
  • Native results: Candidate original guest: 17 focused tests and 48 full tests passed, with 0 test failures; local commit c229d5e. Native receipts establish these results, independently of assistant prose.
  • Comparison limits: Same roles, project base, request and 1440×1000 light viewport; fresh sessions, generated content, scroll positions and trigger phases differ. The paired native regression provides causal proof.
  • Error scope: Collected candidate results contain 0 workspace-authority errors. Existing SyntaxError and inline-interpreter preflight refusals remain visible and are outside that count.
  • Both screenshots and the complete 31.36-second recording were visually inspected. Real menu actions are explicitly slowed to 0.08×; cuts to later states are labeled.
  • Native metadata confirms the baseline workspace-authority error. Candidate test and commit claims use original-guest native receipts; no additional review-test claim is made.
  • PR head5bf0b86f8bb07ed5d20936bdf4907a9efe229b20 adds only native test coverage after runtime529986143205f938fc8e66843b0768cfb936b5ce; all production, UI, documentation and dependency bytes remain identical. The recording identifies the runtime actually executed.

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: S labels Oct 28, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Carries 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.

  • Before: The next workspace operation fails with Local sandbox workspace authority changed.
  • After: The guest continues saving project.txt; a later session reset or role revocation still blocks stale access.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused producer-owned repair with useful runtime evidence and distinct continuity, publication, and revocation regressions.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The supplied Studio run exercises personal Hide and Show during guest work on production-identical runtime 5299861, with candidate completion visible in the inspected screenshot; the current-head production-path harness separately verifies canonical role revocation rejects a subsequent fsBridge write before backend I/O after delayed native receipt delivery.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Personal Hide or Show actions interrupt active guest workspace operations despite unchanged session, workspace, and access permissions.
Reason: The maintainer-authored repair restores the documented personal discovery contract with no new configuration, permission grant, public API, or storage format.

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
Reviewed head: 5bf0b86f8bb07ed5d20936bdf4907a9efe229b20

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Worker involvement publication keeps the original intent (5f5125b: Move involvement writes into the existing collaboration worker while preserving alias ordering, current authority, and committed publication.)
  • Host receipt publication keeps the original intent (6f17170: Publish committed worker facts through the existing in-memory owner without reopening host SQLite, preserving immediate revocation.)
  • Personal Hide and Show behavior keeps the original intent (69d5c3f: Keep per-person discovery preferences private and independent of membership, access permissions, and shared archive state.)
  • Workspace authority test fixture keeps the original intent (fe60f48: Preserve accepted workspace settlement after Stop while denying new operations and retaining original operator and Gateway authority checks.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current-main defect remains: Fetched main still publishes the involvement marker without the metadata postimage; the predicate projector cannot reconstruct a complete entry from an unchanged marker. (src/config/sessions/session-sharing-store.async.ts:302, 80b4a31273d5)
  • Existing producer-owned repair: The worker captures existing native metadata receipts for involvement changes and applies their existing envelope budget. (src/config/sessions/session-sharing-store.worker.ts:299, 5bf0b86f8bb0)
  • Ordered private publication: Pending and committed publication consume exact postimages; superseded receipts preserve observed mismatches without replacing newer matching entries, following the existing metadata publisher. (src/config/sessions/session-sharing-store.async.ts:316, 5bf0b86f8bb0)
  • Distinct behavioral regressions: The registered-handler case retains one real workspace across Hide and Show, synchronizes saved files, and rejects a subsequent reset; the lost-reply case separately checks stable, involvement-sensitive, and complete-entry predicates. (src/gateway/session-involvement.test.ts:244, 5bf0b86f8bb0)
  • Revoked guest rejected before filesystem effect: The current-head production-path harness delays an untouched native post-COMMIT receipt, revokes the guest through the canonical role owner, then verifies fsBridge.writeFile rejects before backend execution and creates no revoked.txt; the PR reports this case passing. (src/gateway/worker-environments/local-workspace-cancellation.test-support.ts:418, 5bf0b86f8bb0)
  • Runtime evidence inspected: Both downloaded screenshots were inspected: baseline shows workspace authorization blocking continuation, while the candidate shows task completion. The PR explicitly discloses different trigger phases. Video preparation failed with ffprobe failed: spawnSync ffprobe ENOENT, and no browser playback tool is available; the recording is not claimed as independently inspected. (529986143205)

Likely related people:

  • Peter Steinberger: Raw commit 6f17170 adds src/config/sessions/session-sharing-store.async.ts:304 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6f171709b0aa; files: src/config/sessions/session-sharing-store.async.ts)

PR surface

Source +53, Tests +285, Docs 0. Total +338 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 56 3 +53
Tests 4 295 10 +285
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 352 14 +338

Review metrics

Metric Value Why it matters
Production versus test growth Production +56/-3 LOC; tests and support +295/-10 LOC. Production growth forwards existing metadata receipts; test growth covers workspace continuity, lost replies, and delayed receipt delivery after guest revocation.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: An ordinary personal list action can interrupt another participant’s active workspace operations.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-28T03:43:20.421Z sha 5299861 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-28T04:55:25.539Z sha 5bf0b86 :: needs maintainer review before merge. :: none

Reviewed October 28, 2026, 1:02 AM ET / 05:02 UTC (Revision 3).

@shakkernerd

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 28, 2026
@shakkernerd
shakkernerd merged commit 5583e40 into main Oct 28, 2026
210 checks passed
@shakkernerd
shakkernerd deleted the guest-involvement-workspace-continuity branch October 28, 2026 05:37
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: personal Hide and Show preserve ongoing authorized workspace work while real access revocation still blocks new operations.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: personal Hide or Show interrupts active guest workspace access

1 participant