Skip to content

Commit c5d57b4

Browse files
authored
fix: resolve make dev and test-e2e errors (#2570)
1 parent e4ff444 commit c5d57b4

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

backend/docs/HARNESS_APP_SPLIT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ LangGraph Server 只需要 harness 包。`langgraph.json` 更新:
277277
"lead_agent": "deerflow.agents:make_lead_agent"
278278
},
279279
"checkpointer": {
280-
"path": "./packages/harness/deerflow/agents/checkpointer/async_provider.py:make_checkpointer"
280+
"path": "./packages/harness/deerflow/runtime/checkpointer/async_provider.py:make_checkpointer"
281281
}
282282
}
283283
```

backend/langgraph.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"path": "./app/gateway/langgraph_auth.py:auth"
1313
},
1414
"checkpointer": {
15-
"path": "./packages/harness/deerflow/agents/checkpointer/async_provider.py:make_checkpointer"
15+
"path": "./packages/harness/deerflow/runtime/checkpointer/async_provider.py:make_checkpointer"
1616
}
1717
}

frontend/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default defineConfig({
2828
timeout: 120_000,
2929
env: {
3030
SKIP_ENV_VALIDATION: "1",
31+
DEER_FLOW_AUTH_DISABLED: "1",
3132
},
3233
},
3334
});

frontend/src/core/auth/server.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ const SSR_AUTH_TIMEOUT_MS = 5_000;
1010
* Returns a tagged AuthResult — callers use exhaustive switch, no try/catch.
1111
*/
1212
export async function getServerSideUser(): Promise<AuthResult> {
13+
if (process.env.DEER_FLOW_AUTH_DISABLED === "1") {
14+
return {
15+
tag: "authenticated",
16+
user: {
17+
id: "e2e-user",
18+
email: "e2e@test.local",
19+
system_role: "admin",
20+
needs_setup: false,
21+
},
22+
};
23+
}
24+
1325
const cookieStore = await cookies();
1426
const sessionCookie = cookieStore.get("access_token");
1527

0 commit comments

Comments
 (0)