Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Nov 28, 2025

Summary

Adds a new roo-cline.debug package.json setting that, when enabled, shows two debug buttons in the task header:

  1. Open API History - Opens a prettified copy of api_conversation_history.json in a temp file
  2. Open UI History - Opens a prettified copy of ui_messages.json in a temp file
image image image

Changes

  • src/package.json: Added roo-cline.debug boolean setting (default: false)
  • src/shared/ExtensionMessage.ts: Added debug property to ExtensionState
  • src/core/webview/ClineProvider.ts: Read debug setting from VS Code config
  • src/shared/WebviewMessage.ts: Added message types for the debug buttons
  • webview-ui/src/components/chat/TaskActions.tsx: Added the debug buttons (appear to the right of Cloud button)
  • src/core/webview/webviewMessageHandler.ts: Implemented handlers to read, prettify, and open JSON in temp files

Testing

  • Added 6 new tests covering button visibility and message sending
  • All 24 TaskActions tests pass

Usage

  1. Set roo-cline.debug: true in VS Code settings
  2. Open a task
  3. Click the new debug buttons in the header to view prettified history files

Important

Adds debug buttons to view API and UI history in JSON format, with configuration and tests.

  • Behavior:
    • Adds roo-cline.debug setting in package.json to enable debug buttons.
    • Debug buttons in TaskActions.tsx to open prettified api_conversation_history.json and ui_messages.json.
    • Handlers in webviewMessageHandler.ts to read, prettify, and open JSON files.
  • Configuration:
    • Adds roo-cline.debug boolean setting to package.json.
    • Reads debug setting in ClineProvider.ts.
  • Messages:
    • Adds openDebugApiHistory and openDebugUiHistory message types in WebviewMessage.ts.
  • Testing:
    • Adds tests for button visibility and message sending in TaskActions.spec.tsx.
  • Localization:
    • Updates localization files for new debug button labels.

This description was created by Ellipsis for 7d28044. You can customize this summary. It will automatically update as commits are pushed.

- Add roo-cline.debug package.json setting (default: false)
- Add debug property to ExtensionState for webview
- Add Open API History and Open UI History buttons in TaskActions
- Buttons appear when debug=true and task has ID
- Opens prettified JSON in temporary file for debugging
- Add tests for new debug button functionality
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels Nov 28, 2025
@roomote
Copy link
Contributor

roomote bot commented Nov 28, 2025

Oroocle Clock   Follow along on Roo Cloud

Reviewing your PR now. I'll share my feedback in a few minutes!

Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Nov 28, 2025
- Add 'settings.debug.description' translation to all 17 package.nls.*.json files
- Add 'task.openApiHistory' and 'task.openUiHistory' translations to all 17 webview-ui chat.json locale files
- Update TaskActions.tsx to use i18n translation keys instead of hardcoded strings
- Update TaskActions.spec.tsx with mock translations for new keys
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 29, 2025
@mrubens mrubens merged commit f9eb6d9 into main Nov 29, 2025
13 checks passed
@mrubens mrubens deleted the feat/debug-history-buttons branch November 29, 2025 04:18
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Nov 29, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants