Skip to content

A desktop coding agent with free access to frontier models.

TypeScript
1.4 KB
Raw Blame
/** @jsxImportSource react */
import type { OmniRushSessionSnapshot } from "../../../../app/lib/omnirush-server";
import type { SessionRenderModel } from "../sync/transition-controller";

export function SessionDebugPanel(props: {
  model: SessionRenderModel;
  snapshot: OmniRushSessionSnapshot | null;
}) {
  return (
    <div className="fixed bottom-20 right-4 z-30 w-[280px] rounded-2xl border border-dls-border bg-dls-surface/95 p-3 text-xs text-dls-secondary shadow-[var(--dls-card-shadow)] backdrop-blur-md">
      <div className="mb-2 text-[11px] uppercase tracking-[0.18em] text-dls-text">React Session Debug</div>
      <div className="space-y-1.5">
        <div>intendedSessionId: <span className="text-dls-text">{props.model.intendedSessionId || "-"}</span></div>
        <div>renderedSessionId: <span className="text-dls-text">{props.model.renderedSessionId || "-"}</span></div>
        <div>transitionState: <span className="text-dls-text">{props.model.transitionState}</span></div>
        <div>renderSource: <span className="text-dls-text">{props.model.renderSource}</span></div>
        <div>status: <span className="text-dls-text">{props.snapshot?.status.type ?? "-"}</span></div>
        <div>messages: <span className="text-dls-text">{props.snapshot?.messages.length ?? 0}</span></div>
        <div>todos: <span className="text-dls-text">{props.snapshot?.todos.length ?? 0}</span></div>
      </div>
    </div>
  );
}