Skip to content

fix(vscode-web): point app healthcheck at /version instead of /healthz#923

Open
schnell3526 wants to merge 1 commit into
coder:mainfrom
schnell3526:fix/vscode-web-healthcheck
Open

fix(vscode-web): point app healthcheck at /version instead of /healthz#923
schnell3526 wants to merge 1 commit into
coder:mainfrom
schnell3526:fix/vscode-web-healthcheck

Conversation

@schnell3526

Copy link
Copy Markdown

Closes #922.

Summary

The vscode-web module's coder_app healthcheck probes /healthz, but Microsoft's standalone VS Code web server exposes no such route — it returns 404 (the path was presumably carried over from the code-server module, where code-server really does serve /healthz). Against the current stable build (1.124.2):

$ curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:13338/healthz
404
$ curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:13338/version
200

The 404 never surfaced in dashboards because the agent treats any response below 500 as healthy (agent/apphealth.go), but as-is the check only verifies that something answers HTTP on the port, and the URL misleads anyone copying the pattern into their own templates.

This switches the healthcheck to /version, which returns 200 in both the subdomain and path-based branches.

Changes

  • main.tf: healthcheck_url probes /version instead of /healthz
  • README.md: patch version bump via ./.github/scripts/version-bump.sh patch

Found while building a vscode-web dev container feature (coder/devcontainer-features#22).

The standalone VS Code web server exposes no /healthz route (it returns
404; the path was carried over from code-server, which does expose it).
The 404 never surfaced because the agent treats any response below 500
as healthy, but the check only verified that something answers HTTP on
the port. /version returns 200 in both the subdomain and path-based
cases.
@schnell3526 schnell3526 force-pushed the fix/vscode-web-healthcheck branch from da8ea51 to 0ef9483 Compare June 13, 2026 01:22
@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Jun 13, 2026

@matifali matifali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

modules/vscode-web: healthcheck probes /healthz, which the VS Code web server does not expose

2 participants