2644
readonly chats: IAgentChats = {
2645
createChat: (_chat: URI, _options?: IAgentCreateChatOptions): Promise<IAgentCreateChatResult | void> => {
2646
>
throw new Error('Codex agent does not support multiple chats');
codexAgent.ts
2647
>
},
2648
fork: (_chat: URI, _source: IAgentCreateChatForkSource, _options?: IAgentCreateChatOptions): Promise<IAgentCreateChatResult | void> => {
2649
>
throw new Error('Codex agent does not support chat forking');
codexAgent.ts
2650
>
},
2651
disposeChat: (_chat: URI): Promise<void> => {
2652
>
// Codex has no additional (peer) chats to dispose; the
codexAgent.ts
2653
>
// default chat lives and dies with its session.
2654
>
return Promise.resolve();
2655
>
},
2656
sendMessage: (chat: URI, prompt: string, workingDirectory: URI | undefined, attachments?: readonly MessageAttachment[], turnId?: string, _senderClientId?: string): Promise<void> => {
2657
>
return this._sendMessage(chat, prompt, attachments, turnId, workingDirectory);
codexAgent.ts
2658
>
},
2659
abort: (chat: URI): Promise<void> => {
2661
>
},
2662
changeModel: (chat: URI, model: ModelSelection): Promise<void> => {
2664
>
},
2665
changeAgent: (_chat: URI, _agent: AgentSelection | undefined): Promise<void> => {
2666
>
// Codex does not support selecting a custom agent.
codexAgent.ts
2667
>
return Promise.resolve();
2668
>
},
2669
getMessages: (chat: URI): Promise<readonly Turn[]> => {
2671
>
},
2672
};
2673