Skip to content

Wait for native browser readiness before opening local HTML - #114

Merged
shaohaozhi286 merged 1 commit into
masterfrom
codex/fix-html-browser-startup
Oct 7, 2026
Merged

shaohaozhi286 merged 1 commit into
masterfrom
codex/fix-html-browser-startup

Conversation

@shaohaozhi286

Copy link
Copy Markdown
Collaborator

Opening a local HTML file immediately after creating a native browser page could fail with "Agent Browser page is still starting". Wait for page readiness before navigating, with bounded startup timeout and cancellation on session change or page closure. Preserve the existing unsaved-file guard, including a second guard if the editor changes while the page is being created.

Validation: native Windows WebView2 reproduced the failure and then loaded the encoded local HTML URL with the actual readiness helper; delayed-ready real App fixture passed keyboard activation, session ownership, save/cancel and error paths. Readiness/timeout/closed/cancellation unit tests, full Web tests/build, i18n generation, strict OpenSpec validation and diff checks passed. This Web-only fix is included before v1.0.0 tag publication.

@shaohaozhi286
shaohaozhi286 merged commit 0b4639e into master Oct 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants