Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented Aug 12, 2025

Roo Code Cloud http errors shouldn't obstruct the extension.


Important

Add error handling for bridge configuration fetches to prevent extension obstruction in Task.ts, ClineProvider.ts, and extension.ts.

  • Error Handling:
    • Add .catch(() => undefined) to bridgeConfig() calls in Task.ts (startTask, resumeTaskFromHistory) and ClineProvider.ts (handleRemoteControlToggle).
    • Add .catch(() => undefined) to bridgeConfig() call in extension.ts during user-info event handling.
  • Logging:
    • Log error message "[CloudService] Failed to get bridge config" if bridgeConfig() returns undefined in ClineProvider.ts and extension.ts.

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

@cte cte requested review from jr and mrubens as code owners August 12, 2025 01:08
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Aug 12, 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.

Thank you for your contribution! I've reviewed the changes and found that they correctly address the issue of preventing extension obstruction from cloud service errors. The error handling approach is sound, though I have some suggestions for improvement.

if (this.enableTaskBridge && CloudService.hasInstance()) {
if (!this.taskBridgeService) {
const bridgeConfig = await CloudService.instance.cloudAPI?.bridgeConfig()
const bridgeConfig = await CloudService.instance.cloudAPI?.bridgeConfig().catch(() => undefined)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same suggestion here - add error logging for consistency:

@cte cte merged commit a7ad887 into main Aug 12, 2025
19 checks passed
@cte cte deleted the cte/handle-bridge-config-errors branch August 12, 2025 01:17
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Aug 12, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants