| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5620d421-954d-e0d6-1e00-79aedadd1cd2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB0C:13FAB0:316467:495CE1:6AFB2557 |
| html-safe-nonce | 95e4e6752d02d2a3e8e75debc41914c589e1a304d86b5a43261191cf50bdc5f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjBDOjEzRkFCMDozMTY0Njc6NDk1Q0UxOjZBRkIyNTU3IiwidmlzaXRvcl9pZCI6IjYyMDkyNTU3MTM2MzgzOTMxNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 788d8b4bea8bfd96ac12284207175266ffb0ab2e7f2d63f6d9d71da703d78cd4 |
| hovercard-subject-tag | pull_request:2715592612 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/856/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary
No functional changes, just a refactor to cleanup the code and have a clear separation of concerns.
Type of Change
Other: Refactor
Testing
N/A
Checklist
Code follows project style guid... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9219899e0d0ce0b87aeba2c640c955f83631457e5baff5df7a36ce599d2635b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd3b60f1fd9c5f10a3dcde41ae35682f53e85cee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/856/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F856%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F856%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/simstudioai/sim/pull/856/files |
| Reload | https://github.com/simstudioai/sim/pull/856/files |
| Reload | https://github.com/simstudioai/sim/pull/856/files |
| simstudioai | https://github.com/simstudioai |
| sim | https://github.com/simstudioai/sim |
| Code | https://github.com/simstudioai/sim |
| Issues129 (129) | https://github.com/simstudioai/sim/issues |
| Pull requests198 (198) | https://github.com/simstudioai/sim/pulls |
| Actions | https://github.com/simstudioai/sim/actions |
| Projects | https://github.com/simstudioai/sim/projects |
| Security and quality | https://github.com/simstudioai/sim/security |
| Insights | https://github.com/simstudioai/sim/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| waleedlatif1 | https://github.com/waleedlatif1 |
| staging | https://github.com/simstudioai/sim/tree/staging |
| improvement/copilot | https://github.com/simstudioai/sim/tree/improvement/copilot |
|
Conversation
15
| https://github.com/simstudioai/sim/pull/856 |
|
Commits
3
| https://github.com/simstudioai/sim/pull/856/commits |
|
Checks
0
| https://github.com/simstudioai/sim/pull/856/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/856/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
|
improvement(copilot): code hygiene + tests
| https://github.com/simstudioai/sim/pull/856/files#top |
|
Show all changes
3 commits
| https://github.com/simstudioai/sim/pull/856/files |
|
5fcce54
improvement(copilot): code hygiene + tests
waleedlatif1 Aug 3, 2025
| https://github.com/simstudioai/sim/pull/856/commits/5fcce544c7340437cfcbcd38d529eea17bbdcdb9 |
|
b46321c
add remaining copilot tests
waleedlatif1 Aug 3, 2025
| https://github.com/simstudioai/sim/pull/856/commits/b46321c1c718602ad42f33c6244b0f590e53b98e |
|
242299e
fix typ
waleedlatif1 Aug 3, 2025
| https://github.com/simstudioai/sim/pull/856/commits/242299e36af113f41d02be8bb3af37100ff04e87 |
|
Clear filters
| https://github.com/simstudioai/sim/pull/856/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-dc557499c6bb9dc59a6e7028b949a736565ae0a3ce9166b2a30b4c5c64912068 |
|
route.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-3863cae4091e0a53eb3fefdf49429a5ef0cbe411bd7ff5913190717e5eecfa9b |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-e415967311ffc3f6144c1bf2d54171ab6cc70375714e1ceabe72cf7551a36aa5 |
|
route.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-1fc82781f04a771c0e797fdfffa287878513e66a20221ed7824bba5452ef6815 |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-e208ed041802f9d58eb8e0ccaa5e1f0a2ad21495b045d8782a7aad467d3c5062 |
|
route.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-2a075dc66e13e9a9b1d952cf4263d16ede8ecda26dd8310b3e3a0e8324c88023 |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-382c3c89f724b7a7b5885975ed9138d3b249d98f9d6d4654666fb513a28a968a |
|
route.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-5a2809f0a45b7d41ca2f84440c0e14214f8d3d55a4f5f31ee340396c98c91ac7 |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-d4266de90811526cac807b27cb5287d59701900fcf22945eb3ea39f03dda6ddd |
|
route.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-313c8d66f5de9ec050dacd52e247241e4acb4f0163d8ca50bd009f7b3ecc29fc |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-07645edc16f9e1b3e6085842de42b6a96325c7de90d08083cc2b915c81d114ec |
|
route.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-7e5e8af12741f943da3896c8198e45f893c78fc8412a78cf1552a01b8a912b34 |
|
utils.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-880e4458022b1f0db89921b273b0cb59fdfe1000013dc7d72493856eafda9d88 |
|
checkpoint-panel.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-0ef0f11dad784a3b8c70ab8d34b1023bed57578dbc362d2b3a44a765b4b14508 |
|
copilot-message.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-8da7d35224c94d5c891bbea439a50219d9a41cd13d5f5d73c3a7b3356259a6f0 |
|
index.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-f00000f79b9d43a6444599e13420beaba7bb77d0c966f43eedc00c6b3c845879 |
|
markdown-renderer.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-e9b614c6601439702f75cb907cfc4a480e528089df6444e742ff4504cb0fc037 |
|
user-input.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-bbcc14df3569c8a92e807a639c6a7124110c29dd46039a9a3ac4ac749a245def |
|
copilot.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-12794bc233b66b6bffd74649260b3ad2c90e5969c59fcd47045d6ed3236b9fad |
|
tool-call.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-7eae2b9bcdbf515a01b2ec1328561d671baebae39529c8c46e63d4d69f859548 |
|
auth.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-ce2db0768117cb4aceb2e91efc3df71cfd2d230fc2bf2929d5922c3bb0cbdc8d |
|
base-tool.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-324b10d257c75ebe6af6230653d7a4f1c13ef2087263e5c202f89519a24a9d40 |
|
run-workflow.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-b07f78e4fce6a6b2c8b1516a383994cbcd7b2fcaf33047aa6617576364ff1b38 |
|
index.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-d60ca5328574e1e3c7f7a6c69acd3d4f36e72b6955faa5dfaab1b6342b76922a |
|
inline-tool-call.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-31c74bf06f64d5d00367676bad71c8cb235a9b7fd0b3bec2f8b8b42e9d8dc608 |
|
notification-utils.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-a6aab42068aec8090c90bd6e69a42c19fd94b1df3e4a2a8181038ebd9fe4568a |
|
registry.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-f2a0b7279dc78f208f6f02479152d2f6525c643eb4f93743350bd47938635250 |
|
base.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-9aa9517bb503b794483028a9926fb90babb640d9693bb54d866d094e77787832 |
|
get-blocks-and-tools.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-1de18b68ab2feb58c736699b6edbde19b508f603cd469c95bc67ac1a850bc67b |
|
get-blocks-metadata.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-b186cb73513eecba0983ce770b04924f060f510086042bcafa5c06a44b414f1d |
|
definitions.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-931389b198c34b44ab2be135249cbf79b163dba17121cd0ec51ca1603e5de88c |
|
search-docs.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-029e0eab3e7dfdfc7253001eea7c1a901ce4bd0b53f5f8c3b31a14b6e630e616 |
|
no-op.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-1241c7bac41048d2ffdee7d17f53551410c892f41225ccc3daae680cb6f7a4f4 |
|
online-search.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-606ccf3a466b98f00a245592d7e5f0edc6792f973d86fbc1ca69d76e0b063d13 |
|
registry.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-af11d141c00f079035fced831f1f09e0f2f556c3047a5d170994a1f2eee3d9c7 |
|
get-environment-variables.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-4d51959a41ea22549febbcf22de5574044f848cfbd09581b7903c9f9d21fa935 |
|
set-environment-variables.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-9e5df282b26811a3af78b099bdea03c56baecb7522c07a50f66070b454323806 |
|
build-workflow.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-1a287d3481280b7c4b4401cc726aa80ded0a4f0bea5929cad4b875f8c09e298c |
|
edit-workflow.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-c4789eb4552edbb8d9e7414ef6be007b01bd0961f3e50dfbe77b260dba583717 |
|
get-user-workflow.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-28e62c47224cddd26d0c3655ed657bb2691e89f2c03e1b7f9d04522b4e997235 |
|
get-workflow-console.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-b8b38edf8b6d3d41ef714d5e5acbdc4d15ca45ef9f06d8d5ed80e3af3725c1af |
|
tool-confirmation.tsx
| https://github.com/simstudioai/sim/pull/856/files#diff-0e493966ba8ac3d4f1542807889e49341d09b6a33ecf5f5be807ba64958139a9 |
|
types.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-672729be9899f28afb5c95a8d01b767eaf25cb64e5d283664a7c3fc8169574f9 |
|
utils.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-1c12cffe49c7d17ecb799e4465ff88a6106f546806786633495b93acec69ac97 |
|
types.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-7a43bdad9683ec3f69df4c4d81c11217a8801f97f16bf34a9bbfafecada53d06 |
|
store.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-c46aeab6e6a858757ec03d96cd77cb9d4ea0b1f8ca3301971865abfbbd62f245 |
|
tool-call.ts
| https://github.com/simstudioai/sim/pull/856/files#diff-a63b76afc8d38c3e57d014c359950347b41f2e6a3c7a2c866e432c0e3b39ed7a |
| apps/sim/app/api/copilot/chat/route.test.ts | https://github.com/simstudioai/sim/pull/856/files#diff-dc557499c6bb9dc59a6e7028b949a736565ae0a3ce9166b2a30b4c5c64912068 |
|
View file
| https://github.com/simstudioai/sim/blob/242299e36af113f41d02be8bb3af37100ff04e87/apps/sim/app/api/copilot/chat/route.test.ts |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
| apps/sim/app/api/copilot/chat/route.ts | https://github.com/simstudioai/sim/pull/856/files#diff-3863cae4091e0a53eb3fefdf49429a5ef0cbe411bd7ff5913190717e5eecfa9b |
|
View file
| https://github.com/simstudioai/sim/blob/242299e36af113f41d02be8bb3af37100ff04e87/apps/sim/app/api/copilot/chat/route.ts |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
| apps/sim/app/api/copilot/chat/update-messages/route.test.ts | https://github.com/simstudioai/sim/pull/856/files#diff-e415967311ffc3f6144c1bf2d54171ab6cc70375714e1ceabe72cf7551a36aa5 |
|
View file
| https://github.com/simstudioai/sim/blob/242299e36af113f41d02be8bb3af37100ff04e87/apps/sim/app/api/copilot/chat/update-messages/route.test.ts |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
| apps/sim/app/api/copilot/chat/update-messages/route.ts | https://github.com/simstudioai/sim/pull/856/files#diff-1fc82781f04a771c0e797fdfffa287878513e66a20221ed7824bba5452ef6815 |
|
View file
| https://github.com/simstudioai/sim/blob/242299e36af113f41d02be8bb3af37100ff04e87/apps/sim/app/api/copilot/chat/update-messages/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/856/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/856/files#diff-1fc82781f04a771c0e797fdfffa287878513e66a20221ed7824bba5452ef6815 |
|
| https://github.com/simstudioai/sim/pull/856/files#diff-1fc82781f04a771c0e797fdfffa287878513e66a20221ed7824bba5452ef6815 |
|
| https://github.com/simstudioai/sim/pull/856/files#diff-1fc82781f04a771c0e797fdfffa287878513e66a20221ed7824bba5452ef6815 |
|
| https://github.com/simstudioai/sim/pull/856/files#diff-1fc82781f04a771c0e797fdfffa287878513e66a20221ed7824bba5452ef6815 |
| Please reload this page | https://github.com/simstudioai/sim/pull/856/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |