Skip to content

Commit 81c533c

Browse files
committed
fix(web): refresh literal chip-path existence checks
readFile caches for 30s; a stale cached failure/success would let the index hijack (or spare) the wrong file. Force a fresh read for this verification flow.
1 parent 1263353 commit 81c533c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/components/ChatMarkdown.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,7 @@ function useChatMarkdownState({
23292329
});
23302330
const readWorkspaceFile = useAtomQueryRunner(projectEnvironment.readFile, {
23312331
reportFailure: false,
2332+
refresh: true,
23322333
});
23332334
const openPreview = useAtomCommand(previewEnvironment.open, {
23342335
reportFailure: false,

0 commit comments

Comments
 (0)