Skip to content

fix(new-tab): canonicalize /tmp aliases in Recents and Suggested paths - #1715

Merged
i098 merged 1 commit into
mainfrom
fm/cgx-n201-1713-recents-path
Dec 5, 2026
Merged

i098 merged 1 commit into
mainfrom
fm/cgx-n201-1713-recents-path

Conversation

@i098

@i098 i098 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Refs #1713

Summary

Recents and Suggested list one project once, not under both /tmp and /private/tmp.

What changed and why

  • new_tab::canonical_path maps /tmp, /var, /etc to /private/... on macOS only; other platforms keep paths as written.
  • output_artifacts (Suggested) canonicalizes every path.
  • recent_files / remember_file (Recents) canonicalize the root key and paths; old history under either spelling is merged and rewritten under one key.
  • Gap 1 (click layout) of the report is not part of this change.

Test evidence

  • cargo test -p ui --lib new_tab: 2 passed, incl. new macos_alias_maps_only_the_symlinked_roots (pure mapping, runs on Linux).
  • cargo check -p app: clean.
  • Not run: macOS visible-window check (live smoke pending); clippy and workspace tests.

Checklist

  • One concern in this pull request.
  • Conventional Commits title and commit.
  • cargo fmt run on ui and app.
  • clippy: not run.
  • workspace tests: not run; only the touched test module.
  • Visual change: none intended; no parity run.
  • CHANGELOG: not added.

@i098
i098 merged commit 313f1b5 into main Dec 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant