2026-02-15 23:42:13 -08:00

14 lines
338 B
TypeScript

/**
* GET /api/chat/active
*
* Returns the session IDs of all currently running agent sessions.
* Used by the sidebar to show streaming indicators.
*/
import { getRunningSessionIds } from "@/lib/active-runs";
export const runtime = "nodejs";
export function GET() {
return Response.json({ sessionIds: getRunningSessionIds() });
}