-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(settings): rename negative settings to positive naming (disable* -> enable*) #1330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Thank you for your contribution! However, I need to point out a critical issue with the current implementation. 🚨 Problem:
|
|
Thank you for reviewing @LaZzyMan I will try to implement your suggestions in few days And will also look into backporting my google-gemini/gemini-cli#14142 |
a04cc8f to
821266f
Compare
|
Hi @LaZzyMan and @xuewenjie123 please review my PR. Below you can see me successfully testing the changes on Macbook M1 Air - First I have
Then I have
|
8f42b8b to
5cf66eb
Compare
|
Hi @LaZzyMan and @xuewenjie123 please review my PR, I have resolved the conflicts |


TLDR
Address the issue where
disableUpdateNagwas checked too late and rename alldisable*settings to positiveenable*naming:Dive Deeper
SETTINGS_VERSIONto 3 with automatic migration that inverts boolean valuesgemini.tsxbefore any network requestWhen a user has both
disableAutoUpdateanddisableUpdateNagset with different values, the migration follows this policy:Reviewer Test Plan
Use
node packages/cli/dist/index.jsdirectly (notnpm run start, which setsDEV=trueand skips update checks).Test 1: Verify update check is DISABLED
{"general": {"enableAutoUpdate": false}}in~/.qwen/settings.jsonsudo tcpdump -i en0 host registry.npmjs.org(use your active interface)node packages/cli/dist/index.jsTest 2: Verify update check is ENABLED (default)
{"general": {"enableAutoUpdate": true}}in~/.qwen/settings.jsonnode packages/cli/dist/index.jsTest 3: Verify migration
{"disableAutoUpdate": true, "disableUpdateNag": false}npm run build && npm run start{"general": {"enableAutoUpdate": false}}Testing Matrix
Linked issues / bugs
Fixes #1304