You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#244
## Summary
Replaced the `compact_summary` tool with direct text streaming for
conversation compaction. The model now streams the summary directly
instead of using a tool call to return it.
## Changes
- **Removed** `compact_summary` tool definition and service
implementation
- **Updated** `StreamingMessageAggregator` to extract compaction summary
from text parts
- **Updated** `WorkspaceStore` to handle compaction on stream-end
instead of tool completion
- **Removed** toolPolicy requirement forcing `compact_summary` tool
usage
- **Updated** tests and mock scenarios to reflect new flow
## Benefits
1. **Live feedback**: Users can now see the compaction summary as it
streams in real-time
2. **Context efficiency**: Eliminates duplicate text (no tool call +
assistant message)
3. **Simpler protocol**: Fewer moving parts, less code to maintain
## Testing
- ✅ Unit tests pass (`src/utils/messages/compactionOptions.test.ts`)
- ✅ Type checking passes
- ✅ All existing tests pass (573 tests)
_Generated with `cmux`_
0 commit comments