Archived
feat(workspaces): refresh worktrees on browser resume
Call WorkspaceController.refreshSelectedProjectTopology() from the existing browser-resume refresh and the plugin-facing refreshAppData path, so worktrees created or removed outside PI WEB become visible with no user action. No new timer, watcher, process, or push channel; the resume path is already debounced per animation frame and collapses concurrent requests. Document the resume-scoped detection and the hiding of gone checkouts in the FAQ, and add the changeset for the user-visible behavior.
This commit is contained in:
@@ -101,6 +101,7 @@
|
||||
<a href="#remote-machines">How do remote machines work?</a>
|
||||
<a href="#laptop-or-server">Laptop or server?</a>
|
||||
<a href="#plugins">Can I use local plugins?</a>
|
||||
<a href="#worktree-list-out-of-date">A worktree I created is missing</a>
|
||||
<a href="#sessions-stop">Sessions stop unexpectedly</a>
|
||||
<a href="#logs">Where are logs?</a>
|
||||
</aside>
|
||||
@@ -293,6 +294,25 @@
|
||||
<p><a href="plugins">Read the plugin guide →</a></p>
|
||||
</article>
|
||||
|
||||
<article id="worktree-list-out-of-date" class="faq-item">
|
||||
<h2>A worktree I created or deleted outside PI WEB is missing or still listed</h2>
|
||||
<p>
|
||||
PI WEB does not register worktrees. It lists the git worktrees of the selected project on demand, so
|
||||
worktrees you create or delete with <code>git worktree</code>, a terminal, or another tool are picked up
|
||||
without any adopt or import step. This works the same way on remote machines.
|
||||
</p>
|
||||
<p>
|
||||
The workspace list is re-read when the PI WEB tab regains focus or becomes visible again, not
|
||||
continuously. If a worktree appeared while you were already looking at PI WEB, switch to another window
|
||||
or tab and back, and the list updates. Your selected workspace, session, and scroll position are kept.
|
||||
</p>
|
||||
<p>
|
||||
Worktrees whose checkout directory no longer exists are hidden, so a directory you removed with
|
||||
<code>rm -rf</code> instead of <code>git worktree remove</code> stops appearing as a selectable
|
||||
workspace. Git still tracks it until you run <code>git worktree prune</code>.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article id="sessions-stop" class="faq-item">
|
||||
<h2>Sessions stop unexpectedly</h2>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user