Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: chat file links open the file agents cite #33943

Mergedjuliusmarmingemerged 11 commits intomain fromrefs/pull/33943/headmerged by juliusmarminge View on GitHub

Showing 23 changed files with 13 additions and 8 deletions (loading 20).

x
0 of 23 viewed, 23 left
11 additions and 6 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -236,8 +236,9 @@
import { projectEnvironment } from "../../state/projects";
import {
needsWorkspaceBasenameLookup,
- pickWorkspaceBasenameMatch,
+ pickWorkspaceLinkMatch,
WORKSPACE_BASENAME_LOOKUP_LIMIT,
+ workspaceLinkLookupQuery,
} from "@t3tools/client-runtime/workspace-basename-lookup";
import {
resolveThreadLink,
@@ -2893,17 +2894,18 @@
props.workspaceRoot &&
relativePath &&
!/[\\/]$/.test(presentation.path) &&
- needsWorkspaceBasenameLookup(relativePath) &&
+ workspaceLinkLookupQuery(presentation.path, props.workspaceRoot) !== null &&
readEnvironmentScope(props.environmentId, AuthFilesystemReadScope)
+ const workspaceRoot = props.workspaceRoot;
const originalPath = resolveWorkspaceFilePath(props.workspaceRoot, relativePath);
void executeAtomQuery(
appAtomRegistry,
projectEnvironment.searchEntries({
environmentId: props.environmentId,
input: {
- cwd: props.workspaceRoot,
- query: relativePath,