Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ type LoginProviderCompletionOption = {
const AUTH_TYPE_ORDER = { oauth: 0, api_key: 1 } satisfies Record<AuthSelectorProvider["authType"], number>;
const DIFFEX_ACCOUNT_LOGIN_ID = "diffex";
const DIFFEX_ACCOUNT_SELECTOR_ID = "diffex-account";
const DIFFEX_ACCOUNT_LOGIN_LABEL = "Sign in to Diffex";

function createFuzzyAutocompleteItems<T>(
items: T[],
Expand Down Expand Up @@ -6238,7 +6237,7 @@ export class InteractiveMode {
const availableAuthTypes = providerOptions
? new Set(providerOptions.map((provider) => provider.authType))
: new Set<AuthSelectorProvider["authType"]>(["oauth", "api_key"]);
const options: string[] = providerOptions ? [] : [DIFFEX_ACCOUNT_LOGIN_LABEL];
const options: string[] = [];
if (availableAuthTypes.has("oauth")) {
options.push(subscriptionLabel);
}
Expand Down Expand Up @@ -6268,10 +6267,6 @@ export class InteractiveMode {
options,
(option) => {
done();
if (option === DIFFEX_ACCOUNT_LOGIN_LABEL) {
void this.showDiffexAccountLoginDialog();
return;
}
const authType = option === subscriptionLabel ? "oauth" : "api_key";
if (providerOptions) {
const providerOption = providerOptions.find((provider) => provider.authType === authType);
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-candidate-artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
os.write(fd, b"/login\r")
stage = "login"
elif stage == "login" and "Select authentication method:" in text:
os.write(fd, b"\x1b[B\r")
os.write(fd, b"\r")
stage = "accounts"
elif stage == "accounts" and all(
name in text for name in ["OpenAI Codex", "Radius", "xAI"]
Expand Down
Loading