René's URL Explorer Experiment


Title: chatd can initiate tool calls via dispatch hooks while another such process is already ongoing · Issue #30316 · coder/coder · GitHub

Open Graph Title: chatd can initiate tool calls via dispatch hooks while another such process is already ongoing · Issue #30316 · coder/coder

X Title: chatd can initiate tool calls via dispatch hooks while another such process is already ongoing · Issue #30316 · coder/coder

Description: IIUC when the model emits tool calls for client-provided tools, chatd record that and moves the chat to requires_action. The client side observes this through the chat stream, runs the tools itself, and calls SubmitToolResults. The handl...

Open Graph Description: IIUC when the model emits tool calls for client-provided tools, chatd record that and moves the chat to requires_action. The client side observes this through the chat stream, runs the tools itself...

X Description: IIUC when the model emits tool calls for client-provided tools, chatd record that and moves the chat to requires_action. The client side observes this through the chat stream, runs the tools itself...

Opengraph URL: https://github.com/coder/coder/issues/30316

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"chatd can initiate tool calls via dispatch hooks while another such process is already ongoing","articleBody":"IIUC when the model emits tool calls for client-provided tools, chatd record that and moves the chat to `requires_action`. The client side observes this through the chat stream, runs the tools itself, and calls `SubmitToolResults`. \n\nThe handler for the submission runs three steps: \n- a read that checks the chat is still requires_action and resolves the pending tool-call IDs (a lock-free snapshot after #30266)\n- an outbound HTTP call to any admin-configured hooks (EventPostToolUse) outside any transaction, and \n- a CompleteRequiresAction transition under the chat's exclusive row lock that records the results and returns to running. \n\nCurrently two concurrent submissions (a client retry, two tabs) for the tool work can both pass the read check for `requires_action`, both call the hooks, and then the second fails at commit since we check there that the status is still `requires_action`, so external hook side effects fire for results that were never accepted.\n\nTo resolve this, rather than holding a lock across the hook call, we could add an intermediate status `processing_results`. \n\n`SubmitToolResults` first takes the row lock, does some validation and then flips `requires_action` -> `processing_results` and commits; then calls the hooks; then commits the results with `processing_results` -> `running`. \n\nA second submission finds `processing_results` and is rejected before any hook fires. If the hook call fails, the request releases the claim back to `requires_action` so the client can resubmit. Additionally we could handle the server dying mid-claim; a claimed-at timestamp plus a timeout (handled by the existing `requires_action_timeout` task, which would also need to own `processing_results` chats) either releases the claim or cancels the action, as the existing `requires_action_deadline_at` does today; it must not re-fire the hooks.\n\ncc @hugodutka @ethanndickson ","author":{"url":"https://github.com/cstyan","@type":"Person","name":"cstyan"},"datePublished":"2026-10-03T00:13:21Z","url":"https://github.com/coder/coder/issues/30316"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:63d24119-c4c1-13a5-a876-04c845afc470
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC9C:2A7C1C:447368:5A5781:6B01976B
html-safe-nonce6c795ce6f66ad970cba9d73fc7c4de4fea7ffb812a1f0b19b7eb7b6a5d277706
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzlDOjJBN0MxQzo0NDczNjg6NUE1NzgxOjZCMDE5NzZCIiwidmlzaXRvcl9pZCI6IjgzODI1NTQwOTkzNjI2NjYzNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1837d90c76a6d5356878361834a93e8811b5dad36b03fe83e6faf970cc17761d
hovercard-subject-tagissue:5684996457
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/30316/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0b595cdda18ea3d782a55e73ce71c6dea659fb5b9c1d1f526ea5b31e6889cf5c/coder/coder/issues/30316
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b595cdda18ea3d782a55e73ce71c6dea659fb5b9c1d1f526ea5b31e6889cf5c/coder/coder/issues/30316
og:image:altIIUC when the model emits tool calls for client-provided tools, chatd record that and moves the chat to requires_action. The client side observes this through the chat stream, runs the tools itself...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecstyan
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/30316#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F30316
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%2Fcoder%2Fcoder%2Fissues%2F30316
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/30316
Reloadhttps://github.com/coder/coder/issues/30316
Reloadhttps://github.com/coder/coder/issues/30316
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/30316
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/30316
chatd can initiate tool calls via dispatch hooks while another such process is already ongoinghttps://github.com/coder/coder/issues/30316#top
https://github.com/hugodutka
https://github.com/cstyan
cstyanhttps://github.com/cstyan
on Oct 3, 2026https://github.com/coder/coder/issues/30316#issue-5684996457
perf(coderd/x/chatd): make chat stream reads lock-free #30266https://github.com/coder/coder/pull/30266
@hugodutkahttps://github.com/hugodutka
@ethanndicksonhttps://github.com/ethanndickson
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 3, 2026https://github.com/coder/coder/issues/30316#issuecomment-5963485410
Linear Codehttps://linear.app
ENG-3446https://linear.app/codercom/issue/ENG-3446
ThomasK33https://github.com/ThomasK33
hugodutkahttps://github.com/hugodutka
on Oct 19, 2026https://github.com/coder/coder/issues/30316#event-33624677214
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/30316
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/30316
hugodutkahttps://github.com/hugodutka
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.