Skip to content

feat(tui): add /compact command with optional summarizer instructions - #1158

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-8742-add-compact-optional-instructions-slash-command
Sep 22, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
cl-8742-add-compact-optional-instructions-slash-command

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • /compact is a first-class slash command that folds conversation context now, without waiting for the occupancy governor.
  • Optional trailing instructions go to the summarizer (empty uses the default structured fold) and stick on the compact record and governor so later auto-folds still see them.
  • Idle success shows the fold notice and does not start a new user/assistant turn; an in-flight turn uses the same pair-safe compact-then-continue hop as threshold compact.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • bun run check exits 0 (lint, typecheck, dead-exports, build, guarded test suite)

Fixes CL-8742

@linear-code

linear-code Bot commented Sep 22, 2026

Copy link
Copy Markdown

CL-8742

The compact record stored operator instructions but a new governor
on /model, interrupt, or resume never read them, so later auto-folds
used the default structured prompt.
Stamp last workdir and session id only after a successful rebuild so
a failed factory cannot make the retry look like the same session.
@TheGreatAxios
TheGreatAxios force-pushed the cl-8742-add-compact-optional-instructions-slash-command branch from 062ca1a to 492506c Compare September 22, 2026 15:17
@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) September 22, 2026 15:18
@TheGreatAxios
TheGreatAxios merged commit a97a68d into main Sep 22, 2026
13 checks passed
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