{"record":{"id":"9964a2d8606b92ec","repo":"gitbutlerapp/gitbutler","slug":"could-not-determine-which-accounts-to-delete","errorCode":null,"errorMessage":"Could not determine which accounts to delete","messagePattern":"Could not determine which accounts to delete","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"warning","filePath":"crates/but/src/command/config.rs","lineNumber":1356,"sourceCode":"        }\n        _ => {\n            // Multiple accounts: prompt user to select\n            let Some(mut input) = out.prepare_for_terminal_input() else {\n                anyhow::bail!(\"Username ambiguous, got {accounts_to_delete:?}\");\n            };\n            let account_options = accounts_to_delete\n                .into_iter()\n                .map(|account| (account.to_string(), account))\n                .collect::<Vec<_>>();\n            let account_options = nonempty::NonEmpty::from_vec(account_options)\n                .context(\"No accounts available to forget\")?;\n\n            let selected_accounts = input\n                .prompt_multi_select(\n                    \"Which of the following accounts do you want to forget?\",\n                    &account_options,\n                )?\n                .ok_or_else(|| anyhow::anyhow!(\"Could not determine which accounts to delete\"))?;\n\n            if selected_accounts.is_empty() {\n                writeln!(input, \"No accounts were selected to forget.\")?;\n                return Ok(());\n            }\n\n            for account in selected_accounts {\n                forget_account(account)?;\n                writeln!(input, \"Forgot forge account '{account}'\")?;\n            }\n        }\n    }\n\n    Ok(())\n}\n\nfn ai_config_with_repo(\n    ctx: &mut Context,","sourceCodeStart":1338,"sourceCodeEnd":1374,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/caf1f223d3cfb94488c9198ad34487c6006c648f/crates/but/src/command/config.rs#L1338-L1374","documentation":"In the account-forget flow, the user is shown their stored forge accounts in a multi-select picker; this error occurs when prompt_multi_select returns None — the picker was cancelled outright (as opposed to an empty confirmed selection, which is handled gracefully with 'No accounts were selected to forget.'). So the error strictly means 'picker aborted', not 'nothing selected'.","triggerScenarios":"Running the forget-account command, then pressing Esc/Ctrl-C in the multi-select instead of confirming a (possibly empty) selection with Enter.","commonSituations":"User opens the forget dialog just to look at stored accounts and backs out with Esc.","solutions":["If you want to forget nothing, confirm an empty selection with Enter — that path prints 'No accounts were selected to forget.' and exits cleanly.","If you do want to forget accounts, space-select them and press Enter.","Treat this error as harmless: nothing was modified."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"match forget_accounts(out) {\n    Err(e) if e.to_string().contains(\"Could not determine which accounts to delete\") => {\n        Ok(()) // picker aborted; no accounts were touched\n    }\n    other => other,\n}","preventionTips":["To change nothing, confirm an empty selection with Enter rather than Esc.","Remember the destructive path only starts after a confirmed selection."],"tags":["interactive","picker","accounts","user-cancellation"],"backgroundTag":"prompt-cancelled","analyzedSha":"caf1f223d3cfb94488c9198ad34487c6006c648f","analyzedAt":"2026-08-20T07:55:40.983Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}