René's URL Explorer Experiment


Title: feat(pi): add update PR mode by BillLeoutsakosvl346 · Pull Request #6031 · simstudioai/sim · GitHub

Open Graph Title: feat(pi): add update PR mode by BillLeoutsakosvl346 · Pull Request #6031 · simstudioai/sim

X Title: feat(pi): add update PR mode by BillLeoutsakosvl346 · Pull Request #6031 · simstudioai/sim

Description: Stacked PR This PR is stacked on #5962 and intentionally targets feature/pi-babysit. PR #5962 remains unchanged and targets staging. Do not merge this PR before #5962. After #5962 merges, this branch will be rebased onto the merged Babysit tree on staging, retargeted to staging, and revalidated. Summary Add Update PR (cloud_branch) as the fourth Pi mode, with Create PR permission and Babysit parity. Check out one exact existing remote branch and push HEAD back with a normal non-force refspec. Find the exact open same-repository PR for that branch; update it when found and create it when missing. Reuse Base Branch, PR Title, PR Body, and a tri-state PR State control (preserve, draft, ready). Blank metadata preserves an existing PR and is generated for a new PR. Reuse Create PR memory, skills, search, BYOK, streaming, authoring, Babysit, budgets, outputs, and GitHub permission model. Complete the initial non-force push before any PR mutation. A rejected push prevents PR changes and Babysit; a no-change run still creates or updates the PR. With Babysit, ensure the PR is ready, create it if missing, and feed its number into the existing continuation. Fail closed on ambiguous, forked, closed, moved, or mismatched PRs. Never merge, rebase, retry, or force-push at runtime. Security Boundaries The GitHub token is used only by host GitHub operations and sandbox clone/push commands; it is absent from Pi and commit/diff preparation. Model and optional search keys are scoped to Pi and absent from clone, commit/diff preparation, push, and host PR operations. PR coordinates are validated before and after authoring, and surfaced text/errors are scrubbed against all sandbox credentials. Existing Babysit pinning, reviewer trust, budgets, and lifetime limits are reused unchanged. Permissions Create PR and Update PR require the same GitHub permissions: Fine-grained token: Contents: Read and write and Pull requests: Read and write. Classic token: repo scope, with organization SSO authorization when required. Babysit additionally needs the existing issue-comment, review-thread, Actions, commit-status, and check reads/writes documented for Create PR. Type of Change Bug fix New feature Breaking change Documentation Other Testing All Pi suites: 20 files / 293 tests passed before the final two focused regression additions; the final focused suites pass 67 tests. Sim TypeScript type-check passed. Biome passed for all touched TypeScript files. Fumadocs MDX generation passed. Monorepo boundary and API validation audits passed. Review focus: exact PR discovery/revalidation, push-before-PR sequencing, missing-PR creation, metadata/draft transitions, no-op finalization, non-fast-forward failure, Babysit reuse, and credential isolation. 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 Screenshots/Videos Not included: this is a cloud-gated block option and behavior is covered by block visibility and handler/backend tests.

Open Graph Description: Stacked PR This PR is stacked on #5962 and intentionally targets feature/pi-babysit. PR #5962 remains unchanged and targets staging. Do not merge this PR before #5962. After #5962 merges, this bran...

X Description: Stacked PR This PR is stacked on #5962 and intentionally targets feature/pi-babysit. PR #5962 remains unchanged and targets staging. Do not merge this PR before #5962. After #5962 merges, this bran...

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

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:a53ee2c4-2c87-7def-f181-7c66d95749c6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE298:109F65:4183AF:5DC968:6AFB3945
html-safe-nonce701ef119553a8b9f260d3cbf2ca2133de94e35b87231dda56cb275b2cfb8150d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjk4OjEwOUY2NTo0MTgzQUY6NURDOTY4OjZBRkIzOTQ1IiwidmlzaXRvcl9pZCI6IjU5NzQ2OTQ4ODgwNDAyNDk2NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf2c69f87946365db40ebcacc0ddeeb15c3d2a77220b90d9364636f003d80c3b2
hovercard-subject-tagpull_request:4156014524
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/6031/files
twitter:imagehttps://avatars.githubusercontent.com/u/157128530?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/157128530?s=400&v=4
og:image:altStacked PR This PR is stacked on #5962 and intentionally targets feature/pi-babysit. PR #5962 remains unchanged and targets staging. Do not merge this PR before #5962. After #5962 merges, this bran...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693
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
release3b4fc8df5ef1c6757e733a23e6b81b6725021823
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6031/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6031%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%2F6031%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/6031/files
Reloadhttps://github.com/simstudioai/sim/pull/6031/files
Reloadhttps://github.com/simstudioai/sim/pull/6031/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
BillLeoutsakosvl346https://github.com/BillLeoutsakosvl346
staginghttps://github.com/simstudioai/sim/tree/staging
feat/pi-update-branch-modehttps://github.com/simstudioai/sim/tree/feat/pi-update-branch-mode
Conversation 29 https://github.com/simstudioai/sim/pull/6031
Commits 10 https://github.com/simstudioai/sim/pull/6031/commits
Checks 27 https://github.com/simstudioai/sim/pull/6031/checks
Files changed https://github.com/simstudioai/sim/pull/6031/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6031/files
feat(pi): add update PR mode https://github.com/simstudioai/sim/pull/6031/files#top
Show all changes 10 commits https://github.com/simstudioai/sim/pull/6031/files
6fa5aff feat(pi): add update branch mode Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/6fa5aff5fa8e721b38f03a6000a045c689024f16
49f7915 feat(pi): manage pull requests in update mode Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/49f79150fbd9e55d69bc0b6a625dd855bd33fd7a
c30089d docs(pi): clarify closed PR behavior Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/c30089d8dedea8a108825572aa651aa2b97f7c87
401fdce fix(pi): handle update PR finalization races Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/401fdce2500dd6c03595d4b390df20deef842276
7e378d5 fix(pi): accept renamed update PR repositories Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/7e378d56763d193959fb6dd595d8d91e45a3fc70
7d0f29c fix(pi): clarify shared open PR errors Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/7d0f29c5f35dc013ff0304668d66fd1ab4879389
b6eec1a fix(pi): recheck update PR ambiguity Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/b6eec1ac9cb4e89baf2297e0b84933afb65901ec
9261847 fix(pi): recreate closed update PRs Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/926184717b93a31bd7a7e4349508a5c270a5092f
eef857f fix(pi): follow replacement update PRs Jul 29, 2026 https://github.com/simstudioai/sim/pull/6031/commits/eef857fcd5a88a0d9be5996d6d66f083580cc1b2
4d22771 fix(pi): preserve update PR BYOK after staging rebase Jul 30, 2026 https://github.com/simstudioai/sim/pull/6031/commits/4d227710163f80b5a18a55930dc67a69bb1ccdb5
Clear filters https://github.com/simstudioai/sim/pull/6031/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6031/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6031/files
pi.mdx https://github.com/simstudioai/sim/pull/6031/files#diff-3d7e37517f39b24f2648d231a5ee758118f9ce746cc7c7fef7a2092ca44aa0d7
pi.test.ts https://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
pi.ts https://github.com/simstudioai/sim/pull/6031/files#diff-0ae3c903a0d68ba78332606af88cdf7a23518582758d31597deaddcce650f1f8
babysit-backend.ts https://github.com/simstudioai/sim/pull/6031/files#diff-0103b4ec4121c534443dc923b3c0d2c87b8d8f636d6ae18dfc91508932e65e4d
backend.ts https://github.com/simstudioai/sim/pull/6031/files#diff-8683bc7c32834fc80a83f8761f67ffa0027bd91b6204c2b5243144e01dd996c1
cloud-backend.test.ts https://github.com/simstudioai/sim/pull/6031/files#diff-744cf35f4f21c25a75f0974315eaede91b5e3ce7745e95c40351faf493274904
cloud-backend.ts https://github.com/simstudioai/sim/pull/6031/files#diff-a8e9c19611efb17d3334a7bb18fba598fae0d77ca03dcb6114b330c1b65ce58a
cloud-review-backend.test.ts https://github.com/simstudioai/sim/pull/6031/files#diff-1eefda46b96c1c5bd1cac18aad09c6c2b690cb232da2aabf8e8774bf4fdc07cc
github-pr.test.ts https://github.com/simstudioai/sim/pull/6031/files#diff-9806017373470c7a9dddf5c8e8ee850128ad265aa2f4d43cee0973e56539d926
github-pr.ts https://github.com/simstudioai/sim/pull/6031/files#diff-7ef36861e197af7f078d1019202d5978c70f65ae13052260973ee002d39ace92
keys.test.ts https://github.com/simstudioai/sim/pull/6031/files#diff-df08e1b073210d3f6b9dfa475132c96a1f18e72a61a2ed4380fab64c0759b373
keys.ts https://github.com/simstudioai/sim/pull/6031/files#diff-9aadc337d68ccf83d43a8f9618f3b90f29f4ba2e66d1bf2ff23b51a4614ca552
pi-handler.test.ts https://github.com/simstudioai/sim/pull/6031/files#diff-75fe76501c64e448eb9c9f198c44de3b4969c53eb5e5090367306c55c9eeab43
pi-handler.ts https://github.com/simstudioai/sim/pull/6031/files#diff-3bdfc8f428ec86ec373b6fbe62cce540cfba55578ed13def456b49b6c39f3edb
pi-providers.ts https://github.com/simstudioai/sim/pull/6031/files#diff-1a79c1269c87663d93969900b9873830b67d132aa1ac28a6f5385cfb63a874d2
apps/docs/content/docs/en/workflows/blocks/pi.mdxhttps://github.com/simstudioai/sim/pull/6031/files#diff-3d7e37517f39b24f2648d231a5ee758118f9ce746cc7c7fef7a2092ca44aa0d7
View file https://github.com/simstudioai/sim/blob/4d227710163f80b5a18a55930dc67a69bb1ccdb5/apps/docs/content/docs/en/workflows/blocks/pi.mdx
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/6031/files
apps/sim/blocks/blocks/pi.test.tshttps://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
View file https://github.com/simstudioai/sim/blob/4d227710163f80b5a18a55930dc67a69bb1ccdb5/apps/sim/blocks/blocks/pi.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6031/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
https://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
https://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
https://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
https://github.com/simstudioai/sim/pull/6031/files#diff-bf0a53df08663460b969a0e92a47e47daee22f2ba34dfa66cc3e5358218fa89a
Please reload this pagehttps://github.com/simstudioai/sim/pull/6031/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6031/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.