Skip to content

fix(cli): Respect enable_hints config option - #2006

Merged
gtema merged 1 commit into
mainfrom
claude/laughing-bardeen-gbuxpw
Sep 18, 2026
Merged

gtema merged 1 commit into
mainfrom
claude/laughing-bardeen-gbuxpw

Conversation

@gtema

@gtema gtema commented Sep 17, 2026

Copy link
Copy Markdown
Owner

The enable_hints setting was parsed but never consulted, so hints kept
printing even with enable_hints: false in the config file.

--cli-config used default_value_t with Config's Display impl returning
an empty string, so clap re-parsed that empty default through
parse_config on every real run, discarding whatever Config::new() had
loaded from ~/.config/osc. User config (e.g. enable_hints: false) was
silently ignored. Switch the field to skip so Config::new() result is
used directly.

Assisted-By: Claude Sonnet 5 noreply@anthropic.com
Signed-off-by: Artem Goncharov artem.goncharov@gmail.com

The `enable_hints` setting was parsed but never consulted, so hints kept
printing even with `enable_hints: false` in the config file.

`--cli-config` used default_value_t with Config's Display impl returning
an empty string, so clap re-parsed that empty default through
parse_config on every real run, discarding whatever Config::new() had
loaded from ~/.config/osc. User config (e.g.  enable_hints: false) was
silently ignored. Switch the field to `skip` so Config::new() result is
used directly.

Assisted-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
@gtema gtema changed the title fix(cli): Respect enable_hints config option The enable_hints setting was parsed but never consulted, so hints kept printing even with enable_hints: false in the config file. --cli-config used default_value_t with Config's Display impl returning an empty string, so clap re-parsed that empty default through parse_config on every real run, discarding whatever Config::new() had loaded from ~/.config/osc. User config (e.g. enable_hints: false) was silently ignored. Switch the field to skip so Config::new() result is used directly. Assisted-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com> fix(cli): Respect enable_hints config option Sep 17, 2026
@gtema gtema changed the title fix(cli): Respect enable_hints config option fix(cli): Respect enable_hints config option Sep 17, 2026
@gtema gtema linked an issue Sep 17, 2026 that may be closed by this pull request
@gtema
gtema merged commit 3fd1230 into main Sep 18, 2026
20 checks passed
@gtema-release-plz gtema-release-plz Bot mentioned this pull request Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable Hints in osc

1 participant