Skip to content

fix(client): refresh workspace files after disk changes (upstream #4379) - #312

Merged
patroza merged 1 commit into
fork/candidatesfrom
import/upstream-pr-4379
Aug 4, 2026
Merged

fix(client): refresh workspace files after disk changes (upstream #4379)#312
patroza merged 1 commit into
fork/candidatesfrom
import/upstream-pr-4379

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Aug 4, 2026

Copy link
Copy Markdown

Source

Imported

  • projects.watchFile streaming RPC with debounced native directory watches
  • Workspace-root safety checks and symlink-aware target watching
  • Client readFile queries revalidate on mount (staleTimeMs/idleTtlMs = 0)
  • refreshQueryOnSuccess wires mounted previews to watch-stream events
  • Mobile preload retains read atoms for 1s so handoff to the preview still hits cache
  • Web skips file queries when no path is selected

Adapted locally

  • Nothing — patch applied cleanly onto current fork/candidates

Excluded

  • Nothing from the reviewed source behavior

Verification

  • vp test run apps/server/src/workspace/WorkspaceFileSystem.test.ts packages/client-runtime/src/state/runtime.test.ts apps/web/src/components/files/projectFilesQueryState.test.ts (34 tests)
  • Typecheck: contracts, client-runtime, web, mobile, server

Co-authors

opened by enricopolanski in chat thread Discord · Discord · T3

…gdotgg#4379)

Imported from pingdotgg#4379 at
a27510d.

Open file previews revalidate on mount and subscribe to debounced
native filesystem watches so external edits (editors, git, agents)
show without a manual refresh.

Co-authored-by: Enrico Polanski <16064771+enricopolanski@users.noreply.github.com>
Co-authored-by: Patrick Roza <42661+patroza@users.noreply.github.com>
@patroza
patroza marked this pull request as ready for review August 4, 2026 15:20
@patroza
patroza merged commit 33aa765 into fork/candidates Aug 4, 2026
7 checks passed
patroza added a commit that referenced this pull request Aug 4, 2026
…gdotgg#4379) (#312)

Imported from pingdotgg#4379 at
a27510d.

Open file previews revalidate on mount and subscribe to debounced
native filesystem watches so external edits (editors, git, agents)
show without a manual refresh.

Co-authored-by: omegent-app[bot] <306514130+omegent-app[bot]@users.noreply.github.com>
Co-authored-by: Enrico Polanski <16064771+enricopolanski@users.noreply.github.com>
Co-authored-by: Patrick Roza <42661+patroza@users.noreply.github.com>
patroza added a commit that referenced this pull request Aug 4, 2026
…gdotgg#4379) (#312)

Imported from pingdotgg#4379 at
a27510d.

Open file previews revalidate on mount and subscribe to debounced
native filesystem watches so external edits (editors, git, agents)
show without a manual refresh.

Co-authored-by: omegent-app[bot] <306514130+omegent-app[bot]@users.noreply.github.com>
Co-authored-by: Enrico Polanski <16064771+enricopolanski@users.noreply.github.com>
Co-authored-by: Patrick Roza <42661+patroza@users.noreply.github.com>
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