You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90a65c3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): cited assistant quotes reach providers expanded again
The orchestrator v2 rewrite dropped the citation expansion that ran in
ProviderService.sendTurn, so turn starts, steers, and context handoffs
sent raw t3-citation:// links to providers. Provider-bound user text now
goes through one helper that projects composer context and expands
citations, and a message whose quotes expand past the 120,000-character
provider limit fails its run with a validation error instead of being
sent. Stored messages keep their clickable links.
Fixes#16327
return`Message is ${excess.toLocaleString("en-US")}${excess===1 ? "character" : "characters"} over the ${PROVIDER_SEND_TURN_MAX_INPUT_CHARS.toLocaleString("en-US")}-character limit once assistant quotes are expanded. Shorten it or quote less.`;
17
+
}
18
+
}
19
+
20
+
/**
21
+
* The text a provider receives for a persisted user message: composer context references
22
+
* become their envelope and assistant citations carry their saved quotes. The stored message
23
+
* keeps its links. A message that fit as links can exceed the provider input limit once its
24
+
* quotes expand, so the expanded text is checked again, as the composer does before sending.
0 commit comments