Files
ra-h-os/ralph/progress.txt
T
“BeeRad”andClaude Opus 4.5 cc5397e9ba docs: update prd.json and progress.txt for stories 3-7
- Story 3: delegateToWiseRAH removed
- Story 4: Chat agent panels removed
- Story 5: Chat API routes removed
- Story 6: Two-panel layout (chat removed)
- Story 7: RAHChat and related components removed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 15:30:49 +11:00

128 lines
5.6 KiB
Plaintext

# Ralph Progress Log - RA-H Light Strip-Down
Started: Thu 29 Jan 2026 15:00:36 AEDT
Branch: feature/rah-light
Goal: Strip ra-h_os to lightweight 2-panel UI + MCP server
## Context
- Auth/subscription already removed
- Target: remove chat agents, voice, delegations, simplify to 2-panel
- Keep: nodes/edges/dimensions, MCP server, workflows, extraction
## Story 1: Remove agent delegation system
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/services/agents/delegation.ts
- app/api/rah/delegations/route.ts
- app/api/rah/delegations/stream/route.ts
- app/api/rah/delegations/[sessionId]/route.ts
- app/api/rah/delegations/[sessionId]/summary/route.ts
- src/components/agents/DelegationIndicator.tsx
- Files modified:
- src/services/agents/workflowExecutor.ts (removed delegation streaming)
- src/services/agents/quickAdd.ts (direct execution instead of delegation)
- src/tools/orchestration/executeWorkflow.ts (direct execution)
- src/tools/orchestration/delegateToWiseRAH.ts (direct execution)
- app/api/workflows/execute/route.ts (direct execution)
- src/components/layout/ThreePanelLayout.tsx (stub type, removed API calls)
- src/components/agents/RAHChat.tsx (stub type, stub voice hooks)
- src/components/agents/AgentsPanel.tsx (stub type)
- src/components/agents/MiniRAHPanel.tsx (stub type)
- src/components/agents/WiseRAHPanel.tsx (stub type)
- src/components/agents/QuickAddStatus.tsx (stub type)
- src/components/panes/types.ts (stub type)
- src/components/panes/WorkflowsPane.tsx (import from types.ts)
- Learnings:
- Delegation system was deeply integrated with workflows; had to refactor to direct execution
- UI components that will be deleted later needed stub types to compile
- Voice hooks also needed stubs in RAHChat.tsx (will be cleaned up in Story 2)
## Story 2: Remove voice features
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/components/agents/hooks/useVoiceSession.ts
- src/components/agents/hooks/useRealtimeVoiceClient.ts
- src/components/agents/hooks/useAssistantTTS.ts
- src/components/agents/hooks/useVoiceInterruption.ts
- app/api/voice/tts/route.ts
- app/api/realtime/ephemeral-token/route.ts
- src/services/voice/usageLogger.ts
- Files modified:
- src/components/agents/RAHChat.tsx (removed all voice-related code and stub hooks)
- src/components/agents/TerminalInput.tsx (removed voice props and voice UI)
- Learnings:
- Voice hooks were stubbed in Story 1, so removal was straightforward
- TerminalInput had voice UI (amplitude bars, mic icons) that needed cleanup
- No imports to these files from other parts of the codebase
## Story 3: Remove orchestration tools (delegateToWiseRAH)
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/tools/orchestration/delegateToWiseRAH.ts
- tests/evals/scenarios/delegate-wise.ts
- tests/evals/scenarios/delegate-mini.ts
- Files modified:
- src/tools/infrastructure/registry.ts (removed import and references)
- src/tools/infrastructure/groups.ts (removed from TOOL_GROUP_ASSIGNMENTS)
- tests/evals/scenarios/index.ts (removed deleted test imports)
- Learnings:
- delegateToMiniRAH test also removed since the tool never existed in the registry
- The tool was a thin wrapper around WorkflowExecutor, which remains for workflow functionality
- Clean removal - no other files depended on this tool
## Story 4: Remove chat agent components
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/components/agents/AgentsPanel.tsx
- src/components/agents/MiniRAHPanel.tsx
- src/components/agents/WiseRAHPanel.tsx
- Files modified: None
- Learnings:
- These components were not imported anywhere in the codebase
- Clean deletion with no cascading changes needed
- AgentsPanel contained ~1100 lines of complex UI for delegation management (now obsolete)
## Story 5: Remove chat API route
- Completed: Thu 29 Jan 2026
- Files deleted:
- app/api/rah/chat/route.ts
- app/api/rah/usage/route.ts
- app/api/rah/ (empty directory)
- Files modified: None
- Learnings:
- RAHChat.tsx still references /api/rah/chat endpoint (will be deleted in Story 7)
- Type-check passes because the endpoint URL is just a string constant
- tests/evals/runner.ts also references this endpoint (evals won't work until cleaned up)
## Story 6: Simplify to two-panel layout
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/components/panes/ChatPane.tsx
- Files modified:
- src/components/panes/types.ts (removed 'chat' from PaneType, ChatPaneProps)
- src/components/panes/index.ts (removed ChatPane export)
- src/components/layout/ThreePanelLayout.tsx (removed chat case, defaults)
- src/components/layout/LeftToolbar.tsx (removed chat icon/type)
- Learnings:
- Changed persisted state keys from v3 to v4 to avoid stale 'chat' type in user storage
- Default slotB is now null instead of { type: 'chat' }
- Cmd+\ now opens node pane instead of chat
- Layout still flexible (2-panel with split handle) but chat option removed
## Story 7: Remove RAHChat component
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/components/agents/RAHChat.tsx
- src/components/agents/TerminalInput.tsx
- src/components/agents/TerminalMessage.tsx
- src/components/agents/hooks/useSSEChat.ts
- src/components/helpers/ReasoningTrace.tsx
- src/components/helpers/ToolDisplay.tsx
- Files modified:
- src/components/panes/WorkflowsPane.tsx (simplified - removed RAHChat, shows MCP integration message)
- Learnings:
- WorkflowsPane was heavily dependent on RAHChat for delegation detail views
- Simplified WorkflowsPane to show a message about MCP integration
- ReasoningTrace and ToolDisplay were only used by RAHChat - safe to delete
- ~2000 lines of chat UI code removed