fix(settings): rename negative settings to positive naming (disable* -> enable*)#1330
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 |
5cf66eb to
2090631
Compare
297e6ad to
39bf6ac
Compare
39bf6ac to
0bcc5a9
Compare
|
Sorry for the late response. I've rebased main and add some instructions in docs. Hopefully it will be shipped within the next 2 releases. |
Co-authored-by: Qwen-Coder <[email protected]>


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