Skip to content

Commit a749f33

Browse files
committed
fix(cloud-agent): use LAN IP for KILO_SESSION_INGEST_URL in local dev
Add @url annotation for KILO_SESSION_INGEST_URL in .dev.vars.example so env-sync resolves it to the LAN IP (needed for sandbox containers that cannot reach localhost). Also fix the wrangler.jsonc fallback port from 8787 to 8800 to match the actual cloudflare-session-ingest service.
1 parent 19c2987 commit a749f33

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cloud-agent-next/.dev.vars.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ R2_ENDPOINT=""
7272
R2_ATTACHMENTS_READONLY_ACCESS_KEY_ID=""
7373
R2_ATTACHMENTS_READONLY_SECRET_ACCESS_KEY=""
7474

75+
# Session ingest URL used by the wrapper to post session data.
76+
# Use a host-reachable IP (not localhost) so sandbox containers can connect back.
77+
# @url cloudflare-session-ingest
78+
KILO_SESSION_INGEST_URL=http://192.168.x.x:8800
79+
7580
# Local dev worker origins allowed to connect to /stream
7681
# @url nextjs,cloud-agent-next
7782
WS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8794

cloud-agent-next/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
"PENDING_START_TIMEOUT_MS": "300000",
260260
"R2_ATTACHMENTS_BUCKET": "cloud-agent-attachments-dev",
261261
"WS_ALLOWED_ORIGINS": "http://localhost:3000,http://192.168.200.174:3000",
262-
"KILO_SESSION_INGEST_URL": "http://localhost:8787",
262+
"KILO_SESSION_INGEST_URL": "http://localhost:8800",
263263
"PER_SESSION_SANDBOX_ORG_IDS": "*",
264264
},
265265
"services": [

0 commit comments

Comments
 (0)