Files
loki/scripts
CatoandClaude 24e42b8810 fix(kickoff): Make it happen survives leaving the page and a model failure (#954)
A phone session on 2026-09-28 ("Zurich Sublet Compliance & Concierge
Service") pressed Make it happen, saw "Could not extract a profile from that
text", went to Terminal to watch, found "No session named …", and came back
to a card that had forgotten the run. No agent ever appeared.

- Profile extraction: the fast model is a reasoning model whose thinking is
  billed against max_tokens. 900 tokens for ~20 keys of up to 400 chars cut
  rich briefs off mid-JSON every time. Raised to 3000 (roadmap 1200 -> 2500)
  and a truncated reply now keeps every finished key (salvageTruncatedObject,
  opt-in, strict reader unchanged).
- The brief is saved BEFORE the model call, so a model outage no longer
  costs the operator their text or leaves dispatch with "Describe the
  project first".
- The kickoff run moved out of component state into lib/kickoff-run: it
  keeps going across in-app navigation, is live again on return, is mirrored
  to sessionStorage (a reload reports "interrupted", never silently done),
  and a second press cannot start a second agent.
- The result names where the agent went: working (Watch it work), queued with
  no builder online (says so, links Connect your computer / Control), or not
  started (Try again). Step notes sit under their label so phones read them.
- Terminal's empty state shows the kickoff's live steps for that project
  instead of a generic "No session named …".
- Control peek drawer header wraps on phones instead of painting the
  Snapshot subtitle over the Activity button.


Claude-Session: https://claude.ai/code/session_016aYbEpWEk7bkf1qt44Xtbh

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-28 05:19:29 -07:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00