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
@@ -7,7 +7,7 @@ import { DatabaseConnection } from "../../src/main/database/connection";
|
||||
import { OrganizationService } from "../../src/main/services/organization-service";
|
||||
import { ChatService } from "../../src/main/services/chat-service";
|
||||
import { runAgentLoop } from "../../src/main/services/agent-run-loop";
|
||||
import { canonicalMentionHandle } from "../../src/main/services/mention-handles";
|
||||
import { canonicalMentionHandle } from "../../src/shared/mention-handles";
|
||||
import type { AgentToolContext } from "../../src/main/services/agent-tools";
|
||||
import type { AgentTurnResult, ToolCall } from "../../src/main/services/provider-tool-turn";
|
||||
|
||||
|
||||
Reference in new issue
Block a user