René's URL Explorer Experiment


Title: improvement(desktop-browser): stable element refs, wait observations, and fewer false refusals by waleedlatif1 · Pull Request #9953 · simstudioai/sim · GitHub

Open Graph Title: improvement(desktop-browser): stable element refs, wait observations, and fewer false refusals by waleedlatif1 · Pull Request #9953 · simstudioai/sim

X Title: improvement(desktop-browser): stable element refs, wait observations, and fewer false refusals by waleedlatif1 · Pull Request #9953 · simstudioai/sim

Description: Summary Element refs stay stable: an unchanged element keeps its ref across snapshots, and a ref from an earlier snapshot still resolves while its element lives (previously any later snapshot, including query/scoped observations, invalidated every ref the model held) Text lines register the identity name the resolver recomputes — aria-labelled text lines and lines over 120 characters were never actionable by ref A still-mounted control whose own menu/disclosure opened keeps its ref instead of reporting "identity drifted" (hover menus failed right after a successful hover) browser_wait_for ends with a fresh snapshot, so the model doesn't spend a round re-observing browser_type types into a top-page field covered by a non-modal overlay (keyboard focus, as Playwright fill does); modal backgrounds and framed fields still refuse One bounded ref store per page (5000) and per driver scope (LRU), shared frame/target helpers Type of Change Improvement Testing Red/green unit tests for each change (page-functions.test.ts, driver.test.ts, post-action-observation.test.ts); 534 browser-agent tests pass Lint, type-check, block registry, generators clean; check:audits only failed knip on the docs app's generated .content import, and bun run test only failed two desktop tests that also fail on staging when run as root (permission-refusal tests) Production-loop benchmark (worker main agent, Opus 5.5 high, Sim's Electron driver; capbench 56 + WebGames 104 + REAL 121 paired episodes, fresh seeds, arms run concurrently): success 214 → 215, rounds/episode −12%, failed tool calls −36%, cost −9%, wall −7% Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) 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: Summary Element refs stay stable: an unchanged element keeps its ref across snapshots, and a ref from an earlier snapshot still resolves while its element lives (previously any later snapshot, inc...

X Description: Summary Element refs stay stable: an unchanged element keeps its ref across snapshots, and a ref from an earlier snapshot still resolves while its element lives (previously any later snapshot, inc...

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

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:b5512dfb-3d0e-a7c1-68f5-44d18a1c4e63
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD00:186510:8CB367:C1CB25:6AFB495F
html-safe-noncec9d74d4843742c36a2ca8e793e929b3a75d1ba7a24b4d23201a8114a24c15540
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDAwOjE4NjUxMDo4Q0IzNjc6QzFDQjI1OjZBRkI0OTVGIiwidmlzaXRvcl9pZCI6IjQzMTYwNzYwODcwOTcxMTcwMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47961df292e8703f0411f3bd6fe246275c597742040b2479acc008d47dc63c5d
hovercard-subject-tagpull_request:5285229377
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/9953/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:altSummary Element refs stay stable: an unchanged element keeps its ref across snapshots, and a ref from an earlier snapshot still resolves while its element lives (previously any later snapshot, inc...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
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
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9953/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9953%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%2F9953%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/9953/files
Reloadhttps://github.com/simstudioai/sim/pull/9953/files
Reloadhttps://github.com/simstudioai/sim/pull/9953/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)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
feat/browser-use-hillclimb-2https://github.com/simstudioai/sim/tree/feat/browser-use-hillclimb-2
Conversation 33 https://github.com/simstudioai/sim/pull/9953
Commits 10 https://github.com/simstudioai/sim/pull/9953/commits
Checks 50 https://github.com/simstudioai/sim/pull/9953/checks
Files changed https://github.com/simstudioai/sim/pull/9953/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9953/files
improvement(desktop-browser): stable element refs, wait observations, and fewer false refusals https://github.com/simstudioai/sim/pull/9953/files#top
Show all changes 10 commits https://github.com/simstudioai/sim/pull/9953/files
eafb623 fix(desktop-browser): keep a ref whose name grew when its own menu op… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/eafb623613cafa633c14332ca6845f573526a2df
c59e83f fix(desktop-browser): give text lines the identity name the resolver … waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/c59e83f216b1d205688c1e7ec481e609ba866fb3
f69d049 improvement(desktop-browser): keep an element on the same ref across … waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/f69d049f009b439cee5977b293961c52e4284030
7959115 improvement(desktop-browser): show the page at the end of every brows… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/795911519b663fcc67a5c533f471b501587faddd
91aa3d5 improvement(desktop-browser): resolve refs from earlier snapshots whi… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/91aa3d5c2684f0211e791672aefdb1a87b886bed
adca744 chore(desktop-browser): compare issued-ref frames by identity instead… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/adca744e460c6d3487caffb2c76e4e289eae51b8
9d14981 fix(desktop-browser): type into a top-page field that a non-modal ove… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/9d14981bc504428b74a777800419ef7cbb7191b3
385d4d6 chore(desktop-browser): one bounded ref store per page and driver, sh… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/385d4d6131e4dd4c5918734a499c2cdfb0c4393d
b98c1a8 fix(desktop-browser): tighten ref reuse, name growth, and covered typ… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/b98c1a8d449a0e5d762438d43e6a883ef09a94ef
a49506e fix(desktop-browser): bound remembered refs per page above the page's… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9953/commits/a49506ebfdc9ca6a2b14b822d0eca161eb49ec27
Clear filters https://github.com/simstudioai/sim/pull/9953/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9953/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9953/files
browser-tools.spec.ts https://github.com/simstudioai/sim/pull/9953/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
driver.test.ts https://github.com/simstudioai/sim/pull/9953/files#diff-e3f3e254574c9ace38cf400e9ef8600989b25e602629bb7e6c7e4927a27830c5
driver.ts https://github.com/simstudioai/sim/pull/9953/files#diff-515694ac7beaa3b13cb8b2224e3c5ec946ddc589bf9d8c294986e76a8c270ed6
page-functions.test.ts https://github.com/simstudioai/sim/pull/9953/files#diff-60e6378e2242fc028ded8738e8dc487275f038bb52677bca97a4ae86983f95e5
page-functions.ts https://github.com/simstudioai/sim/pull/9953/files#diff-79ef2fc7ea864204365a95130b1ccae90cd9a282e9714a8fa37cb2fb4e5e29fc
post-action-observation.test.ts https://github.com/simstudioai/sim/pull/9953/files#diff-09e2538c76243d4ef577c4fe3cd02abcf143d506acd8d696153c58314a428b1c
post-action-observation.ts https://github.com/simstudioai/sim/pull/9953/files#diff-5575d4749c7f6bace7239ae640afa83e56706b1e9cae6e18e6ca61b1e413ae1e
apps/desktop/e2e/browser-tools.spec.tshttps://github.com/simstudioai/sim/pull/9953/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
View file https://github.com/simstudioai/sim/blob/a49506ebfdc9ca6a2b14b822d0eca161eb49ec27/apps/desktop/e2e/browser-tools.spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9953/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9953/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
https://github.com/simstudioai/sim/pull/9953/files#diff-ab82f7da68615cfd89438edd35715f85fd15d035dc6ec6ac34ce22fae3474fc2
apps/desktop/src/main/browser-agent/driver.test.tshttps://github.com/simstudioai/sim/pull/9953/files#diff-e3f3e254574c9ace38cf400e9ef8600989b25e602629bb7e6c7e4927a27830c5
View file https://github.com/simstudioai/sim/blob/a49506ebfdc9ca6a2b14b822d0eca161eb49ec27/apps/desktop/src/main/browser-agent/driver.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9953/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9953/files#diff-e3f3e254574c9ace38cf400e9ef8600989b25e602629bb7e6c7e4927a27830c5
https://github.com/simstudioai/sim/pull/9953/files#diff-e3f3e254574c9ace38cf400e9ef8600989b25e602629bb7e6c7e4927a27830c5
Please reload this pagehttps://github.com/simstudioai/sim/pull/9953/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9953/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.