-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add the ability for Roo to send log messages to the Roo-Code Output Channel. #3165
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
Add the ability for Roo to send log messages to the Roo-Code Output Channel. #3165
Conversation
🦋 Changeset detectedLatest commit: 3b29790 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Neat, but what is the use case? |
The use case is to allow for debugging of prompts specifically state machines and mermaid flow charts like boomerang. When asking an AI to follow a flow/state machine this gives the AI the ability to log where it is in the flow. Example messages: This allows the AI to "tell" us information about its following of our system prompts etc. |
…prehensive tests for log entry functionality.
…ller, focused helpers - Extract helper functions for better modularity and readability - Remove unused isInsideCodeBlock function - Maintain same functionality while improving code structure - Separate concerns into specific functions for parsing different parts of assistant messages
f528472 to
ea5f180
Compare
|
@StevenTCramer Given that allowing multiple tool calls in a single message has been a topic of discussion for quite some time, do you think allowing this specific tool along with others in a single API response could confuse the model and cause it to try to use multiple tools? Just allowing it for a single tool might not be ideal. |
|
Hey @StevenTCramer, |
Context
This PR adds a log entry feature to Roo Code that allows the AI assistant to output debugging information to the VSCode output channel. Unlike tools, log entries don't require user approval and don't count toward the one-tool-per-message limit, making them ideal for diagnostic purposes.
Implementation
The implementation includes:
The log entry feature follows a similar pattern to tool use but is simpler and doesn't require user approval. Log entries are formatted using XML-style tags:
Special attention was given to handling XML tags inside code blocks (triple backticks) to prevent false positives.
Screenshots
How to Test
Get in Touch
Discord: StevenTCramer
Important
Adds a logging feature to Roo Code for sending diagnostic messages to the VSCode output channel using XML-style log entries without user approval.
Cline.tsandLogManager.ts.parseAssistantMessage()inparse-assistant-message.tsupdated to handle log entries.LogManagerclass inLogManager.tsfor processing log entries.getLogEntrySection()inlog-entry.tsfor system prompts.logLevelsandlogEntryParamsSchemainlog-entry.ts.log-entry.test.ts.LogManagerinLogManager.test.ts.This description was created by
for b195811. You can customize this summary. It will automatically update as commits are pushed.