René's URL Explorer Experiment


Title: bug: Discovered devcontainers are not marked outdated after configuration changes · Issue #32066 · coder/coder · GitHub

Open Graph Title: bug: Discovered devcontainers are not marked outdated after configuration changes · Issue #32066 · coder/coder

X Title: bug: Discovered devcontainers are not marked outdated after configuration changes · Issue #32066 · coder/coder

Description: Is there an existing issue for this? I have searched the existing issues Current Behavior I am working on a prototype which uses Coder internally and AI discovered that Coder does not detect changes to devcontainer.json in all cases. The...

Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior I am working on a prototype which uses Coder internally and AI discovered that Coder does not detect change...

X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior I am working on a prototype which uses Coder internally and AI discovered that Coder does not detect change...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Discovered devcontainers are not marked outdated after configuration changes","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\nI am working on a prototype which uses Coder internally and AI discovered that Coder does not detect changes to `devcontainer.json` in all cases. The following bug report has been generated via AI based on the findings it had in its context.\n\n---\n\n### Summary\n\nWhen Coder discovers a Project on disk and adopts its existing devcontainer,\nediting `.devcontainer/devcontainer.json` does not mark the container outdated.\n\nThe same configuration edits are detected when filesystem Project discovery\nis disabled and Coder discovers the container through Docker instead.\n\nRelated feature request: #16424\n\n### Actual behavior\n\nThe devcontainer remains marked current. Its `dirty` field in\n`GET /api/v2/workspaceagents/\u003cagent-id>/containers` remains `false`.\n\nThe initial observation waited 180 seconds without detecting the change.\nShorter, focused probes reproduced the failure repeatedly.\n\nExplicitly rebuilding the devcontainer works and applies the changed\nconfiguration.\n\n### Suspected cause\n\nIn `agent/agentcontainers/api.go`:\n\n1. Filesystem Project discovery creates an entry with a nonempty `ConfigPath`\n   and stores it without registering a configuration-change watch:\n   [lines 541–565](https://github.com/coder/coder/blob/v2.39.1/agent/agentcontainers/api.go#L541-L565).\n\n2. When Docker container discovery finds that existing entry, it registers\n   a watch only if `dc.ConfigPath == \"\" && configFile != \"\"`. Because\n   filesystem discovery already populated `ConfigPath`, registration is\n   skipped. The subsequent `continue` bypasses the new-entry path:\n   [lines 970–985](https://github.com/coder/coder/blob/v2.39.1/agent/agentcontainers/api.go#L970-L985).\n\n3. By comparison, the new-entry path registers the configuration-change\n   watch when a config path is available:\n   [lines 987–1003](https://github.com/coder/coder/blob/v2.39.1/agent/agentcontainers/api.go#L987-L1003).\n\nRegistering the config watch when filesystem discovery adds the entry\nmay resolve this. No patch has been tested.\n\nA regression test could force filesystem discovery to complete before\nDocker container adoption, then edit the configuration and verify that\nthe devcontainer becomes outdated.\n\n### Relevant Log Output\n\n```shell\n\n```\n\n### Expected Behavior\n\nCoder detects the configuration change and marks the devcontainer outdated.\n\n### Steps to Reproduce\n\n1. In a Coder workspace with Docker and devcontainer support, place a Git\n   repository containing `.devcontainer/devcontainer.json` where Coder's\n   filesystem Project discovery can find it.\n2. Create the container independently:\n   `devcontainer up --workspace-folder \u003crepository>`\n3. Start or restart the workspace's Coder agent with filesystem Project\n   discovery enabled.\n4. Wait until Coder discovers the repository and reports its existing\n   devcontainer as running.\n5. Edit `.devcontainer/devcontainer.json`, for example by changing a value\n   in `containerEnv`.\n6. Check whether Coder marks the devcontainer outdated.\n\nThe failure appears dependent on discovery order: filesystem discovery must\nrecord the repository before Coder processes its Docker container.\n\n### Environment\n\n- Coder 2.38.7, released binary\n- Coder agent running on Linux ARM64\n- Rootless Docker\n- devcontainer CLI 0.80.2\n- Filesystem Project discovery enabled:\n  `CODER_AGENT_DEVCONTAINERS_PROJECT_DISCOVERY_ENABLE=true`\n\nThe affected source file, `agent/agentcontainers/api.go`, is identical in\n2.38.7, 2.39.0 and 2.39.1. Only 2.38.7 was tested at runtime.\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/jnehlmeier","@type":"Person","name":"jnehlmeier"},"datePublished":"2026-11-11T23:46:18Z","url":"https://github.com/coder/coder/issues/32066"}

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:8936f530-6033-d9a4-8bec-3b664a6dd097
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA75E:1F35:739BC6:A1A159:6B042D99
html-safe-noncea6bf185124482d86a06edffbe34455e7a993e7564fd4cedc102ebe2a00f7864f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzVFOjFGMzU6NzM5QkM2OkExQTE1OTo2QjA0MkQ5OSIsInZpc2l0b3JfaWQiOiI4OTA2NTQ4MTA2NzAzOTQxMDE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4f9c6cd516603478a969ee5403cd9f2d89ac8a1f9b27e5ed41afb75b07564919
hovercard-subject-tagissue:6339325820
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/32066/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0e0245cb42f09b60f45b9738194dfd6269d5fc9ffe80103018eaef0398cbc1ea/coder/coder/issues/32066
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0e0245cb42f09b60f45b9738194dfd6269d5fc9ffe80103018eaef0398cbc1ea/coder/coder/issues/32066
og:image:altIs there an existing issue for this? I have searched the existing issues Current Behavior I am working on a prototype which uses Coder internally and AI discovered that Coder does not detect change...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejnehlmeier
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/32066#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F32066
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%2F32066
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/32066
Reloadhttps://github.com/coder/coder/issues/32066
Reloadhttps://github.com/coder/coder/issues/32066
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues322 (322)https://github.com/coder/coder/issues
Pull requests472 (472)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/32066
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/32066
Bughttps://github.com/coder/coder/issues?q=type:"Bug"
#32105https://github.com/coder/coder/pull/32105
bug: Discovered devcontainers are not marked outdated after configuration changeshttps://github.com/coder/coder/issues/32066#top
#32105https://github.com/coder/coder/pull/32105
https://github.com/hwang251
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
good first issueEasily solved issues suitable for starters and community contributorshttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com/jnehlmeier
jnehlmeierhttps://github.com/jnehlmeier
on Nov 11, 2026https://github.com/coder/coder/issues/32066#issue-6339325820
#16424https://github.com/coder/coder/issues/16424
lines 541–565https://github.com/coder/coder/blob/v2.39.1/agent/agentcontainers/api.go#L541-L565
lines 970–985https://github.com/coder/coder/blob/v2.39.1/agent/agentcontainers/api.go#L970-L985
lines 987–1003https://github.com/coder/coder/blob/v2.39.1/agent/agentcontainers/api.go#L987-L1003
jnehlmeierhttps://github.com/jnehlmeier
Bughttps://github.com/coder/coder/issues?q=type:"Bug"
on Nov 11, 2026https://github.com/coder/coder/issues/32066#event-35855181055
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Nov 11, 2026https://github.com/coder/coder/issues/32066#issuecomment-6809984213
Linear Codehttps://linear.app
ENG-3533https://linear.app/codercom/issue/ENG-3533
linear-codehttps://github.com/apps/linear-code
good first issueEasily solved issues suitable for starters and community contributorshttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Nov 12, 2026https://github.com/coder/coder/issues/32066#event-35953848128
linear-codehttps://github.com/apps/linear-code
hwang251https://github.com/hwang251
on Nov 12, 2026https://github.com/coder/coder/issues/32066#event-35953893559
hwang251https://github.com/hwang251
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 18, 2026https://github.com/coder/coder/issues/32066#event-36546793651
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/32066
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/32066
hwang251https://github.com/hwang251
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
good first issueEasily solved issues suitable for starters and community contributorshttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
Bughttps://github.com/coder/coder/issues?q=type:"Bug"
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.