Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): resolve slashed file-chip paths through the workspace index #8254

Closedcbangera2(GitHub profile, opens in a new tab)wants to merge 15 commits intomain fromrefs/pull/8254/headopened View on GitHub

Showing 3 changed files with 84 additions and 16 deletions (loading 2).

x
0 of 3 viewed, 3 left
84 additions and 16 deletionsapps/web/src/components/ChatMarkdown.tsxModified
View file
@@ -34,6 +34,8 @@
ServerProviderSkill,
ThreadPullRequestKey,
} from "@t3tools/contracts";
+import { ProjectReadFileError } from "@t3tools/contracts";
+import { scopedThreadKey } from "@t3tools/client-runtime/environment";
import { faviconUrlForOrigin } from "@t3tools/shared/favicon";
import { githubMediaFetchUrl } from "@t3tools/shared/githubMedia";
import {
@@ -54,6 +56,7 @@
import { mediaFileReference, mediaUrlReference } from "@t3tools/client-runtime/media-reference";
import { mediaKindFromPath, mediaMimeTypeFromExtension } from "@t3tools/shared/filePreview";
import * as Cause from "effect/Cause";
+import * as Schema from "effect/Schema";
import { AsyncResult } from "effect/unstable/reactivity";
import React, {
Children,
@@ -174,7 +177,8 @@
import { projectEnvironment } from "../state/projects";
import {
claimWorkspaceBasenameLookup,
- needsWorkspaceBasenameLookup,
+ needsLiteralWorkspaceFileCheck,
+ normalizeWorkspaceLookupPath,
pickWorkspaceBasenameMatch,
WORKSPACE_BASENAME_LOOKUP_LIMIT,
} from "../workspaceBasenameLookup";