Remove unused components and clean up codebase

- Remove orchestrator.tsx and orchestrator-messages-view.tsx
- Remove conversation-selector.tsx
- Remove thinking-sheet.tsx and agent-thought-content.tsx
- Remove home-header.tsx
- Update message.tsx and agent-stream-view.tsx
- Add tool call detail improvements
- Add lz-string dependency for compression
This commit is contained in:
Mohamed Boudra
2026-01-24 19:04:21 +07:00
parent 9b82c02fd2
commit e9b1021cb9
14 changed files with 546 additions and 1043 deletions
@@ -1168,6 +1168,7 @@ const TOOL_NAME_MAP: Record<string, string> = {
set_branch: "Set branch",
"mcp__agent-control__set_title": "Set title",
"mcp__agent-control__set_branch": "Set branch",
thinking: "Thinking",
};
const ToolCallDisplaySchema = z
@@ -1179,6 +1180,16 @@ const ToolCallDisplaySchema = z
.transform((data) => {
const normalizedToolName = TOOL_NAME_MAP[data.toolName] ?? data.toolName;
// Handle thinking - input is the thinking text content
if (data.toolName === "thinking") {
const content = typeof data.input === "string" ? data.input : "";
return {
type: "thinking" as const,
content,
toolName: normalizedToolName,
};
}
// Try each schema in order
const shellParsed = ShellToolCallSchema.safeParse({ input: data.input, result: data.result });
if (shellParsed.success) {