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

Sign up
Appearance settings

fix(browser): resolve context canceled errors on Windows#1168

Open
egany wants to merge 1 commit into
nextlevelbuilder:main from
egany:fix/browser-tool-windows-context-handling
Open

fix(browser): resolve context canceled errors on Windows #1168
egany wants to merge 1 commit into
nextlevelbuilder:main from
egany:fix/browser-tool-windows-context-handling

Conversation

@egany

@egany egany commented May 22, 2026

Copy link
Copy Markdown

Summary

  • Fix browser tool failing with context canceled errors on Windows
  • Root cause: browser object was bound to short-lived connect context that expired after Start() returned
  • Add Microsoft Edge auto-detection as fallback browser
  • Add Windows troubleshooting documentation

Changes

File Description
pkg/browser/browser.go Use goroutine + channel for connect timeout, Edge support, isolated profile
pkg/browser/browser_tabs.go WaitLoad instead of WaitStable, blank page creation
pkg/browser/browser_page.go WaitLoad for Navigate
cmd/gateway_setup.go Read leakless config
internal/config/config_channels.go Add Leakless field
docs/browser-tool-windows-troubleshooting.md Full troubleshooting guide
AGENTS.md Windows development setup

Test Plan

  • Standalone go-rod test passes on Windows
  • GoClaw browser tool loads vnexpress.net successfully
  • Edge auto-detected and used as browser
  • No more context canceled errors

Root cause: Browser object was bound to a short-lived connect context that expired after Start() returned, causing all subsequent operations to fail instantly with context canceled.
Changes:
- Use goroutine + channel for connect timeout instead of binding context
- Add Microsoft Edge auto-detection as fallback browser
- Add isolated user data directory to avoid profile conflicts
- Add leakless config option (disabled by default on Windows)
- Change WaitStable to WaitLoad for more reliable page loading
- Add Windows troubleshooting documentation
Tested on Windows 10 Pro with Edge, successfully loads vnexpress.net.
@egany egany force-pushed the fix/browser-tool-windows-context-handling branch from 1cecfb6 to 23affa2 Compare May 22, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /