Skip to content

Commit 6bb8eb8

Browse files
committed
Partial undo agent-view.tsx
1 parent bdcda1a commit 6bb8eb8

File tree

1 file changed

+2
-6
lines changed
  • python/packages/devui/frontend/src/components/features/agent

1 file changed

+2
-6
lines changed

python/packages/devui/frontend/src/components/features/agent/agent-view.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,18 +303,15 @@ export function AgentView({ selectedAgent, onDebugEvent }: AgentViewProps) {
303303

304304
// Load conversation items from backend
305305
try {
306-
console.log(`Loading conversation items for: ${mostRecent.id}`);
307306
const { data: items } = await apiClient.listConversationItems(
308307
mostRecent.id,
309308
{ order: "asc" } // Load in chronological order (oldest first)
310309
);
311310

312-
console.log(`Loaded ${items.length} items from conversation ${mostRecent.id}`);
313311
// Use OpenAI ConversationItems directly (no conversion!)
314312
setChatItems(items as import("@/types/openai").ConversationItem[]);
315313
setIsStreaming(false);
316-
} catch (error) {
317-
console.error(`Failed to load conversation items for ${mostRecent.id}:`, error);
314+
} catch {
318315
// 404 means conversation exists but has no items yet (newly created)
319316
// This is normal - just start with empty chat
320317
console.debug(`No items found for conversation ${mostRecent.id}, starting fresh`);
@@ -372,8 +369,7 @@ export function AgentView({ selectedAgent, onDebugEvent }: AgentViewProps) {
372369
setAvailableConversations([newConversation]);
373370
setChatItems([]);
374371
setIsStreaming(false);
375-
} catch (error) {
376-
console.error("Failed to initialize conversations:", error);
372+
} catch {
377373
setAvailableConversations([]);
378374
setChatItems([]);
379375
setIsStreaming(false);

0 commit comments

Comments
 (0)