browserConnectionResult removal (#3885)

This commit is contained in:
canvrno 2025-05-28 14:48:07 -07:00 committed by GitHub
parent 29d3175e0b
commit 9f59b6010e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 15 deletions

View File

@ -0,0 +1,6 @@
---
"claude-dev": patch
---
browserConnectionResult protobus migration/removal

View File

@ -35,7 +35,6 @@ export interface ExtensionMessage {
| "userCreditsBalance"
| "userCreditsUsage"
| "userCreditsPayments"
| "browserConnectionResult"
| "fileSearchResults"
| "grpc_response" // New type for gRPC responses
text?: string

View File

@ -59,20 +59,6 @@ export const BrowserSettingsSection: React.FC = () => {
const [isBundled, setIsBundled] = useState(false)
const [detectedChromePath, setDetectedChromePath] = useState<string | null>(null)
// Listen for browser connection test results
useEffect(() => {
const handleMessage = (event: MessageEvent) => {
const message = event.data
if (message.type === "browserConnectionResult") {
setConnectionStatus(message.success)
setIsCheckingConnection(false)
}
}
window.addEventListener("message", handleMessage)
return () => window.removeEventListener("message", handleMessage)
}, [])
// Auto-clear relaunch result message after 15 seconds
useEffect(() => {
if (relaunchResult) {