fix: resolve agent dir in onboarding

This commit is contained in:
Peter Steinberger
2026-01-05 07:12:13 +01:00
parent 17ef7b3b0e
commit 9be1a14a08
5 changed files with 19 additions and 11 deletions

View File

@@ -798,8 +798,11 @@ describe("trigger handling", () => {
workspaceDir: cfg.agent.workspace,
});
expect(sandbox).not.toBeNull();
if (!sandbox) {
throw new Error("Expected sandbox to be set");
}
const stagedFullPath = join(
sandbox!.workspaceDir,
sandbox.workspaceDir,
"media",
"inbound",
basename(mediaPath),