René's URL Explorer Experiment


Title: improvement(computer-use): keep an element's id stable across observations by waleedlatif1 · Pull Request #10046 · simstudioai/sim · GitHub

Open Graph Title: improvement(computer-use): keep an element's id stable across observations by waleedlatif1 · Pull Request #10046 · simstudioai/sim

X Title: improvement(computer-use): keep an element's id stable across observations by waleedlatif1 · Pull Request #10046 · simstudioai/sim

Description: Summary Element ids were positional (e) and every observation started over, so after an action the id the agent had just used could name a different element in the next state whenever anything earlier in the tree appeared or moved (an open menu, a new row, a sheet) A new observation now reuses the previous observation's id for any element that is still present (same process instance), and new elements get fresh ids that never repeat within the session. The id source is the app's last observation, which actions do not clear; the actionable snapshot is still consumed by every action exactly as before, so snapshotId rules are unchanged The carried index is capped at 20k elements, after which the next read starts a fresh index (ids still never repeat) This is the groundwork for sending only what changed between observations Type of Change Improvement Testing Live fixture gains an "Add row" control that inserts a label ahead of later controls; tests/live.py asserts a later button keeps its id across the action and the next observation. Passes on this branch's helper; fails on the previous helper at that assertion. Native tests pass Real apps in a macOS VM, observe → click a menu-bar item → observe: unchanged elements that kept their id went from 54/14/15/73% (Notes/Calendar/Safari/Maps) to 100% on all four, including elements that moved Paired benchmark (100 multi-app macOS tasks, same agent, only the helper differs): success 85/99 vs 85/99, cost and calls flat, wall time 48.8s → 45.7s; cases where the id the agent just acted on named a different element in the next observation went from 173 to 0; stale-snapshot and missing-element errors unchanged (~0.01/episode); no wrong-target actions in either arm 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 ids were positional (e<node index>) and every observation started over, so after an action the id the agent had just used could name a different element in the next state whe...

X Description: Summary Element ids were positional (e&lt;node index&gt;) and every observation started over, so after an action the id the agent had just used could name a different element in the next s...

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

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:8f1af290-7d90-9e6c-10c6-840eca7497dc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idACD2:2FBB44:8AD8F0:C30137:6AFB6EF4
html-safe-nonce577ace08657ed154fb62c3106d7a8a49cf5027efa6b6626acc73d61af655c24d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0QyOjJGQkI0NDo4QUQ4RjA6QzMwMTM3OjZBRkI2RUY0IiwidmlzaXRvcl9pZCI6IjU1ODIwMjM0MDEzMDk2OTU3MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac371dac1276af839ec8a25c43b1aed5a26dec00b467528ddc439408b815a20889
hovercard-subject-tagpull_request:5315369977
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/10046/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 ids were positional (e<node index>) and every observation started over, so after an action the id the agent had just used could name a different element in the next state whe...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/10046/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F10046%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%2F10046%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/10046/files
Reloadhttps://github.com/simstudioai/sim/pull/10046/files
Reloadhttps://github.com/simstudioai/sim/pull/10046/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
improvement/computer-use-stable-element-idshttps://github.com/simstudioai/sim/tree/improvement/computer-use-stable-element-ids
Conversation 12 https://github.com/simstudioai/sim/pull/10046
Commits 5 https://github.com/simstudioai/sim/pull/10046/commits
Checks 50 https://github.com/simstudioai/sim/pull/10046/checks
Files changed https://github.com/simstudioai/sim/pull/10046/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/10046/files
improvement(computer-use): keep an element's id stable across observations https://github.com/simstudioai/sim/pull/10046/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/10046/files
d26ed9d improvement(computer-use): keep an element's id stable across observa… waleedlatif1 Nov 14, 2026 https://github.com/simstudioai/sim/pull/10046/commits/d26ed9d2705094708a208bc03cdd3e748ffbc1fd
d8fc195 fix the snapshot key and make the stable-id fixture insert ahead of t… waleedlatif1 Nov 14, 2026 https://github.com/simstudioai/sim/pull/10046/commits/d8fc195501cf457fe58211cf58bfb4c1cac8eb78
574c41e assert stable ids on an element after the inserted row waleedlatif1 Nov 14, 2026 https://github.com/simstudioai/sim/pull/10046/commits/574c41e63e444a1f9720ab41dfbfbf2c50190c1c
90bd259 keep element ids across actions, which consume the actionable snapshot waleedlatif1 Nov 14, 2026 https://github.com/simstudioai/sim/pull/10046/commits/90bd259e9a9f4df8530d25de258fab38f992b7d4
a3e9354 keep each app's id counter apart from the evictable history and carry… waleedlatif1 Nov 14, 2026 https://github.com/simstudioai/sim/pull/10046/commits/a3e9354211cc809c850bf520784a12ea5f24b409
Clear filters https://github.com/simstudioai/sim/pull/10046/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/10046/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/10046/files
ComputerUse.swift https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
Fixture.swift https://github.com/simstudioai/sim/pull/10046/files#diff-09c7e88795dd15b1e89461eef48e053d1cda5f5a288e7a0a518615cb2e990b93
live.py https://github.com/simstudioai/sim/pull/10046/files#diff-c4c5d4127e98667220262780db3add8a3cffa103580548accb07f89c95232d06
apps/desktop/native/computer-use/ComputerUse.swifthttps://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
View file https://github.com/simstudioai/sim/blob/a3e9354211cc809c850bf520784a12ea5f24b409/apps/desktop/native/computer-use/ComputerUse.swift
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/10046/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
https://github.com/simstudioai/sim/pull/10046/files#diff-8e77406c8b4bdb699d65031fc9054f5d47a9422c1cdaf440deb111c29853b303
apps/desktop/native/computer-use/tests/Fixture.swifthttps://github.com/simstudioai/sim/pull/10046/files#diff-09c7e88795dd15b1e89461eef48e053d1cda5f5a288e7a0a518615cb2e990b93
View file https://github.com/simstudioai/sim/blob/a3e9354211cc809c850bf520784a12ea5f24b409/apps/desktop/native/computer-use/tests/Fixture.swift
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/10046/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/10046/files#diff-09c7e88795dd15b1e89461eef48e053d1cda5f5a288e7a0a518615cb2e990b93
https://github.com/simstudioai/sim/pull/10046/files#diff-09c7e88795dd15b1e89461eef48e053d1cda5f5a288e7a0a518615cb2e990b93
https://github.com/simstudioai/sim/pull/10046/files#diff-09c7e88795dd15b1e89461eef48e053d1cda5f5a288e7a0a518615cb2e990b93
https://github.com/simstudioai/sim/pull/10046/files#diff-09c7e88795dd15b1e89461eef48e053d1cda5f5a288e7a0a518615cb2e990b93
apps/desktop/native/computer-use/tests/live.pyhttps://github.com/simstudioai/sim/pull/10046/files#diff-c4c5d4127e98667220262780db3add8a3cffa103580548accb07f89c95232d06
View file https://github.com/simstudioai/sim/blob/a3e9354211cc809c850bf520784a12ea5f24b409/apps/desktop/native/computer-use/tests/live.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/10046/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/10046/files#diff-c4c5d4127e98667220262780db3add8a3cffa103580548accb07f89c95232d06
https://github.com/simstudioai/sim/pull/10046/files#diff-c4c5d4127e98667220262780db3add8a3cffa103580548accb07f89c95232d06
https://github.com/simstudioai/sim/pull/10046/files#diff-c4c5d4127e98667220262780db3add8a3cffa103580548accb07f89c95232d06
https://github.com/simstudioai/sim/pull/10046/files#diff-c4c5d4127e98667220262780db3add8a3cffa103580548accb07f89c95232d06
Please reload this pagehttps://github.com/simstudioai/sim/pull/10046/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.