Skip to content
pi-c Update of ”checkin/36c13f1654027961b35f4b5e03da1f23dd76fe33235b5892b195f68366e0648a”
Login

Update of ”checkin/36c13f1654027961b35f4b5e03da1f23dd76fe33235b5892b195f68366e0648a”

Overview

Artifact ID: 9a8b7c9ee85312320b6a57935a6e9eb422acd38af2160bfbb7c825361e256e8f
Page Name:checkin/36c13f1654027961b35f4b5e03da1f23dd76fe33235b5892b195f68366e0648a
Date: 2026-11-24 14:45:46
Original User: dmestas
Mimetype:text/x-markdown
Content

/auth step 3 (#72): the /auth screen

/auth lists every key and sign-in, grouped by provider with the model's provider first. Each row shows its kind, what pic last learnt of it (credit left, refused, out of credit, limited), whether it is the provider's (*) and whether the current model uses it (<- this model). A bad key is red, with the provider's reason shown in full under the list. The line above the list names the model, its key and whether the credential store has been opened yet. When the model's provider has no key, it gets a row to add one, and the last row adds a key or signs in.

Keys, all plain, with no Alt or F-keys: Enter fixes the row (uses a healthy key, replaces a refused one under its label, signs in again, or adds one), a adds (the providers, as /login shows them), d removes after y, c runs every free check now, m opens the model picker, Esc closes.

Reuse of the settings panel

/auth is drawn by panel.c, the same as /settings: a box in fullscreen, docked rows above the footer in regular mode or a small window, and one line in a tiny one. tui_panel gains title, head (a line in the filter's place, with no cursor) and hint (the keys line). A new row kind, "info", shows its value as given (red when not valid) and the row's own keys under the description. The settings panel draws exactly as before; test_tui covers the new form.

Not in this step

Tests

Tier: client (src/tui/), no new file. Clock: taste. Record: none new. Default: on.