Repository navigation
fix: restore Files navigation from unavailable previews - #189879
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesAdds Browse files to unavailable desktop previews using the existing catalog navigation and focus callback. Example: An authorized guest opens a missing reference to 01-roles-and-run-of-show.md.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a focused recovery action still missing on main; no introduced correctness or security defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI Files panel presents session-owned previews and errors; catalog selection remains with the existing workspace owner, and file reads retain their existing Gateway authorization. flowchart LR
A[File reference] --> B[Workspace preview owner]
B --> C[Unavailable desktop reader]
C --> D[Browse files action]
D --> E[Existing Files catalog]
E --> F[Explicit file selection]
F --> G[Authorized Gateway read]
Technical reviewBest possible solution: Merge the focused action-slot repair while retaining the existing workspace selection, reader retention, and file-access owners. Do we have a high-confidence way to reproduce the issue? Current main shows the actionless desktop error branch and first-preview tree hiding, corroborated by the supplied baseline screenshot and bounded live report; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: expose the existing empty-state action and share the existing browse callback, with no new navigation state or filename-resolution policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f121a7f70da4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +6, Tests +10, Docs +1, Other +2. Total +19 across 4 files. Added test files: 0. View PR surface stats
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 October 31, 2026, 8:18 PM ET / November 1, 2026, 00:18 UTC. |
|
Fixed: unavailable desktop file previews now offer Browse files so users can select a saved file without closing their other readers. |
…ed-backup-search-exports-20261101 * commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc': fix(ci): keep backup and chat search internals private (#189894) fix(codex): recover unused native threads without dropping history (#189900) fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855) perf(test): parse the Mantis resolver workflow once (#189801) fix(agents): revert default hard context admission (#189891) refactor(test): use canonical tracked temp paths (#189800) chore(ui): refresh control ui locales (#189898) improve: show gateway commit and build time on About refactor(test): share SDK export fixture JSON writes (#189799) fix: restore Files navigation from unavailable previews (#189879) refactor(test): share raw ratchet fixture writes (#189798) fix(ai): honor Model Studio compatible-mode output limits (#189870) fix: hold queued messages through inline edits (#189869) perf(test): reuse the baseline fixture Node resolver (#189790) test(qa): correlate handoff replies by run identity (#189885) fix(ui): normalize canonical Unicode in local search comparisons (#189874) fix(ui): explain unsupported browsers without module scripts (#189883) # Conflicts: # ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
) Restore direct browsing from unavailable desktop file previews while retaining open readers and drafts. Fixes openclaw#189873.
Fixes #189873.
What Problem This Solves
When an existing file reference cannot be opened, the desktop reader shows the filename and error without its usual navigation controls. Opening an unavailable file as the first reader leaves no direct action to reach the Files catalog and explicitly choose a saved document.
User Impact
The error state now offers Browse files. It opens the current conversation's existing catalog and moves keyboard focus there. Other readers and unsaved drafts stay retained; mobile navigation and successful previews keep their existing behavior. No file content, permissions, filename resolution, or configuration changes.
Why This Change Was Made
The unavailable branch renders the existing empty-state component without an action. This change supplies that action and shares the normal reader's existing browse/focus callback. The catalog and its native file-selection owner continue to decide what the user can browse and read; no replacement filename is guessed. Canonical chat help now describes this recovery route.
Evidence
The real guest reproduction on UI48b46f1f with the retained a983 Gateway showed the missing desktop action after a native not-found response. The affected UI/file-read contracts are identical across those revisions. On the candidate, Browse files → catalog → explicit full-path selection opened the saved document with its original SHA-256, without a model request or file write.
The existing two-file owner baseline passed41tests. The extended failed-preview regression fails on unchanged production because the action is absent; it also checks catalog focus and retention before the existing same-tab retry assertions. It adds10nettestlines, covered by the matching dedicated allocation; the shared budget is unchanged.
Remote formatting (oxfmt/Bun parity), scoped lint, i18n, all selected production/test type groups, and five affected test files passed: 61 tests, 9.00 seconds of test-wrapper wall time. Broader CI coverage remains with hosted checks.
Exact-head UI2648551a native proof passed: missing reference → Browse files → focused catalog → explicit saved-file selection, with the expected8284-byte content hash. A retained reader kept the same DOM node through failure, browsing and reselection; the empty composer stayed unchanged and no model/file-write RPC was sent. The existing mobile Files back action also passed. Non-empty draft and MCP lifetime controls are covered by the affected tests and source review.
Independent engineering review and canonical AutoReview are clean. Hosted CI is green on the published head. The recording masks catalog entries unrelated to the scenario and a narrow automation overlay; the chosen folder, file and pointer actions remain visible.
Visual evidence
Exact-head recovery; unrelated catalog entries and automation overlay masked
recovery-redacted.mp4
Visual verification
2648551a88acbfc8896cc013046f97932ed9d0d6