Skip to content

Commit 9f59b60

Browse files
authored
browserConnectionResult removal (RooCodeInc#3885)
1 parent 29d3175 commit 9f59b60

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.changeset/clean-kiwis-fly.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
browserConnectionResult protobus migration/removal
6+

src/shared/ExtensionMessage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export interface ExtensionMessage {
3535
| "userCreditsBalance"
3636
| "userCreditsUsage"
3737
| "userCreditsPayments"
38-
| "browserConnectionResult"
3938
| "fileSearchResults"
4039
| "grpc_response" // New type for gRPC responses
4140
text?: string

webview-ui/src/components/settings/BrowserSettingsSection.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,6 @@ export const BrowserSettingsSection: React.FC = () => {
5959
const [isBundled, setIsBundled] = useState(false)
6060
const [detectedChromePath, setDetectedChromePath] = useState<string | null>(null)
6161

62-
// Listen for browser connection test results
63-
useEffect(() => {
64-
const handleMessage = (event: MessageEvent) => {
65-
const message = event.data
66-
if (message.type === "browserConnectionResult") {
67-
setConnectionStatus(message.success)
68-
setIsCheckingConnection(false)
69-
}
70-
}
71-
72-
window.addEventListener("message", handleMessage)
73-
return () => window.removeEventListener("message", handleMessage)
74-
}, [])
75-
7662
// Auto-clear relaunch result message after 15 seconds
7763
useEffect(() => {
7864
if (relaunchResult) {

0 commit comments

Comments
 (0)