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
feat: add compaction model override for session compaction operations
Allow users to select a different LLM model for compaction at runtime
via TUI, independent of the session model. Enables using cheaper or
specialized models for context summarization without changing the
primary chat model.
Model resolution priority:
TUI compaction model override > agent config > session model
TUI:
app.tsx - register command + slash /compaction-models
dialog-model.tsx - target prop; compaction mode shows session
model default option
context/local.tsx - kv.signal('compaction_model') state
prompt/index.tsx - compact model indicator in prompt footer
Server:
routes/session.ts - summarize route accepts compactionModel
message-v2.ts - CompactionPart gains compactionModel field
compaction.ts - 3-tier model resolution in process()
prompt.ts - passes compactionModel through to process()
Config:
config.ts - compaction_model_list keybind
SDK:
types.gen.ts, sdk.gen.ts, openapi.json - regenerated
0 commit comments