Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(agent-proxy): update stale source paths in comments (#115085)

Paul D'Ambra716405ddea31
diff --git a/services/agent-proxy/src/hono/sse-handler.ts b/services/agent-proxy/src/hono/sse-handler.ts
index cca38bfb253d..2f95f35e056f 100644
--- a/services/agent-proxy/src/hono/sse-handler.ts
+++ b/services/agent-proxy/src/hono/sse-handler.ts
@@ -1,7 +1,6 @@
// SSE stream handler for task-run event streams.
//
-// Ports products/tasks/backend/stream/sse.py (stream_task_run_events) to an
-// async generator yielding SSE byte chunks. Wire protocol is byte-identical to
+// Async generator yielding SSE byte chunks. Wire protocol is byte-identical to
// the Python implementation: during cutover Django and this Node service read
// the SAME Redis stream and serve the SAME clients. Any drift corrupts live runs.
//
diff --git a/services/agent-proxy/src/lib/logging.ts b/services/agent-proxy/src/lib/logging.ts
index c0da4f191fcb..1b354dcc78d7 100644
--- a/services/agent-proxy/src/lib/logging.ts
+++ b/services/agent-proxy/src/lib/logging.ts
@@ -1,6 +1,6 @@
// Leveled logger + wide-event RequestLogger for the agent-proxy.
//
-// Backed by pino, the PostHog Node house logger (see nodejs/src/utils/logger.ts).
+// Backed by pino, the PostHog Node house logger (see nodejs/src/common/utils/logger.ts).
// The logger never constructs a pino transport: dev and prod both run the esbuild
// bundle, and a transport would spawn a worker needing lib/worker.js + __dirname,
// neither of which exists in a single-file ESM bundle. Instead:
diff --git a/services/agent-proxy/src/lib/redis-stream.ts b/services/agent-proxy/src/lib/redis-stream.ts
index c292fd201739..9d708195a761 100644
--- a/services/agent-proxy/src/lib/redis-stream.ts
+++ b/services/agent-proxy/src/lib/redis-stream.ts
@@ -1,7 +1,7 @@
// Redis stream read/write plane for task-run event streaming.
//
// Wire protocol is byte-identical to the Python implementation in
-// products/tasks/backend/stream/redis_stream.py — Django and this Node
+// products/tasks/backend/logic/stream/redis_stream.py — Django and this Node
// service share the SAME Redis stream during the cutover window.
// Any change to key names, TTLs, field names, or sentinel shapes will
// corrupt live runs.
diff --git a/services/agent-proxy/src/lib/types.ts b/services/agent-proxy/src/lib/types.ts
index b150cb152c2f..bd91b6ff1e3a 100644
--- a/services/agent-proxy/src/lib/types.ts
+++ b/services/agent-proxy/src/lib/types.ts
@@ -1,7 +1,7 @@
// Domain types, error classes and discriminated unions for the agent-proxy.
// Shapes defined here must stay compatible with the Python counterparts in
-// products/tasks/backend/stream/redis_stream.py and
-// products/tasks/backend/proxy/event_ingest.py — both sides share the same
+// products/tasks/backend/logic/stream/redis_stream.py and
+// products/tasks/backend/logic/stream/event_ingest.py — both sides share the same
// Redis stream and HTTP contracts.
import type { Redis } from 'ioredis'
diff --git a/services/agent-proxy/tests/hono/sse-handler.test.ts b/services/agent-proxy/tests/hono/sse-handler.test.ts
index b7463f997437..2d9ae996a49f 100644
--- a/services/agent-proxy/tests/hono/sse-handler.test.ts
+++ b/services/agent-proxy/tests/hono/sse-handler.test.ts
@@ -1,12 +1,11 @@
// Tests for SSE framing and streamTaskRunEvents generator.
//
// Wire-protocol invariant: SSE output must be byte-identical to the Python
-// format_sse_event in products/tasks/backend/stream/sse.py. Django and this
+// format_sse_event. Django and this
// Node service read/write the SAME Redis stream during the cutover window.
//
-// Coverage mirrors products/tasks/backend/stream/tests/test_sse.py plus the
-// timing paths (keepalive cadence, wait-for-stream timeout) that are hard to
-// exercise in Python without mocking.
+// Coverage includes the timing paths (keepalive cadence, wait-for-stream timeout)
+// that are hard to exercise in Python without mocking.
import type { Redis } from 'ioredis'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
diff --git a/services/agent-proxy/tests/lib/redis-stream.test.ts b/services/agent-proxy/tests/lib/redis-stream.test.ts
index 136542afdb13..333e351715aa 100644
--- a/services/agent-proxy/tests/lib/redis-stream.test.ts
+++ b/services/agent-proxy/tests/lib/redis-stream.test.ts
@@ -1,7 +1,7 @@
// Tests for TaskRunRedisStream.
//
// Wire protocol must stay byte-identical to the Python implementation in
-// products/tasks/backend/stream/redis_stream.py. Both sides share the same
+// products/tasks/backend/logic/stream/redis_stream.py. Both sides share the same
// Redis stream during the cutover window; any drift corrupts live runs.
//
// Uses a small in-memory fake instead of ioredis-mock to avoid an extra