Skip to content

fix(ios): clear stale folder errors after Load More succeeds - #193504

Merged
roboclaw-bot merged 1 commit into
openclaw:mainfrom
indra622:fix/ios-pagination-recovery-193278
Nov 5, 2026
Merged

roboclaw-bot merged 1 commit into
openclaw:mainfrom
indra622:fix/ios-pagination-recovery-193278

Conversation

@indra622

@indra622 indra622 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #193278.

What Problem This Solves

Fixes iOS Files continuing to show “Could not load this folder.” after a failed Load More request is successfully retried.

User Impact

Successful pagination retires the previous error while keeping loaded files available. A genuinely failed retry still shows the error and preserves the loaded page.

Why This Change Was Made

Clear the existing directory error only after a page successfully appends and updates its total. This is one product line in the existing state lifecycle. Pagination limits, offsets, Gateway behavior and file previews are unchanged.

Evidence

The actual native iPhone 17 / iOS 27.0 Debug Files screen used a synthetic loopback RPC fixture with the production-default 250+1 entries. The recorded sequence was initial offset0 returning250 distinct paths, offset250 failure, another offset250 failure, then offset250 success returning Summary.md. Native checks cover 250 of 251, representative first/last original rows, one final Summary.md, Load More gone and old error absent. This is not exhaustive offscreen UI row enumeration.

  • Actual base red: the final file loaded and Load More disappeared, then the precise stale-error assertion failed on base 5492b763a42a. Case282.790s; command334.290s, exit65.
  • Candidate green: 1 native case passed, 0 failures, 0 skipped, on source-identical candidate df5aa27ae39e2eb9c81914102ed0021f6731730b. Case182.305s; command212.677s, exit0. The same behavioral assertions remain; the footer query gained only an exists guard to avoid absent-element lookup retries. These timing differences are test-harness measurements, not product performance claims.
  • The first attempt incorrectly expected all250 virtualized rows to be simultaneously accessible and saw14. That was an oracle/setup failure, not product reproduction; it is retained separately. The replacement verifies delivered unique paths, native page count and representative rows.
  • Parent independently reviewed the complete source/test/fixture diff, parsed the green result and request record, and inspected the actual recovered-top and last-file screenshots. This is independent source/artifact review, not another native rerun.
  • Pinned SwiftFormat/strict SwiftLint, fixture formatting/syntax/oxlint, native:i18n:check (unchanged inventory,6191 existing advisories) and diff checks passed. Author pr-simplify and fresh scoped supplied-diff/context autoreview through P2 found no actionable finding; reviewer did not execute the app.

Original after-fix native captures from that250+1 case:

Recovered top: previous error absent, original rows retained Last file loaded: Summary.md present, Load More gone
Native recovered directory top without old error Native final Summary.md after pagination retry

Evidence README and sanitized results. The evidence-only branch in the existing fork contains only these inspected synthetic PNGs and concise results/README. Anonymous image requests returned200/image/png and matched local SHA-256. No media or private logs are added to the product branch.

Limits: native-client proof with emulated RPC, not real Gateway/filesystem, physical-device or App Store behavior; no data-loss claim. The known full-typography host-source-open stall remains unrun, and no full-suite result is claimed. XcodeGen-only Info.plist drift was saved and excluded from this change; locale artifacts are unchanged. No unrelated preview, pin or editor repair is included.

@clawsweeper

clawsweeper Bot commented Nov 5, 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 app: ios App: ios scripts Repository scripts size: M labels Nov 5, 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. 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: 🦞 diamond lobster Very strong PR readiness with only minor 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-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Clear the iOS Files folder error after Load More successfully retrieves another page.

Example: A folder has 251 files; offset 250 fails twice, then successfully returns Summary.md.

  • Before: Summary.md appears and Load More disappears, but “Could not load this folder.” remains.
  • After: Summary.md appears, Load More disappears, and the previous error clears.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused repair with inspected native recovery evidence, a relevant committed regression, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected native Files screenshots and linked exact-source results show the iPhone 17 simulator recovering after two injected WebSocket RPC failures at offset 250, retaining representative original rows, loading Summary.md once, removing Load More, and clearing the stale error; this proves native-client behavior with emulated RPC rather than a real Gateway filesystem.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A recovered folder still displays a failure message even after the remaining files load.
Reason: Successful recovery should retire obsolete failure feedback, consistent with the existing reload lifecycle.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a current iOS recovery bug with a minimal production change and relevant native proof; no actionable correctness or security findings were found.

Priority: P2
Reviewed head: df5aa27ae39e2eb9c81914102ed0021f6731730b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The native Files directory view requests workspace pages over the operator WebSocket session and renders entries, pagination progress, and request errors.

flowchart LR
  A[iOS Files screen] --> B[Directory state owner]
  B --> C[Operator WebSocket session]
  C --> D[Workspace list RPC]
  D --> E[Page or failure]
  E --> B
  B --> F[Files and recovery feedback]
Loading

Technical review

Best possible solution:

Clear the existing directory error after successful pagination while preserving loaded entries and genuine failure feedback.

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

Current-main source deterministically retains the error across failure then success, supported by the reporter's native screenshots and the contributor's recorded base failure; this review executed no target code.

Is this the best way to solve the issue?

The one-line reset is the smallest complete production repair in the existing state owner and leaves failed retries, offsets, limits, and previews intact.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Native directory pagination error lifecycle keeps the original intent (077e35f: The merged browser feature introduced read-only workspace browsing with offset pagination and request error presentation.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 077e35f adds apps/ios/Sources/Design/AgentWorkspaceFilesScreen.swift:181 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 077e35f3b2a5; files: apps/ios/Sources/Design/AgentWorkspaceFilesScreen.swift)

PR surface

Source +1, Tests +136, Other +83. Total +220 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 136 0 +136
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 83 0 +83
Total 3 220 0 +220

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 regression support Production +1 line; native test and fixture +219 lines The growth supports one native failure/retry regression through the existing loopback fixture without adding production test hooks.

Labels

Label changes:

  • add P2: The repair removes misleading feedback after a bounded pagination failure; loaded files remain accessible.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster 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: The repair removes misleading feedback after a bounded pagination failure; loaded files remain accessible.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster 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 5, 2026, 8:53 AM ET / 13:53 UTC.

@roboclaw-bot
roboclaw-bot merged commit efe90b4 into openclaw:main Nov 5, 2026
118 of 120 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…w#193504)

Fix stale iOS Files errors after a successful Load More retry.

Clear the previous page failure only after the next page has been decoded and its entries committed. Preserve loaded files and visible errors through failed retries. Cover repeated failure followed by recovery with the native pagination fixture.

Co-authored-by: Solvely-Colin <[email protected]>
wangmiao0668000666 pushed a commit to wangmiao0668000666/openclaw that referenced this pull request Nov 6, 2026
…w#193504)

Fix stale iOS Files errors after a successful Load More retry.

Clear the previous page failure only after the next page has been decoded and its entries committed. Preserve loaded files and visible errors through failed retries. Cover repeated failure followed by recovery with the native pagination fixture.

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

Labels

app: ios App: ios 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts 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.

[Bug]: iOS Files keeps a stale error after Load More succeeds

2 participants