fix: 修复 runner Codex shell 工具环境
This commit is contained in:
@@ -45,6 +45,8 @@ export interface CodexStdioTurnOptions {
|
||||
threadId?: string;
|
||||
approvalPolicy: string;
|
||||
sandbox: string;
|
||||
requestedSandbox?: string;
|
||||
sandboxOverrideSource?: string | null;
|
||||
timeoutMs: number;
|
||||
command?: string;
|
||||
args?: string[];
|
||||
@@ -1065,6 +1067,12 @@ function backendMetadata(options: CodexStdioTurnOptions): JsonRecord {
|
||||
backendKind: spec?.backendKind ?? "codex-app-server-stdio",
|
||||
protocol: spec?.protocol ?? codexProtocol,
|
||||
transport: spec?.transport ?? "stdio",
|
||||
sandbox: {
|
||||
requested: options.requestedSandbox ?? options.sandbox,
|
||||
effective: options.sandbox,
|
||||
overrideSource: options.sandboxOverrideSource ?? null,
|
||||
valuesPrinted: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user