Skip to content

Comments

refactor: remove agent chat header and move raw logs toggle to context menu#189

Merged
jonathanlab merged 1 commit intomainfrom
posthog/silky-crystal-swan
Dec 3, 2025
Merged

refactor: remove agent chat header and move raw logs toggle to context menu#189
jonathanlab merged 1 commit intomainfrom
posthog/silky-crystal-swan

Conversation

@jonathanlab
Copy link
Contributor

Summary

  • Removed the deprecated agent chat header that contained run status indicators and various buttons
  • Moved the raw ACP logs toggle to a right-click context menu for a cleaner, more minimal UI
  • Cleaned up unused props and handlers

Changes

  • Removed from LogView component:

    • "Agent Chat" heading
    • Run status indicators (Running/Idle with animated dots)
    • Copy logs button
    • Cancel session button
    • Entire header section
  • Added:

    • Radix UI context menu wrapper around the logs display area
    • Checkbox item in context menu to toggle raw ACP logs view
  • Cleaned up:

    • Removed unused imports (CodeIcon, CopyIcon, StopIcon, Heading)
    • Removed onCancelSession prop from LogViewProps
    • Removed handleCopyLogs function
    • Updated TaskLogsPanel to remove onCancelSession handler and disconnectFromTask usage

Test plan

  • Run the application
  • Right-click on the logs area
  • Verify context menu appears with "Show raw ACP logs" checkbox
  • Toggle the checkbox and verify it switches between pretty view and raw ACP logs
  • Verify the input area and chat functionality still work correctly

🤖 Generated with Claude Code

Removed the deprecated agent chat header that contained run status indicators and various buttons. The raw ACP logs toggle has been moved to a right-click context menu for cleaner UI.

Changes:
- Removed "Agent Chat" header section from LogView
- Removed run status indicators (Running/Idle)
- Removed copy logs and cancel session buttons
- Added Radix UI context menu to logs area
- Raw ACP logs toggle now accessible via right-click checkbox
- Cleaned up unused props and handlers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jonathanlab jonathanlab requested a review from a team as a code owner December 3, 2025 14:08
@jonathanlab jonathanlab enabled auto-merge (squash) December 3, 2025 15:10
@jonathanlab jonathanlab merged commit 36b8d38 into main Dec 3, 2025
10 checks passed
@jonathanlab jonathanlab deleted the posthog/silky-crystal-swan branch December 3, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants