-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: add debug buttons to view API and UI history #9684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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
Contributor
Reviewing your PR now. I'll share my feedback in a few minutes! Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
- 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>
mrubens
approved these changes
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
roo-cline.debugpackage.json setting that, when enabled, shows two debug buttons in the task header:api_conversation_history.jsonin a temp fileui_messages.jsonin a temp fileChanges
src/package.json: Addedroo-cline.debugboolean setting (default: false)src/shared/ExtensionMessage.ts: Addeddebugproperty to ExtensionStatesrc/core/webview/ClineProvider.ts: Read debug setting from VS Code configsrc/shared/WebviewMessage.ts: Added message types for the debug buttonswebview-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 filesTesting
Usage
roo-cline.debug: truein VS Code settingsImportant
Adds debug buttons to view API and UI history in JSON format, with configuration and tests.
roo-cline.debugsetting inpackage.jsonto enable debug buttons.TaskActions.tsxto open prettifiedapi_conversation_history.jsonandui_messages.json.webviewMessageHandler.tsto read, prettify, and open JSON files.roo-cline.debugboolean setting topackage.json.ClineProvider.ts.openDebugApiHistoryandopenDebugUiHistorymessage types inWebviewMessage.ts.TaskActions.spec.tsx.This description was created by
for 7d28044. You can customize this summary. It will automatically update as commits are pushed.