an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
feat(renderer): add messages tab rendering ThreadsPanel
Chaitanya Giriff703100dd73
diff --git a/src/renderer/src/components/AgentDetailPanel.tsx b/src/renderer/src/components/AgentDetailPanel.tsxindex 0c95fef0..22ddd5fe 100644--- a/src/renderer/src/components/AgentDetailPanel.tsx+++ b/src/renderer/src/components/AgentDetailPanel.tsx@@ -10,6 +10,7 @@ import { CommandCenterPanel } from './CommandCenterPanel';import { disposeTerminal } from './terminalPool';import { SidebarTabs } from './SidebarTabs';import { FilesTab } from './FilesTab';+import { ThreadsPanel } from './ThreadsPanel';import { Icon } from './Icon';import { useStore, type Agent } from '@/store/store';import { usePtyParser } from '@/hooks/usePtyParser';@@ -173,6 +174,10 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {{sidebarTab === 'files' && (<FilesTab cwd={agent.cwd} />)}++ {sidebarTab === 'messages' && (+ <ThreadsPanel agentId={agent.id} />+ )}</div></PixelPanel>);diff --git a/src/renderer/src/components/SidebarTabs.tsx b/src/renderer/src/components/SidebarTabs.tsxindex f685f51d..b68dd910 100644--- a/src/renderer/src/components/SidebarTabs.tsx+++ b/src/renderer/src/components/SidebarTabs.tsx@@ -4,7 +4,8 @@ import { Icon, type IconName } from './Icon';const TABS: { key: SidebarTab; label: string; icon: IconName }[] = [{ key: 'terminal', label: 'terminal', icon: 'terminal' },- { key: 'files', label: 'files', icon: 'folder' }+ { key: 'files', label: 'files', icon: 'folder' },+ { key: 'messages', label: 'messages', icon: 'bell' }];export interface SidebarTabsProps {diff --git a/src/renderer/src/store/store.ts b/src/renderer/src/store/store.tsindex 3179674d..bb976fa6 100644--- a/src/renderer/src/store/store.ts+++ b/src/renderer/src/store/store.ts@@ -80,7 +80,7 @@ export interface QueuedMessage {ts: number;}-export type SidebarTab = 'terminal' | 'files';+export type SidebarTab = 'terminal' | 'files' | 'messages';/** Lifecycle of the god agent ("Michael") bootstrap on launch.* 'booting' until his PTY is confirmed live, then 'ready' (or 'failed' if the@@ -222,7 +222,7 @@ const initialSidebarWidth = (() => {const initialSidebarTab: SidebarTab = (() => {try {const v = window.localStorage.getItem(LS_SIDEBAR_TAB);- if (v === 'files' || v === 'terminal') return v;+ if (v === 'files' || v === 'terminal' || v === 'messages') return v;} catch { /* noop */ }return 'terminal';})();