Skip to content

feat(work-panel): retain the File Manager tab across project sessions - #2608

Merged
Tioit-Wang merged 2 commits into
mainfrom
feat/2607-project-file-tab
Nov 26, 2026
Merged

Tioit-Wang merged 2 commits into
mainfrom
feat/2607-project-file-tab

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Summary

Closes #2607. Refs #2604 (only the bundled File Manager experiment).

After a project first opens File Manager, its existing and new sessions receive a plain tab. The destination keeps its dock visibility and current selection. Closing the entry only affects that session, including after the last open tab is closed. File locations and guest state are not copied. No plugin SDK or upstream plugin changes: the desktop already bundles pi.file-manager 0.13.0.

Interaction reference

Returning to session B, which had Review selected Before After
Dock Collapsed Collapsed
Manually expand [Review*] [Review*] [File Manager]
Close File Manager in B — A keeps its tab; B does not regain it on switch

Verification

  • Candidate 9cd193fc0 on 71c637bf8: node scripts/e2e-project-file-manager-tab.mjs passed all four real Electron UI scenarios with isolated profile and stubbed IPC.
  • Related desktop tests: 148 passed together; the bundled remote File Manager test timed out during a concurrent build, then passed standalone. Five changelog tests passed.
  • Desktop typecheck, desktop production build, workspace package compilation, Biome lint and PR ancestry check passed.

Let a project opt into the bundled file view without coupling its chats'
dock visibility, focus, or close decisions. Seed only the plain entry
once per session, including when the view catalog arrives late.

Closes #2607
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9cd193f
Status: ✅  Deploy successful!
Preview URL: https://ec8f0001.pi-desktop.pages.dev
Branch Preview URL: https://feat-2607-project-file-tab.pi-desktop.pages.dev

View logs

Use the same empty project opt-in and receipt state as the renderer when testing session creation without an existing File Manager tab.
@Tioit-Wang
Tioit-Wang merged commit c2042ae into main Nov 26, 2026
6 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.

[Feature] 文件管理器实验:同项目会话默认可见标签,各会话独立开关侧栏和关闭标签

1 participant