René's URL Explorer Experiment


Title: fix(browser): improve snapshots, native controls and action reliability by waleedlatif1 · Pull Request #7872 · simstudioai/sim · GitHub

Open Graph Title: fix(browser): improve snapshots, native controls and action reliability by waleedlatif1 · Pull Request #7872 · simstudioai/sim

X Title: fix(browser): improve snapshots, native controls and action reliability by waleedlatif1 · Pull Request #7872 · simstudioai/sim

Description: Companion PRs simstudioai/mothership#502 Merge together into staging so the browser tool contracts and desktop implementation stay aligned. Summary Preserve reachable click targets and retain obstruction/stale-target guards; use bounded native Electron capture with hidden-window preservation and no overlapping stalled captures. Preserve mixed inline snapshot text within the existing text budget and expose interactive headings as actionable references, retaining later controls on text-heavy pages. Support validated native structured inputs and atomic complete-set multi-select. Verify all selected values/labels after events, retain credential/focus checks, and never replay uncertain writes. Report unconfirmed effects clearly and remove obsolete capture decoding and nullable-image branches. Uses Playwright text-node traversal, explicit-role precedence, and native fill/complete-set selection. Sim adds prevalidation before mutation and full post-event readback. Native capture keeps the existing five-second deadline and cancellation semantics. Canonical tool descriptions and additive schemas are in Mothership #502; deploy with the updated desktop for the new values argument. Type of Change Bug fix Testing Real Electron against 22 unchanged MiniWoB++ tasks: 91/110 before → 109/110 after; fresh holdout 218/220. Snapshot instruction coverage 90/110 → 110/110. These are deterministic driver scripts, not an LLM benchmark score; episode timeout is 120 seconds. Multi-select uses the new complete-set API. Remaining failures are a bundled jQuery autocomplete defect: Playwright locator.click reproduces the same wrong selection in 10/10 controlled trials. No widget-specific workaround added. 1,644 desktop unit tests, 13 real Electron scenarios, all workspace type checks, lint, 46 audits and generated-artifact checks passed. Regression tests include atomic refusal, duplicate-value swaps, focus changes, malformed native values and uncertain-write handling. Full repository run passed all 19 test tasks: 51,810 web-app tests passed; dedicated database suites remain skipped without their fixture configuration. A separate 31-case generated-schema suite includes the eight new selection-contract cases. All seven structured input types are exercised in Electron. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Companion PRs simstudioai/mothership#502 Merge together into staging so the browser tool contracts and desktop implementation stay aligned. Summary Preserve reachable click targets and retain o...

X Description: Companion PRs simstudioai/mothership#502 Merge together into staging so the browser tool contracts and desktop implementation stay aligned. Summary Preserve reachable click targets and retain o...

Opengraph URL: https://github.com/simstudioai/sim/pull/7872

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3d5547db-b59d-34f1-5fb3-aeab5de23994
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A12:23CE74:207C49:2D6707:6AFB3041
html-safe-nonce2cbbc4002c0509515c56f2dc3a6a1faa172c42531e7f4097f5dff7059ba773b5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTEyOjIzQ0U3NDoyMDdDNDk6MkQ2NzA3OjZBRkIzMDQxIiwidmlzaXRvcl9pZCI6IjExOTgwODEzMDUxMDc3MDU5MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2cac4bce1842490f3dafa05a7cc7c5b996412edc1787e45eccf72b2aeb0d920e
hovercard-subject-tagpull_request:4542679393
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7872/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altCompanion PRs simstudioai/mothership#502 Merge together into staging so the browser tool contracts and desktop implementation stay aligned. Summary Preserve reachable click targets and retain o...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneefe184de15c1d8c1107a340cfc27bf7187b458dc07687ee1fa51f035148fb3d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef567cf3af46b50a3211fb5dab569a9d6a7b58025
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7872/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7872%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7872%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/7872/files
Reloadhttps://github.com/simstudioai/sim/pull/7872/files
Reloadhttps://github.com/simstudioai/sim/pull/7872/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
codex/browser-action-reliabilityhttps://github.com/simstudioai/sim/tree/codex/browser-action-reliability
Conversation 23 https://github.com/simstudioai/sim/pull/7872
Commits 3 https://github.com/simstudioai/sim/pull/7872/commits
Checks 36 https://github.com/simstudioai/sim/pull/7872/checks
Files changed https://github.com/simstudioai/sim/pull/7872/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7872/files
fix(browser): improve snapshots, native controls and action reliability https://github.com/simstudioai/sim/pull/7872/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/7872/files
1396496 fix(browser): preserve click targets and bound screenshot capture waleedlatif1 Sep 16, 2026 https://github.com/simstudioai/sim/pull/7872/commits/13964967b58eaf612103a259b71714b5dfc4010d
03c971a fix(browser): preserve observations and support native form controls waleedlatif1 Sep 16, 2026 https://github.com/simstudioai/sim/pull/7872/commits/03c971a7c30ea65651bf0649fa9abbac59dfc873
c227e6b fix(browser): share snapshot text budget with inline fragments waleedlatif1 Sep 16, 2026 https://github.com/simstudioai/sim/pull/7872/commits/c227e6b9d7f41a017009cf1358d9bc0ef65fae08
Clear filters https://github.com/simstudioai/sim/pull/7872/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7872/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7872/files
browser-tools.spec.ts https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
cdp.test.ts https://github.com/simstudioai/sim/pull/7872/files#diff-5c99463d5fbb5f5a8d4c7d7b2b621e8fd2ef38db866cff2a75a92fd65859a5c6
cdp.ts https://github.com/simstudioai/sim/pull/7872/files#diff-20197f234b92c7c1c2b522668174347c28d21a740fb487409f3b3637a423473c
driver.test.ts https://github.com/simstudioai/sim/pull/7872/files#diff-e3f3e254574c9ace38cf400e9ef8600989b25e602629bb7e6c7e4927a27830c5
driver.ts https://github.com/simstudioai/sim/pull/7872/files#diff-515694ac7beaa3b13cb8b2224e3c5ec946ddc589bf9d8c294986e76a8c270ed6
page-functions.test.ts https://github.com/simstudioai/sim/pull/7872/files#diff-60e6378e2242fc028ded8738e8dc487275f038bb52677bca97a4ae86983f95e5
page-functions.ts https://github.com/simstudioai/sim/pull/7872/files#diff-79ef2fc7ea864204365a95130b1ccae90cd9a282e9714a8fa37cb2fb4e5e29fc
tool-catalog-v1.ts https://github.com/simstudioai/sim/pull/7872/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
tool-schemas-v1.ts https://github.com/simstudioai/sim/pull/7872/files#diff-d6bbefc705a9a562b6c1fbf9721f8653c610e12436e493f01dbd7a2895ebaa66
browser-tool-execution.test.ts https://github.com/simstudioai/sim/pull/7872/files#diff-3271206242afa804a428f4501c756fce54c2bb3d9767889c490b96c26167ecd2
browser-tool-execution.ts https://github.com/simstudioai/sim/pull/7872/files#diff-a6e4f0215cd5bfde0ac2788c416fcf9bdd3b8483b3441d94182af52e23530ea6
generated-schema.test.ts https://github.com/simstudioai/sim/pull/7872/files#diff-86f4f70a2c80230e847791f6aba2e4ec0b26c57d8bead5769c64c0050c85fc40
apps/desktop/e2e/browser-tools.spec.tshttps://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
View file https://github.com/simstudioai/sim/blob/c227e6b9d7f41a017009cf1358d9bc0ef65fae08/apps/desktop/e2e/browser-tools.spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7872/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/7872/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
Please reload this pagehttps://github.com/simstudioai/sim/pull/7872/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7872/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.