Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Summary

Fixes a regression where the /compact model (often a cheaper/faster model) was incorrectly used for the follow-up continue message instead of the user's selected workspace model.

Regression

Introduced in a31a2e0 which moved continue message logic to the backend message queue but failed to sanitize the options.

Changes

  • Extended CompactionRequestData to carry resumeModel
  • Updated frontend/mobile command parsers to capture the current model before switching to compaction mode
  • Added buildContinueMessageOptions helper in backend to:
    • Strip compaction flags (mode: 'compact', maxOutputTokens)
    • Restore the original resumeModel
  • Added tests for options sanitization and metadata round-tripping

Generated with mux

@ammar-agent ammar-agent force-pushed the compact-followup-regression branch 2 times, most recently from 478e3ed to 83ccea6 Compare November 24, 2025 17:44
Introduced in a31a2e0, the auto-continue message queueing logic was inheriting the compaction model (e.g. haiku) for the follow-up task.

This fix:
1. Preserves the original workspace model as `resumeModel` in compaction metadata
2. Sanitizes the queued continue message options to strip compaction-specific flags
3. Restores the correct model for the follow-up turn
@ammar-agent ammar-agent force-pushed the compact-followup-regression branch from 83ccea6 to 97a783d Compare November 24, 2025 17:54
@ammario ammario merged commit 790ef06 into main Nov 24, 2025
23 of 25 checks passed
@ammario ammario deleted the compact-followup-regression branch November 24, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants