Skip to content

Conversation

@ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Nov 25, 2025

Remove Ctrl+A 'accept early' compaction feature which allowed accepting a partial compaction with a [truncated] sentinel. This simplifies the compaction flow.

Closes #695, a hard to fix bug caused when accepting compactions early. I don't really see the value in the feature, and neither does Ammar.

Changes

  • Remove handleAbort() method from CompactionHandler (was just returning false after previous simplification)
  • Remove ACCEPT_EARLY_COMPACTION keybind and its handler
  • Simplify stream-abort forwarding in agentSession
  • Update UI hints to remove 'accept early' references
  • Remove ~240 lines of tests for the removed functionality

The abandonPartial flag is preserved for the Ctrl+C cancel flow (deletes partial message when cancelling a compaction).

If you want a shorter compaction

Edit the compaction command's tokens flag (e.g., /compact tokens=2000) to generate a new, shorter compaction instead.


Generated with mux

Remove Ctrl+A 'accept early' compaction feature which allowed accepting
a partial compaction with a [truncated] sentinel. This simplifies the
compaction flow - users now either let compaction complete normally or
cancel with Ctrl+C.

Changes:
- Remove handleAbort() method from CompactionHandler (was just returning false)
- Remove ACCEPT_EARLY_COMPACTION keybind and its handler
- Simplify stream-abort forwarding in agentSession
- Update UI hints to remove 'accept early' references
- Remove ~240 lines of tests for the removed functionality

The abandonPartial flag is preserved for Ctrl+C cancel flow (deletes
partial message when cancelling a compaction).
@ethanndickson ethanndickson added this pull request to the merge queue Nov 25, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 25, 2025
@ethanndickson ethanndickson added this pull request to the merge queue Nov 25, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 25, 2025
@ethanndickson ethanndickson added this pull request to the merge queue Nov 25, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 25, 2025
@ethanndickson ethanndickson merged commit 8f176aa into main Nov 25, 2025
13 checks passed
@ethanndickson ethanndickson deleted the remove-accept-early-compactions branch November 25, 2025 05:52
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.

Early-accepted compactions do not return their usage

1 participant