Skip to content

Commit 806067a

Browse files
cbangera2claude
andcommitted
fix(web): keep literal chip paths whose read fails after the file check
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 917d901 commit 806067a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2594,7 +2594,11 @@ function useChatMarkdownState({
25942594
const cause = squashAtomCommandFailure(result);
25952595
return (
25962596
isProjectReadFileError(cause) &&
2597-
(cause.failure === "binary_file" || cause.failure === "path_not_file")
2597+
(cause.failure === "binary_file" ||
2598+
cause.failure === "path_not_file" ||
2599+
// The server only reads or closes after confirming a regular file.
2600+
(cause.failure === "operation_failed" &&
2601+
(cause.operation === "read" || cause.operation === "close")))
25982602
);
25992603
};
26002604
const findWorkspaceBasenameMatch = async (workspaceRelativePath: string) => {

0 commit comments

Comments
 (0)