Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): providers read cited assistant text again #32702

Mergedszokeptr(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/32702/headmerged by maria-rcks View on GitHub

Showing 3 changed files with 44 additions and 7 deletions.

x
0 of 3 viewed, 3 left
2 additions and 1 deletiondocs/internals/composer-context-references.mdModified
View file
@@ -66,9 +66,10 @@
records produce a marker but no entry. Unknown kinds emit their payload as JSON.
3. Captured text is data: any `<` that would open or close `t3_context` or `context` is escaped,
so a terminal line or PR comment cannot forge a record.
+4. Assistant citation links are expanded too (`expandAssistantCitationsForProvider`).
​
Attachment bytes travel on the existing attachment channel; the envelope only carries metadata.
-Text without references is returned unchanged.
+Text without references or citations is returned unchanged.
​
## Legacy messages
​
33 additions and 0 deletionspackages/shared/src/composerContextReferences.test.tsModified
View file
@@ -2,10 +2,12 @@
ComposerContextId,
type ComposerContextRecord,
EnvironmentId,
+ MessageId,
ThreadId,
} from "@t3tools/contracts";
import { describe, expect, it } from "vite-plus/test";
​
+import { serializeAssistantCitation } from "./assistantCitations.ts";
import {
ATTACHMENT_ONLY_BOOTSTRAP_PROMPT,
collectComposerContextReferences,