Models sometimes emit literal \\uXXXX runs in ask_user and mastery_quiz tool args. Decode dense non-ASCII runs when building learner-facing payloads so cards do not leak escapes (#973).
When a partner chat generates files, resolve /api/outputs against the caller''s visible partner workspaces after their own scope misses so partner images stop 404ing in the web UI.
Short selections such as rc carried only the raw token and an opaque parent session id. Capture the containing message id, resolve it from the parent session, and provide both the source message and exact selection to the tutor prompt.
Resolved ask_user exchanges happened before the assistant produced the
row's answer, so they must precede the row's content in both
_build_history() and format_messages_as_transcript(). The previous order
(assistant content first, clarification second) made later turns see the
answer before the user supplied the missing context, confusing the model
and polluting rolling summaries.
Update the test that had locked in the wrong order.
Composer clarifying questions on a choice card were persisted as the formal
answer, after which mastery_grade could never map them to an option and the
gate stalled. Skip unreadable commits and allow a later readable pick to
recover already-stuck interactions.
Providers whose Responses API performs web_search server-side (DeepSeek
V4, #846) declare the tool as {"type": "web_search"} instead of a
function schema, run the search mid-generation, and return web_search_call
output items with url_citation annotations.
- convert_tools(): map the web_search function tool to the native schema
when the provider spec sets native_web_search
- parsing: synthesize a server_executed-marked web_search ToolCallRequest
from web_search_call items and url_citation annotations across all three
consumers (SSE, SDK stream, non-streaming), with tail-merge for
annotations that stream after the search item completes
- convert_messages(): replay server-executed calls as web_search_call
items and skip their function_call_output pairing
- assistant_message_with_tool_calls(): keep provider_specific_fields so
the server_executed marker survives into the conversation history
- tool_dispatch: short-circuit server-executed calls with a stub result
carrying the citations as sources — the local web_search tool never
re-runs a search the provider already performed