Title: fix(custom-blocks): render and execute custom blocks as agent tools by TheodoreSpeaks · Pull Request #5811 · simstudioai/sim · GitHub
Open Graph Title: fix(custom-blocks): render and execute custom blocks as agent tools by TheodoreSpeaks · Pull Request #5811 · simstudioai/sim
X Title: fix(custom-blocks): render and execute custom blocks as agent tools by TheodoreSpeaks · Pull Request #5811 · simstudioai/sim
Description: Summary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real fields They also couldn't execute: added an in-process custom_block_executor that reuses WorkflowBlockHandler, so authority (org-scoped owner identity, latest deployment, curated outputs, cost roll-up) matches the canvas path Fixed getToolIdForOperation reading a stale block cache, which made "add tool" a silent no-op for async-hydrated custom blocks Registered workflow_executor + custom_block_executor in the minimal dev registry so tool config resolves under SIM_DEV_MINIMAL_REGISTRY=1 Kept the executor/db graph out of the client bundle by moving execution into a server-only runner that executeTool dynamic-imports Type of Change Bug fix Testing bun run lint and bun run check:api-validation:strict pass, tsc --noEmit clean, and 139 tests pass across the touched suites (render branch, tool transform, execution runner). Not yet exercised in a running browser. 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 Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real fields They also co...
X Description: Summary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real...
Opengraph URL: https://github.com/simstudioai/sim/pull/5811
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:487afc5a-10b3-9e31-a6d3-a89e26c8f524 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 96C4:240318:7E612B:B3DF9E:6A631769 |
| html-safe-nonce | a51df3000b51f17a7212c0606976ac3e014de917f3a9b57868e0e6a688a70b08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkM0OjI0MDMxODo3RTYxMkI6QjNERjlFOjZBNjMxNzY5IiwidmlzaXRvcl9pZCI6IjE5Nzg0MzgzMzY5MjQyOTI5NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d29510e28e6e12597e091d8c3ba31c2135f1a3bc4b5d418a1204e422d88f3d45 |
| hovercard-subject-tag | pull_request:4102757842 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5811/files |
| twitter:image | https://avatars.githubusercontent.com/u/19564703?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/19564703?s=400&v=4 |
| og:image:alt | Summary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real fields They also co... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| 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 | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width