Skip to content

fix(ui): preserve Show in Files navigation - #182067

Merged
steipete merged 1 commit into
mainfrom
upd/upd-l1880
Oct 24, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/upd-l1880

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Show in Files can request the correct folder, then restore the old Changed filter when selecting Files. This also repairs the stale operator-scope E2E expectation after ordinary Unarchive clears personal pins.

User Impact

Show in Files reveals the selected file's folder with the All filter. Reader tree collapse and ordinary Unarchive's pin behavior stay intentional; no configuration or migration is needed.

Why This Change Was Made

The workspace reveal owner saves its explicit destination before selecting Files restores catalog navigation; the view no longer performs a separate selection afterward. The existing file-link regression retains its request-path, editor identity, alias, selected-row, saved-content, and search assertions, reopening the tree before checking the selected row.

Introducing commits: d25ac789c15a (#181903) intentionally collapsed reader navigation and retained its catalog snapshot, exposing the reveal overwrite; 5e2f560194b1 (#181721) intentionally stopped ordinary Unarchive from restoring personal pins. The operator fixture now asserts the session remains unpinned and explicitly repins it before its existing local-persistence assertions.

Downloads were reproduced and repaired locally, but #182056 expanded during this investigation to include the identical tree-toggle fix. That overlap was removed from this PR. #182056 remains the correct owner for downloads and directory-race.

Evidence

  • Clean main 82b4c0c078b03a34612b0ac95a11224069b3b300: reproduced all three reported failures with the native test/vitest/vitest.ui-e2e.config.ts runner. Download: hidden large.txt row; file links: expected Filter files: All, saw Changed; SESSION_WRITE: expected one pinned row, received zero. Each CI job log was fetched once: downloads, file links, operator scopes.
  • Native production-bundle browser proof: 13 passed, 51.96 s invocation wall time including a 19.93 s build. File links: 8 cases / 20.071 s; operator scopes: 4 cases; downloads: 1 case / 1.816 s. This run included the identical downloads fix now owned by test(ui): reopen file tree before subsequent file actions #182056; that test remains outside this diff. Temporary screenshot capture statements were removed afterward. The two retained files account for 12 passing cases. Isolated HOME/state under this worktree; no operator Gateway was used.
  • All 17 consumer files discovered by the campaign's basename search: 264 passed across regular UI (206 / 14 files / 13.89 s wall), isolated retained presentation (22 / 4.83 s), isolated chat pane (34 / 4.16 s), and native Chromium browser (2 / 1.68 s).
  • UI production and both relevant E2E tsgo graphs pass; scoped oxlint, oxfmt, and diff checks pass; Madge reports 0 cycles. Oxlint retains an unchanged sourceContent capture warning in chat-detail-slot-view.tsx. Full check:changed/SQLite inventory omitted under the campaign's local gate budget; PR CI supplies broad proof.
  • Simplified to the existing workspace owner. Production +7/-5, tests +9/-0, docs +4/-0. No new primitives, dependencies, options, or baselines.
  • Independent Codex autoreview was attempted but could not establish its required sandbox: it rejected the temporary-directory location even with TMPDIR/TMP/TEMP unset. Per the campaign rule, lead review of this PR head is pending; no clean review is claimed.

Before: Show in Files restores the stale Changed filter.

Before: Show in Files restores Changed

After: Show in Files retains All and the target folder.

After: Show in Files retains All

Keep the explicit reveal folder and All filter when the workspace restores its catalog navigation. Reopen the tree before checking file selection, and explicitly repin after ordinary Unarchive in the operator-scope fixture.

Regressions followed d25ac78 (#181903) and 5e2f560 (#181721). The intentional reader collapse and Unarchive pin behavior remain unchanged. Downloads are covered separately by #182056.
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review October 24, 2026 00:57
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XS labels Oct 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T00:59:12.439506Z e49fe54 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit 61bd8a5 into main Oct 24, 2026
138 of 140 checks passed
@steipete
steipete deleted the upd/upd-l1880 branch October 24, 2026 01:10
roboclaw-bot added a commit that referenced this pull request Oct 24, 2026
Integrate verified origin/main 377c0fc for the named failing UI gate. It contains the reports/download tree-toggle repair (#182056) and folder/file-link fixture repair (#182067).

Regenerated and checked all prompt snapshots on the resulting tree; the 47 focused session inventory/Gateway/prefix tests and targeted TypeScript checks pass. The reviewed production repair is unchanged.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
After ae7ba5f, restoring Files catalog navigation overwrote the folder and filter that Show in Files had just requested. The workspace owner now preserves the requested destination; ordinary catalog restore is unchanged. The operator-scopes e2e now follows fd863c0 (Unarchive leaves pins cleared, then repins explicitly). Together with openclaw#182056 this clears the Control UI e2e reds on main.
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 docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant