| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2baea9f0-fe31-37b7-4543-bc62e008cfcc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AC2C:785A9:2CD6C4D:38EF2B2:6B01B588 |
| html-safe-nonce | 09043c0e8964c58dcb19cac165a9a4dc3bd53aa11e3ede9a7ee093d6bb19cb1d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzJDOjc4NUE5OjJDRDZDNEQ6MzhFRjJCMjo2QjAxQjU4OCIsInZpc2l0b3JfaWQiOiIxNjUwMDk1NDgzMDg5MTcxODQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 08dfe15a99d7beb8c150bf3a87669acd9ab2595003e12f929d63bf54643ec209 |
| hovercard-subject-tag | pull_request:4296379277 |
| 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/coder/coder/pull/28211/files |
| twitter:image | https://avatars.githubusercontent.com/u/1858163?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1858163?s=400&v=4 |
| og:image:alt | Summary
Local tool execution time now counts toward Coder Agent runtime (chat_messages.runtime_ms, the source of truth for hb_agent_runtime_v1), excluding sub-agent orchestration tools to avoid dou... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/coder/coder/pull/28211/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28211%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%2Fcoder%2Fcoder%2Fpull%2F28211%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=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/28211/files |
| Reload | https://github.com/coder/coder/pull/28211/files |
| Reload | https://github.com/coder/coder/pull/28211/files |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcoder%2Fcoder%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=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| jaaydenh | https://github.com/jaaydenh |
| main | https://github.com/coder/coder/tree/main |
| jaayden/codagt-928-track-local-tool-execution-for-agent-runtime | https://github.com/coder/coder/tree/jaayden/codagt-928-track-local-tool-execution-for-agent-runtime |
|
Conversation
78
| https://github.com/coder/coder/pull/28211 |
|
Commits
22
| https://github.com/coder/coder/pull/28211/commits |
|
Checks
35
| https://github.com/coder/coder/pull/28211/checks |
|
Files changed
| https://github.com/coder/coder/pull/28211/files |
| Please reload this page | https://github.com/coder/coder/pull/28211/files |
|
feat: bill local tool execution time in chat agent runtime
| https://github.com/coder/coder/pull/28211/files#top |
|
Show all changes
22 commits
| https://github.com/coder/coder/pull/28211/files |
|
bb26857
feat: bill local tool execution time in chat agent runtime
jaaydenh Aug 14, 2026
| https://github.com/coder/coder/pull/28211/commits/bb26857eb39b8b1e1fce7169937b243ac51c92b9 |
|
a88b8a4
fix(coderd/x/chatd): bill interrupted tool batches with live completi…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/a88b8a4d9a1678a48d3d2e6a9b932f1de84dc6fd |
|
589bfce
fix(coderd/x/chatd): track batch billing per occurrence and per dispa…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/589bfce2a19632c4209b8f494efd1deb00e61714 |
|
9ff5f50
fix(coderd/x/chatd): snapshot interrupt billing atomically per call o…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/9ff5f50314b3ced5a5d67faec0cd10349c73d465 |
|
68dee09
fix(coderd/x/chatd): stamp tool completions by occurrence and reuse t…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/68dee097733f8b4144fbf47784371d3cef8c5483 |
|
2f6e743
fix(coderd/x/chatd): correlate interrupt billing by unresolved call p…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/2f6e743565b703d5f41c3e43bdf14221ab5998bb |
|
45f962c
docs(docs/ai-coder): reformat agent runtime section to one sentence p…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/45f962c4a694bda1bcd5d57bc66586f40d7d3dbf |
|
167d9f8
fix(coderd/x/chatd): keep interrupted billing stable across task retries
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/167d9f8922cf3cf04235e7a47332567d5243af1a |
|
9fd2445
fix(coderd/x/chatd): carry the interrupt episode snapshot across task…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/9fd2445eb5d5b09f0214a867f3c5d2a140776c73 |
|
dd4384d
fix(coderd/x/chatd): bill windows defined by calls without tool call IDs
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/dd4384d73c782bb9c7509c70541de6086ad828f8 |
|
3041968
docs(coderd/usage): clarify that workspace tools bill regardless of a…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/3041968eb5e2130272b946c48fbf936c7b4d9fe2 |
|
8d4760a
fix(coderd/x/chatd): seed tool batch billing only once dispatch is gu…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/8d4760a5d2a913a47af3536472ff985c8c7c2dd7 |
|
ca3ae1a
fix(coderd/x/chatd): capture the interrupt episode snapshot before th…
jaaydenh Aug 18, 2026
| https://github.com/coder/coder/pull/28211/commits/ca3ae1aeb6f6252b7a434c1c122272adf4af4a7d |
|
458498e
Merge remote-tracking branch 'origin/main' into agent-runtime-bgdy
jaaydenh Aug 19, 2026
| https://github.com/coder/coder/pull/28211/commits/458498e7cacce11ece5190003cc453b3e822f62d |
|
d2d9a23
fix(coderd/x/chatd): bill serial tool calls from their actual start
jaaydenh Aug 19, 2026
| https://github.com/coder/coder/pull/28211/commits/d2d9a23a6443ee93c5255d55fb53fe96879c9be8 |
|
da26bcd
docs(docs/ai-coder): revert usage-data-reporting changes
jaaydenh Aug 19, 2026
| https://github.com/coder/coder/pull/28211/commits/da26bcdec0f128a6f9ac0d441900b8ef621639d5 |
|
3871561
style(coderd): trim agent runtime comments
jaaydenh Aug 19, 2026
| https://github.com/coder/coder/pull/28211/commits/38715616797aacefcc65f543dde42ff286d9f441 |
|
43749fe
Merge branch 'main' into jaayden/codagt-928-track-local-tool-executio…
jaaydenh Aug 19, 2026
| https://github.com/coder/coder/pull/28211/commits/43749fe29b3a1686104b51e081adda2565b93139 |
|
a2d1778
docs(coderd/x/chatd): document tool runtime billing
jaaydenh Aug 19, 2026
| https://github.com/coder/coder/pull/28211/commits/a2d17782ccf4e3b8c96ffd640242047774cbfb9b |
|
fd35fd8
chore: cleanup for comments
jaaydenh Aug 20, 2026
| https://github.com/coder/coder/pull/28211/commits/fd35fd8a8eac6e7a76f3de99282750f248d60981 |
|
82dcbcf
chore: simplifications
jaaydenh Aug 20, 2026
| https://github.com/coder/coder/pull/28211/commits/82dcbcf13ec1fab39187d08dbd4cd645a26b663c |
|
d52fd1a
refactor(coderd/x/chatd): simplify tool runtime billing
jaaydenh Aug 20, 2026
| https://github.com/coder/coder/pull/28211/commits/d52fd1a50afcbcb3b8be33aabca25338698a9391 |
|
Clear filters
| https://github.com/coder/coder/pull/28211/files |
| Please reload this page | https://github.com/coder/coder/pull/28211/files |
| Please reload this page | https://github.com/coder/coder/pull/28211/files |
|
querier_test.go
| https://github.com/coder/coder/pull/28211/files#diff-e13ad743f9f1f9497c5baef54782ac6ff18a256f13cc916024ea8f1f91297740 |
|
events.go
| https://github.com/coder/coder/pull/28211/files#diff-759d1edda74e72df0ec269bc9ec901887dceef10c1a81caf408b6fc85a125eec |
|
ARCHITECTURE.md
| https://github.com/coder/coder/pull/28211/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
attempt.go
| https://github.com/coder/coder/pull/28211/files#diff-2af85f428a4b2a7d749cd4dd1fa598252809113fcdb59374ad92b13c1e6a547e |
|
chatd_test.go
| https://github.com/coder/coder/pull/28211/files#diff-3338fcffc67b242e571b3887687ece35664e63a1ca4ff4c77020b2e8c91a5faa |
|
chatloop.go
| https://github.com/coder/coder/pull/28211/files#diff-e2776f6a44f3ad382b7c593c2479252d1f118734a0cd737a52ecac379fa29a14 |
|
chatloop_run_internal_test.go
| https://github.com/coder/coder/pull/28211/files#diff-88e7a5cd1ee192b98c6461ef4e67f5f0c8be9fb678df8af42a4bdc3d78534f86 |
|
runtime_test.go
| https://github.com/coder/coder/pull/28211/files#diff-86787a0a3d424f50bb05ec3bc625227e21da170b7f91f066c349ba1879bdf365 |
|
generation.go
| https://github.com/coder/coder/pull/28211/files#diff-dfd518003ddc50ff97f724f3fe144867eb2719d1e3e8796a68a245a579a1a75c |
|
message_conversion.go
| https://github.com/coder/coder/pull/28211/files#diff-004cf62cd226369ae66789b10a8ad851a7337c387e09b31f80c01cab94b16463 |
|
message_conversion_test.go
| https://github.com/coder/coder/pull/28211/files#diff-cdab65ab9c42d72fb7d96ce0c1f4e317f33bbd424a01bb0dce11d30641038b7c |
|
message_part_buffer.go
| https://github.com/coder/coder/pull/28211/files#diff-55e9d508af152e04bab1926a089d2a5c2ee443b61dbfc1e8b918a374ced57f11 |
|
message_part_buffer_test.go
| https://github.com/coder/coder/pull/28211/files#diff-3383a60bd23d9a02fe913ea20e86103b3ba50af427c5f5d83c886104ed2c9ef7 |
|
options.go
| https://github.com/coder/coder/pull/28211/files#diff-59811c2026150ec416c1935b2c1ce74a58f455a8d96e2335509cab3e438f2a9a |
|
runner.go
| https://github.com/coder/coder/pull/28211/files#diff-48ccd7c1a18e73c0d04bc0294dae9341349f4ce67c6617956e46ff0efc19d5c7 |
|
subagent_catalog.go
| https://github.com/coder/coder/pull/28211/files#diff-0809f1d6e86222a6303458acec3900d3599bc9182da8d3b097e962fac463f1ce |
|
subagent_internal_test.go
| https://github.com/coder/coder/pull/28211/files#diff-e04a883d6f5ab02b9267703ba983fde54b8f95e5cc96fa1aad94cbf09850d254 |
|
tasks.go
| https://github.com/coder/coder/pull/28211/files#diff-12836e96198832ba2e387a5908311c071c67150af3b4870e188f6cb99e6b49ad |
|
tasks_test.go
| https://github.com/coder/coder/pull/28211/files#diff-af7e22c79d9c4821aef8979ac45931a9816009a7f8df63bfef299e569b82253e |
|
toolinput.go
| https://github.com/coder/coder/pull/28211/files#diff-e307f583787d0135f8434c75ba825c5798b11267802503c3fba5e100c24f522d |
|
toolinput_internal_test.go
| https://github.com/coder/coder/pull/28211/files#diff-12bb05a2fdfd600c3db436b4061ba326f543a8e6b36dc4fb10cb47824b52a053 |
| coderd/database/querier_test.go | https://github.com/coder/coder/pull/28211/files#diff-e13ad743f9f1f9497c5baef54782ac6ff18a256f13cc916024ea8f1f91297740 |
|
View file
| https://github.com/coder/coder/blob/d52fd1a50afcbcb3b8be33aabca25338698a9391/coderd/database/querier_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28211/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28211/files#diff-e13ad743f9f1f9497c5baef54782ac6ff18a256f13cc916024ea8f1f91297740 |
|
| https://github.com/coder/coder/pull/28211/files#diff-e13ad743f9f1f9497c5baef54782ac6ff18a256f13cc916024ea8f1f91297740 |
|
| https://github.com/coder/coder/pull/28211/files#diff-e13ad743f9f1f9497c5baef54782ac6ff18a256f13cc916024ea8f1f91297740 |
|
| https://github.com/coder/coder/blob/main/CODEOWNERS#L28 |
| coderd/usage/usagetypes/events.go | https://github.com/coder/coder/pull/28211/files#diff-759d1edda74e72df0ec269bc9ec901887dceef10c1a81caf408b6fc85a125eec |
|
View file
| https://github.com/coder/coder/blob/d52fd1a50afcbcb3b8be33aabca25338698a9391/coderd/usage/usagetypes/events.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28211/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28211/files#diff-759d1edda74e72df0ec269bc9ec901887dceef10c1a81caf408b6fc85a125eec |
|
| https://github.com/coder/coder/pull/28211/files#diff-759d1edda74e72df0ec269bc9ec901887dceef10c1a81caf408b6fc85a125eec |
| coderd/x/chatd/ARCHITECTURE.md | https://github.com/coder/coder/pull/28211/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
View file
| https://github.com/coder/coder/blob/d52fd1a50afcbcb3b8be33aabca25338698a9391/coderd/x/chatd/ARCHITECTURE.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28211/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28211/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
| https://github.com/coder/coder/pull/28211/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
| https://github.com/coder/coder/pull/28211/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
| https://github.com/coder/coder/pull/28211/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
| coderd/x/chatd/attempt.go | https://github.com/coder/coder/pull/28211/files#diff-2af85f428a4b2a7d749cd4dd1fa598252809113fcdb59374ad92b13c1e6a547e |
|
View file
| https://github.com/coder/coder/blob/d52fd1a50afcbcb3b8be33aabca25338698a9391/coderd/x/chatd/attempt.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28211/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28211/files#diff-2af85f428a4b2a7d749cd4dd1fa598252809113fcdb59374ad92b13c1e6a547e |
|
| https://github.com/coder/coder/pull/28211/files#diff-2af85f428a4b2a7d749cd4dd1fa598252809113fcdb59374ad92b13c1e6a547e |
| coderd/x/chatd/chatd_test.go | https://github.com/coder/coder/pull/28211/files#diff-3338fcffc67b242e571b3887687ece35664e63a1ca4ff4c77020b2e8c91a5faa |
|
View file
| https://github.com/coder/coder/blob/d52fd1a50afcbcb3b8be33aabca25338698a9391/coderd/x/chatd/chatd_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28211/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28211/files#diff-3338fcffc67b242e571b3887687ece35664e63a1ca4ff4c77020b2e8c91a5faa |
|
| https://github.com/coder/coder/pull/28211/files#diff-3338fcffc67b242e571b3887687ece35664e63a1ca4ff4c77020b2e8c91a5faa |
| Please reload this page | https://github.com/coder/coder/pull/28211/files |
| Please reload this page | https://github.com/coder/coder/pull/28211/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 |