fix: 修复 runner Codex shell 工具环境

This commit is contained in:
Codex
2026-06-09 01:06:19 +08:00
parent 437822e5fd
commit aeb49460b7
9 changed files with 92 additions and 15 deletions
+8
View File
@@ -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,
},
};
}