Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Jan 24, 2026

Summary

Skip the compaction-complete notification when the compaction request includes a continue message by threading compaction metadata through the response-complete callback, avoiding racy queued-message checks.

This is a follow-up to #1888.

Implementation

  • Added compaction continue metadata to StreamingMessageAggregator stream context and pass it through onResponseComplete as an optional compaction object
  • Updated WorkspaceStore callback typing to accept the optional compaction object
  • Updated App.tsx to skip notifications when compaction?.hasContinueMessage and to use compaction presence for the "Compaction complete" body

Validation

  • make static-check

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high • Cost: $1.61

When compaction completes with a continue message queued, the continue
will trigger its own stream. Skip the 'Compaction complete' notification
in this case since the assistant is still working - the notification
will fire when the continue stream completes instead.
@github-actions github-actions bot added the bug label Jan 24, 2026
@ammario ammario merged commit 0b947aa into main Jan 24, 2026
23 checks passed
@ammario ammario deleted the skip-compaction-notify-on-continue branch January 24, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants