4 minor findings
Findings
[minor] · With -noconf, onboarding cannot finish with a new custom folder
With -noconf, previewing a nonexistent custom folder fails and prevents onboarding completion; no current GUI launcher supplying this flag was identified.
Location: qml/onboarding_settings.cpp:285 (head).
Details and suggested fix
ReadConfigForNewDataDir checks only IsArgSet("-conf"). A negated option passes that check, but GetPathArg("-conf") returns an empty path. Joining it onto the selected folder makes the helper try to read that nonexistent folder as configuration. The resulting preview error keeps canFinish() false, including after retrying the selection. A saved GUI folder that has been deleted reaches the same branch. Core's normal config reader skips the empty path, while the base new-folder preview did not read configuration at all.
Skip configuration reading when -conf is negated and add a -noconf regression case. Preserve the distinction from -conf=: Core substitutes bitcoin.conf for an empty string and requires that explicitly selected file to be readable. Choosing the default or an existing folder, or removing -noconf, avoids the failure.
[minor] · First run on a custom signet omits the network wallets/ directory
On first use with default settings and a non-default signet challenge, preparation creates stray signet/wallets but leaves the actual signet_<magic> directory without wallets/, changing the default wallet location.
Location: qml/onboarding_settings.cpp:936 (head).
Details and suggested fix
PrepareSettingsDirectory derives the network suffix from resolved_chain, which remains signet, while the resolved settings path uses Core's challenge-specific signet_<magic> directory. The loop creates signet/wallets, then mkpath(parent) creates the actual network directory without wallets/. InitConfig and the later EnsureSettingsDirectory only add wallets/ when they create the network directory themselves, so neither repairs it. The default wallet location falls back to the network root, placing new wallets alongside blocks and chainstate across restarts. Base used GetDataDirNet() when creating this layout.
Carry the network suffix from CreateBaseChainParams(args, chain)->DataDir() into preparation instead of duplicating Core's mapping, and add a custom-signet case. Mainnet, testnet3, testnet4, regtest, and default signet are unaffected.
[minor] · Reset validates and locks the pre-reset settings.json blocksdir
Reset can fail on an externally edited settings.json blocksdir, or retain its cached path for one session; no current GUI or Core writer of this setting was found.
Location: qml/bitcoin.cpp:692 (head).
Details and suggested fix
InitConfig loads rw_settings, then startup calls GetBlocksDirPath() and locks directories before FinalizeStartupSettings clears those settings for -resetguisettings. A missing blocksdir therefore aborts startup before reset can recover the profile. An existing one is cached and locked; clearing rw_settings does not invalidate that cache, so the node uses the removed location for this run and the default on the next launch. The reset preview already discarded the old value. Base applied and wrote reset settings before node preparation.
Stage the post-reset effective settings and clear the path cache before resolving and locking directories, while retaining the original values for backup and rollback. Command-line and bitcoin.conf values must continue to survive reset. A valid command-line -blocksdir also provides a workaround.
[minor] · New-folder preview overlooks external profile resources
A new-folder preview can classify external wallets, settings, or relative configuration as fresh and enable automatic pruning; no current user combining these resources with a newly selected folder was identified.
Location: qml/onboarding_settings.cpp:1191 (head).
Details and suggested fix
For a nonexistent GUI-owned custom folder, Preview bypasses BuildProfileSummary and sets existing_profile solely from an absolute -conf argument. It ignores recognized wallets under an absolute -walletdir, an existing absolute -settings file whose values it just read, and a relative external config such as ../bitcoin.conf that the new helper successfully resolved. When pruning remains editable and default-sourced and storage is low, this classification allows an automatic prune recommendation to become touched and persist on completion. The user can see and override that recommendation. Base detected the independent wallet/settings resources; relative-config detection is a gap in the newly supported path rather than previously working behavior.
Keep the new folder's no-create summary, but include explicit external wallet data, existence of the resolved external settings file, and the config path actually read rather than the original argument's absoluteness. Add nonexistent-folder cases for each resource. Avoid restoring checks against unrelated default-directory chain data; fresh storage requirements for the new chain data can still be appropriate.