mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 13:24:55 +01:00
fix(runner): align Codex ACPX auth isolation
This commit is contained in:
1 parent
919d919304
commit
d2d225e643
4 files changed
+17
-10
No files matched your search
@@ -30,6 +30,9 @@ export function isEphemeralCodexRuntimeAuthFile(
|
||||
) ||
|
||||
/^instances\/[^/]+\/runtime\/paperclip-runner\/durable-sessions\/[^/]+\/codex-home\/auth\.json$/.test(
|
||||
relative,
|
||||
) ||
|
||||
/^instances\/[^/]+\/runtime\/paperclip-runner\/acpx\/acpx\/[^/]+\/codex-home\/auth\.json$/.test(
|
||||
relative,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -677,7 +677,7 @@ describe("runner E2E evidence redaction", () => {
|
||||
).resolves.toMatchObject({ file: forbiddenConfig });
|
||||
});
|
||||
|
||||
it("recognizes both managed and durable-session Codex runtime auth files", () => {
|
||||
it("recognizes managed and durable Codex runtime auth files", () => {
|
||||
const root = path.join(os.tmpdir(), "paperclip-home");
|
||||
expect(
|
||||
isEphemeralCodexRuntimeAuthFile(
|
||||
@@ -688,6 +688,15 @@ describe("runner E2E evidence redaction", () => {
|
||||
),
|
||||
),
|
||||
).toBe(true);
|
||||
expect(
|
||||
isEphemeralCodexRuntimeAuthFile(
|
||||
root,
|
||||
path.join(
|
||||
root,
|
||||
"instances/instance-1/runtime/paperclip-runner/acpx/acpx/session-1/codex-home/auth.json",
|
||||
),
|
||||
),
|
||||
).toBe(true);
|
||||
expect(
|
||||
isEphemeralCodexRuntimeAuthFile(
|
||||
root,
|
||||
|
||||
Reference in new issue
Block a user