fix(codex): preserve context config in remote sessions (#1633)

This commit is contained in:
NightWatcher314
2026-09-06 14:19:44 +08:00
committed by GitHub
parent b85c72f09f
commit 97b1dd4c34
6 changed files with 141 additions and 6 deletions
+7
View File
@@ -29,6 +29,8 @@ import type {
TurnSteerResponse,
ThreadCompactStartParams,
ThreadCompactStartResponse,
ConfigReadParams,
ConfigReadResponse,
ThreadGoalSetParams,
ThreadGoalSetResponse,
ThreadGoalGetParams,
@@ -293,6 +295,11 @@ export class CodexAppServerClient extends JsonLineParser {
return response as InitializeResponse;
}
async readConfig(params: ConfigReadParams): Promise<ConfigReadResponse> {
const response = await this.sendRequest('config/read', params, { timeoutMs: 30_000 });
return response as ConfigReadResponse;
}
async listModels(params?: ModelListParams): Promise<ModelListResponse> {
const response = await this.sendRequest('model/list', params ?? {}, {
timeoutMs: 30_000