Summarization Compaction Strategy Never Triggers After Deferred Execution
Summarization Compaction Strategy Never Triggers After Deferred Execution
Version: code_puppy 0.250
Config:
[puppy]
compaction_strategy = summarization
Description
When the compaction strategy is set to summarization in ~/.code_puppy/puppy.cfg, the summarization process never actually runs if there are pending tool calls at the time compaction is triggered.
Typical log output:
Summarization deferred: 3 pending tool call(s) detected. Waiting for tool execution to complete before compaction.
However, once all tool calls finish, the summarization is never resumed. It appears the deferred compaction task is not being re-scheduled after the tool queue is cleared.
Expected Behavior
After all pending tool calls complete, the summarization process should automatically resume and perform the compaction step as initially requested.
Possible Cause
The current implementation likely checks for pending tool calls, logs the deferment, and exits the compaction routine without re-registering a callback or signal to trigger summarization later.
Potential reasons:
- The deferred task is not re-queued in the scheduler.
- The event handler for “tool call completed” does not notify the summarization subsystem.
- Missing or incorrect state reset once the tool queue becomes empty.