diff --git a/apps/web/src/hooks/use-session-socket.ts b/apps/web/src/hooks/use-session-socket.ts index 58981e3..1c93391 100644 --- a/apps/web/src/hooks/use-session-socket.ts +++ b/apps/web/src/hooks/use-session-socket.ts @@ -441,7 +441,7 @@ export function useSessionSocket(sessionId: string): UseSessionSocketReturn { case "error": console.error("Session error:", data) - // Reset loading state if a fetch_history request was rejected + // Any session error ends history pagination loading, including a rejected fetch_history. setLoadingHistory(false) break } diff --git a/packages/api/src/server/effect/handlers/shared/control-plane.ts b/packages/api/src/server/effect/handlers/shared/control-plane.ts index 0c151d8..aa3e607 100644 --- a/packages/api/src/server/effect/handlers/shared/control-plane.ts +++ b/packages/api/src/server/effect/handlers/shared/control-plane.ts @@ -199,7 +199,7 @@ export const logControlPlaneError = Effect.fn("controlPlane.logError")(function* export { describeError } -/** Logs an unhandled control-plane error and renders the legacy 500 response. */ +/** Logs an unhandled error and returns a 500 with the S0Api error body plus the legacy `error` field. */ const respondUnhandledError = Effect.fn("controlPlane.respondUnhandledError")(function* ( cause: unknown, ) {