Title: Boolean options set to false in config.yaml are parsed as true · Issue #8049 · coder/code-server · GitHub
Open Graph Title: Boolean options set to false in config.yaml are parsed as true · Issue #8049 · coder/code-server
X Title: Boolean options set to false in config.yaml are parsed as true · Issue #8049 · coder/code-server
Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Not relevant; parsing occurs when code-server starts. Local OS: Not relevant. Remote OS: Not captured; this report is based on the s...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Not relevant; parsing occurs when code-server starts. Local OS: Not relevant. Remote OS: Not...
X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Not relevant; parsing occurs when code-server starts. Local OS: Not relevant. Remote OS: Not...
Opengraph URL: https://github.com/coder/code-server/issues/8049
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Boolean options set to false in config.yaml are parsed as true","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### OS/Web Information\n\nWeb Browser: Not relevant; parsing occurs when code-server starts.\nLocal OS: Not relevant.\nRemote OS: Not captured; this report is based on the source code and the reproduction reported in PR #7914.\nRemote Architecture: Not captured.\ncode-server --version: v4.141.0 is affected according to its source code; no local version output was captured.\n\n### Steps to Reproduce\n\n1. Add enable-remote-storage: false to config.yaml.\n2. Start code-server without a command-line override for this option.\n3. Observe that remote storage is enabled, as reported in [PR #7914](https://github.com/coder/code-server/pull/7914).\n\n### Expected\n\nRemote storage remains disabled when the YAML value is false.\n\n### Actual\n\nRemote storage is enabled. parseConfigFile() converts the entry to --enable-remote-storage=false, but the shared argument parser sets any boolean option it encounters to true without checking its value.\n\n### Logs\n\n```shell\n\n```\n\n### Screenshot/Video\n\n_No response_\n\n### Does this bug reproduce in native VS Code?\n\nThis cannot be tested in native VS Code\n\n### Does this bug reproduce in VS Code web?\n\nThis cannot be tested in VS Code web\n\n### Does this bug reproduce in GitHub Codespaces?\n\nThis cannot be tested in GitHub Codespaces\n\n### Are you accessing code-server over a secure context?\n\n- [ ] I am using a secure context.\n\n### Notes\n\nThis is a code-server config.yaml parsing issue, not specific to remote storage. Other options declared as booleans follow the same path. The command-line form --flag=false is also silently interpreted as true. See the [YAML conversion and boolean parser](https://github.com/coder/code-server/blob/8be4df7/src/node/cli.ts). Regression tests should cover both true and false.","author":{"url":"https://github.com/Daywin67","@type":"Person","name":"Daywin67"},"datePublished":"2026-10-09T12:57:01Z","url":"https://github.com/coder/code-server/issues/8049"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:912e9cd8-691f-1dd8-4147-bb9761c1caaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2B6:CC1A4:2CF9C40:39347BE:6B01B474 |
| html-safe-nonce | 7a8f48b4ad9af6ca9c8e9c7bc51fa049d01cffba25dcd88c46e0e405e6a23de5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkI2OkNDMUE0OjJDRjlDNDA6MzkzNDdCRTo2QjAxQjQ3NCIsInZpc2l0b3JfaWQiOiI1OTI0MjUwODYyMjIxMzc0NTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6a4af1b84dcd46241ed0c14a83b74b70f3c103cf568c36146152165015a06a9a |
| hovercard-subject-tag | issue:5778461907 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/8049/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3ac0a200e6aeeb6ada6159b699ea0be667ba7b58e78abcf3cb82aeb16dc0ccb/coder/code-server/issues/8049 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3ac0a200e6aeeb6ada6159b699ea0be667ba7b58e78abcf3cb82aeb16dc0ccb/coder/code-server/issues/8049 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Not relevant; parsing occurs when code-server starts. Local OS: Not relevant. Remote OS: Not... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Daywin67 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| 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 |
| react-app-name | issues |
Links:
Viewport: width=device-width