mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-13 19:20:06 +00:00
31ea80ec4f
- Add releaseBusyAfterCompact() shared deferred tail used by both CompactConversation and CompactAsync. It drains the SDK steer channel, splices steer items in front of any queued prompts, and hands off to drainQueue so messages received during compaction are dispatched automatically once compaction finishes. - Previously, busy was simply cleared on completion and the queue sat idle until the user submitted another prompt, which then flushed everything together. - Honor the closed flag so a teardown during compaction discards pending items instead of spawning drainQueue against a torn-down App. - Add regression tests covering the queued-flush, idle-empty, and closed-during-compact paths. Fixes #27