Skip to content

Conversation

@ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Nov 20, 2025 β€’

Stack

  1. πŸ€– feat: add auto-compaction configuration UI #685 β¬… This PR
  2. πŸ€– feat: add auto-compaction with progressive warnings #683
  3. πŸ€– refactor: move compaction logic to backend #670
  4. πŸ€– refactor: use message queue for compact continue messages #650 (base)

Relates to #651.

Adds per-workspace settings for auto-compaction:

New Features:

  • Toggle to enable/disable auto-compaction
  • Configurable threshold percentage (50-90%, default 70%)
  • Settings persist to localStorage and sync across tabs
  • UI integrated into right sidebar below existing settings

Implementation:

  • Extracted threshold constants to ui.ts for DRY
  • Created reusable useClampedNumberInput hook for numeric input validation
  • Updated shouldAutoCompact to accept settings parameters
  • Follows existing patterns (uses HelpIndicator for tooltips)

Settings are forked with workspace and cleaned up on workspace deletion.

Generated with mux

- Add configurable auto-compaction threshold (50-90%) per workspace
- Extract threshold constants to ui.ts (DRY)
- Create reusable useClampedNumberInput hook for numeric inputs
- Add settings to right sidebar with checkbox and percentage input
- Wire settings through to shouldAutoCompact check
- Use existing HelpIndicator pattern for tooltips
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.

1 participant