Repository navigation
fix(ios): clear stale folder errors after Load More succeeds - #193504
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 changesClear 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +136, Other +83. Total +220 across 3 files. Added test files: 1. View PR surface stats
Preflight sourceSource 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
LabelsLabel 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 Reviewed November 5, 2026, 8:53 AM ET / 13:53 UTC. |
|
Merged via squash.
|
…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]>
…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]>
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.5492b763a42a. Case282.790s; command334.290s, exit65.df5aa27ae39e2eb9c81914102ed0021f6731730b. Case182.305s; command212.677s, exit0. The same behavioral assertions remain; the footer query gained only anexistsguard to avoid absent-element lookup retries. These timing differences are test-harness measurements, not product performance claims.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:
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.