Skip to content

fix: keep Activity permission errors stable during refresh - #196939

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/refresh-activity-stability-nov11
Nov 11, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/refresh-activity-stability-nov11

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Activity briefly replaces a settled permission error with loading placeholders when unrelated sessions change.

User Impact

User impact: denied Activity views remain stable during automatic refresh, while Retry, changed filters, reconnection and relevant access changes can still refresh them. Existing rows remain visible during a same-query refresh and are cleared if the response denies access.

This does not grant new access or introduce a limited-readable-person view. No configuration change or migration is required.

Why This Change Was Made

Activity now treats a permission denial as settled for the current selection rather than retrying it for unrelated activity. Explicit retries and authority changes bypass that settled state. Hidden-tab authority updates wait for visibility, and superseded responses cannot restore old rows.

Evidence

Maintainer verification on 09087a32dfc6a609d56147cd59304c63882ca805: 58 owner/page tests and both browser scenarios passed. In the isolated real Gateway run, an unrelated session event left the settled denial at one request, one alert and zero skeletons; Retry made a new request. The separate held-response browser scenario retained the accepted row during refresh and removed it on denial. Restoring only the prior production owner/page files made two selected cases fail, including four unwanted reads instead of one. The candidate was restored byte-for-byte; no production changes were needed.

  • Production-bundle Chromium regressions fail on base ecaefd29e7f1a23657de41a7eb217ba083c477be and pass on candidate 2902a87bcc9fb29ac8033772fd225862f7b6072a.
  • Held-response browser proof: an unrelated session event increased denied Activity reads from one to two and showed loading placeholders before the fix; after the fix there is still one read and the permission error stays visible. Clicking Retry recovers to rows. A subsequent held refresh retains the same row element, then removes it when access is denied.
  • Isolated real-Gateway proof: a synthetic guest receives a real permission denial for another synthetic person’s Activity. Creating an unrelated session produces a real session-change event without retrying the denied view. Clicking Retry still makes one new request.
  • Both browser regressions pass on candidate 2902a87bcc9fb29ac8033772fd225862f7b6072a; 58 focused tests pass, plus a separate consumer run with 36 unit and five browser-component tests (overlapping coverage).
  • UI typecheck, targeted lint/format, test-line budget and diff checks pass.
  • Canonical local autoreview reported no P0–P2 findings against the pinned base, on a local snapshot verified identical to this candidate. The reviewer did not execute tests independently and lacked some unchanged lifecycle context; a separate complete-source parent review covered the owner, page state, changed tests, real-Gateway test and refresh coordinator and found no actionable issue. Local ClawSweeper was unavailable. Hosted review completed with one actionable P3 test-port finding; the follow-up uses the existing claimed Gateway port-block lifecycle instead of releasing an ephemeral port before startup.

The initial published head 5a3c0bfe68065a23bd6413bc6bf99b61eec87e33 adds only publication metadata to candidate 2902a87bcc9fb29ac8033772fd225862f7b6072a; those commits have the same Git tree. Follow-up f697d42197cfeb0f6c61fef61ae7212a22ba400b changes only test-fixture lifecycle and its exact eight-line test-budget allocation, not production behavior. The corrected real-Gateway regression passes (9.7 seconds; 56.4-second invocation), with a clean Gateway shutdown and Chromium exit. All four existing Gateway port-ownership tests and seven selected state-acquisition rollback cases pass. A fresh canonical review of the follow-up and complete fixture/claim owners found no P0–P3 issues or material source-context gaps; the reviewer did not independently run tests. Published head 09087a32dfc6a609d56147cd59304c63882ca805 adds only publication metadata to this follow-up and has the same Git tree. No CI result is claimed.

Before

An unrelated session update replaces the settled denial with loading placeholders.

Before: Activity denial replaced by loading placeholders

After

The same update leaves the denial visible without another request. Retry remains available.

After: Activity denial remains stable during an unrelated session update

The real-Gateway test uses isolated synthetic state and the actual list authorization/event path. It does not invoke an inference model or modify a live service.

Contributor credit

Reported and scoped with @vyctorbrzezowski.

CI qualification

The completed CI run has only the test-line budget failure and its dependent gate. The official checker confirms that the exact baseline was already seven lines over its ceiling; this PR's added test lines are fully covered by its own allocation, leaving the same seven-line excess. Every other job in that run passed or was skipped. The baseline, tested merge tree and unchanged checker inputs were independently verified for the authorized inherited-failure landing route. No test was removed or allowance increased to absorb that debt.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 11, 2026 00:27
Retain settled denials across unrelated invalidations while admitting explicit retries, changed queries and authority refreshes. Defer hidden authority catch-up and preserve stale-response protection.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: de188d7a-df3c-4615-becc-ef5544f47dc1
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves settled Activity permission errors during unrelated refreshes while retaining Retry and access-change recovery.

Example: The Activity search “denied” has returned FORBIDDEN when an unrelated session changes.

  • Before: Activity sends another request and replaces the permission error with loading placeholders.
  • After: The permission error and Retry button remain visible without another request.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level fix with inspected browser evidence, meaningful lifecycle regressions, and the earlier finding resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots exercise the production Activity view and show placeholders replaced by a stable denial with Retry; the body records held-response recovery and isolated real-Gateway denial/event verification, with production unchanged by the port-fixture follow-up.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Unrelated session activity repeatedly replaces a settled permission error with loading placeholders.
Reason: The maintainer-authored direction restores stable feedback and preserves existing recovery and privacy behavior.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a current Activity refresh bug, and the earlier port-lifecycle finding is resolved with no new actionable findings.

Priority: P2
Reviewed head: 09087a32dfc6a609d56147cd59304c63882ca805

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Activity page passes route selections, Gateway snapshots, and session events to its existing query owner, which admits sessions.list requests and publishes rows, readiness, and errors to the Solid view.

flowchart LR
  A[Activity selection] --> C[Activity query owner]
  B[Gateway snapshots and events] --> C
  C --> D[Shared refresh coordinator]
  D --> C
  C --> E[Gateway sessions list]
  E --> C
  C --> F[Solid Activity view]
Loading

Technical review

Best possible solution:

Keep denial admission in the existing Activity query owner while preserving explicit recovery, access-change refreshes, and denied-row clearing.

Do we have a high-confidence way to reproduce the issue?

Current main schedules another Activity read after an unrelated invalidation despite a settled FORBIDDEN; supplied before/after browser evidence supports that path, but this read-only review ran no target code.

Is this the best way to solve the issue?

The fix addresses request admission at its existing owner, reuses the shared refresh coordinator, and preserves the privacy and reconnect contracts without introducing a parallel path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 041c3b716463.

Provenance checked

  • Activity query ownership and readiness keeps the original intent (10c95d1: Move Activity state into scoped owners while retaining query ordering and recovery.)
  • Refresh and explicit Retry feedback keeps the original intent (16a3670: Keep retained Activity content stable while showing explicit Retry progress.)
  • Reconnect retention keeps the original intent (c7d9291: Retain loaded page data through temporary disconnects and refresh on recovery.)
  • Native readiness presentation keeps the original intent (f5521bc: Present admitted reads through Solid readiness without holding independent accepted-content updates.)
  • Denied Activity data clearing keeps the original intent (5d3e157: Prevent guests from reading foreign timelines and clear previously loaded data when access is denied.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +39, Tests +462, Other +2. Total +503 across 7 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 2 47 8 +39
Tests 4 463 1 +462
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 7 512 9 +503

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test changes Production +47/-8 lines; tests +463/-1 lines The production growth stays within existing owners; regressions cover distinct pulse, hidden-tab, stale-response, rendered-readiness, and real-Gateway boundaries.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Repeated permission-error flicker affects Activity usability with limited blast radius and an available Retry action.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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 (1 earlier review cycle)
  • reviewed 2026-11-11T00:49:23.350Z sha 5a3c0bf :: needs changes before merge. :: [P3] Claim the Gateway test port until teardown completes

Reviewed November 10, 2026, 8:09 PM ET / November 11, 2026, 01:09 UTC (Revision 2).

roboclaw-bot and others added 2 commits November 11, 2026 01:00
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 9b9de9e2-86c7-47cd-b83e-042f4d71e186
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 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-environment Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 11, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 11, 2026 04:27
@vyctorbrzezowski
vyctorbrzezowski merged commit e51bb04 into main Nov 11, 2026
174 of 178 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/refresh-activity-stability-nov11 branch November 11, 2026 05:07
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…196939)

* fix: keep Activity permission errors stable during refresh

Retain settled denials across unrelated invalidations while admitting explicit retries, changed queries and authority refreshes. Defer hidden authority catch-up and preserve stale-response protection.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: keep Activity permission errors stable during refresh

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: de188d7a-df3c-4615-becc-ef5544f47dc1

* fix: claim the Activity proof Gateway port through shutdown

Co-authored-by: vyctorbrzezowski <[email protected]>

* Publish openclaw/refresh-activity-stability-nov11

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 9b9de9e2-86c7-47cd-b83e-042f4d71e186

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. 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: L 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.

2 participants