From 35a0a18f684ebc8a36ac630ec443623a5614197b Mon Sep 17 00:00:00 2001 From: ygd58 Date: Thu, 9 Jul 2026 15:33:22 +0200 Subject: [PATCH 1/2] fix: config reset no longer writes undefined value to disk (#305) The reset() method had dead code: - delete config[key] removed the key from the in-memory object - writeConfig(key, undefined) then wrote key=undefined back to disk Replace both lines with removeConfig(key) which correctly deletes the key and persists the change to disk. Fixes #305 --- src/commands/config/getSetReset.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/config/getSetReset.ts b/src/commands/config/getSetReset.ts index b7499316..9a49e1a1 100644 --- a/src/commands/config/getSetReset.ts +++ b/src/commands/config/getSetReset.ts @@ -44,8 +44,7 @@ export class ConfigActions extends BaseAction { return; } - delete config[key]; - this.writeConfig(key, undefined); + this.removeConfig(key); this.succeedSpinner(`Configuration successfully reset`); } } From cb3c37a9e85c715efcc169fca92c5f48b86389c2 Mon Sep 17 00:00:00 2001 From: ygd58 Date: Thu, 9 Jul 2026 15:36:48 +0200 Subject: [PATCH 2/2] fix: setNetwork ignores empty string argument and shows interactive prompt (#306) Previously, passing an empty string to setNetwork() was treated as a valid network name due to the condition: if (networkName || networkName === "") This caused the command to search for a network named "" and always fail instead of falling through to the interactive prompt. Fix: simplify the condition to `if (networkName)` so empty strings are treated the same as undefined, correctly triggering the interactive network selection prompt. Fixes #306 --- src/commands/network/setNetwork.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/network/setNetwork.ts b/src/commands/network/setNetwork.ts index de771cb8..d6c50a5c 100644 --- a/src/commands/network/setNetwork.ts +++ b/src/commands/network/setNetwork.ts @@ -98,7 +98,7 @@ export class NetworkActions extends BaseAction { async setNetwork(networkName?: string): Promise { const entries = this.getNetworkEntries(); - if (networkName || networkName === "") { + if (networkName) { const selectedNetwork = entries.find(n => n.alias === networkName || (n.type === "built-in" && n.name === networkName), );