Skip to content
Source
Sign inSign up
TanStack/intent

fix: refresh workspace discovery for each operation #267

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 2 commits intofix-workspace-intent-warning fromrefs/pull/267/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 9 changed files with 11 additions and 3 deletions (loading 6).

x
0 of 9 viewed, 9 left
7 additions and 0 deletions.changeset/refresh-workspace-discovery.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/intent': patch
+---
+​
+Refresh workspace roots, patterns, and members between core operations. Keep workspace discovery reuse within the existing operation-local filesystem cache so listing and loading observe changed membership and source kinds.
+​
+Avoid enumerating unrelated workspace members and reading unused skill metadata during direct loads. Preserve fresh policy reads and final path checks.
2 additions and 2 deletionspackages/intent/src/core/intent-core.tsModified
View file
@@ -100,7 +100,7 @@
const cwd = resolveCoreCwd(options)
const scanOptions = toScanOptions(options)
const fsCache = createIntentFsCache()
- const projectContext = resolveProjectContext({ cwd })
+ const projectContext = resolveProjectContext({ cwd, fsCache })
const { hiddenSourceCount, hiddenSources, scan, excludePatterns } =
scanForPolicedIntents({
cwd,
@@ -283,7 +283,7 @@
​
const fsCache = createIntentFsCache()
- const projectContext = resolveProjectContext({ cwd })
+ const projectContext = resolveProjectContext({ cwd, fsCache })
const excludePatterns = getEffectiveExcludePatterns(
options,
projectContext,