Files
openclaw/packages
4b5341ce43 fix(compaction): show the summarizer the audited latest ask (#130620)
* fix(compaction): show the summarizer the audited latest ask

The safeguard reads the latest user ask from the pre-partition window but
only feeds the summarizer the partitioned messages. When recentTurnsPreserve
keeps the ask verbatim and the preserved suffix is head-truncated, the
producer can never reflect it, so every attempt fails
latest_user_ask_not_reflected and compaction cancels, leaving the session
stuck at the context limit.

Hand the bounded ask to the summarizer as untrusted data on every attempt so
the guard only demands what the producer was shown.

* fix(compaction): preserve latest turn context

Worked on by:
- @VACInc

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>

* test(ui): await lazy attention panel render

Worked on by:
- @VACInc

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>

* fix(compaction): audit completed split turns

Worked on by:
- @VACInc

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>

---------

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>
Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
2026-08-27 00:02:37 -07:00
..