122
123
export function createCodexSessionMapState(serverToolNames: ReadonlySet<string> = new Set(), clientToolSet: ActiveClientToolSet = new ActiveClientToolSet()): ICodexSessionMapState {
125
>
itemToPartId: new Map(),
126
>
itemToToolCall: new Map(),
127
>
itemToReasoningPartId: new Map(),
128
>
currentTurnId: undefined,
129
>
clientToolSet,
130
>
serverToolNames,
131
>
mcpCustomizationIds: new Map(),
132
>
declinedToolCalls: new Set(),
133
>
pendingPreflight: undefined,
134
>
};
135
>
}
136
137
/**