Skip to content

fix: keep Files results stable when replies finish - #196949

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

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

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Files replaces accepted empty and no-match results with loading content when a reply finishes and refreshes the current session.

User Impact

User impact: mobile Files keeps its accepted empty, no-match, unavailable, or populated view during refresh, without disturbing search focus or scrolling. Desktop and mobile no-match views also remain stable while accepted attachment history refreshes. Initial loading, changed scopes, explicit retry, and real errors retain their existing behavior. No configuration change or migration is required.

Why This Change Was Made

Use the existing loading boundary for every accepted mobile listing, not only populated results. The attachment projection now distinguishes unknown history from refreshing accepted history, so an empty attachment result does not become loading content again. No new cache, timer, polling, or recovery suppression.

Evidence

Typecheck follow-up on 972276ada6320b99d92968b2a5f8bd3c5cdf858a: the new test now builds complete navigation with the existing initializer and preserves the intended search. All 29 touched cases, the UI-chat test typecheck, lint and formatting pass. Production code and the real-Gateway proof above are unchanged; the five added fixture lines are funded by the exact allocation.

Maintainer verification on cf2e83ab3c3be8421ffdb9902174b756ee5e6202: 35 touched tests, 36 workspace-owner tests and four mocked-browser scenarios passed. An additional isolated real Gateway run executed chat.send through a local synthetic Responses provider and reached the actual final event. While the original successful chat.history and sessions.files.list replies were held, the same no-match result, search focus and selection stayed in place with no skeleton. Releasing the unchanged replies preserved it; a newly created matching file appeared afterward. Restoring the previous production behavior failed at the return of "Loading attachments…". The provider response was synthetic; no external-model inference or new live revocation result is claimed.

  • Original Chromium regression matrix: empty, no-match, and unavailable results fail on the base and pass with the fix; populated content retains its node, search focus, and scroll position.
  • Real isolated Gateway: an owned run ends, producing the actual terminal event and actual Files/history requests. While successful replies are held, the accepted no-match view stays present across all 63 frame/mutation samples; zero skeletons or missing-result samples, same result node and search focus. Original reply bytes are then released. The same scenario fails before the attachment fix.
  • 57 focused owner/presentation/loading tests pass, including desktop/mobile regressions, accepted empty/populated/partial attachment coverage, error/reset and scope changes. 36 existing workspace owner tests also pass.
  • UI typecheck, targeted lint/format, controller guard, test-line budget, and diff checks pass. Four pre-existing reactive-analysis warnings remain in unchanged code.
  • Local ClawSweeper unavailable; canonical autoreview of the complete local candidate against base ecaefd29e7f1a23657de41a7eb217ba083c477be: P0–P2 scoped-clean, no actionable findings. Candidate committed as 6bf93d2918285c555b1f44e98fd1b60c3a064b62 after mechanical test braces/allocation adjustment. Source review and execution evidence were independent.

Before and after

Actual Control UI with synthetic data, captured while refresh responses remain pending.

Mobile empty listing (mocked Gateway transport)

BeforeAfter
Before: empty Files is replaced by a skeleton during refresh After: accepted empty Files remains visible during refresh

No-match listing plus history recovery (real isolated Gateway)

BeforeAfter
Before: no-match is replaced by loading attachments After: accepted no-match stays visible while both replies are pending

Validation limits: Chromium only; no WebKit, broad CI, model inference, or live Team testing. The real Gateway proof does not claim live permission-revocation coverage; focused tests cover denied reads and scope retirement.

Reported and guided by @vyctorbrzezowski.

Work sessions

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

Worked on by

roboclaw-bot and others added 3 commits November 11, 2026 00:35
Keep empty, no-match, and browser-unavailable presentations visible while a same-scope listing refresh is pending. Preserve initial and scope-replacement loading, force retry, and rejected-read handling.

Co-authored-by: vyctorbrzezowski <[email protected]>
Keep accepted empty and populated transcript attachment results stable while same-scope history refreshes. Preserve initial loading, errors and scope retirement across desktop and mobile Files.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d076f3e3-bccb-40b6-a7e6-349a7ac2d6b4
@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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 accepted Files listings and attachment results while same-scope refreshes are pending.

Example: Search mobile Files for absent-proof-file, then let a reply finish.

  • Before: The accepted no-match result becomes loading attachments.
  • After: The no-match result remains visible with search focus retained.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, coherent repair with inspected user-visible proof and useful boundary regressions; the draft state does not reduce the rating.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Control UI screenshots show retained empty and no-match views; the public body describes an actual isolated Gateway terminal event with successful Files/history replies held pending and the accepted result preserved. Chromium-only coverage and absence of model inference are explicitly disclosed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Accepted empty and no-match Files views flash back to loading when a reply finishes.
Reason: This maintainer-authored repair restores the documented retained-content behavior with less production code and no new user-facing contract.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft fixes current Files refresh flicker with a focused patch; no actionable defect was found.

Priority: P2
Reviewed head: cf2e83ab3c3be8421ffdb9902174b756ee5e6202

Before merge

None.

Findings

None.

Agent review details

How this fits together

Reply completion refreshes workspace listings and transcript history; their existing owners publish scoped results that desktop and mobile Files render.

flowchart TD
  A[Reply finishes] --> B[Workspace listing owner]
  A --> C[Chat history owner]
  B --> D[Scoped loading boundary]
  C --> E[Attachment projection]
  D --> F[Files panel]
  E --> F
Loading

Technical review

Best possible solution:

Retain accepted same-scope results through the existing owners and loading boundary while preserving scope replacement, explicit retry, and error behavior.

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

Current-main source directly explains both loading substitutions, and supplied before screenshots show them; this read-only review ran no target code.

Is this the best way to solve the issue?

The patch fixes both presentation causes using existing accepted-history facts and the existing loading boundary, without adding state or another request path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Mobile Files loading presentation keeps the original intent (24b180b: Observe existing owner request receipts through Solid boundaries while keeping accepted catalogs usable during refresh.)
  • Transcript attachment loading projection changes intended behavior with a stated reason (f15f221: Expose adopted transcript attachments and coverage to the Files catalog; the later cancellation repair reused the shared history-loading predicate.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit f15f221 adds ui/src/pages/chat/chat-history-state.ts:371 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f15f221a5333; files: ui/src/pages/chat/chat-history-state.ts)
  • Peter Steinberger: Raw commit 24b180b adds ui/src/pages/chat/components/chat-session-workspace-mobile-adapter.tsx:275 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 24b180b712fa; files: ui/src/pages/chat/components/chat-session-workspace-mobile-adapter.tsx)

PR surface

Source -7, Tests +355, Other +2. Total +350 across 6 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 2 8 15 -7
Tests 3 395 40 +355
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 6 405 55 +350

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 change Production +8/-15; tests +395/-40 Production logic shrinks; test growth covers browser focus and scroll retention, attachment coverage, scope replacement, retry, and error boundaries.

Labels

Label changes:

  • add P2: Files refresh causes visible flicker and disrupted presentation, with limited blast radius and no established data loss or blocked core workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Files refresh causes visible flicker and disrupted presentation, with limited blast radius and no established data loss or blocked core workflow.
  • 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.

Reviewed November 10, 2026, 8:14 PM ET / November 11, 2026, 01:14 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 11, 2026 04:44
@vyctorbrzezowski
vyctorbrzezowski merged commit 0d0ab36 into main Nov 11, 2026
91 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/refresh-files-stability-nov11 branch November 11, 2026 05:21
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Nov 11, 2026
* fix(ci): route Files refresh through its private server lane

Register the source-server fixture added by #196949 in the existing private-server inventory. Preserve automatic serial routing and all ownership and browser assertions.

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

* fix(ci): route Files refresh through its private server lane

Worked on by:
- @obviyus
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 9eb6e348-babe-86f3-83ec-03e4ec242b18

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
* fix(ui): retain accepted mobile Files views during refresh

Keep empty, no-match, and browser-unavailable presentations visible while a same-scope listing refresh is pending. Preserve initial and scope-replacement loading, force retry, and rejected-read handling.

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

* fix(ui): retain accepted attachment coverage during refresh

Keep accepted empty and populated transcript attachment results stable while same-scope history refreshes. Preserve initial loading, errors and scope retirement across desktop and mobile Files.

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

* fix: keep Files results stable when replies finish

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d076f3e3-bccb-40b6-a7e6-349a7ac2d6b4

* test(ui): initialize complete Files navigation state

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…w#197100)

* fix(ci): route Files refresh through its private server lane

Register the source-server fixture added by openclaw#196949 in the existing private-server inventory. Preserve automatic serial routing and all ownership and browser assertions.

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

* fix(ci): route Files refresh through its private server lane

Worked on by:
- @obviyus
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 9eb6e348-babe-86f3-83ec-03e4ec242b18

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
vincentkoc added a commit that referenced this pull request Nov 12, 2026
Integrate the landed canonical Files renderer and its download lifetime regressions. Retain accepted Mobile and attachment views during same-scope refresh while preserving newer-history coverage.

Adopts #197464 and the minimal owner fixes and regression coverage from #196949.

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

2 participants