mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +00:00
fix(codex): support app-server plan mode (#622)
* fix(codex): support app-server plan mode * fix(codex): broaden plan mode compatibility checks
This commit is contained in:
@@ -2,6 +2,7 @@ import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process';
|
||||
import { logger } from '@/ui/logger';
|
||||
import { killProcessByChildProcess } from '@/utils/process';
|
||||
import type {
|
||||
CollaborationModeListResponse,
|
||||
InitializeParams,
|
||||
InitializeResponse,
|
||||
ModelListParams,
|
||||
@@ -145,6 +146,13 @@ export class CodexAppServerClient {
|
||||
return response as ModelListResponse;
|
||||
}
|
||||
|
||||
async listCollaborationModes(): Promise<CollaborationModeListResponse> {
|
||||
const response = await this.sendRequest('collaborationMode/list', {}, {
|
||||
timeoutMs: 30_000
|
||||
});
|
||||
return response as CollaborationModeListResponse;
|
||||
}
|
||||
|
||||
async startThread(params: ThreadStartParams, options?: { signal?: AbortSignal }): Promise<ThreadStartResponse> {
|
||||
const response = await this.sendRequest('thread/start', params, {
|
||||
signal: options?.signal,
|
||||
|
||||
Reference in New Issue
Block a user