Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/zee/src/session/compaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@ When constructing the summary, try to stick to this template:
created: Date.now(),
},
agent: userMessage.agent,
model: userMessage.model,
// Persist the resolved model used during compaction so follow-up turns
// don't inherit stale provider/model metadata from the parent message.
model: {
providerID: model.providerID,
modelID: model.id,
},
})
await Session.updatePart({
id: Identifier.ascending("part"),
Expand Down
Loading