Skip to content

Commit bacf955

Browse files
committed
fix(codex): retain session identity narrowing
1 parent 568be42 commit bacf955

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎extensions/codex/src/conversation-control.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ export async function setCodexConversationModel(params: {
221221
modelChanged && binding.contextEngine?.projection
222222
? { contextEngine: { ...binding.contextEngine, projection: undefined } }
223223
: {};
224-
if (params.identity.kind === "session" && params.identity.sessionKey) {
225-
const identity = params.identity;
224+
const identity = params.identity;
225+
if (identity.kind === "session" && identity.sessionKey) {
226226
// SessionEntry owns the desired model; retain the loaded binding until
227227
// lifecycle reconciliation can rotate its native generation safely.
228228
const updated = await patchSessionEntry({

0 commit comments

Comments
 (0)