Commit Graph
1 Commits
Author SHA1 Message Date
yetone b62117287b gui: a moved plugin's first question offers its other ways, the API key among them
mahiro233 on Discord (v0.1.3372, Kiro plugin 0.1.34): Kiro's account
sheet asked "Choose a sign-in method" with three choices and Cancel, and
offered no API key. The plugin has one (its third way, "Kiro API key
(ksk_…)"), but a moved subscription opens its plugin's first way at once
(#777), and when that way asks a question first, as Kiro's does since
plugin 0.1.21, the question had no way to the others: "Other ways to sign
in…" and "Use an API key instead" are on the waiting box only, which the
question comes before. Kiro CLI's or IDE's sign-in was out of reach too.

The first question of a moved subscription's way, when the plugin has
other ways, now has "Other ways to sign in…" (already in every language),
which shows the way picker, as the waiting box's does. A later question
(Kiro's Start URL) doesn't: the user chose that way already.

Test: plugin-ask-ways.test.cjs, en and zh, Chromium and WebKit: the
question's choices and hint, the link, the picker with the key way, the
key field titled by its label, nothing signed in before a key, no link on
the Start URL question, and the plugin's words in Chinese where it gives
them.

Run on mote at the pushed head, Chromium and WebKit: plugin-ask-ways,
plugin-other-ways, -moved-signin, -key-hint, -password-prompt, -signin,
-keyless-signin, signin-paste-plugin, deprecated-subscriptions,
i18n-keys and i18n-en-no-cjk, 49 of 50 each; the one red is i18n-keys'
"a plugin's words are its own", the same 3 words on origin/main
2a48974e8 (#5327, #5426, #5482). TestCoreScriptBudget is red at both, as
below. Broken by hand: with origin/main's app.js,
plugin-ask-ways is red (en waits for the link, zh for the Chinese
question). Not tried: a real Kiro key (none entered anywhere).

Core script budget: the two commits add 1,284 bytes to app.js, paid for
by cutting the Add sheet's comments on retired built-ins (Cursor, Grok,
WorkBuddy, Command Code, Qoder, Devin, Zed, Factory, MiMo, Kiro) and
inLang's to one line: the core is 1,535,556, 260 under origin/main's
1,535,816, no raise. Main stays over 1,533,802 from 40cbdaa7e (#5795).
2026-11-09 18:36:07 +08:00