Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .github/media/inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 69 additions & 19 deletions frontend/packages/inspector/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@
color-scheme: dark;
/* Match landing page colors - high contrast */
--bg: #000000;
--surface: rgba(255, 255, 255, 0.04);
--surface-2: rgba(255, 255, 255, 0.02);
--border: rgba(255, 255, 255, 0.15);
--border-2: rgba(255, 255, 255, 0.12);
--input-bg: rgba(255, 255, 255, 0.05);
--input-border: rgba(255, 255, 255, 0.18);
--bg-panel: #0a0a0b;
--surface: rgba(255, 255, 255, 0.06);
--surface-2: rgba(255, 255, 255, 0.03);
--border: rgba(255, 255, 255, 0.18);
--border-2: rgba(255, 255, 255, 0.14);
--input-bg: rgba(255, 255, 255, 0.07);
--input-border: rgba(255, 255, 255, 0.22);
--text: #ffffff;
--text-secondary: #d4d4d8; /* zinc-300 */
--text-secondary: #e4e4e7; /* zinc-200 */
--muted: #a1a1aa; /* zinc-400 */
--muted-2: #71717a; /* zinc-500 */
--muted-2: #8b8b93; /* between zinc-400 and zinc-500 */
--accent: #ff4f00;
--accent-hover: #ff6a00;
--success: #4ade80; /* green-400 */
Expand Down Expand Up @@ -87,7 +88,7 @@
justify-content: space-between;
padding: 12px 20px;
border-bottom: 1px solid var(--border);
background: var(--bg);
background: var(--bg-panel);
flex-shrink: 0;
}

Expand Down Expand Up @@ -476,14 +477,19 @@
grid-template-columns: 200px 1fr 1fr;
flex: 1;
overflow: hidden;
transition: grid-template-columns 0.2s ease;
}

.main-layout.debug-collapsed {
grid-template-columns: 200px 1fr 42px;
}

/* Session Sidebar */
.session-sidebar {
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
background: var(--bg);
background: var(--bg-panel);
overflow: visible;
}

Expand Down Expand Up @@ -1234,7 +1240,7 @@
height: 41px;
padding: 0 16px;
border-bottom: 1px solid var(--border);
background: var(--bg);
background: var(--bg-panel);
flex-shrink: 0;
display: flex;
align-items: center;
Expand Down Expand Up @@ -2455,13 +2461,14 @@
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--bg-panel);
}

.debug-tabs {
display: flex;
height: 41px;
border-bottom: 1px solid var(--border);
background: var(--bg);
background: var(--bg-panel);
flex-shrink: 0;
overflow-x: auto;
}
Expand Down Expand Up @@ -2513,6 +2520,49 @@
padding: 16px;
}

.debug-panel.collapsed .debug-content {
display: none;
}

.debug-panel.collapsed .debug-tabs {
flex-direction: column;
height: auto;
border-bottom: none;
overflow: visible;
}

.debug-panel.collapsed .debug-tab {
display: none;
}

.debug-collapse-btn {
width: 28px;
height: 28px;
min-width: 28px;
margin: 6px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--muted);
cursor: pointer;
transition: color var(--transition), border-color var(--transition), background var(--transition);
flex-shrink: 0;
}

.debug-collapse-btn:hover {
color: var(--text);
border-color: var(--text-secondary);
background: var(--surface);
}

.debug-panel.collapsed .debug-collapse-btn {
margin: 6px auto;
}

/* Session Setup */
.setup-grid {
display: grid;
Expand Down Expand Up @@ -2637,19 +2687,19 @@
}

.event-item {
background: var(--surface);
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: var(--radius);
overflow: hidden;
transition: border-color var(--transition);
}

.event-item:hover {
border-color: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.12);
}

.event-item.expanded {
border-color: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.12);
}

.event-item.highlighted {
Expand Down Expand Up @@ -2684,9 +2734,9 @@
width: 28px;
height: 28px;
border-radius: 8px;
border: 1px solid var(--border-2);
background: rgba(255, 255, 255, 0.04);
color: var(--text-secondary);
border: 1px solid rgba(255, 255, 255, 0.06);
background: rgba(255, 255, 255, 0.02);
color: var(--muted);
flex-shrink: 0;
}

Expand Down
5 changes: 4 additions & 1 deletion frontend/packages/inspector/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export default function App() {

const [debugTab, setDebugTab] = useState<DebugTab>("events");
const [highlightedEventId, setHighlightedEventId] = useState<string | null>(null);
const [debugPanelCollapsed, setDebugPanelCollapsed] = useState(false);

const messagesEndRef = useRef<HTMLDivElement>(null);

Expand Down Expand Up @@ -1614,7 +1615,7 @@ export default function App() {
</div>
</header>

<main className="main-layout">
<main className={`main-layout ${debugPanelCollapsed ? "debug-collapsed" : ""}`}>
<SessionSidebar
sessions={sessions}
selectedSessionId={sessionId}
Expand Down Expand Up @@ -1704,6 +1705,8 @@ export default function App() {
agentsLoading={agentsLoading}
agentsError={agentsError}
getClient={getClient}
collapsed={debugPanelCollapsed}
onToggleCollapse={() => setDebugPanelCollapsed(!debugPanelCollapsed)}
/>
</main>
{toastStack}
Expand Down
15 changes: 13 additions & 2 deletions frontend/packages/inspector/src/components/debug/DebugPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cloud, PlayCircle, Server, Terminal, Wrench } from "lucide-react";
import { ChevronLeft, ChevronRight, Cloud, PlayCircle, Server, Terminal, Wrench } from "lucide-react";
import type { AgentInfo, SandboxAgent, SessionEvent } from "sandbox-agent";

type AgentModeInfo = { id: string; name: string; description: string };
Expand Down Expand Up @@ -30,6 +30,8 @@ const DebugPanel = ({
agentsLoading,
agentsError,
getClient,
collapsed,
onToggleCollapse,
}: {
debugTab: DebugTab;
onDebugTabChange: (tab: DebugTab) => void;
Expand All @@ -49,10 +51,19 @@ const DebugPanel = ({
agentsLoading: boolean;
agentsError: string | null;
getClient: () => SandboxAgent;
collapsed?: boolean;
onToggleCollapse?: () => void;
}) => {
return (
<div className="debug-panel">
<div className={`debug-panel ${collapsed ? "collapsed" : ""}`}>
<div className="debug-tabs">
<button
className="debug-collapse-btn"
onClick={onToggleCollapse}
title={collapsed ? "Expand panel" : "Collapse panel"}
>
{collapsed ? <ChevronLeft size={14} /> : <ChevronRight size={14} />}
</button>
<button className={`debug-tab ${debugTab === "events" ? "active" : ""}`} onClick={() => onDebugTabChange("events")}>
<PlayCircle className="button-icon" style={{ marginRight: 4, width: 12, height: 12 }} />
Events
Expand Down
Binary file modified frontend/packages/website/public/images/inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/packages/website/src/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function UniversalAPIDiagram() {
}, []);

return (
<div className="relative w-full aspect-[16/9] bg-[#050505] rounded-2xl border border-white/10 overflow-hidden flex items-center justify-center shadow-2xl">
<div className="relative w-full aspect-[4/3] sm:aspect-[16/9] bg-[#050505] rounded-2xl border border-white/10 overflow-hidden flex items-center justify-center shadow-2xl">
{/* Background Dots - color changes with active adapter */}
<div
className="absolute inset-0 opacity-[0.15] pointer-events-none transition-all duration-1000"
Expand Down
Loading