Commit Graph
1 Commits
Author SHA1 Message Date
CatoandClaude Fable 5.1 6709c5df7a fix(loki): own-key turns get time to think, a way out when they fail, and settings that say what they did (#1124)
* fix(loki): own-key turns get time to think, a way out when they fail, and settings that say what they did

From George's first real session on his own key (xAI grok-4.7, 2026-10-10):

- A model call is bounded by silence, not a stopwatch (lib/agent/call-timeout.ts):
  first byte within 90 s on an own key (30 s on the free chain), at most 30 s
  between bytes, a 5-minute ceiling. The single 30 s AbortSignal.timeout on
  the whole fetch killed a reasoning model that thought for longer than that.
  The failure sentence says which limit hit. Fake-clock test.
- A turn the person's own model failed offers "Answer with the free models
  instead" under it (meta.ownModelFailed + pendingText → OwnModelFallbackOffer):
  the same words on the free chain, for that turn only (AskLokiOpts.pool,
  body.pool), chosen by them — never a silent switch. The error sentence drops
  the walker's "no chat model answered:" plumbing.
- Model picker: the card and its rows are shrink-0 — in the phone sheet they
  were flex items of a height-capped scroller and shrank to 56px, so a
  two-line subtitle spilled over the next row. A vendor label already cased
  ("xAI") is no longer re-cased to "XAI".
- Settings → AI: each key's text block has basis-56, so the buttons wrap under
  it instead of squeezing "grok-4.7" into one letter per line; break-words.
  Every action leaves a sentence (added / changed / order saved / removed),
  and a funded add runs POST /api/settings/model/test — one short real turn on
  that key, timed — so "added" reads "Answered in 1.3 s — 'Hello…'". A Test
  button per row repeats it.
- The key field is type="text" + ui-input-secret (masked), so the browser's
  password manager stops offering to save an API key as the site's login.
- AI capacity copy no longer claims every answer runs on the free tier.
- CHANGELOG; models-and-money.md: time to think, proof that it works.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKx4TPejLvFR9Uj4xrTf6Y

* chore(deps): chatkit 0.7.0 — the words as they are heard while the take is live

Pins @bitbaum/chatkit to b8b613d0 (bitbaum/chatkit#15): the browser's
recogniser previews the words beside the server-leg recording, dimmed while
the server transcribes, replaced by its words when they land. Lock entries
edited the way main's last bump was (codeload tarball, no integrity).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKx4TPejLvFR9Uj4xrTf6Y

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 01:35:04 -07:00