René's URL Explorer Experiment


Title: fix(files): accept files/ VFS paths in v2 file describe, rename and delete by waleedlatif1 · Pull Request #9504 · simstudioai/sim · GitHub

Open Graph Title: fix(files): accept files/ VFS paths in v2 file describe, rename and delete by waleedlatif1 · Pull Request #9504 · simstudioai/sim

X Title: fix(files): accept files/ VFS paths in v2 file describe, rename and delete by waleedlatif1 · Pull Request #9504 · simstudioai/sim

Description: Summary files describe, files rename and files delete (v2 GET /files/[fileId]/metadata, PATCH/DELETE /files/[fileId]) now take a file's exact files// VFS path as well as its id — the same form files read, glob and listings already print, and the form the text route already accepts Mothership's agent addresses files by path, so these commands failed with Invalid file id (~300 calls a week), each costing a wasted model round plus a listing call to recover the id Path resolution lives in the shared resolveActiveWorkspaceFileContext: a files/ path resolves to an id inside the asserted workspace first, then the canonical load, workspace check and use-case authorization run on that id unchanged. Id inputs take the exact same path as before Exact-only lookup (no name or listing fallback), workspace files only — chat uploads, owned files and archived files are never reachable by path; dot segments are rejected Regenerated the CLI v2 API, OpenAPI, MCP operations and CLI docs (description + parameter schema only) Type of Change Bug fix Testing New lib/workspace-files/__integration__/file-path-references.integration.ts against real Postgres: 6/6 green; with the resolver reverted 5/6 go red (the 6th is a guard that uploads stay unreachable) bun run lint, block registry check, check:api-validation:strict, check:openapi, check:cli-api, check:mcp-operations, check:cli-docs, check:v2-route-table, check:utils, check:comment-hygiene, check:test-patterns, check:explicit-any, check:file-names, check:source-conventions Type-check, full check:audits and the test suites run in CI 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 files describe, files rename and files delete (v2 GET /files/[fileId]/metadata, PATCH/DELETE /files/[fileId]) now take a file's exact files/<folder>/<name> VFS path as well...

X Description: Summary files describe, files rename and files delete (v2 GET /files/[fileId]/metadata, PATCH/DELETE /files/[fileId]) now take a file&#39;s exact files/&lt;folder&gt;/&lt;name&...

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

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:bdeef1dc-1633-2259-d11f-22a8b4d19d1e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id85D0:BD166:6F44A:A35EA:6AFB1885
html-safe-nonce56fbbffaac2dc7889193176dfc6769941fe552e1ffc7575a44827036fc8febe9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUQwOkJEMTY2OjZGNDRBOkEzNUVBOjZBRkIxODg1IiwidmlzaXRvcl9pZCI6Ijc3MTU4ODcwMjI0MTQ4NjEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6771b5d6b259119536375cf0d31cd9e75321c162f7f9417910f5bfedff01e27d
hovercard-subject-tagpull_request:5095575411
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/9504/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 files describe, files rename and files delete (v2 GET /files/[fileId]/metadata, PATCH/DELETE /files/[fileId]) now take a file's exact files/<folder>/<name> VFS path as well...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None24933791aba0f10b2f189f8b953a1452dd79933933ac13a0a67b8ad3acee3d9f
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
release030711cc180b563614a434f4376acf7da5d445fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9504/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9504%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%2F9504%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/9504/files
Reloadhttps://github.com/simstudioai/sim/pull/9504/files
Reloadhttps://github.com/simstudioai/sim/pull/9504/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/files-accept-vfs-pathshttps://github.com/simstudioai/sim/tree/fix/files-accept-vfs-paths
Conversation 14 https://github.com/simstudioai/sim/pull/9504
Commits 2 https://github.com/simstudioai/sim/pull/9504/commits
Checks 70 https://github.com/simstudioai/sim/pull/9504/checks
Files changed https://github.com/simstudioai/sim/pull/9504/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9504/files
fix(files): accept files/ VFS paths in v2 file describe, rename and delete https://github.com/simstudioai/sim/pull/9504/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/9504/files
04ac686 fix(files): accept files/ VFS paths in v2 file describe, rename and d… waleedlatif1 Oct 31, 2026 https://github.com/simstudioai/sim/pull/9504/commits/04ac6868eb84cac6f5ed918b5e7b1bb3c6bb69b5
e36a75e fix(files): match VFS paths as listings print them, without virtual s… waleedlatif1 Oct 31, 2026 https://github.com/simstudioai/sim/pull/9504/commits/e36a75e138647bee8941f633824714f77f46beb1
Clear filters https://github.com/simstudioai/sim/pull/9504/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9504/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9504/files
files.mdx https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
reference.mdx https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
openapi-v2-files-audit.json https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
files.ts https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
file-manager.ts https://github.com/simstudioai/sim/pull/9504/files#diff-8a5fe21cb59e40994be235c3a799fe7cf265576f7480174d6df727af5a7bf644
path.ts https://github.com/simstudioai/sim/pull/9504/files#diff-a250e59981b276e052283d10ec3953d262cbfd38e904b3bd1d365af8a8ed2c75
file-path-references.integration.ts https://github.com/simstudioai/sim/pull/9504/files#diff-acbdf67720369d8d4c2b439263bb3a06e38009ebc3f03af42b7949f0928cd716
file-context.ts https://github.com/simstudioai/sim/pull/9504/files#diff-20e6397a28a9bb8e1db62cab467bdf4df5cc1233c3e188264a518530c6420fba
v2-api.ts https://github.com/simstudioai/sim/pull/9504/files#diff-e856e756b18965607efb943e85bad153871936ce3ee5180ec2e8073a28dd1dd7
apps/docs/content/docs/cli/files.mdxhttps://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
View file https://github.com/simstudioai/sim/blob/e36a75e138647bee8941f633824714f77f46beb1/apps/docs/content/docs/cli/files.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9504/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
https://github.com/simstudioai/sim/pull/9504/files#diff-dd195861b84c810d004b7ff3182f486abc58890bfa9792ce2acb9bb6427bfefc
apps/docs/content/docs/cli/reference.mdxhttps://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
View file https://github.com/simstudioai/sim/blob/e36a75e138647bee8941f633824714f77f46beb1/apps/docs/content/docs/cli/reference.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9504/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9504/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
apps/docs/openapi-v2-files-audit.jsonhttps://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
View file https://github.com/simstudioai/sim/blob/e36a75e138647bee8941f633824714f77f46beb1/apps/docs/openapi-v2-files-audit.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9504/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
https://github.com/simstudioai/sim/pull/9504/files#diff-c6918d7f933ec43ee8b8a4983d19f272b35962e2510bad721fc05d6d82b41b8d
apps/sim/lib/api/contracts/v2/files.tshttps://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
View file https://github.com/simstudioai/sim/blob/e36a75e138647bee8941f633824714f77f46beb1/apps/sim/lib/api/contracts/v2/files.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9504/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
https://github.com/simstudioai/sim/pull/9504/files#diff-615f44153f90418dc013f064e82e3f80f38bee63452ab7612e669651365c90b9
apps/sim/lib/uploads/contexts/workspace/file-manager.tshttps://github.com/simstudioai/sim/pull/9504/files#diff-8a5fe21cb59e40994be235c3a799fe7cf265576f7480174d6df727af5a7bf644
View file https://github.com/simstudioai/sim/blob/e36a75e138647bee8941f633824714f77f46beb1/apps/sim/lib/uploads/contexts/workspace/file-manager.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9504/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9504/files#diff-8a5fe21cb59e40994be235c3a799fe7cf265576f7480174d6df727af5a7bf644
https://github.com/simstudioai/sim/pull/9504/files#diff-8a5fe21cb59e40994be235c3a799fe7cf265576f7480174d6df727af5a7bf644
apps/sim/lib/vfs/path.tshttps://github.com/simstudioai/sim/pull/9504/files#diff-a250e59981b276e052283d10ec3953d262cbfd38e904b3bd1d365af8a8ed2c75
View file https://github.com/simstudioai/sim/blob/e36a75e138647bee8941f633824714f77f46beb1/apps/sim/lib/vfs/path.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9504/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9504/files#diff-a250e59981b276e052283d10ec3953d262cbfd38e904b3bd1d365af8a8ed2c75
https://github.com/simstudioai/sim/pull/9504/files#diff-a250e59981b276e052283d10ec3953d262cbfd38e904b3bd1d365af8a8ed2c75
Please reload this pagehttps://github.com/simstudioai/sim/pull/9504/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.