Files
Cato c0ab1f8644 fix(runs): a run with no agent is never Working or Needs you (#1749)
Run status now reconciles with the runner (lib/run-status), once, in the
run-track loader that /api/control/sessions, Watch and the run and command
routes all read:

- an open run whose agent the runner no longer has (a fresh snapshot taken
  after delivery does not list its tab, or the runner reported the agent
  exited) is Failed, cause agent_gone, "Agent exited without answering;
  Retry" (botsmann 51bbcc27 and loki 3a5a7c2b read Needs you with nothing
  listening);
- a finished run is Done or Failed, keeping what is left to do with its
  change in nextAction (six sessions read working weeks after their agents
  finished);
- the run and command routes take the run's status over the track's live
  word, so they cannot disagree with the session list.

A pull request the agent named in its handoff and opened during the run is
the run's even on a branch the runner never saw: an agent working in its own
worktree pushes from another branch than the session's checkout, and run
57632eae's track said "Nothing reached GitHub" beside loki#1747. Loki still
acts only on pull requests from the run's own branches.
2026-11-29 19:54:25 +01:00
..

Loki foundation — product redesign (Cato, 2026-09-16)

Public name: Cato only. Do not put legal names on GitHub, hire pages, or public UI.

Loki’s bar: easiest place to build things and most powerful — agent-agnostic, model-agnostic, flexible; pick the best providers. Failures always explain cause + exact next action (never bare Queued / Retry / Starting). Agents and Loki itself must never go silent while work is in flight — always show status and what happens next (same bar as human UX).

Aspiration (locked): develop everything inside Loki. No Kitty or Zellij required. Loki Terminal should reach Zellij-class quality over time; Kitty is optional overflow only. Client feedback → Implement → immediate Watch / Terminal / Loki chat paths is the core loop — keep docs, roadmap, and tests aligned with it until it works live, then keep it working.

This folder is the SSOT for a multi-PR program. Ship in the order in IMPLEMENT-ORDER.md. Each slice has its own brief; do not boil the ocean in one PR. When Cato restates the loop, update these docs in the same change set — do not let aspirations drift.

Start with LOKI-WORKS.md. It is the acceptance contract for the feedback-to-live loop, truthful status, collaboration, model independence, Loki chat, and shared packages.

Doc What
LOKI-WORKS.md Definition of working: one-click feedback-to-live, trust, roles, model independence, chat, packages, and production acceptance
HARNESS-SIMPLIFICATION.md Explicit failures, local-runner prompt, provider hot-swap, Terminal+Loki rail, kill stale identity
RUN-STATUS-SSOT.md Queued / Starting / Working / Needs you / Done / Failed — one alive bit for Feedback ↔ Terminal
AI-PROVIDERS-TAB.md AI tab: subscriptions, login, tokens, last interaction
ROBOTS-TAB.md Robots tab foundation (2 vacuums now; humanoids later / optional split)
CHROME-UX.md Header/footer/nav like OrangeCat quality; kill Frankenstein sidebar
IMPLEMENT-ORDER.md PR sequence + acceptance walks + non-negotiable loop

Related live pain (2026-09-16): Implement → silent status / inject fail without watch chooser; Claude/Grok PTY inject without generate; “This computer” without “open Fleet Runner”; Loki Terminal empty while Kitty is busy (different session world); no account menu in header; minimized left rail horizontal scroll; operators left wondering if anything is happening.