mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
fix(codex): preserve context config in remote sessions (#1633)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user