Skip to content

Fix scoped configuration editing and typed config output - #347

Merged
zurawiki merged 1 commit into
mainfrom
qol/config-editing
Sep 24, 2026
Merged

zurawiki merged 1 commit into
mainfrom
qol/config-editing

Conversation

@zurawiki

@zurawiki zurawiki commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Make configuration edits local to the selected file and key. For example, config set --local openai.retries 3 now writes an integer override without copying user settings, environment credentials, defaults, or prompts into the repository config. Deleting a key removes only that override, allowing normal precedence to resume. Preserve comments and unrelated entries with the existing toml_edit dependency.

Print booleans, numbers, and arrays from config get instead of a blank line. Validate set keys and values, and accept TOML arrays for file_ignore.

Validation: just lint build test passed, including 20 Rust tests and a CLI regression for local edits under environment overrides. Tests cover comment preservation, sparse typed edits, deletion, unknown keys, and invalid values. Removes the merged-settings deletion helper and stops using the effective settings as the edit source.

Rebased onto main at 1336779, preserving both README sections. Final checked head: ba8eca9cf6fb8d13a2e07256f6270b36af1f7456. Full local lint/build/CLI tests passed; CI passed all platform jobs, lint, the version check, and the aggregate gate.

@zurawiki
zurawiki merged commit 6cf764a into main Sep 24, 2026
8 checks passed
@zurawiki
zurawiki deleted the qol/config-editing branch September 24, 2026 15:09
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.

1 participant