We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 983fabf commit 3ef8890Copy full SHA for 3ef8890
src/packages/frontend/editors/markdown-input/mentions.ts
@@ -13,6 +13,8 @@ interface Mention {
13
fragment_id?: string;
14
}
15
16
+const seenFragmentIds = new Set<string>();
17
+
18
export async function submit_mentions(
19
project_id: string,
20
path: string,
@@ -27,6 +29,12 @@ export async function submit_mentions(
27
29
// Ignore all language model mentions, they are processed by the chat actions in the frontend
28
30
continue;
31
32
+ if (fragment_id) {
33
+ if (seenFragmentIds.has(fragment_id)) {
34
+ continue;
35
+ }
36
+ seenFragmentIds.add(fragment_id);
37
38
try {
39
await webapp_client.query_client.query({
40
query: {
0 commit comments