镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Boolean options set to false in config.yaml are parsed as true #8049

Description

@Daywin67

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 source code and the reproduction reported in PR #7914.
Remote Architecture: Not captured.
code-server --version: v4.141.0 is affected according to its source code; no local version output was captured.

Steps to Reproduce

  1. Add enable-remote-storage: false to config.yaml.
  2. Start code-server without a command-line override for this option.
  3. Observe that remote storage is enabled, as reported in PR #7914.

Expected

Remote storage remains disabled when the YAML value is false.

Actual

Remote 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.

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

This cannot be tested in native VS Code

Does this bug reproduce in VS Code web?

This cannot be tested in VS Code web

Does this bug reproduce in GitHub Codespaces?

This cannot be tested in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

This 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. Regression tests should cover both true and false.

Activity

  1. added
    bugSomething isn't working
    triageThis issue needs to be triaged by a maintainer
    on Oct 9, 2026
  2. linear-code commented on Oct 9, 2026

    @linear-code
  3. added and removed
    triageThis issue needs to be triaged by a maintainer
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions