CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 23:26:47 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/co-browser/agent-browser.git
etag: W/"04462b4696c9422644a041b866d2dd82"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=yjDlYBFWdfNa91iSCBgCBDpqZSuyEbrY9ipp5EINjM80drT%2F5oZch7bjOI93RnejfMapDfzTTHMqcX9fdVIl2VnOGB4a2mMJx5yhFX6hYhvmQ1hf6ONQQOPyyz8nbCRxA7N8LM28OgYUUN0O9ihBB7Wq0IHjRGOxAS%2B6MLbJGBEsz0KP6PD8QEzJtcfqGnakSH2Xu7qJqcdxORB3NbuPcFyozCpQaICpZo0mNoA%2FjZpXKi0HzCspV2julViYo4AhKF%2FnYUp1C68clUmwD%2FLRPg%3D%3D--jvHDpTPDV%2F4lmh0U--cQmVR5FfKjNKj5p5Z1JbJw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.709634898.1753313206; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 23:26:46 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 23:26:46 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CE4A:3F8A98:1866FA:21EFD7:68816FB6
fix: Prevent reconnect loop and decouple tool refresh · co-browser/agent-browser@6e0ae8a · GitHub
Copy file name to clipboardExpand all lines: internal/backend/service.go
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit 6e0ae8a
committed
fix: Prevent reconnect loop and decouple tool refresh
- Performs cleanup (cancel/close) of old MCP connections asynchronously in a separate goroutine within `connectToRemoteServer` to prevent interference with newly established connections. This resolves the immediate context cancellation and rapid reconnect loop observed previously.
- Defines `ToolsProcessedInDBEvent` triggered by `BackendService` after successfully processing tools from a `ToolsUpdatedEvent`.
- `ConnectionManager` now subscribes to `ToolsProcessedInDBEvent` and calls `refreshMCPServerTools` only upon receiving this event, decoupling the internal MCP server tool update from the database update process.
- Removes the direct call to `refreshMCPServerTools` from `updateServerTools` in `ConnectionManager`.1 parent dd1e1f7 commit 6e0ae8aCopy full SHA for 6e0ae8a
File tree
Expand file treeCollapse file tree
3 files changed
+156
-103
lines changedFilter options
- internal
- backend
- events
- mcp
Expand file treeCollapse file tree
3 files changed
+156
-103
lines changedinternal/backend/service.go
Copy file name to clipboardExpand all lines: internal/backend/service.go+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
333 | 341 |
| |
334 | 342 |
| |
335 | 343 |
| |
|
+21Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
| 24 | + | |
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
| |||
117 | 119 |
| |
118 | 120 |
| |
119 | 121 |
| |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + |
+127-103Lines changed: 127 additions & 103 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
275 | 275 |
| |
276 | 276 |
| |
277 | 277 |
| |
278 |
| - | |
| 278 | + | |
279 | 279 |
| |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
289 | 294 |
| |
| 295 | + | |
290 | 296 |
| |
291 |
| - | |
292 |
| - | |
293 | 297 |
| |
294 | 298 |
| |
| 299 | + | |
| 300 | + | |
295 | 301 |
| |
296 | 302 |
| |
297 |
| - | |
| 303 | + | |
298 | 304 |
| |
299 | 305 |
| |
300 |
| - | |
301 |
| - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
302 | 315 |
| |
303 |
| - | |
| 316 | + | |
304 | 317 |
| |
305 |
| - | |
306 |
| - | |
| 318 | + | |
| 319 | + | |
307 | 320 |
| |
308 | 321 |
| |
309 | 322 |
| |
| 323 | + | |
310 | 324 |
| |
311 | 325 |
| |
312 | 326 |
| |
313 | 327 |
| |
314 | 328 |
| |
315 | 329 |
| |
316 |
| - | |
317 | 330 |
| |
318 |
| - | |
319 |
| - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
320 | 334 |
| |
321 | 335 |
| |
322 | 336 |
| |
| 337 | + | |
323 | 338 |
| |
324 | 339 |
| |
325 | 340 |
| |
326 |
| - | |
327 |
| - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
328 | 344 |
| |
329 | 345 |
| |
330 |
| - | |
| 346 | + | |
| 347 | + | |
331 | 348 |
| |
332 | 349 |
| |
333 | 350 |
| |
334 |
| - | |
| 351 | + | |
335 | 352 |
| |
336 | 353 |
| |
337 | 354 |
| |
338 |
| - | |
| 355 | + | |
339 | 356 |
| |
340 |
| - | |
341 |
| - | |
342 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
343 | 395 |
| |
344 |
| - | |
345 |
| - | |
346 | 396 |
| |
347 | 397 |
| |
348 | 398 |
| |
349 |
| - | |
350 |
| - | |
| 399 | + | |
| 400 | + | |
351 | 401 |
| |
352 |
| - | |
| 402 | + | |
353 | 403 |
| |
354 | 404 |
| |
355 | 405 |
| |
| |||
441 | 491 |
| |
442 | 492 |
| |
443 | 493 |
| |
| 494 | + | |
444 | 495 |
| |
445 | 496 |
| |
446 | 497 |
| |
| |||
655 | 706 |
| |
656 | 707 |
| |
657 | 708 |
| |
| 709 | + | |
658 | 710 |
| |
| 711 | + | |
| 712 | + | |
| 713 | + | |
659 | 714 |
| |
660 | 715 |
| |
661 | 716 |
| |
| |||
793 | 848 |
| |
794 | 849 |
| |
795 | 850 |
| |
796 |
| - | |
797 |
| - | |
798 |
| - | |
799 |
| - | |
800 |
| - | |
801 |
| - | |
802 |
| - | |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
808 |
| - | |
809 |
| - | |
810 |
| - | |
811 |
| - | |
812 |
| - | |
813 |
| - | |
814 |
| - | |
815 |
| - | |
816 |
| - | |
817 |
| - | |
818 |
| - | |
819 |
| - | |
820 |
| - | |
821 |
| - | |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 |
| - | |
826 |
| - | |
827 |
| - | |
828 |
| - | |
829 |
| - | |
830 |
| - | |
831 |
| - | |
832 |
| - | |
833 |
| - | |
834 |
| - | |
835 |
| - | |
836 |
| - | |
837 |
| - | |
838 |
| - | |
839 |
| - | |
840 |
| - | |
841 |
| - | |
842 |
| - | |
843 |
| - | |
844 |
| - | |
845 |
| - | |
846 |
| - | |
847 |
| - | |
848 |
| - | |
849 |
| - | |
850 |
| - | |
851 |
| - | |
852 |
| - | |
853 |
| - | |
854 |
| - | |
855 |
| - | |
856 |
| - | |
857 |
| - | |
858 |
| - | |
859 |
| - | |
860 |
| - | |
861 |
| - | |
862 | 851 |
| |
863 | 852 |
| |
864 | 853 |
| |
865 | 854 |
| |
866 |
| - | |
867 |
| - | |
868 |
| - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
869 | 873 |
| |
870 | 874 |
| |
871 | 875 |
| |
| |||
1061 | 1065 |
| |
1062 | 1066 |
| |
1063 | 1067 |
| |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1064 | 1088 |
| |
1065 | 1089 |
| |
1066 | 1090 |
| |
|
You can’t perform that action at this time.
0 commit comments