fix(codex): preserve sandbox bootstrap path style · openclaw/openclaw@3f6b63a
vincentkoc
·
2026-05-26
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6827,8 +6827,7 @@ describe("runCodexAppServerAttempt", () => {
|
6827 | 6827 | }, |
6828 | 6828 | } as never; |
6829 | 6829 | const run = runCodexAppServerAttempt(params); |
6830 | | -await harness.waitForMethod("turn/start"); |
6831 | | -await harness.completeTurn({ threadId: "thread-1", turnId: "turn-1" }); |
| 6830 | +await harness.waitForMethod("turn/start", 180_000); |
6832 | 6831 | await run; |
6833 | 6832 | await vi.waitFor( |
6834 | 6833 | () => |
@@ -6871,7 +6870,7 @@ describe("runCodexAppServerAttempt", () => {
|
6871 | 6870 | } finally { |
6872 | 6871 | stopDiagnostics(); |
6873 | 6872 | } |
6874 | | -}); |
| 6873 | +}, 240_000); |
6875 | 6874 | |
6876 | 6875 | it("classifies codex model-call timeout diagnostics", async () => { |
6877 | 6876 | const diagnosticEvents: DiagnosticEventPayload[] = []; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5671,9 +5671,16 @@ function remapCodexContextFilePath(params: {
|
5671 | 5671 | ) { |
5672 | 5672 | return params.file; |
5673 | 5673 | } |
| 5674 | +const targetUsesPosixSeparators = |
| 5675 | +params.targetWorkspaceDir.includes("/") && !params.targetWorkspaceDir.includes("\\"); |
| 5676 | +const normalizedRelativePath = targetUsesPosixSeparators |
| 5677 | + ? relativePath.replaceAll("\\", "/") |
| 5678 | + : relativePath.replaceAll("/", "\\"); |
5674 | 5679 | return { |
5675 | 5680 | ...params.file, |
5676 | | -path: path.join(params.targetWorkspaceDir, relativePath), |
| 5681 | +path: targetUsesPosixSeparators |
| 5682 | + ? path.posix.join(params.targetWorkspaceDir, normalizedRelativePath) |
| 5683 | + : path.win32.join(params.targetWorkspaceDir, normalizedRelativePath), |
5677 | 5684 | }; |
5678 | 5685 | } |
5679 | 5686 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。