Observed 2026-09-18 while dispatching real work: the run sat on 'Delivered to agent - waiting for a completion handoff' for five minutes. No elapsed time, no heartbeat, no log tail. One second in and twenty minutes in read identically, so the only way to learn whether anything had happened was to open another window and read git log.
Every non-terminal state now carries its elapsed time: picked-up counts from claimedAt, delivered and running from executedAt. Terminal states do NOT - a finished run says what happened, not how long it has been happening.
'waiting for a completion handoff' is the internal name for the mechanism. What a person needs is that the agent has the work and has not reported back, so that is what it says now.
Deliberately NOT a judgement. There is no measured baseline for how long a run should take, so this reports how long it HAS taken and leaves the conclusion to the human. 'Taking longer than usual' would be a claim nothing here can back.
elapsedLabel returns null rather than '0s' for a missing or future timestamp: a confident zero is worse than silence. Proven by mutation - restoring the old silent line fails with 'waiting detail must carry elapsed time'.
Note: activity-time-zone-stable and telegram-allowlist fail in this suite and are PRE-EXISTING - they fail identically in a worktree that touches neither file, and both are probe tests needing a live server.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.
- Three article slugs carried the old name and had been shared; permanent
redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
because they are now the same name.
Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* chore: add a formatter, matching the style this repo already writes
singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.
Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* style: format with prettier (1062 files)
Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* chore: teach git blame to skip the reformat
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(lint): reattach two guards the reformat detached
Both effects were one-liners, so a trailing eslint-disable-line covered the
setState call:
useEffect(() => { setSelected(new Set()); }, [q.length]); // eslint-disable-line ...
prettier expanded the block. The comment stayed on the closing line while the
call moved above it, so the guard protected nothing and the rule its author had
deliberately silenced failed the build.
This is the second shape of the same defect — hirnli had the eslint-disable-NEXT-line
variant. Both come from the same fact: an eslint directive binds to a line
number, so reformatting can silently unbind it, which makes 'mechanical, no
behaviour change' false for any bulk reformat.
* chore(desktop): bump the runner version the reformat requires
desktop-release-drift enforces that anything built into Fleet Runner which
differs from the last released tag must carry a version ahead of that tag —
main read 0.8.15 and fleet-runner-v0.8.15 already shipped.
A whole-repo reformat changes bytes under desktop/, so the gate fires. The
alternative was adding desktop/ to .prettierignore, which would buy a quiet PR
by carving a permanent hole in the formatter's coverage — the precise shape of
silent drift this test was written to catch. Bumping is what the rule asks for
and costs one patch release whose only content is whitespace.
* chore: merge main and re-format
A whole-repo reformat conflicts with any concurrent commit, and a conflicting PR
runs no checks at all while reporting nothing. Conflicts resolved to main,
which is correct because this branch changes formatting and nothing else.
* chore: leave desktop/ out of this reformat
desktop-release-drift is right to refuse this. Everything under desktop/ is
built into Fleet Runner, so changing it means shipping: bump the version AND add
a FLEET_RUNNER_RELEASES entry, whose stated audience is 'person who installed
Fleet Runner and wants to know what changed'. For a whitespace-only build the
honest answer is 'nothing', so that release should not exist — and I should not
write release notes claiming otherwise.
I had bumped to 0.8.16 to get the gate green. That was the wrong direction:
publishing a build to three OS runners to keep a formatting PR quiet. Reverted.
desktop/ is excluded in .prettierignore with the reasoning recorded there, to be
formatted alongside the next real runner change, where the bump and the notes are
true anyway.
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Three audits (stats/fake numbers, dispatch follow-through, per-screen noise)
against the mobile-visible surface. Findings and fixes:
Dispatch honesty — "did it actually do anything?" had four silent gaps:
- RunModal "Send to terminal" and TerminalComposer's Send both discarded the
tab-inject response body and showed a static "Sent"/"Sent ✓" whether the
prompt ran immediately or queued behind an offline builder — and neither
checked res.ok, so a 401/500 also showed as success. Both now read mode/
commandId/runId/blocked and poll the real lifecycle via a new shared
useDispatchLiveStatus hook (extracted from Loki's proven DispatchFooter).
- The `blocked: true` case (runner detected you typing in that exact session,
silently no-op'd) was invisible; both surfaces now say so.
- Control's per-project dispatch banner had no way to go watch the work —
only a dismiss (X). Added a Watch link to /terminal for that project.
- Loki's fan-out dispatch ("develop these 3 projects") badge always showed
generic green "Dispatched" regardless of how many actually started; it now
reads deriveMultiDispatchView from the real per-project attempts, and the
Control/Terminal link points at a project that actually started rather
than whichever was selected first.
Nonsensical numbers — the stats audit found this codebase mostly clean (prior
passes already fixed this class of bug), with one real miss: FleetBriefCard's
"Tokens" tile was `count(*) FROM agent_tokens` — the number of auth
credentials registered for connecting a machine, not LLM usage — sitting next
to "Runs (week)" where it reads as API spend. Removed. StuckGoalsCard's
"30+ days idle" was a literal string coincidentally matching
STALE_GOALS_DAYS; now interpolated so the two can't drift apart.
Noise and hierarchy:
- /today: ActionQueueCard (the only card with real Approve/Decline buttons)
sat 7th, below two read-only recap cards, contradicting the page's own
"Actionable first" comment. Reordered to match it.
- /money: a company-level integration banner (OrangeCat wallet address,
internal stakeholder wiring) rendered unconditionally above the actual
subscription list — for every signed-in tenant on this multi-user SaaS,
not just the founder. Gated to founder-only (same isDefault check
RevenueCard already uses for platform MRR) and moved below the fold.
- StatRow (shared by Goals/Money/Habits/Memory) was a cramped 3-up grid even
on a 320px phone; now 2-up below sm.
- Control's ProjectCard defaulted to 8-10 visible tap targets before any
scrolling. The three always-visible secondary intent chips (Test & fix /
Quality / Commit) now join MORE_INTENTS behind the existing "More"
disclosure on mobile — unchanged at sm and up.
New coverage in scripts/test/dispatch-status.ts and the existing project-
mention/terminal-viewport suites; 91/91 unit test files pass.
Claude-Session: https://claude.ai/code/session_019imtHmWBrC94hVK1EMTpzi
Co-authored-by: Claude <noreply@anthropic.com>
Routing is decided (#315) but invisible. The operator is told "With builder —
starting shortly" and has to guess which machine that is: their own checkout,
where the diff will just appear in the editor they already have open, or a
fresh clone on the box they cannot see. Those are the two different products
#315 established — and the UI names neither.
The channel now travels the whole way: injectPrompt returns it, the dispatch
message persists it in meta, and the transcript renders it.
Running now on this computer
With the cloud builder — starting shortly
Queued for this computer — runs when it's online
The offline line is the one that earns this change. "Queued — runs when the
builder is online" tells the operator nothing actionable; naming the machine
says which one to wake.
Two deliberate constraints:
- NEVER guess. A missing channel renders the old unnamed copy rather than a
default machine. Messages persisted before routing was recorded have no
channel, and a label pointing at the wrong computer is worse than a vague
one — it sends someone hunting through a checkout that never had the change.
- Names are Record<BuilderChannel, string>, so a new channel cannot ship
without operator-facing copy, and a test asserts every channel in the union
both has a name and reaches its label.
isBuilderChannel narrows at both untrusted boundaries — the JSON response body
and persisted meta replayed months later — because an unknown string would
index the name map to undefined and silently drop the builder from the label.
EXECUTOR_COPY.ranOn is separate from the existing thisComputer/cloud chip
labels on purpose: those are title-cased for standalone chips and read as
"Running now on This computer" mid-sentence. Same concept, different
grammatical position.
Negative-tested: making builderName fall back to "local" when the channel is
unknown fails the suite.
Co-authored-by: t <t@t.t>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Cloud inject always queues even when box-runner is connected; distinguish
runnerConnected in Loki footer, Control toasts, and dispatch-status SSOT.
Add prod dogfood script and dispatch-status tests.
Co-authored-by: Cursor <cursoragent@cursor.com>