ServiceStack/src/ServiceStack.AI.Chat/Extensions/App/USER_AGENTS.md
AI.Chat can now keep complex agent work running across many model and tool exchanges without tying the job to one browser request. You can leave or refresh an active chat and return to its persisted state. A temporary browser connection failure no longer discards the run.
The context indicator shows how much of the selected model's window is in use. At about 80%, AI.Chat
summarizes older working context, preserves current instructions and a recent verbatim tail, and then
continues the same run. The complete visible conversation is not deleted. Status such as Reducing context · … · part 3/8 reports real compaction progress.
The compact button uses the same hardened service but creates a new child chat. This is useful when you want a clean continuation while retaining the original thread unchanged.
The pending response shows time since the last received activity, not total chat age. New streamed content resets that timer. The longer-than-expected warning therefore appears only when a run has been quiet for an extended period. You can cancel a run at any time; cancellation is persisted and propagated to the active provider/tool operation.
No configuration is required. The default is:
{
"defaults": {
"events": {
"transport": "auto"
}
}
}
auto tries SSE in the browser and falls back to long polling if the connection does not become or
remain healthy. To disable SSE while keeping the same API routes, set transport to long-poll.