WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 06:00:44 +01:00
parent 82347a58ed
commit 231e8cd136
661 changed files with 4924 additions and 64817 deletions

View File

@@ -185,21 +185,20 @@ requires_openai_auth = true
&["--profile", "work", "--no-daemon", "verify the gateway"],
)?;
terminal
.wait_for_screen("Sign in another way")
.wait_for_screen("Use a custom provider or gateway")
.with_context(|| terminal.screen_contents())?;
// Startup drains input after its first draw. Retry the menu shortcut until it is accepted.
// Startup drains input after its first draw. Retry the navigation until it is accepted.
let deadline = std::time::Instant::now() + Duration::from_secs(/*secs*/ 30);
while !terminal.screen_contains("Use a custom provider or gateway") {
while !terminal.screen_contains("> 2. Use a custom provider or gateway") {
ensure!(
std::time::Instant::now() < deadline,
"gateway option missing: {}",
"gateway option was not highlighted: {}",
terminal.screen_contents()
);
terminal.write_input(b"2")?;
terminal.write_input(b"\x1b[B")?;
terminal.read_output(Duration::from_millis(/*millis*/ 50))?;
}
// Arrow navigation avoids carrying the menu shortcut across two screens.
terminal.write_input(b"\x1b[B\r")?;
terminal.write_input(b"\r")?;
terminal.wait_for_screen("Office gateway")?;
terminal.write_input(b"\x1b[H\r")?;
terminal.wait_for_screen("Paste or type your API key")?;