Repository navigation
Homogenize Add a subscription flows in the agents panel - #19926
Conversation
[Medium impact] The PR appears safe to merge. SummaryMakes subscription and API-key sign-ins more consistent in the agents panel.
No actionable issues were identified. Review was based on source inspection; tests were not run.
|
|
Read the diff, description, existing review comments, and the base branch’s contributor rules. Classification is unsettled: GPT-6 High in Codex classified this as a bug fix because account-name keystrokes are intercepted and sign-in prompts behave inconsistently; DeepSeek V4.1 Flash (default effort) classified it as an enhancement. No worker tests or verification review ran. This is waiting for the maintainer to resolve the classification before verification continues. |
What changes
Homogenizes the "Add a subscription" (and pay-as-you-go / re-auth) flows in the agents panel and fixes several inconsistencies between providers:
pasteFieldnow setspassword: trueunconditionally so Gemini (agy) and Claude sign-in codes are masked with password dots just like API keys."API key", sign-in code fields (both Gemini and Claude) show"Code", andpasteFieldclears stale input whenever leaving the prompt or flow.Escworks immediately), hides the paste/reopen links while verifying, and switches the bold heading to"Checking the code…"— matching API-key"Checking the key…".PanelKeyCatcherwhileaddNameFieldis focused so typing letters likeh/j/k/l/x, Space, or Return isn't stolen when naming an additional Claude, Codex, or Grok account.name,running, anderror: Keep the chosen provider's mark and name in the hero instead of snapping back to"Agents", clearaddProvideron cancel/completion soMorenever shows a stale"Add <Provider> account"subtitle, and share onebeginAddreset helper betweenstartAddandsignInAgain.agents.apiKeyHintfrom"It's checked with %1, then saved for pi and opencode."to"It's checked with %1, then saved in OpenCode."(keys are only saved in OpenCode).omarchy-agent-account-add: Emit@@omarchy key/@@omarchy pastebefore@@omarchy statusso the panel doesn't flash the browser-login prompt, and redirect stderr (2>&1) on multi-accountclaude/codex/groklogins to match single-account CLIs.Verification
bash test/shell.d/agents-panel-test.sh,bash test/shell.d/agent-account-test.sh, andbash test/shell.d/i18n-test.sh— all passed (including new assertions for Claude/Gemini paste-submit hiding & re-prompting, and@@omarchy keyarriving before@@omarchy status).omarchy-restart-shell) with zero QML warnings injournalctl --user -t quickshell.namestage displays Claude's mark/title (Setting up) and accepts"Work"via keyboard withoutkbeing intercepted.Subscriptions > Moredisplays"Add an agent / SUBSCRIPTION, PER USE, OR LOCAL"with no stale provider heading.Screenshots
Verified locally in the live UI (captures saved in scratch dir; not committed to the repo).