Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented Sep 28, 2025

Important

Update log message in BridgeOrchestrator to include socketBridgeUrl for better debugging context.

  • Logging:
    • Update log message in connect() method of BridgeOrchestrator to include socketBridgeUrl for better debugging context.

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

@cte cte requested review from jr and mrubens as code owners September 28, 2025 00:32
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 28, 2025
Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found some issues that need attention.

if (!instance) {
try {
console.log(`[BridgeOrchestrator#connectOrDisconnect] Connecting...`)
console.log(`[BridgeOrchestrator#connectOrDisconnect] Connecting to ${options.socketBridgeUrl}...`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Logging the full socketBridgeUrl can leak sensitive information (query params like token/key, or basic-auth). Also handle undefined gracefully. Suggest redacting and adding a fallback.

Suggested change
console.log(`[BridgeOrchestrator#connectOrDisconnect] Connecting to ${options.socketBridgeUrl}...`)
console.log(`[BridgeOrchestrator#connectOrDisconnect] Connecting to ${(() => { try { const u = new URL(options.socketBridgeUrl ?? ''); u.username = ''; u.password = ''; return u.origin + u.pathname + (u.search ? '?…redacted…' : '') + u.hash; } catch { return options.socketBridgeUrl ?? '(unknown)'; } })()}...`)

if (!instance) {
try {
console.log(`[BridgeOrchestrator#connectOrDisconnect] Connecting...`)
console.log(`[BridgeOrchestrator#connectOrDisconnect] Connecting to ${options.socketBridgeUrl}...`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The log tag uses "connectOrDisconnect" but this is inside connect(). Consider harmonizing the tag to reduce confusion (follow-up change OK).

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Sep 28, 2025
@daniel-lxs
Copy link
Member

Closing as stale

@daniel-lxs daniel-lxs closed this Oct 14, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 14, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 14, 2025
@daniel-lxs daniel-lxs deleted the cte/debug-extension-bridge-url branch October 14, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants