René's URL Explorer Experiment


Title: fix(files): file version history follow-ups by waleedlatif1 · Pull Request #8010 · simstudioai/sim · GitHub

Open Graph Title: fix(files): file version history follow-ups by waleedlatif1 · Pull Request #8010 · simstudioai/sim

X Title: fix(files): file version history follow-ups by waleedlatif1 · Pull Request #8010 · simstudioai/sim

Description: Summary Metadata currentVersion, version list/get, and revert now agree with the writer when the newest version row no longer holds the file's bytes (a content write that skipped recording, e.g. from a build predating version history): they report the implicit next version the next write records, so a revert precondition always names the current bytes The newest version row is never deletable (409), so version numbers are never reused Retention cleanup carries a run-wide row cap plus a per-workspace-chunk batch budget, matching the other cleanup jobs List File Versions description names both coalescing cutoffs (10-minute window, 5-minute idle) Inline storage-cleanup failures log describeError instead of raw driver text Test schema mock drops the removed contentUpdatedAt version column CLI: files versions list/describe show authors by email (id once the account is gone) via a new people format; files versions revert prints fields instead of nested JSON Addresses the file-version review threads on #8008 Type of Change Bug fix Testing 15/15 Postgres integration tests; the new stale-head test fails on the previous query and passes now 3066 sim unit tests, 1165 CLI tests (new renderer tests fail without the fix) lint, check:audits, docs-manifest:check, type-check; generators produce no drift Exercised version history end to end on staging over MCP and the CLI 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: Summary Metadata currentVersion, version list/get, and revert now agree with the writer when the newest version row no longer holds the file's bytes (a content write that skipped recording, e....

X Description: Summary Metadata currentVersion, version list/get, and revert now agree with the writer when the newest version row no longer holds the file's bytes (a content write that skipped recording...

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

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:258c4a26-2522-11b1-174d-7b76ccc969e7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F3A:3491F9:135B4A5:1A7D90D:6AFB6F46
html-safe-noncedda65edc41565f1cd120dde1e28763967c8c1e264db31f327403b5ac306f20cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjNBOjM0OTFGOToxMzVCNEE1OjFBN0Q5MEQ6NkFGQjZGNDYiLCJ2aXNpdG9yX2lkIjoiNDk2MjUyNjA0MTYxMzIzMzk5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca00109c0784e8db5093ad4d262f1c7a675b640253204008c2a6c60343b825e2a
hovercard-subject-tagpull_request:4579506018
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/8010/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 Metadata currentVersion, version list/get, and revert now agree with the writer when the newest version row no longer holds the file's bytes (a content write that skipped recording, e....
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/8010/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8010%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%2F8010%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/8010/files
Reloadhttps://github.com/simstudioai/sim/pull/8010/files
Reloadhttps://github.com/simstudioai/sim/pull/8010/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
fix/file-versions-followupshttps://github.com/simstudioai/sim/tree/fix/file-versions-followups
Conversation 17 https://github.com/simstudioai/sim/pull/8010
Commits 4 https://github.com/simstudioai/sim/pull/8010/commits
Checks 33 https://github.com/simstudioai/sim/pull/8010/checks
Files changed https://github.com/simstudioai/sim/pull/8010/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8010/files
fix(files): file version history follow-ups https://github.com/simstudioai/sim/pull/8010/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/8010/files
339f192 fix(files): bound file version retention per run and document both co… waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8010/commits/339f19205c9737e42c94774eea11e985fe52d93d
a057433 fix(files): agree on the current version when a write skipped recordi… waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8010/commits/a05743310989b74ff89b2bb6aeb62e4a0a0cae1a
c332b9b fix(files): size each retention batch to the remaining run allowance waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8010/commits/c332b9bb6806c6e479472ae1cc13e7b3f5d5bc5e
7b93357 fix(files): read file versions against one snapshot of the file waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8010/commits/7b93357ba3624023201920559485e975254bc8d3
Clear filters https://github.com/simstudioai/sim/pull/8010/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8010/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8010/files
openapi-v2-files-audit.json https://github.com/simstudioai/sim/pull/8010/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
cleanup-file-versions.ts https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
files-audit.ts https://github.com/simstudioai/sim/pull/8010/files#diff-97319965ae7aacfb970845624bee9f5e4374c04df6c9b9487ccc26900660ec63
v2-operations.ts https://github.com/simstudioai/sim/pull/8010/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7
file-versions.integration.ts https://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
workspace-file-manager.ts https://github.com/simstudioai/sim/pull/8010/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
workspace-file-storage-cleanup-outbox.ts https://github.com/simstudioai/sim/pull/8010/files#diff-b631e6949b4bbd001dc4bdf5d623d5f1ea7442bc46355949e0eaf351d8aab896
workspace-file-versions.ts https://github.com/simstudioai/sim/pull/8010/files#diff-5758e0e4c9fac05259eae725f68b5b13b39796919975c4986c1997598e6bacb3
file-versions.test.ts https://github.com/simstudioai/sim/pull/8010/files#diff-d68c013d75d3d729efd979214cbcb2d8c3ed406d7a3cb7abaf0d370814ab7ff8
file-versions.ts https://github.com/simstudioai/sim/pull/8010/files#diff-860d5d55abd8503974107012d58b44862cdd0527212f52dee4a59a49b83941be
commands.ts https://github.com/simstudioai/sim/pull/8010/files#diff-5b27c3986f1d8efb7c666a86dc02bf70fe6c52509f71fba2df57e706b9bc729d
types.ts https://github.com/simstudioai/sim/pull/8010/files#diff-cbe9859b91cedb9e6d108354f29c9568e051b8826df5d42ff0193383c6977ac8
result.test.ts https://github.com/simstudioai/sim/pull/8010/files#diff-be35f3221a00706974bccd6dfdfbfc2480da5c546c423c6f9fc0bdd769520108
result.ts https://github.com/simstudioai/sim/pull/8010/files#diff-c0713fed9cd590af0ad11af5e04f28439fb745e255e22846c3ab065aefd46ec1
schema.mock.ts https://github.com/simstudioai/sim/pull/8010/files#diff-3b648ee44a059e5fc069169fdfd7c32c89200a3e79b5d0dc25227d3470da73af
apps/docs/openapi-v2-files-audit.jsonhttps://github.com/simstudioai/sim/pull/8010/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/docs/openapi-v2-files-audit.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
https://github.com/simstudioai/sim/pull/8010/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
apps/sim/background/cleanup-file-versions.tshttps://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/sim/background/cleanup-file-versions.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
https://github.com/simstudioai/sim/pull/8010/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701
apps/sim/lib/api/contracts/v2/openapi/files-audit.tshttps://github.com/simstudioai/sim/pull/8010/files#diff-97319965ae7aacfb970845624bee9f5e4374c04df6c9b9487ccc26900660ec63
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/sim/lib/api/contracts/v2/openapi/files-audit.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-97319965ae7aacfb970845624bee9f5e4374c04df6c9b9487ccc26900660ec63
https://github.com/simstudioai/sim/pull/8010/files#diff-97319965ae7aacfb970845624bee9f5e4374c04df6c9b9487ccc26900660ec63
apps/sim/lib/api/mcp/generated/v2-operations.tshttps://github.com/simstudioai/sim/pull/8010/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/sim/lib/api/mcp/generated/v2-operations.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7
https://github.com/simstudioai/sim/pull/8010/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7
apps/sim/lib/uploads/contexts/workspace/__integration__/file-versions.integration.tshttps://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/sim/lib/uploads/contexts/workspace/__integration__/file-versions.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
https://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
https://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
https://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
https://github.com/simstudioai/sim/pull/8010/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2
apps/sim/lib/uploads/contexts/workspace/workspace-file-manager.tshttps://github.com/simstudioai/sim/pull/8010/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/sim/lib/uploads/contexts/workspace/workspace-file-manager.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
https://github.com/simstudioai/sim/pull/8010/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
https://github.com/simstudioai/sim/pull/8010/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
https://github.com/simstudioai/sim/pull/8010/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
apps/sim/lib/uploads/contexts/workspace/workspace-file-storage-cleanup-outbox.tshttps://github.com/simstudioai/sim/pull/8010/files#diff-b631e6949b4bbd001dc4bdf5d623d5f1ea7442bc46355949e0eaf351d8aab896
View file https://github.com/simstudioai/sim/blob/7b93357ba3624023201920559485e975254bc8d3/apps/sim/lib/uploads/contexts/workspace/workspace-file-storage-cleanup-outbox.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8010/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8010/files#diff-b631e6949b4bbd001dc4bdf5d623d5f1ea7442bc46355949e0eaf351d8aab896
https://github.com/simstudioai/sim/pull/8010/files#diff-b631e6949b4bbd001dc4bdf5d623d5f1ea7442bc46355949e0eaf351d8aab896
https://github.com/simstudioai/sim/pull/8010/files#diff-b631e6949b4bbd001dc4bdf5d623d5f1ea7442bc46355949e0eaf351d8aab896
Please reload this pagehttps://github.com/simstudioai/sim/pull/8010/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8010/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.