René's URL Explorer Experiment


Title: feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token stages by jscottmiller · Pull Request #28970 · coder/coder · GitHub

Open Graph Title: feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token stages by jscottmiller · Pull Request #28970 · coder/coder

X Title: feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token stages by jscottmiller · Pull Request #28970 · coder/coder

Description: Secure environments for developers and their agents - feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token stages by jscottmiller · Pull Request #28970 · coder/coder

Open Graph Description: Superseded by #29770. Closed in favor of the reduced stack #29773. GenerateAssistant records a stream stage from stream open to close and a nested time_to_first_token stage. finishTTFT closes the T...

X Description: Superseded by #29770. Closed in favor of the reduced stack #29773. GenerateAssistant records a stream stage from stream open to close and a nested time_to_first_token stage. finishTTFT closes the T...

Opengraph URL: https://github.com/coder/coder/pull/28970

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:120fc46a-b5d7-7826-fc45-40d98f8ab043
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id926C:1F4E:4B1CE8:633128:6B0155BB
html-safe-nonce84e7e72de77f90c34c2391312e82277c94bf97c33d8fbbd6551fd56a599f7ac0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjZDOjFGNEU6NEIxQ0U4OjYzMzEyODo2QjAxNTVCQiIsInZpc2l0b3JfaWQiOiI3ODY0OTExMzU2NTE0ODgzMDA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9df4d63c05d92bd206642f0f5a1937d1588dc49603742534c118629b53870c06
hovercard-subject-tagpull_request:4439059329
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/28970/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ee19bcfb4431acdd5d1ea97667056bbedebfa4cd934fde5e27d5f512cf8bc279/coder/coder/pull/28970
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee19bcfb4431acdd5d1ea97667056bbedebfa4cd934fde5e27d5f512cf8bc279/coder/coder/pull/28970
og:image:altSuperseded by #29770. Closed in favor of the reduced stack #29773. GenerateAssistant records a stream stage from stream open to close and a nested time_to_first_token stage. finishTTFT closes the T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejscottmiller
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/28970#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28970
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%2Fpull%2F28970
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/28970
Reloadhttps://github.com/coder/coder/pull/28970
Reloadhttps://github.com/coder/coder/pull/28970
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
jscottmillerhttps://github.com/jscottmiller
scott/chatd-stages/2-stage-tracerhttps://github.com/coder/coder/tree/scott/chatd-stages/2-stage-tracer
scott/chatd-stages/3-stream-stageshttps://github.com/coder/coder/tree/scott/chatd-stages/3-stream-stages
Conversationhttps://github.com/coder/coder/pull/28970
Commits1 (1)https://github.com/coder/coder/pull/28970/commits
Checkshttps://github.com/coder/coder/pull/28970/checks
Files changedhttps://github.com/coder/coder/pull/28970/files
feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token stageshttps://github.com/coder/coder/pull/28970#top
jscottmillerhttps://github.com/jscottmiller
scott/chatd-stages/2-stage-tracerhttps://github.com/coder/coder/tree/scott/chatd-stages/2-stage-tracer
scott/chatd-stages/3-stream-stageshttps://github.com/coder/coder/tree/scott/chatd-stages/3-stream-stages
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 4, 2026https://github.com/coder/coder/pull/28970#issue-5344031396
Please reload this pagehttps://github.com/coder/coder/pull/28970
#29770https://github.com/coder/coder/pull/29770
@jscottmillerhttps://github.com/jscottmiller
Please reload this pagehttps://github.com/coder/coder/pull/28970
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
jscottmillerhttps://github.com/jscottmiller
Sep 4, 2026https://github.com/coder/coder/pull/28970#event-30530830743
refactor(coderd/x/chatd): extract runGenerationStep from StartGeneration #28968 https://github.com/coder/coder/pull/28968
feat: add chatd lifecycle stage tracer #28969 https://github.com/coder/coder/pull/28969
feat: trace chatd provider attempts with model and effort #28971 https://github.com/coder/coder/pull/28971
feat(coderd/x/chatd): open a chat_turn span per prompt #28972 https://github.com/coder/coder/pull/28972
feat(coderd/x/chatd): record capacity wait as a lifecycle stage #28973 https://github.com/coder/coder/pull/28973
feat: account chatd turn time by stage and category #28974 https://github.com/coder/coder/pull/28974
docs(examples/monitoring): add chatd lifecycle Grafana dashboard #28975 https://github.com/coder/coder/pull/28975
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/77d9e3cd5c459a2191f225912f7448b564ddc178..54d3777ce88ef72247d2cdb5d786dfb93728e95d
77d9e3chttps://github.com/coder/coder/commit/77d9e3cd5c459a2191f225912f7448b564ddc178
54d3777https://github.com/coder/coder/commit/54d3777ce88ef72247d2cdb5d786dfb93728e95d
Compare https://github.com/coder/coder/compare/77d9e3cd5c459a2191f225912f7448b564ddc178..54d3777ce88ef72247d2cdb5d786dfb93728e95d
September 9, 2026 23:19https://github.com/coder/coder/pull/28970#event-30864766210
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
experimental https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Aexperimental
Sep 11, 2026https://github.com/coder/coder/pull/28970#event-30938963020
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/54d3777ce88ef72247d2cdb5d786dfb93728e95d..3e6c03cb1760d8264cde49f4bb29b7bd620cfcba
54d3777https://github.com/coder/coder/commit/54d3777ce88ef72247d2cdb5d786dfb93728e95d
3e6c03chttps://github.com/coder/coder/commit/3e6c03cb1760d8264cde49f4bb29b7bd620cfcba
Compare https://github.com/coder/coder/compare/54d3777ce88ef72247d2cdb5d786dfb93728e95d..3e6c03cb1760d8264cde49f4bb29b7bd620cfcba
September 11, 2026 02:25https://github.com/coder/coder/pull/28970#event-30944741644
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/3e6c03cb1760d8264cde49f4bb29b7bd620cfcba..bf4b80a1e1d33c91d3967042d5c47a16ce7517c8
3e6c03chttps://github.com/coder/coder/commit/3e6c03cb1760d8264cde49f4bb29b7bd620cfcba
bf4b80ahttps://github.com/coder/coder/commit/bf4b80a1e1d33c91d3967042d5c47a16ce7517c8
Compare https://github.com/coder/coder/compare/3e6c03cb1760d8264cde49f4bb29b7bd620cfcba..bf4b80a1e1d33c91d3967042d5c47a16ce7517c8
September 11, 2026 19:17https://github.com/coder/coder/pull/28970#event-30994447891
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
experimental https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Aexperimental
Sep 14, 2026https://github.com/coder/coder/pull/28970#event-31121374431
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
stack #29305https://github.com/coder/coder/stack/29305
September 14, 2026 20:01https://github.com/coder/coder/pull/28970#event-31126907286
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/bf4b80a1e1d33c91d3967042d5c47a16ce7517c8..4e8f3fed809adee6f527dc7d515ac6cac3f5107f
bf4b80ahttps://github.com/coder/coder/commit/bf4b80a1e1d33c91d3967042d5c47a16ce7517c8
4e8f3fehttps://github.com/coder/coder/commit/4e8f3fed809adee6f527dc7d515ac6cac3f5107f
Compare https://github.com/coder/coder/compare/bf4b80a1e1d33c91d3967042d5c47a16ce7517c8..4e8f3fed809adee6f527dc7d515ac6cac3f5107f
September 14, 2026 20:16https://github.com/coder/coder/pull/28970#event-31127839192
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/4e8f3fed809adee6f527dc7d515ac6cac3f5107f..1dc7e9fc58635136491e52894bef6e25da5f177d
4e8f3fehttps://github.com/coder/coder/commit/4e8f3fed809adee6f527dc7d515ac6cac3f5107f
1dc7e9fhttps://github.com/coder/coder/commit/1dc7e9fc58635136491e52894bef6e25da5f177d
Compare https://github.com/coder/coder/compare/4e8f3fed809adee6f527dc7d515ac6cac3f5107f..1dc7e9fc58635136491e52894bef6e25da5f177d
September 14, 2026 22:06https://github.com/coder/coder/pull/28970#event-31133455847
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/1dc7e9fc58635136491e52894bef6e25da5f177d..8f27c5be8bc348871936c7a352271d2b31e098cf
1dc7e9fhttps://github.com/coder/coder/commit/1dc7e9fc58635136491e52894bef6e25da5f177d
8f27c5bhttps://github.com/coder/coder/commit/8f27c5be8bc348871936c7a352271d2b31e098cf
Compare https://github.com/coder/coder/compare/1dc7e9fc58635136491e52894bef6e25da5f177d..8f27c5be8bc348871936c7a352271d2b31e098cf
September 15, 2026 21:39https://github.com/coder/coder/pull/28970#event-31205540030
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/8f27c5be8bc348871936c7a352271d2b31e098cf..6d356603fdafa91c08fc853ea18582dfe63d413b
8f27c5bhttps://github.com/coder/coder/commit/8f27c5be8bc348871936c7a352271d2b31e098cf
6d35660https://github.com/coder/coder/commit/6d356603fdafa91c08fc853ea18582dfe63d413b
Compare https://github.com/coder/coder/compare/8f27c5be8bc348871936c7a352271d2b31e098cf..6d356603fdafa91c08fc853ea18582dfe63d413b
September 16, 2026 03:12https://github.com/coder/coder/pull/28970#event-31217690571
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/264c6b977e44cf5f8364a25aaaf3019993f4c8df..063a17b4a58e948efda7a81f0cea97b41cc6fc88
264c6b9https://github.com/coder/coder/commit/264c6b977e44cf5f8364a25aaaf3019993f4c8df
063a17bhttps://github.com/coder/coder/commit/063a17b4a58e948efda7a81f0cea97b41cc6fc88
Compare https://github.com/coder/coder/compare/264c6b977e44cf5f8364a25aaaf3019993f4c8df..063a17b4a58e948efda7a81f0cea97b41cc6fc88
September 17, 2026 20:31https://github.com/coder/coder/pull/28970#event-31348184010
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/063a17b4a58e948efda7a81f0cea97b41cc6fc88..53ce37fbc5c0d4febb4adb6aaf3c9bb435b2df70
063a17bhttps://github.com/coder/coder/commit/063a17b4a58e948efda7a81f0cea97b41cc6fc88
53ce37fhttps://github.com/coder/coder/commit/53ce37fbc5c0d4febb4adb6aaf3c9bb435b2df70
Compare https://github.com/coder/coder/compare/063a17b4a58e948efda7a81f0cea97b41cc6fc88..53ce37fbc5c0d4febb4adb6aaf3c9bb435b2df70
September 17, 2026 21:26https://github.com/coder/coder/pull/28970#event-31350897994
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/53ce37fbc5c0d4febb4adb6aaf3c9bb435b2df70..af1f4de00925dd0ca12226491cbf2de6bf415c26
53ce37fhttps://github.com/coder/coder/commit/53ce37fbc5c0d4febb4adb6aaf3c9bb435b2df70
af1f4dehttps://github.com/coder/coder/commit/af1f4de00925dd0ca12226491cbf2de6bf415c26
Compare https://github.com/coder/coder/compare/53ce37fbc5c0d4febb4adb6aaf3c9bb435b2df70..af1f4de00925dd0ca12226491cbf2de6bf415c26
September 21, 2026 00:09https://github.com/coder/coder/pull/28970#event-31496906160
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/af1f4de00925dd0ca12226491cbf2de6bf415c26..6b14918c4cfa0797395c8ca8d35fc18178824f48
af1f4dehttps://github.com/coder/coder/commit/af1f4de00925dd0ca12226491cbf2de6bf415c26
6b14918https://github.com/coder/coder/commit/6b14918c4cfa0797395c8ca8d35fc18178824f48
Compare https://github.com/coder/coder/compare/af1f4de00925dd0ca12226491cbf2de6bf415c26..6b14918c4cfa0797395c8ca8d35fc18178824f48
September 21, 2026 22:52https://github.com/coder/coder/pull/28970#event-31564143024
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Sep 22, 2026https://github.com/coder/coder/pull/28970#issuecomment-5776217531
CODAGT-1102https://linear.app/codercom/issue/CODAGT-1102
Please reload this pagehttps://github.com/coder/coder/pull/28970
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/6b14918c4cfa0797395c8ca8d35fc18178824f48..5553212a24f7a333bdee59239bcc8b8b0ff190bd
6b14918https://github.com/coder/coder/commit/6b14918c4cfa0797395c8ca8d35fc18178824f48
5553212https://github.com/coder/coder/commit/5553212a24f7a333bdee59239bcc8b8b0ff190bd
Compare https://github.com/coder/coder/compare/6b14918c4cfa0797395c8ca8d35fc18178824f48..5553212a24f7a333bdee59239bcc8b8b0ff190bd
September 23, 2026 01:37https://github.com/coder/coder/pull/28970#event-31643623992
feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token st…https://github.com/coder/coder/pull/28970/commits/a03d6df3e135a36ae07313fac84da04f30118010
a03d6dfhttps://github.com/coder/coder/pull/28970/commits/a03d6df3e135a36ae07313fac84da04f30118010
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
force-pushedhttps://github.com/coder/coder/compare/5553212a24f7a333bdee59239bcc8b8b0ff190bd..a03d6df3e135a36ae07313fac84da04f30118010
5553212https://github.com/coder/coder/commit/5553212a24f7a333bdee59239bcc8b8b0ff190bd
a03d6dfhttps://github.com/coder/coder/commit/a03d6df3e135a36ae07313fac84da04f30118010
Compare https://github.com/coder/coder/compare/5553212a24f7a333bdee59239bcc8b8b0ff190bd..a03d6df3e135a36ae07313fac84da04f30118010
September 23, 2026 02:14https://github.com/coder/coder/pull/28970#event-31645096362
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 23, 2026 https://github.com/coder/coder/pull/28970#ref-pullrequest-5548051755
feat: trace chatd provider stages and count only output parts as first token #29770 https://github.com/coder/coder/pull/29770
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 23, 2026https://github.com/coder/coder/pull/28970#event-31647279337
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 23, 2026https://github.com/coder/coder/pull/28970#event-31647292345
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28970
Please reload this pagehttps://github.com/coder/coder/pull/28970
https://github.com/jscottmiller
jscottmiller https://github.com/jscottmiller
Please reload this pagehttps://github.com/coder/coder/pull/28970
https://github.com/jscottmiller
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.