René's URL Explorer Experiment


Title: feat: add chat debug HTTP handlers and API docs by ThomasK33 · Pull Request #23918 · coder/coder · GitHub

Open Graph Title: feat: add chat debug HTTP handlers and API docs by ThomasK33 · Pull Request #23918 · coder/coder

X Title: feat: add chat debug HTTP handlers and API docs by ThomasK33 · Pull Request #23918 · coder/coder

Description: Summary Add REST endpoints for listing debug runs by chat, fetching a single debug run with its steps, and managing the deployment-wide and per-user debug logging settings. Register the routes in the experimental chats route group. This is PR 6/9 in the chat debug logging stack. Changes HTTP handlers (coderd/exp_chats.go): GET /api/experimental/chats/config/debug-logging / PUT — deployment-wide admin toggle that controls whether users may opt into debug logging. GET /api/experimental/chats/config/user-debug-logging / PUT — per-user opt-in (also reports whether the deployment forces it on or admins disallow it). GET /api/experimental/chats/{chat}/debug/runs — list debug run summaries for a chat (capped at 100, ordered most-recent first). GET /api/experimental/chats/{chat}/debug/runs/{run} — fetch a single debug run with its full step history embedded. SDK clients (codersdk/chats.go): typed ExperimentalClient methods for each new endpoint. Route registration (coderd/coderd.go): wires the new endpoints into the experimental chats route group. Authorization: deployment/user-toggle handlers use the standard RBAC checks; per-chat run endpoints rely on httpmw.ExtractChatParam and dbauthz re-authorization on read for chat ownership. Stack overview Database schema & SDK types Types, context, and model normalization Recorder, transport, and redaction Service and summary aggregation Chat lifecycle wiring → HTTP handlers and API docs (this PR) Frontend API layer and panel utilities Debug panel components and settings Storybook stories Generated with mux • Model: anthropic:claude-opus-4-6 • Thinking: xhigh

Open Graph Description: Summary Add REST endpoints for listing debug runs by chat, fetching a single debug run with its steps, and managing the deployment-wide and per-user debug logging settings. Register the routes in t...

X Description: Summary Add REST endpoints for listing debug runs by chat, fetching a single debug run with its steps, and managing the deployment-wide and per-user debug logging settings. Register the routes in t...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fdab349d-acc0-8c79-4b91-7fa426b19bbc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id91EC:313081:616F1:80304:6B017FF9
html-safe-nonce4b2e0db39669d2337206c399d8c1647a497df199afcdf36581eab4be60f7683f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUVDOjMxMzA4MTo2MTZGMTo4MDMwNDo2QjAxN0ZGOSIsInZpc2l0b3JfaWQiOiI3MjM2NjM3NTgzMzM2Mzc0MjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac29a50a25b8f042326d60b653ff7d6bdbe041cc5c3af2af31085161a5a501c658
hovercard-subject-tagpull_request:3477561516
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/23918/files
twitter:imagehttps://avatars.githubusercontent.com/u/2198487?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2198487?s=400&v=4
og:image:altSummary Add REST endpoints for listing debug runs by chat, fetching a single debug run with its steps, and managing the deployment-wide and per-user debug logging settings. Register the routes in t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/coder/coder/pull/23918/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F23918%2Ffiles
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%2F23918%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/coder/coder/pull/23918/files
Reloadhttps://github.com/coder/coder/pull/23918/files
Reloadhttps://github.com/coder/coder/pull/23918/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
ThomasK33https://github.com/ThomasK33
mainhttps://github.com/coder/coder/tree/main
devtools/06-http-handlers-api-docshttps://github.com/coder/coder/tree/devtools/06-http-handlers-api-docs
Conversation 480 https://github.com/coder/coder/pull/23918
Commits 2 https://github.com/coder/coder/pull/23918/commits
Checks 34 https://github.com/coder/coder/pull/23918/checks
Files changed https://github.com/coder/coder/pull/23918/files
Please reload this pagehttps://github.com/coder/coder/pull/23918/files
feat: add chat debug HTTP handlers and API docs https://github.com/coder/coder/pull/23918/files#top
Show all changes 2 commits https://github.com/coder/coder/pull/23918/files
cd3cebd feat: add chat debug HTTP handlers and API docs ThomasK33 Apr 8, 2026 https://github.com/coder/coder/pull/23918/commits/cd3cebdd9c3bc7109399f3e976b320dd3283e508
acd317b review: address handler nits and add HTTP tests for debug runs ThomasK33 Apr 17, 2026 https://github.com/coder/coder/pull/23918/commits/acd317bef0b04493107325dbeef558080e0e37d7
Clear filters https://github.com/coder/coder/pull/23918/files
Please reload this pagehttps://github.com/coder/coder/pull/23918/files
Please reload this pagehttps://github.com/coder/coder/pull/23918/files
coderd.go https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
db2sdk.go https://github.com/coder/coder/pull/23918/files#diff-a4e96fdc52971c5faf3ae7555ef2279ff9b20a2a4ec7999b7c54135ed72c8bea
db2sdk_test.go https://github.com/coder/coder/pull/23918/files#diff-ee5aa81b541657a242a7b1666486fe3e652625bf96d6c2f98b582df551d5cae5
exp_chats.go https://github.com/coder/coder/pull/23918/files#diff-8e955e7c41dead7f4247d5779fea96cbf0a3c829549375a423cdc808a3cb8a2f
exp_chats_test.go https://github.com/coder/coder/pull/23918/files#diff-7f0a3a4d3a58135df3e5c6658429ca020a5e473c7191760be6efcf490c7c5a63
chats.go https://github.com/coder/coder/pull/23918/files#diff-897877136a20fe9613cd72c761f37a0fe0d71f4cf020fe929369b2e944ceea98
typesGenerated.ts https://github.com/coder/coder/pull/23918/files#diff-0db594bd57651eba54a837eab00864ea5f931dfdf058eb3dc3b9e2e211fa6e7a
coderd/coderd.gohttps://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
View file https://github.com/coder/coder/blob/acd317bef0b04493107325dbeef558080e0e37d7/coderd/coderd.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/23918/{{ revealButtonHref }}
https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/23918/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
coderd/database/db2sdk/db2sdk.gohttps://github.com/coder/coder/pull/23918/files#diff-a4e96fdc52971c5faf3ae7555ef2279ff9b20a2a4ec7999b7c54135ed72c8bea
View file https://github.com/coder/coder/blob/acd317bef0b04493107325dbeef558080e0e37d7/coderd/database/db2sdk/db2sdk.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/23918/{{ revealButtonHref }}
https://github.com/coder/coder/pull/23918/files#diff-a4e96fdc52971c5faf3ae7555ef2279ff9b20a2a4ec7999b7c54135ed72c8bea
https://github.com/coder/coder/pull/23918/files#diff-a4e96fdc52971c5faf3ae7555ef2279ff9b20a2a4ec7999b7c54135ed72c8bea
https://github.com/coder/coder/pull/23918/files#diff-a4e96fdc52971c5faf3ae7555ef2279ff9b20a2a4ec7999b7c54135ed72c8bea
Please reload this pagehttps://github.com/coder/coder/pull/23918/files
https://github.com/coder/coder/pull/23918/files#diff-a4e96fdc52971c5faf3ae7555ef2279ff9b20a2a4ec7999b7c54135ed72c8bea
coderd/database/db2sdk/db2sdk_test.gohttps://github.com/coder/coder/pull/23918/files#diff-ee5aa81b541657a242a7b1666486fe3e652625bf96d6c2f98b582df551d5cae5
View file https://github.com/coder/coder/blob/acd317bef0b04493107325dbeef558080e0e37d7/coderd/database/db2sdk/db2sdk_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/23918/{{ revealButtonHref }}
https://github.com/coder/coder/pull/23918/files#diff-ee5aa81b541657a242a7b1666486fe3e652625bf96d6c2f98b582df551d5cae5
https://github.com/coder/coder/pull/23918/files#diff-ee5aa81b541657a242a7b1666486fe3e652625bf96d6c2f98b582df551d5cae5
Please reload this pagehttps://github.com/coder/coder/pull/23918/files
Please reload this pagehttps://github.com/coder/coder/pull/23918/files
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.