Skip to content

Feature/compaction handoff - #201

Merged
stippi merged 3 commits into
mainfrom
feature/compaction-handoff
Sep 16, 2026
Merged

stippi merged 3 commits into
mainfrom
feature/compaction-handoff

Conversation

@stippi

@stippi stippi commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Rework "compaction" as a hand-off.

…ages verbatim

After compaction the prompt opened with a bare "Conversation summary:"
user message; the original request was gone and nothing told the model a
previous instance had written the text. The summary is now rendered at
prompt-build time as a hand-off message that frames it as such and embeds
the user's earlier messages verbatim (tool results and older summaries
excluded, newest-first within a budget). Stored messages and the UI
divider are unchanged.
…, retry on tool-call answers

- The compaction prompt asks for a hand-off to another instance instead
  of a summary: what the user asked for and expects, progress, verified
  facts with paths, next steps, open questions. Tool calls are forbidden.
- Compaction now runs before a pending user message is appended, so a
  fresh request follows the hand-off instead of being folded into it.
- The request keeps the tool definitions (dropping them would invalidate
  the cached prompt prefix). A response without text is asked once more
  with a reminder; a second failure fails the turn instead of storing an
  empty summary. Thinking blocks no longer leak into the summary.
@stippi
stippi merged commit 006428d into main Sep 16, 2026
5 checks passed
@stippi
stippi deleted the feature/compaction-handoff branch September 16, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant