Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

cte
Copy link
Collaborator

@cte cte commented Aug 13, 2025

Important

Fix webview in development mode by updating dependencies, imports, and build configurations.

  • Dependencies:
    • Remove @roo-code/cloud dependency from webview-ui/package.json.
    • Update knip.json to include ../src/shared/*.ts in webview-ui project.
  • Imports:
    • Change imports from @roo-code/cloud to @roo/cloud in multiple files including AccountView.tsx, ShareButton.tsx, and ApiConfigManager.tsx.
  • Scripts:
    • Remove @roo-code/cloud package linking from link-packages.js.
  • Files:
    • Add cloud.ts to src/shared/.
    • Delete vscode.ts mock from webview-ui/src/__mocks__/.
  • Build:
    • Remove external: ["vscode"] from rollupOptions in vite.config.ts.

This description was created by Ellipsis for 4d7b94f. 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 13, 2025 08:15
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Aug 13, 2025
Copy link

@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 a critical issue that needs attention. The approach of creating a proxy file while removing the dependency will cause build failures.

@@ -0,0 +1,8 @@
import { CloudUserInfo, OrganizationAllowList, ShareVisibility } from "@roo-code/cloud"
Copy link

Choose a reason for hiding this comment

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

This file imports from @roo-code/cloud, but the PR removes this package from dependencies in package.json. This will cause a build failure since the package won't be available.

Is this intentional? If the goal is to fix the webview in dev mode, this approach will just move the error to a different location rather than fixing it.

Consider either:

  1. Keeping @roo-code/cloud as a dependency if it's still needed
  2. Or fully migrating these types to local definitions if the goal is to remove the external dependency

"@radix-ui/react-slot": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.8",
"@roo-code/cloud": "^0.13.0",
"@roo-code/types": "workspace:^",
Copy link

Choose a reason for hiding this comment

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

You're removing @roo-code/cloud from dependencies here, but the new src/shared/cloud.ts file still imports from this package. This seems contradictory and will cause the build to fail.

Could you clarify the intended approach? Are you trying to move the cloud package to a different location, or completely remove the dependency?

} from "@roo-code/types"
import { type OrganizationAllowList, ORGANIZATION_ALLOW_ALL } from "@roo-code/cloud"

import { type OrganizationAllowList, ORGANIZATION_ALLOW_ALL } from "@roo/cloud"
Copy link

Choose a reason for hiding this comment

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

The import path change from @roo-code/cloud to @roo/cloud looks good and follows the TypeScript path mapping. However, this will only work if the underlying dependency issue is resolved (see my comment on src/shared/cloud.ts).

@cte cte merged commit 962df86 into main Aug 13, 2025
10 checks passed
@cte cte deleted the cte/fix-dev-mode-webview branch August 13, 2025 08:40
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Aug 13, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Aug 13, 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:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.