Loads prior conversation messages from DB and injects them into the agent session system prompt on resume. Implements context window management (M1-005) with 80% token budget threshold and simple extractive summarization for older messages.
Loads prior conversation messages from DB and injects them into the agent session system prompt on resume. Implements context window management (M1-005) with 80% token budget threshold and simple extractive summarization for older messages.
Fixes #300
When a session is created for a conversation that already has messages in
the DB, prior messages are loaded via ConversationsRepo.findMessages() and
injected into the agent session as a system prompt addition so the agent
has full context of the prior exchange.
Context window management (M1-005): if the full history would exceed 80%
of the model's context window (estimated at ~4 chars/token), older messages
are summarized as a simple extractive summary and only the most recent
messages are kept verbatim.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Loads prior conversation messages from DB and injects them into the agent session system prompt on resume. Implements context window management (M1-005) with 80% token budget threshold and simple extractive summarization for older messages.
Fixes #300