Fix @mention resolution for multi-word agent names
MentionTextarea inserted raw agent names (e.g. @Sarah Chen) but the backend regex captured only the first word (@Sarah), causing mention resolution to fail silently. Moved canonicalMentionHandle to shared/ so the renderer can produce space-free handles that the backend resolves correctly.
This commit is contained in:
1 parent
dfa2df3334
commit
5bb9aea4f9
10 files changed
+17
-12
No files matched your search
@@ -6,7 +6,7 @@ import type { ChatService } from "./chat-service";
|
||||
import { writeDeliverable } from "./deliverable-writer";
|
||||
import { DocumentService } from "./document-service";
|
||||
import { recordWorkspaceFile } from "./files/file-object-store";
|
||||
import { canonicalMentionHandle } from "./mention-handles";
|
||||
import { canonicalMentionHandle } from "../../shared/mention-handles";
|
||||
import type { JsonRecord } from "./provider-http";
|
||||
import type { ToolCall, ToolDefinition } from "./provider-tool-turn";
|
||||
|
||||
|
||||
Reference in new issue
Block a user