mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 12:47:48 +01:00
ops/box-disk-cleanup
110
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
670201a442 | fix(workbench): start idle projects through the shared session composer (#1588) | ||
|
|
ec00b7ec16 |
fix(ops): analysis-beta bootstrap runs by dispatch only (#1554)
It registered biaslens on 2026-10-22; biaslens has deployed through its own deploy.yml behind the rollout gate since. Running it after every loki CI redeployed biaslens out of band through deploy.sh, which no longer finds the runtime files it expects, so it failed on every main commit. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
dd44fac73e |
feat(review): take over the browser, hand it back, and see what comes next (#1545)
* feat(orangecat): a bot can ask Loki, as the person POST /api/orangecat/ask on the signed OrangeCat rail: one of the person's OrangeCat bots asks Loki a question and the turn runs as the Loki user linked to that actor, read-only, so a relayed question can never dispatch, approve or spend. An unlinked actor is told the one step that links it. Door test: no secret, no signature, a tampered or oversize body are all refused before a database or a model is reached. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(review): take over the browser, hand it back, and see what comes next The owner, 2026-11-02, beside Grok Bot's live Handler: "I want to see how the machine is being used and click through", led through it and in control, "and it should be objectively so". The project review's browser is the fleet's one agent-driven browser, so it gets that first. - Take over: the person's clicks on the picture, wheel scrolls, typed text, Enter and Back reach the page; each answers with a fresh picture, and the screen polls faster while they drive. Hand back returns it: the worker goes back to the page and scroll it was on, finishes that page so its notes stay about the right page, then reviews the person's page next. - Inputs are data (two coordinates, at most 200 characters, one of ten keys), queued atomically in site_reviews.control (migration 0132, one column) and taken by the worker in one statement at its checkpoint. The read-only guard is unchanged for the person: a form button sends nothing. - Under the picture: Live/You, what Loki does now, the next page, pages done. - Tests: real-Chromium take over (inspection-takeover-browser.ts); the workspace test drives take over at 320/390/768/1440 in both themes and checks a click on the scaled picture lands on the same page point. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * style(review): format the generated migration snapshot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
21e10a42ff |
feat(review): watch Loki use your site — the pointer, the press, an ending (#1544)
The first look at someone else's version of this (a live picture of a bot's browser on a phone, 2026-11-02) showed what not to do: a desktop page shrunk to unreadable text, a dark void above it, and no sense of what the bot meant to do. Loki's browser is now watched the way you'd watch a friend use a page — on the workbench and on Review alike. - The worker records where each press lands (ReviewFrame.target: the element's box in viewport pixels, optional so older frames still play). - RobotBrowser draws Loki's pointer there and lights the pressed thing with a ring that arrives like a tap; the pointer glides between presses, rests dimmed when Loki only looks, and no ring is lit at rest. - One pure rule places the picture (lib/inspection/robot-view viewOf, tested): a tall column is filled to its height with a desktop page cropped at the sides, a phone page stands like a phone, a page too small to read leans in, and it slides so the press sits as near the middle as the edges allow. No void, no squinting. - RobotEnding: a walk that finishes while you watch says so — a check that draws itself, "All done. Loki looked at 3 pages and found 2 things worth fixing.", one button to see them; nothing found is good news. - The workbench follows the project's latest review (5 s while walking, 20 s at rest), so a walk started after the page opened appears too. - Every glide, ring and breath stops under prefers-reduced-motion. Checked in a browser against a staged walk: live on the workbench at 1440, the ending arriving mid-view, and Review on a 390px phone. Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f07165a356 |
Loki first: the chat opens, three words in the sidebar, a one-screen workbench, and a voice on your side (#1506)
* feat(workbench): one project side by side, on one screen or two A project's session and Loki as columns of one window, and its site in a window of its own — beside this one or on the other screen. Nothing in it is new UI: the columns are TerminalSurface and LokiWorkspace mounted as they are; the site is the live page with the owner's pass, where pointing and "Fix it now" already live. What the workbench adds is the arrangement. - /projects/[id]/workbench, a Workbench row on the project page, and the pane SSOT in config/workbench.ts (session, loki). - The site is a window, not a pane, on purpose: every fleet site sends frame-ancestors 'none' and Cross-Origin-Opener-Policy same-origin, so it can be neither framed nor reached as an opener. The workbench says only what it knows. docs/architecture/workbench.md. - Windows open the best way the platform offers: Fleet Runner places them from the real display list (new IPC open-workbench-window, v0.8.60, caller tiled left / new window right, or the other display whole, an open window brought forward); a Chromium browser places a popup on the other screen once allowed; any browser gets a half-screen popup. - Any pane in its own window (?pane=): a solo window hides the shell chrome at every width; the windows of one project on one machine keep each other honest over a BroadcastChannel (a popped-out pane leaves its window and returns when that window closes). - Which panes a window shows is device-local (localStorage per project), never a column on the project. Two columns from xl; below that one pane at a time and the strip chooses; below md the phone's rows. - Each column's side rail (the session's Loki rail, the chat's history) is remembered for the workbench apart from its own page and starts closed in a column: TerminalSurface gets `rail`, LokiWorkspace gets `basePath`, `project` and `history`. - Full screen is the browser's own, on the workbench root. - Pure parts tested: scripts/test/workbench-layout.ts, workbench-windows.ts, workbench-placement.ts. Checked by hand at 390, 720, 1000, 1440 and 1920px and as a one-pane window at 900px, no horizontal scroll. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * refactor(workbench): one placement rule, a window's own layout, honest re-opens A second pass over the workbench after an independent review of the diff. - One placement module for both sides: src/lib/workbench/placement.ts is the pure rule the browser popup and Fleet Runner's real windows share (the desktop copy is gone). Tiling respects the caller's minimum width, so the 800px shell and the new window meet on a 1440px display instead of overlapping; only a display too small for both overlaps. - The layout is the window's: sessionStorage per project, kept across the window's reloads and never shared. Two full workbench windows of one project each keep their own arrangement; localStorage's cross-window storage event clobbered them. useLocalStorageState takes the area. - A popped-out pane announces itself closed on every way out — pagehide and a soft navigation away — and open again from the back-forward cache. - A window already open is brought forward, never navigated again: the site's address carries a pass minted per visit, and a second navigation left it unread in the address bar. Fleet Runner keys windows by the URL without its fragment, restores a minimized one and places it where the person now asks. - The screen-management prompt is raised when "On the other screen" is chosen, not on the open that follows: a click that waits for a prompt goes stale and the browser refuses the window. - Close in a solo window leads somewhere even when window.close() is a no-op (a typed address): it falls through to the whole workbench. - The dock click on macOS asks whether the SHELL window exists, not any window, so a site window open with the shell closed no longer hides it. - Which panes are on screen (columns, or one of them) is a pure, tested rule; window opening lives in one hook (use-workbench-windows) instead of two states; the phone's rows read each pane's surface from the registry; useBodyClass serves both the immersive chat and the solo window. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): one box — Session and Watch, not Session and Loki The first cut put Loki's chat in the second column. Beside the session's box that was a second place to type on one screen, and a person had to work out which box did what ("I see two chats, and it just gets confusing"). The session's box already does the one thing the screen is for — it types into the live agent, or starts one — and the session already offers Loki about itself ("What's going on?"). - The second column is Watch: the project's run as a live thread (what you asked, Loki narrating, the agent's screen, and where the change is — pull request, tested and merged, live), mounted from ProjectWatch as it is. It has no box. Loki's chat stays its own page. - The pane registry carries where each pane's own page is (`pageHref`), so the phone's rows and the columns read one list. - A pane body can be a scrolling thread (Watch) or a surface that fills the pane (the session). - LokiWorkspace is back to what it was: the host-path, project and history props it only grew for the workbench are gone with their only caller. - The project row says what the screen is for: "Say what to change and watch it happen, with the site beside". Checked by hand at 390, 720, 1000, 1440 and 1920px and in both solo windows: no horizontal scroll, no console errors. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): one screen, one box — the site as Loki sees it, the robot, one line of state "If a user sees tons of options, they can feel a paralysis" (owner, 2026-10-31). The screen showed about twenty controls: the Sessions page's builder picker, tab strip, agent and view switches, Watch's card with its own buttons, pane toggles, a window-placement menu. One thing to do, a few things to see — so: - The site, left, as Loki's own browser sees it (WorkbenchSiteView): the review worker already walks the site in a headless Chromium on the box and keeps one frame per action with the action named. While it walks, this shows the robot using the site, frame by frame — the one thing no window of yours can show; at rest, the last look. A tap opens the real site in its own window, where the person uses it and the widget does the watching. Fleet sites forbid framing and sever window.opener, so a picture of Loki's browser is what can honestly be shown inside Loki. - The robot, right: TerminalSurface in a new quiet shape (`quiet`) — no builder picker (which builder runs a project is a stored decision), no tab strip of other projects, no shell rows; the chat | terminal switch and the agent stay. Its box is the ONE box on the screen. - One line of state over the robot (WorkbenchStateLine): the sentence the Watch track composes, a dot for its tone, "Watch it work" for the whole story. Pure stateLine() in lib/workbench/state-line.ts, tested. The Watch column is gone from the screen. - One "⋯" for the rest: the robot in its own window / on the other screen, the site on the other screen, full screen. The pane toggles and the placement menu are gone; a placement named for one opening wins and becomes the remembered one. - The pane registry is the robot alone; the site is a region. Below xl the robot alone (the site is in its own window anyway). On a phone: the site, the robot, Watch it work, as rows. - TerminalSurface stayed under the function-size ceiling by lifting the builder-picker wrapper and the resume filter out of it. Checked by hand at 390, 720, 1440 and 1920px and in the solo window: no horizontal scroll, no console errors. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): a focus screen — the app's chrome leaves while you build Three layers of navigation sat around two columns: the sidebar's twenty destinations, the project strip ("Profile · Chat · Home · Sessions"), then the workbench's own header and the robot's bar with the Sessions page's agent menu — "Frankenstein elements just thrown together" (owner, 2026-11-01). - While the workbench is open, the sidebar, top bar, bottom tabs, footer and project strip are gone (body.fc-workbench-focus, the former solo rule applied to the whole screen from md up). They are for moving between pages, and a person here is not moving. The one back link in the header is the way out. A phone keeps its own bars: the rows need them. - The robot's bar is the chat | terminal switch alone (TerminalSessionBar `agentSwitch`, off in the quiet shape): the session's own chip names the agent and its box changes it. What is on the screen now, left to right: back, Open the site, "⋯"; the site as Loki sees it; the robot with one line of state, the view switch and the one box. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): two windows of one desk — one frame, a title bar each The site sat in a card and the robot stood bare beside it, with a line of state floating above and a caption floating below: two different things on one screen. Now both regions, and a solo window, are one frame (WorkbenchFrame): a title bar — a dot for its tone, one sentence, one link — over a body. - The site's bar is its address and what Loki is doing there ("Live", "Loki is using it: …", "Loki's last look: …"), like a browser's own tab; its body the page, top-aligned; before any look, the address alone and "Tap to open" — never a sentence apologising for an empty box. - The robot's bar is the build's state (hooks/use-run-state, the Watch track's sentence) with "Watch it work"; its body the session with the one box. WorkbenchStateLine is folded into it. - The floating Ask Loki button leaves in focus: its panel is the second chat this screen deliberately has not, and it sat on the send arrow. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(nav): Loki first — the chat is the default screen, three words then folds The owner's philosophy, 2026-11-01, now in AGENTS.md ("Why Loki exists, and for whom"): a good Loki chat, reachable in one step, is the screen that opens; the rest of the app one tap away; a friend on your side, not a staff; never a screen that makes a person feel stupid; measure by effort, not features. - APP_HOME and RUNNER_HOME are /loki: signing in, and Fleet Runner starting with the computer, land on the chat. They landed on Today, a page to read before a person could say anything. - The sidebar is three bare words — Loki, Home, Projects — the same three as the phone's bottom bar (Loki first there too), then folded groups that each say the question they answer: Waiting for you (Approvals, Feedback), Your day (Today, Suggestions, Voice), Across your projects (Sessions, Missions, Activity, Prompts), Under the hood (Packages, System), and Private behind the PIN. Not a drawer called More: the navigation test records why a "More" section rots, and still forbids it; the phone's More is the folded groups as a sheet. - Every sidebar line says what it is for on hover (the item's own description), so nothing has to be guessed. - SidebarSection gains `bare` (no header, never folded) and `foldedByDefault`; the tests that pinned the old Build / Loki / To review / The fleet placement now pin the new homes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(voice): Loki speaks as someone on your side The owner's philosophy (AGENTS.md, "Why Loki exists"): a friend on your side, not a staff you direct; never a word that makes a person feel stupid. The public pages still said the opposite. - Hero: "Say what you want. Loki builds it with you." (was "Describe it. Agents build it."). The lede, APP_DESCRIPTION, the social-card tagline and the how-it-works steps follow. Every factual claim is one the product keeps: it builds with AI agents, puts it online, changes it on ask. - /why's principles open with two new ones from the owner's words: "On your side" and "Life is short". Commitments about how Loki is made, not claims about what it does. - The new-project card says "Say what you want. Loki sets it up and starts building." instead of repos and agents; the sidebar's Loki line drops "dispatch" for "Loki answers, or builds it with you". - The hero's two sentences are separate balanced blocks: on a phone each breaks as an even pair, never one word alone. The mission headline on /why ("Direct the creation of …") is left for the owner to decide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(voice): the mission reads "with someone on your side" /why's headline was "Direct the creation of everything you can imagine." — the staff-you-manage voice the owner set aside. It now reads "Make everything you can imagine, with someone on your side.", the owner's own call (2026-11-01). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
a506d80d78 |
feat(brand): the rotorelief disc replaces the stroked spiral (#1472)
* feat(brand): the rotorelief disc replaces the stroked spiral After Duchamp's discs in Anémic Cinéma (1926): the coil is cut out of a disc, its inner turns drift off centre and thin toward the middle, so a plain rotation reads as a tunnel breathing in and out. - src/config/brand-mark.ts: markPathD() draws the whole mark as one evenodd path (disc, coil cut, pupil cut); MARK_TURNS gives optical sizes so the disc still reads at 16px - LokiMark renders it everywhere in-app (header, consult avatar, feedback launcher, voice) in currentColor - voice: the disc fills the orb; clockwise (pouring inward) while listening and thinking, reversed while speaking; loudness sets depth - generate:brand now also writes the PWA install icons, replacing generate-app-icons.mjs; favicon, desktop, tray and widget regenerated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmreRmsJkmf3AcYy6DS * chore(desktop): 0.8.60 for the new app and tray icon Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmreRmsJkmf3AcYy6DS --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
afb337007c |
docs(agents): fold CLAUDE.md into AGENTS.md, leave the pointer (#1465)
* docs(agents): fold CLAUDE.md into AGENTS.md, leave the pointer CLAUDE.md now only points at AGENTS.md, the fleet's one agent-file shape (bitbaum/fleet scripts/ci/agent-rules.mjs). The rules move into AGENTS.md: the four-layer design system, choice rows, AI form assist, SSOT rules, data flow, security, cloud vs local, how to ask George, which token the sweep holds, the box-runner update hold, package installs and "create website for <Name>". The component map and the views table, which are reference rather than rules, move to docs/development/surfaces.md so AGENTS.md stays readable. Checked against the tree: - Only @bitbaum/accountkit still installs from GitHub; chatkit, searchkit and whenkit come from the registry. The install section says so. - Dropped restatements of fleet rules (no dead ends, the merge chain) and the duplicate Database section. globals.css excluded CLAUDE.md from Tailwind's source scan because its "never write" examples are bracket classes; AGENTS.md and the surfaces doc now carry them, so they are excluded too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * docs(surfaces): name the model chip by family, not a version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
59cd3e7b10 |
feat(terminal): a plain shell on the builder, operator-only behind the PIN (#1449)
* feat(terminal): a plain shell on the builder, operator-only behind the PIN Sessions -> Plain shell opens a real bash login shell in a PTY the builder owns: no project, no agent, no inject wrapper. It is one more kind of session on the existing transport (open_shell command, peek-stream, the rawkey lane, tab-memory), not a second terminal. Security: operator account only (browser session, never a bearer token); a PIN must be set and the shell's own unlock (10 min idle, 60 max) entered; opens rate-limited and capped at 3 per builder; no queued command except open/close/peek may name a shell tab (queue, validator and injectPty); tenant and sealed builders never offer one; shell environment carries no engine keys. Every open/close/denied/unlock is on an append-only audit trail with no content. Threat model: docs/architecture/plain-shell.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * test(terminal): keep the repo's gates true for the plain shell Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * docs(plain-shell): name where provision-service.py lives Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
058a4a7dd8 |
Design reset: every page rebuilt to one calm bar (rows, one action, plain words) (#1406)
* docs(design): the reset brief, and a page audit that signs in and screenshots every page
The owner walked the app on a phone on 2026-10-21 and called it unusable.
design-reset-2026-10.md is the bar every page is now held to, written from
the apps he uses daily. scripts/audit-pages.mjs signs in (the public demo by
default), visits every page at phone and desktop width, saves screenshots and
writes down overflow, duplicate h1s, sticky blocks, cut-off text, small tap
targets, console errors and failed requests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(scripts): seed:showcase, a local account that looks like the owner's
The public demo has three tidy projects, so most pages look empty on it and
their real problems never show. scripts/seed-showcase.ts creates
owner@loki.local / showcase-owner ("Cato", operator) with 42 projects under
the owner's own junk folder names and long task-text descriptions, mixed
states (live, site down, not connected, deploy failed, autopilot paused,
production / blueprint), 73 feedback items on one project and 8 on another,
73 runs over 60 days with the real failure texts and three running now,
bell alerts 8, 19 and 28 days old, four identical "Next Best Step" prompts
plus two near-copies, a dozen Loki threads, goals with milestones, habits
with history, people, crew assignments, approvals, package rows, scheduled
jobs, subscriptions, events and memory.
Idempotent through the demo reset's live-foreign-key wipe (now exported),
with timestamps relative to now. Refuses any non-localhost database URL,
the prod tunnel's port, and a database that already has an operator.
audit-pages.mjs documents the pair.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(audit): one slow screenshot no longer loses the whole report
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(widget): a host can draw the launcher itself (data-fc-place="host")
A rendered region marked data-fc-place="host" IS the launcher: the widget
draws no floating button while it is on screen and counts the owner's state
as shown, so watch mode adds no bar. When the region goes, the launcher comes
back on its own. The page opens the panel with Loki.open() and reads
Loki.status ({ owner, watching, unread }), announced as a loki:status event.
A hidden region still wins. Customer sites are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(design): primitives and a calm top bar for the design reset
The pieces the page rebuilds are made of (docs/development/design-reset-2026-10.md):
ListRow + List + ListSearch, Section/SectionHeading, a quiet EmptyState,
ChoiceMenu ("Sort: Priority" as a sheet on a phone, a popover from md up),
and PageAction — a page's one primary action, a round + in the phone top bar
and a pill in the header from md up (PageLayout action, ModalForm
trigger="page-action").
Chrome: the top bar names every page on a phone with 40px borderless icons;
exactly one h1 per page at every width (the page's own, read but not drawn on
a phone; the bar's name is the h1 only when the page has none). Loki's own
feedback launcher is a top-bar icon (data-fc-place="host"), not a tab over the
content. The Sessions drawer icon leaves the phone bar. The bottom bar is
exactly its token's height and the main column ends above it, so nothing
scrolls under it. ui-kicker and ui-micro-label stop shouting in capitals;
empty panels lose their box; the demo strip is one line on a phone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(memory,robots): rebuild both pages to the design reset
The two worked examples the page rebuilds copy. Memory: the counts as a
sentence, then sections of rows — recently added (each with its own Forget
in a row menu), recent activity, by kind, context from other projects — and
"Forget everything" as the page's last row. No cards, tiles or badges.
Robots: the title is the top bar's, "Add robot" is the round + beside the
avatar, the search is the list's first row, each robot one row, and an empty
book is an icon, a line and one button.
Adds a "Primitives" section to the design brief: each primitive, its file,
and when to use it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(alerts): stale notifications fold into Earlier; the bell counts what still needs you
The bell read a red 9+ over nudges 8, 19 and 28 days old. Root cause: event
alerts (studio requests, build requests, escalations) have no condition a
checker can see end, so nothing ever cleared them; insert-once producers
deduped against any open row, so one forgotten alert swallowed every later
occurrence; and the bell counted every open row however old.
- lib/alerts/relevance: an alert is current while younger than its type's
window (alert-types freshForDays, default 7) or urgent; otherwise Earlier.
/api/alerts marks each one; the bell counts only current ones, and Today's
needs-you reads the same rule.
- insertActiveAlertOnce lets a stale open alert go instead of blocking new
ones; refreshOrInsertActiveAlert can renew the date when things got worse
(feedback summary renews when more items wait).
- The feedback summary says one plain sentence instead of
'84 feedback items need you (stalled + check live)'.
- The panel is a ListRow sheet (bottom sheet on a phone): dot, title, one
grey line, time, x to dismiss; Earlier below with Clear all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* style(labels): sentence case for the app's remaining capital-letter labels
Section labels in settings, Control, Today and the private unlock form
dropped their uppercase + letter-spacing (design reset rule 4). Small
tags (status pills, badges) keep theirs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(ui): DetailSheet, a ListRow control slot, quiet ModalForm triggers
DetailSheet opens one thing from its row (bottom sheet on a phone, dialog
from md up) with its actions as full-width rows. ListRow gains a leading
control that is its own action (a habit's check-off); ModalForm gains a
"secondary" trigger for an empty state's one button and "none" for a
form opened from a row's menu. Styles for the Life pages sit in one
design-reset block in globals.css; rules their old markup used are gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(goals): rows on /goals, and a page of its own for every goal
/goals is one sentence ("4 goals, 48% done on average") and a list: a
progress ring, the title, one line (due, milestones, sub-goals, project)
and the percentage. Sort and project are menus, not chip rows cut at the
edge; finished and set-aside goals fold away. The old card — inline
title, description button, four menu actions, folded milestones, nested
sub-goal cards — is now /goals/[id]: where it stands, its fields as rows,
milestones and sub-goals as lists, the actions as rows at the end.
Deleting a goal now checks the answer instead of refreshing on failure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(habits): check off from the row, open a habit in a sheet
/habits is one sentence ("3 of 5 done today") and a row per habit: the
circle on the left checks it off for today, the row opens the habit — its
month, how often (one even row of three), the goals it feeds, pause,
rename, ask Loki, delete. The card with a 35-cell heatmap, a frequency
select, five icon buttons and a stat-tile row above it is gone. A goal's
row line drops its milestone count, which pushed the project off a phone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(projects): rebuild the list, project page and Watch to the design reset
/projects is a search row, two menus on one line (Show / Sort) and ListRows:
an initial, projectTitle(), ONE plain-word state line ("Building now",
"Live · updated 2h ago", "Needs you: 3 notes") and the time since the last
run. Nothing sticks. Checks, stage and feedback counts moved to the project
page; earlier `-refresh-<hex>` copies and archived projects fold under
"Archived". The two black buttons became one `+` that asks "Build a site"
or "Add an existing project".
The project page has one title with the way back, one primary action (Ask
Loki, in the top bar on a phone), a section menu on a phone instead of a
pinned select, sections as plain headings without boxes, flags as "Needs
fixing" rows, and agent sentences said plainly (no URLs or HTTP codes).
Watch it work uses PageLayout and names the project with projectTitle().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* wip(work-tools): prompts, activity, feedback rebuilt as rows; tab-inject starts repo-only projects
Work in progress before merging main; gates run after the merge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(events): rows by date, a sheet per event; an event with no deadline can be added again
/events reads an event's date and place, not only its deadline: a meetup
with a day and a city sat under "No deadline" as if it had neither. Rows
go coming up, no date yet, already happened; a row opens the event in a
sheet (edit, ask Loki, archive, delete) and "New event" is the page's
one action, a form in a sheet.
Fix: the add form sent "" for an empty deadline and the API refused it
as "Invalid date", so no event without a deadline could be added. The
form now sends only what was filled in, and the API reads "" as none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(talk): Loki's empty chat, chat list, Sessions and More sheet as rows
- /loki: a greeting, recent chats and Build next as ListRows above the
composer; no scrolling chip strip, no starter chips when there are
projects, no "Auto your key" on the model chip; the chat list
(ThreadRail) as Claude's list, pin and delete in each row's menu.
- Sessions: nothing open is one line and a Resume row per project; a
missed deep link is one line and its row (and, on a phone, the open
sessions); the session and more sheets are short rows; the Sessions
drawer is a list with its search as the first row.
- More sheet: names only, no truncated descriptions.
- Voice: one line and Start, then titled sections of rows.
- Sidebar section labels and app-wide label classes in sentence case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* wip(public): calmer signed-out site — rows, one orange action, sentence case
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(design): Home, Today, Suggestions and Approvals as sections of rows
Design reset (docs/development/design-reset-2026-10.md) for the 'what needs
me' group:
- Home: three sections of ListRows — Needs you (failures with their fix on
the row, escalations, the review inbox), Being built, Done — under the
composer. Job cards that all read 'Next best step' became rows naming the
project and the live step; the footer is two rows (builder, New project),
so nothing pokes under the bottom bar. The status hero no longer repeats
projects the rows already name. Builder-offline chip is a row.
- Today: a greeting, the day in one sentence (lib/today-brief todaySentence)
with Plan my day / Log a conversation, then Needs you, weather in one
line, Calendar, Habits, Commitments, Sticky note and More as sections of
rows. Six recap cards that restated nav pages are gone.
- Suggestions: momentum as a sentence, Show: All menu instead of a cut-off
chip row, each suggestion a ListRow (tap = do it, menu = Not now), and
project names through projectTitle().
- Approvals: pending first, unboxed; Approve/Decline in words; event times
in the reader's zone instead of a raw UTC ISO string; standing approvals
as OptionRows at the end; quiet empty state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(money): one sentence, subscription rows, a sheet per subscription
"51.00 CHF and 329.60 USD a month across 9 subscriptions. Next: GitHub on
3 Nov." replaces three stat tiles. Each subscription is a row (how often,
when next, whether a receipt backs it; the amount on the right) that opens
a sheet with everything the row used to carry: mark paid, edit, check at
the vendor, ask Loki, free alternatives, cancel, delete. Cancelled ones
fold away; promised money and the founder's OrangeCat link are rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(people): contact rows with search and menus, a real page per person
/people is a list like a phone's contacts: initial, name, what they do and
where, how long since you talked. Search is the first row; Show and Sort
are menus instead of a chip row cut at the edge; the filled "Log talk"
button on every row moved into the row's menu. Importing and merging is
one row that opens a sheet. A person's page opens with the person on it
(it fetched the same row again behind a skeleton), in plain sections,
with rename, ask Loki and delete as rows at the end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(crew): asks and crew as rows; an ask with nobody on it can be given to someone
One sentence ("1 ask needs you"), the open asks grouped by where they
stand, each a row that opens a sheet with its brief, link, payment and
the moves open to you; your crew as rows with "Give them work" in the
row's menu. Fix: an ask saved with nobody on it said "pick someone before
handing this over" and offered no way to pick; the sheet now does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(settings): a list of sections on a phone, flat sections inside
Below lg, /settings is a list of its twelve sections, each a row with
what is in it; one opens as its own page with a back row, and the phone's
back gesture returns to the list. The tab strip that ran off the screen
is gone. Inside, the bordered boxes and caps labels are flattened to
sections and rows; Appearance is one even row of three, the digest is a
list of choices, and the Agent tab says what it is for in plain words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(home,bell): failure rows give the reason the full width; Earlier rows carry no dot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(today,home): In focus is one row; Home loads as its own shape
TodayWatch was a bordered card with an orange capitals eyebrow, the day's
counts a second time and two Loki buttons; it is now one row under 'In
focus' with Loki's nudge as a plain line, and says nothing when nothing
stands out. Home's loading state is the composer and three row lines
instead of three empty cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(projects): plain sections on every project tab, one time per row
- A row's line no longer repeats its trailing time ("Worked on 1d ago … 1d"):
it says Live / Not live yet / Not started yet, and the time is said once.
- A run waiting on a person (main's new "needs_you" build state) reads
"Needs you: the agent is waiting" on the list and offers "See what it
needs" on the project; the list query now reads the run's own record.
- Story: one rename (in the header), the stage drawn without colour, the
profile score labelled in words, "The story" instead of "Agent context",
three short fill buttons that fit a phone.
- Feedback: one heading and one "…" menu for list actions; the widget setup
and auto-ship toggle on the page instead of boxes in boxes; plain labels
("Put it on the site", "Turn on only") kept in step with the API hints and
the public docs.
- Activity: "What changed" as rows, newest first by date, no handoff chips.
- Plan: "Roadmap" is the section's heading; no accent icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(prompts): one Run that works — repo-only projects start, Loki streams, no raw blanks
- Send to terminal on a project with only a repository (no folder) queued a
bare inject that failed with "no running agent for 'substrata' on this
runner"; tab-inject now hands such projects to the inject core, the same
start-or-queue path /api/inject uses (in the previous commit).
- The Run sheet leads with the prompt's own worker (lib/prompt-run): the
project's agent for project work, Loki for personal prompts; the other is
one quiet line. A send ends in one sentence and "Watch it work".
- Run with Loki streams into the sheet through the chat's own thread
(useSessionAsk + ChatThread): clock, Stop, retry, Continue in Loki.
- {{variables}} are never shown raw: blanks are named in words until filled.
- Pins all of it in scripts/test/prompts-page.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(activity): the answer as a sentence, failures and history as rows
/activity drew eight boxes before the first event: a hero card with a bar
chart and four coloured tiles, a red card of failures in the builder's own
words, project chips cut off at the edge, a time picker card, count chips and
a report card. Now: When and Project as two menus, the headline sentence,
"Runs need you" as rows with Run again, and "What happened" as rows under
day headings (Show: menu), each opening its run on Watch. The report is the
page's one action, in a sheet. Failures read in plain words (activity-words).
Fixes the double <h1> (page and view both drew PageLayout).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(feedback): decisions and reports as rows; each opens in a sheet
/feedback: "Do all" is the page's one action (confirmed in a sheet that
says what it spends); every decision is one row — the report in the
reporter's words, project and when — with its yes as the row's own button,
still one tap; the row opens the full decision (Loki's read, facts, every
move) in a sheet. Under way / Done / Filed away are rows with their state in
plain words. Keeps main's per-decision taken key (#1367).
/my-feedback: rows (your words, status and project, when), each opening the
shared ReporterFeedbackCard in a sheet; a quiet empty state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(system,packages): plain sections and rows; one design-reset block in globals.css
/system: nineteen bordered cards under three question headings become one
page of plain sections (SystemBlock: sentence-case heading, no box) with
words a person would say — Alarms, Server, Server size, Room for more work,
Health check, Recent errors, Agents keep going, Runs on a schedule — and the
records behind one "More records" row. Agents keep going is one sentence
and the one button that changes it.
/packages: each package one row (latest, who uses it, who is behind), the
read line ending in "Read again", and Publish to npm as two calm numbered
steps instead of a card.
globals.css: the work-tools block (prompts sheet, activity, feedback row
verb, steps, system) after the feedback classes; the dead activity, pulse,
needs-you and feedback-card rules deleted with the code that used them, and
ui-btn-overlay (its last users were the prompt cards). CLAUDE.md follows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(talk): own class for the empty Sessions list, quieter dots, a voice note that fits
ui-term-empty already named another rule, which centred the new list;
a finished session no longer gets a green dot (rule 8); the 'Only what
needs me' line fits under its switch on a phone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(public): reachable /fleet filters on desktop, essay body on the title's edge
The /fleet filters sat in a <details> whose summary was hidden from md up
on the belief that CSS forced it open; a closed <details> hides its
content at any width, so on a desktop the filters were gone with nothing
to press. The toggle now shows at every width and opens itself while a
filter is set. The footer's closed studio-sites list no longer lays out
invisibly, and an essay's body starts on the same left edge as its title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(feedback): projects by name, the age last, the night note in francs
- Every project on /feedback goes through projectTitle(): the inbox route
attaches each row's projectTitle from the project entity, and the rows, the
project menu and the sheet title read it.
- A decision row's one line is project · age (or the page, with one project
in view); the repeated "Build it, one agent run" beside a "Build it" button
is gone, and no trailing age squeezes the report's words.
- The morning note (nightNoteText, shared with /today) names projects through
projectTitle, drops the "· 2 of 3 runs" ledger, and states the cost in
francs (CHF_PER_USD): "… filed away 4 old reports. It cost CHF 1.70."
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* chore: drop the dead recent-dispatches query; the build-row fade at every width
getRecentDispatches fed only the Today recap card the redesign removed. The
/loki build row hid its scrollbar at every width but faded its edge only on
a phone; the fade now applies wherever the row scrolls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(projects): a project with no title reads as a word, not its folder name
projectTitle passed an untitled project's folder name straight through, so
Home, Feedback and the bell listed "murphys-bar" and "aoz-housing". An
all-lowercase slug now reads as a word ("Murphys bar"); a name typed with
capitals is kept as typed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(public): headline visible before its animation, names through projectTitle, plain demo note
The hero rose in from opacity 0 with a 'both' fill, so until the
animation ran the headline was simply not there: a slow phone, a
screenshot or a page still loading showed a blank where the promise
should be. The rise is now movement only; content is visible by
default and reduced motion turns the movement off.
Every project name on the public site (the /fleet register, a project's
public page, a person's public profile, the landing hero) now goes
through projectTitle(). The sign-in demo note says what is switched off
in plain words, and /build's eyebrow is sentence case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* chore(terminal): drop terminalSourceHint, which nothing reads now
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(life): project titles, channel names and sheet rows after a look at the pages
A goal's project and an ask's project read the project's title when it
has one instead of its folder name; the ask's row drops the project so
the date fits on a phone. A person's ways to reach them and their
conversations say "WhatsApp", not "whatsapp", and the icon now matches
a conversation's channel (it looked the channel up without its prefix and
always fell back). Sheet action rows draw every icon at one size and start
at the left; "I cancelled it" is not red. A goal's progress and date are
body text. The responsive audit names /goals/[id] as needing an id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(work-tools): every project name through projectTitle()
With main's projectTitle() reading an untitled key as words (
|
||
|
|
3fbe041041 |
ops(beta): register and deploy the existing analysis app through Fleet after green CI (#1402)
* ops(beta): provision existing analysis repo via one Fleet registrar after green CI * docs(ops): record one-time beta provisioning acceptance and brand independence |
||
|
|
93ab3816a8 |
feat(loki): the start screen owns the phone too — floating chats · Loki · menu, nothing clipped (#1360)
* feat(loki): the start screen owns the phone too — floating chats · Loki · menu, nothing clipped What the owner saw on /loki from his phone (2026-10-21) was the START screen, which the thread redesign had left with the app shell: the app top bar, the bottom tabs, the starters and the composer around an inner scroller that clipped the spiral and the Build next row and drew Android's grey scrollbars. "It says the thread fills the display edge to edge, but it doesn't really." Now the whole of /loki takes the phone (useImmersiveChat on the start screen as well). The start screen is laid out like a thread: a floating one-line header — chats (the history drawer, as the ChatGPT and Claude apps keep it) · Loki · a menu that carries Home and every other page now that the tabs are gone — and the composer floating at the bottom with the starters above it, where the thumb is. The greeting, the recent chats and Build next scroll under both with the measured insets as padding, so nothing is cut off between two bars. Build next and the starter row scroll sideways with no scrollbar and a fade at the edge, never a chip cut in half. The desktop keeps its sidebar, top bar and in-flow composer. The TopbarPortal that lent two buttons to the phone top bar is gone with the bar. scripts/test/mobile-flow-browser.ts now pins it: no bottom tabs, no top bar, the page's own header on screen, Home one tap from its menu. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * fix(loki): the starter row says it scrolls (ui-scroll-fade-right) CI's scroll-strips-have-an-affordance ratchet: a strip that hides its scrollbar must carry the fade, and the starter row above the composer had the one without the other. Room after the last chip so it clears it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
944ed15747 |
feat(cloud): private builders — an allowlisted agent environment, a runner without the database, one sealed unit per account (#1346)
* feat(runner): agents get an allowlisted environment; the cloud builder asks Loki what to clone
Track 1, PRs 2 and 3 of docs/architecture/private-builders.md, together.
- src/lib/agent-execution/agent-env.ts: with LOKI_AGENT_ENV=allowlist (set
by the box units) an agent PTY is born with a shell's environment, the
engine keys the unit holds and what its own spec passes — never
DATABASE_URL, never the org GITHUB_TOKEN. Off the box nothing changes.
- GET /api/control/workspace-source?tab=: a runner asks with its own token
and gets its own account's repository and a token that account may write
with (github-org-token.ts). box-workspace.ts reads no database any more;
the runner passes the run's token to the one agent that needs it
(GITHUB_TOKEN/GH_TOKEN in the spec env).
- mint-box-runner-token.ts --user <id>: a token per tenant.
- Records: changelog {#agent-env} {#runner-no-db}; roadmap milestone ticked.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(cloud): a private builder per account — the flag, the sealed unit, reconciled on the box
Track 1, PRs 4 and 5 of docs/architecture/private-builders.md.
- users.private_builder (migration 0122) is the one switch, set from
System → Plans (/api/system/private-builder). It grants cloud BUILDING
only: isCloudBuilderAllowed (founder or flag) for routing, Sessions and
the kickoff path; isFleetInfrastructureAllowed is the founder alone and
gates the org GitHub token, studio CD, own domains and the server's own
PTYs. LOKI_CLOUD_BUILDER_USER_IDS is retired.
- scripts/hetzner/loki-box-runner@.service: one unit per tenant as
lk-<short>, ProtectSystem=strict, ProtectHome=tmpfs with its own home
bound, the app and the runner env invisible, MemoryMax/CPUQuota/TasksMax,
its own dev root, the agent env allowlist, no database password.
- scripts/hetzner/new-tenant.sh: user, clean shell, dev root, a runner
token minted for THAT user, the agent contract, claude in its own home,
an env file for its engine keys, the unit. reconcile-tenants.sh runs
every minute from loki-tenants.timer (install-tenant-reconcile.sh, run by
the deploy) and brings units into step with the flag. The deploy ships
the scripts and template and drains and restarts every unit, each in its
own transient unit.
- A tenant's project path is written under its own root
(tenantDevRoot), which counts as box-rooted for routing.
- Records: changelog {#new-tenant} {#private-builder-flag}; roadmap.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* chore(runner): Fleet Runner 0.8.50 — the allowlisted environment and the API-backed clone
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
f2b6fc7e66 |
feat: Sessions, an even session sheet, a terminal that scrolls, no ragged choice rows (#1331)
What the owner saw on a phone, and what changed: - "Terminal" over a "Claude | Terminal" pill: the page is now Sessions, and the pill is Chat | Terminal for every agent. The agent is named once, under the session's name; an agent with no chat view gets no switch. - The black terminal would not scroll: vertical swipes now belong to the terminal (touch-action: pan-x), and a swipe past the oldest kept line says so and offers Chat, where the whole conversation is. - The model sheet: Model and Effort are <Segmented> rows — equal cells, one line, the chosen one's meaning under it. "Next mode" (whose result showed only "with your next message") is a list of modes; a tap presses Shift+Tab until Claude Code's own footer names the one chosen, read live from the session's screen (use-live-mode, lib/claude-mode-footer). - More: no duplicate "Feedback on this page" row (the edge tab is on every page); sections regrouped so none is a heading over one row — Build (Home, Projects, Sessions, Prompts), Loki (chat, Voice, Today, Suggestions), To review, The fleet. "No-screen" is Voice. - Every pick-one row that wrapped into "4 + 1 orphan" on a phone is now <Segmented> (even row or grid), a one-line scrolling filter row, or one row per choice; scripts/test/choice-rows.ts fails on the old shape. - A page whose header is only its (phone-hidden) title no longer leaves a blank band above its content — Home opened on one. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
556133788b |
feat: Home, four tabs, and a terminal that lists your sessions (#1327)
Walked as the owner (2026-10-19): what you expect, what happened.
- "I want something built." Control is now Home, and opens on the box:
what to build, with a project chip (the one you were last in, one tap to
change), sent to that project's agent via /api/inject. The empty
"Nothing is being built right now" card and its "Start something" (which
left for /loki) are gone. Done rows lead with what was done, not the
request quoted back.
- "Where is everything?" The phone's bottom bar is Home · Projects · Loki ·
More. Sections are grouped by thing — Build, Loki, To review, Your day,
The fleet, Private — not by abstract question. "Control" is "Home" in
every sentence that names it.
- "Where is my session?" With nothing open, the terminal lists your
projects, each with Resume, which opens it and continues its last Claude
conversation (/api/agent/launch {resume:true} → claude --resume of the
folder's newest log; runner 0.8.48). No more form with two dropdowns.
- Autopilot's toggle is a quiet control, not the page's filled primary.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
39474428d7 |
docs: clear docs-truth drift and retired names (#1322)
- Fix stale paths/links in docs (model-vendors billingUrl, agent adapter placeholder, bridge host setup, entitlements not yet created, tokens module). - hetzner-migration: current hosts (evig, aoz) and a pointer to scripts/hetzner/apps.conf as the live app list. - Archive two point-in-time records (fleet-runner-pty-ownership, terminal-parity) into docs/archive with a README; fix inbound refs. - Thoughts essays: repo aoz-housing is now aoz-begleitung. Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
cde8d5f688 |
feat(terminal): phone session reads like a chat app — name in the header, one "+" (#1320)
The phone terminal had five bands of chrome around the session: the app bar, a scrolling row of session tabs with "+" beside it, a full-width view switch, the box with a paperclip AND a slash button, and the bottom tabs. - Header: back to Control · the session's name with "Claude · 2 sessions · cloud builder" under it · ⋮, and the Claude | Terminal pill centred below. The name opens the session sheet (every session, New session, where it runs, agent); ⋮ opens TerminalMoreSheet (What's going on?, full screen, text size, live keystrokes). No row of tabs to run off the edge. - An open session hides the app bar and bottom tabs below md (useImmersiveChat), so the session gets the screen and back is the way out. - The box is + · model · mic · send. "+" opens one sheet: photo or screenshot (presses chatkit's hidden paperclip, so paste and Camera/Photos/Files stay chatkit's), Keys on a phone, the agent's commands, Loki's records and the prompt library. - Conversation view: next steps are reply rows under the answer, sent by the box's own path (sendRequest). Terminal view: What's going on? and at most two steps in one sideways row. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
925ab930be |
feat(ai-budget): newcomer reserve in the free pool + fix(billing): payments stay off until switched on (#1294)
* feat(ai-budget): keep a fifth of each day's free pool for people on their first week Pacing keeps the day from being spent before lunch, but not by evening: there is no clawback, so whoever signs up at 21:00 can meet a pool the vendors have already refused — a first answer that never comes, which is the moment a person decides Loki is broken. lib/ai-budget/newcomer-reserve.ts: returning accounts together stop at 80% of the day's capacity; an account under seven days old may draw on the rest, still under its own fair share. getDayUsage now also returns the day's total (same query as the active count). The gate reads the account's age only once the total reaches the held part, and fails open if it cannot; a paid plan with allowance left is not held back. The refusal says what the held part is for, when the day starts over, and the ways past it; the budget screen reads the same rule, so it never shows "12 left" to someone the gate will refuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B * fix(billing): payments stay off until switched on, whatever pay URLs are set Live after #1293: every paid plan's button on /pricing read "Pay in Bitcoin" and went to an OrangeCat product page that answers 404. The three ORANGECAT_PAY_URL_* were set on the box before the passes existed; while the tiers had no price that was invisible, and setting the prices turned the dead links on — skipping the reservation flow they were meant to fall back to, and showing "Buy" in Settings → Billing too. orangeCatPayUrl now also requires LOKI_PAYMENTS_OPEN=1. Opening payments is a decision (the company registered, the passes live), so it is a switch, not an inference from a URL. Until then every paid plan's button reserves, as designed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f80a315212 |
feat(control): the top of Control is the work being done for you, each job a tap from watching it (#1275)
The owner, on his phone (2026-10-17): "I see Building, I tap it, and I expect to see how it's building — the chat or the terminal. Here there is just so much… scary to non-technical users." The hero said "Building · 1 agent working" and could not be tapped; under it sat a builder sync line, three counters, a Workspaces list and a "Recent activity" log of the raw prompts sent to agents, safety fences included. - ControlNow: one card per job being built — what it is, what the agent is doing right now, how long — and the whole card opens the live session as a conversation (/terminal?project=…&view=chat&run=…). A job waiting for your answer leads with the question and says "Answer it". - ControlDone: the last day's results, what came of each (merged and deployed, partly done, stopped) and where to look: the site, the change, the conversation. Replaces "Recent activity". - ControlFoot: builder state, New project and Settings in one quiet line. The hero now speaks only for alarms or when someone is needed; Workspaces is desktop-only. - Titles (lib/task-title): a run named from its prompt the way a person would — a feedback fix is the report, an owner's decision is THE ASK, a site brief is its first line with the link as a domain. Never the prompt. - Live step without a viewer (lib/run-step): the runner's progress beat reads the tail of the agent's own session log and sends "Editing Header.tsx"; the server keeps it on the run (payload.lastStep) and /api/control returns it with the run's id, outcome, title and last beat. Fleet Runner 0.8.44. - The project the page auto-selects no longer becomes "your project" in the Profile · Chat · Control · Terminal strip; only one you open does. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
8749efd100 |
feat(widget): say the state on screen, one button to open, a calmer panel (#1279)
The owner on their phone (2026-10-17): it should be clear on screen when Loki is watching and when it is recording, opening it should be easy, and the panel was too crowded and intimidating to use. Watching - The owner's launcher is ONE button that says its state in a word at every width: "● Watching" with a live dot and a ring, or "Paused". A tap opens Loki. Its second half, "Point", was the labelled, bigger part on a phone, so the obvious tap pointed instead of opening; pointing is "Point to area" in the composer. Recording - A red edge round the whole screen while Loki listens (it takes no taps; grey while it writes it down), a red-bordered dock that says "Recording 0:12", and a one-line hint instead of four. The panel - One status line instead of two rows: "Watching · 2 to look at · 4 live › Pause"; opening it shows what Loki noted and where each change is. - One microphone: the header's "Voice note" and the composer's "Record" did nearly the same thing. "Talk" in the composer is talk-while- scrolling, which also covers plain dictation; in chatkit it takes the tool row in place of chatkit's own mic. - "Fix it" and "Ask" instead of "Request a fix" and "Chat with Loki". - "Continue in Loki" appears once something has been said. - The visitor's phone launcher is 44px, the minimum tap target. Docs (widget/README.md, docs/architecture/feedback-widget.md, docs/development/contextual-voice-feedback.md) and the browser tests follow the new controls; new pure helpers watchHeadline and changesHeadline are unit-tested. Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
dc1e7ef1a7 |
feat(terminal): every tab says what its session is doing, and news from the others (#1278)
* feat(terminal): every tab says what its session is doing, and news from the others Several sessions at once only works if you can tell, without opening each, which one is busy, which one is waiting on you and which one is done. - Each tab, on the phone's row and the desktop strip, carries a status dot: a breathing accent while it works, amber when it needs you, green when it finished, grey when it is just open; the words go to screen readers and tooltips. Read from the same /api/control/stream Control uses, with the presenter's precedence (a running turn outranks a stale "blocked" handoff), so the terminal and Control never disagree (lib/terminal-session-status.ts). - When a session you are not looking at finishes or starts waiting on you, one line says so with Open (TerminalSessionNotice). One at a time, gone after ten seconds, on opening that session, or with ×. Tests: terminal-session-status (rules, precedence, what counts as news); terminal-tabs-browser now checks the dots and the notice at 320/390px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3 * chore(design): dead ui-* rule baseline 34 → 33 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
ab85172dda |
feat(terminal): sessions as tabs on the phone, and a second session per project (#1270)
* feat(terminal): sessions as tabs on the phone, and a second session per project Asked for from a phone: several terminal sessions open at once, the way a terminal has tabs, without clutter. Loki already ran several sessions and the desktop strip showed them, but below md the strip and its "+" were hidden, so a phone could neither see the other sessions at a glance nor start one while another was running. - Phone header: with more than one session the name becomes a sideways- scrolling row of them. The current one keeps its dot and chevron (and still opens the settings sheet); the others switch in one tap. One session looks as before, plus a "+". - "+" opens TerminalNewSessionSheet, the same start form as the desktop "+". - A project that already has a session now says so and offers "Start another session" or "Go to its session". Launching the same project used to target the same tab, which replaces the running agent. The second session is a lane tab (<project>~<id8>, run-tab.ts), named "project 2". - The runner gives a hand-started lane its own git worktree, as parallel dispatch already does, and refuses rather than share one checkout (desktop/src/main/lane-workspace.ts). The lane limit moved to run-tab.ts so dispatch and the "+" share it. - Close a session from the phone's session list (tap twice). - /api/agent/launch refuses a tab carrying "~" that is not a lane Loki minted. Tests: terminal-session-lanes (lane rules, refusal, numbering) and terminal-tabs-browser (320/390px: no sideways scroll, 44px targets, switch, sheet, second session beside a busy one). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3 * chore(desktop): Fleet Runner 0.8.43 — a hand-started second session gets its own worktree Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
87e4fec420 |
feat(widget): walk and talk — what was seen per moment, taps by their label, takes that chain, pictures Loki takes afterwards (#1239)
* feat(widget): walk and talk — what was seen per moment, taps by their label, takes that chain, pictures Loki takes afterwards The owner (2026-10-17): "I can scroll through the site and click different things while recording an audio … and as I comment, automatically the screenshots or whatever else needs to be taken, so the changes will be made in the most effective way possible." A page cannot film itself on a phone without a permission prompt, so the widget still takes no pictures. What it now takes, honestly, at the start, when scrolling settles, on every tap on the site and on Mark: the part of the page in view, the text at the reading line, how far the page is scrolled, and the control that was tapped — by its own label (aria-label, alt, title, text; a field by its label or placeholder), never by what was typed into it. Whisper's timings put each sentence under the part that was in view when it was said, as before; beside the note now travels the structured list of moments (widget/moments-contract.ts: said → seen, clamped on both sides, scripts/test/widget-server-caps-mirror.ts holds them together). - A walk is no longer one take: at the upload cap the recorder hands straight into the next take (the microphone stays granted), the clock keeps counting from the start of the walk, and Done joins the takes on one clock (joinTakes). Up to ten takes, about eighteen minutes. - Ingest validates and stores the moments (site_feedback.moments, migration 0108); the fix prompt renders them as a fenced WALK, one line per moment, so the agent knows what "this button" was. - The owner's row lists the walk (components/feedback/MomentsWalk) and a tap on "See what they saw" has Loki open that very view on the server — the page, scrolled to the tapped control or to the same scroll — and take the picture (/api/feedback/[id]/moment/[n] over page-picture.ts, which now takes a scroll position). The decision card says "4 parts of the page · tapped 2 things" so the owner knows a walk is behind it. Checked in real Chromium: a click on the host's own button while recording becomes a moment with that button's label and selector, Mark marks the part in view, the scroll is kept, the password field's value never travels; the owner and visitor flows at 320 and 390px pass as before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 * chore(drizzle): regenerate the moments migration as 0109 on top of #1238 #1238 landed its own 0108 (site_feedback.read) first, so the moments column moves to 0109 and its snapshot is generated from main's. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
73df3dbece |
feat(widget): speak while scrolling, ask or send after, editors sign in (#1230)
What the owner hit on evig.orangecat.ch, fixed as one flow: - A long voice note looked cut off. It was not lost: the receipt quoted 300 characters and was the only copy shown. The receipt now quotes the start (at a word) and folds the whole note under "Show all you sent". - Speaking while scrolling: one dock (Listening · Mark · Done · ✕). Loki notes the part of the page in view at the start, when scrolling settles and on Mark; Whisper's sentence timings put each sentence under the part that was in view. No video, no screenshots, and the dock says so. The clock warns in the last 15 seconds before the 1:50 cap. - After speaking: "What you said", editable, never sent by itself. Ask Loki, or send it (visitor), or Build it / Save note (owner). - The aim button is "Point", labelled, everywhere. This page / Whole site / Point / Loki each say what they mean, and the placeholder follows. - Sign in: the header button explains what happens; "Create one free" keeps the way back to the site; sign-in follows the API redirect for real. The project's editors now get the owner's panel (one rule, lib/feedback/pass-holder.ts, for every widget route). Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
25ae3de0e5 |
Make the Loki site widget one clear conversation (#1229)
* Improve widget conversation and mobile feedback flow * Update widget layout assertion for simplified header |
||
|
|
f617c3ca48 |
Speak while browsing and explicitly turn review notes into fixes (#1218)
* Capture contextual voice notes while browsing a site * Preserve unfinished page reads across reloads |
||
|
|
8288d3e39e |
feat(terminal): one box for the agent, with the microphone; a prompt library you can search (#1219)
The phone terminal made a person choose Type (keystrokes, no microphone),
Prompt (a task with a microphone) or Keys before saying anything, the next-step
chips reshuffled while you read them, and the prompt picker could not find the
prompts you had saved yourself.
One box for the agent (SessionComposer), in the terminal view and the
conversation view, on a phone and a computer:
- Microphone, screenshots and the prompt library ("/" or the book button) in it.
- It picks the path itself: one of the agent's own commands is typed as keys,
a screenshot goes through chat-send, a live session is typed into (paste +
Enter, as in the terminal), and with nothing running the words go as a task
that starts the agent or waits for the builder.
- "What's going on?" is the first chip above it; the header and the big button
that asked the same question are gone.
- Keys is a button in its tool row and opens only the keys — no second text box.
- Pressing the terminal puts the cursor in the box (or, with live keystrokes on,
hands the screen the keyboard).
- The Type / Prompt / Voice switch, the voice-only button and the exact-keys
composer are removed; Loki's side panel only asks, and a summary's step lands
in the box.
Next steps hold still: one set per settled screen or reply, waiting for the
fast model (then the rules), never reshuffled by a late answer, frozen while
you type, shown whole instead of clamped, two on a phone.
Prompt library:
- The picker lists your saved prompts first, then Loki's, with chips for Yours
and each group; the keyboard hint is hidden on touch screens.
- Search also finds a prompt by the words inside it, after name, tag and
description matches so a typo'd name still comes first.
- On /prompts the search box sits on top and searches your own prompts too.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
d88cab3923 |
feat(notifications): turn this phone's push on, prove it, turn it off (#1212)
Production held ZERO subscribed push devices (the messaging doctor, 2026-10-15): the server could send a push, the VAPID keys and the service worker were in place, and no screen anywhere offered a phone the choice — usePushSubscription was imported by nothing. A new report on a site reached no device, and said so only in a log line. - Settings → Notifications gets an "On this phone" card: Turn on, Send a test, Turn off, with a plain sentence for every state (not asked, working, on, blocked by the browser, unsupported — with the iPhone Add-to-Home-Screen fix — error with retry, server has no key). Pure view logic (lib/push-card.ts) is pinned by scripts/test/push-card.ts; copy is SSOT in config/comms.ts. - GET /api/push/public-key hands out the server's own VAPID_PUBLIC_KEY, so a phone no longer subscribes against a key inlined at build time that a build can lose or leave stale; POST /api/push/test sends one test push and names the failed precondition instead of a bare zero. - The page-render harness is now a shared core (render-harness.mjs) with a thin script per page; the push card has one, and rendering it is how a filled button 8px shorter than its neighbour, and under 44px, was caught and fixed. Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
75a5831b43 | Add guided project reviews with shared browser evidence and pause controls (#1211) | ||
|
|
5e6b4602ca | Rebuild the project workspace around current work (#1203) | ||
|
|
62a019fc2c | Keep explicit agent dispatches concise (#1202) | ||
|
|
2b0b1bc49a |
Unify mobile agent conversations, run status and shared project progress (#1201)
* Make mobile agent conversations and shared project progress coherent * Remove the retired automatic personal-goal dispatch reader * Keep the conversation connection indicator in sync with its live stream * Preserve existing phone install identity and clarify the historical implementation plan * Make session recovery instructions user-facing and record the security-alert source review * Carry project proposals into coding handoffs and clarify empty-session routing |
||
|
|
7fc8721b78 |
Do not brief agents with imported or retired notes (#1189)
* Do not brief agents with imported or retired notes. A knowledge.sqlite snapshot and a sentence that restates a retired fact were still costing health and riding along in every dispatch. Age alone still does not clear a note someone wrote in Loki. * Drop the unused import that failed lint. hasAnswer left today/page.tsx when the flag check moved to signalIsLive. |
||
|
|
a1b9d212b2 |
fix: no silent standing approvals for Loki's own ideas, and no dead-end stalls (#1168)
* fix(approvals): standing approvals cover what you ask for, never Loki's own ideas The owner saw "✅ Done — Check in with Rajif Rao" on Telegram and feared Loki had contacted someone without permission. Nothing was sent: a commitment is a row in the operator's own list. But the path was still wrong. The check-in producer writes its suggestions as create_commitment rows, so the "Record commitments I mention" standing approval silently approved one nobody mentioned, and the confirmation read as if the check-in had happened. - standing-approval: RAIL 0. Every proposal now carries a required origin ("operator" | "loki"); only operator proposals may ride a standing rule. - enqueueAction takes the origin from every caller and stamps it on the payload so the calendar drain's confirmation can say the same thing. - Check-ins, the night plan and propose calls marked "not asked for" are origin "loki"; chat, the agent's propose tool and MCP are "operator". - A commitment's confirmation now reads "📌 Added to your commitments — “Reach out to …”. A reminder for you. Nothing was sent to anyone." - The Approvals setting says Loki's own suggestions still wait for a yes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XXM7KBHBym6au4L6sxShwz * fix(control): a stalled queue always has a button, and names who holds it On a phone the owner tapped "Run it in the cloud" under "Waiting for this computer". The next refresh said "Stalled — 2 dispatches queued for 118m, the builder is connected but not executing them. Restart the desktop app or check the cloud builder if this persists", with no button, under a foot line that read "This computer offline". Three things were wrong: - The stall clock ran from created_at, so work the cloud had held for seconds was reported as 118 minutes stuck. A reroute now stamps reroutedAt and the detector measures from it. - The sentence blamed a desktop app for work the cloud was holding. The stall query now counts cloud-held rows too, and the headline names the builder that actually has the work and whether it is connected. - A genuine stall had no way forward. It now offers "Stop waiting" (POST /api/control/stop-waiting): the stuck rows close as failed dispatches, where Retry sends them again verbatim and Dismiss clears them, and their runs close so the project's lane is free. The consequence is stated in the headline before the tap. Both hero queue buttons now report what they did ("Handed 2 dispatches to the cloud builder.", or why a project stayed put) instead of firing and forgetting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XXM7KBHBym6au4L6sxShwz * fix(loki): a screenshot sent with "fix this" finds the project it shows On a phone the owner opened a new chat, attached a screenshot of Loki's own Control page and wrote "Fix this so it works properly". The thread read "No project — answers only": the text named no project, so the screenshot fast path could not dispatch, and the picture was only ever described, never used to decide where the fix should go. - The vision preflight now opens with one line, "Shown: <app or site, and any URL visible>". - projectShownInScreenshot picks a project only when the evidence points at exactly one: a project's live host visible in the analysis (compared whole, so loki.orangecat.ch is Loki and not OrangeCat), else a single project named on the Shown line. Projects merely listed on the screen do not count, and two candidates stay a question for the person. - When Loki chose the project this way the reply says so and how to pick a different one, so a guess never reads as the person's own choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XXM7KBHBym6au4L6sxShwz * fix(notify): a failed run's Telegram message links to where Retry is "❌ loki: run error … choose another AI provider and Retry" arrived with nothing to tap. Failed, partial and timed-out runs now carry one button, "Open <project> in Control", which lands on the project card where Retry and the provider switch live. Successes stay buttonless. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XXM7KBHBym6au4L6sxShwz --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
696ce72e21 |
feat(builder): Loki from another computer offers the cloud, never a download (#1157)
* feat(builder): Loki from another computer offers the cloud, never a download The owner opened Loki on a second Mac (2026-10-12). Every builder surface named "this computer", said Fleet Runner was not connected there, and offered one fix: download the desktop app. "This computer" is per account — presence is one row per user — so from any other device that offer is a trap, and the account's cloud builder was online the whole time. The download it got is unsigned, so macOS called it "damaged". - lib/builder-way-forward.ts: the one answer to "nothing is running this work" per account — run it in the cloud / wait for the cloud / connect Fleet Runner / unknown — from cloudBuilderAllowed + presence. The download is honest only while the cloud is private for the account. - Dispatch card (Loki chat): a dispatch waiting for "this computer" gets "Run it in the cloud" (POST /api/control/reroute, same command id) when the account has the cloud; the download only when it does not. - Control setup banner: an account with the cloud reads that there is nothing to install; the offline variant no longer says "re-install". - Empty terminal: "Use the cloud builder" leads before "Get Fleet Runner"; the machine source's "not connected here" line names the cloud instead. - /api/builder/presence and /api/control carry cloudBuilderAllowed; useBuilderPresence is one shared poller for every reader (it was one interval per component, so a card per dispatch could not have it). - /download (macOS): the "damaged" dialog is Gatekeeper on an unsigned build, not a bad file; right-click → Open does not clear it. The page leads with the .zip and one Terminal line (ditto, xattr -cr, open). Signed builds need an Apple Developer account — docs say what it costs. Tests: builder-way-forward (new), dispatch-card (+5), phone-chrome updated to the moved wiring; execution-access, control-presenter, auto-reroute, dispatch-status, fleet-context pass. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Xssd1hFZCUSxqjACjoVBB * fix(terminal): no "start it, and it opens here" while the builder is offline A deep link to a project with no session rendered the session-miss screen ("sink isn't running on Cloud builder — Nothing is attached. Start it, and it opens here") while the chip beside it read "Cloud builder offline". The owner, on a second computer: "classic dead end" (2026-10-12). The miss is only a miss when the builder could have a session. Offline or gated, the empty state renders instead: it says the builder is down, what happens to the work, and offers the way forward for this account. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Xssd1hFZCUSxqjACjoVBB --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
06cf743de9 |
feat(browser): fill forms on the phone too — Loki for Firefox and one /fill page (#1156)
* wip(browser): Loki for Firefox + /fill page (validation in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck * fix(fill): long values wrap under their label on a 320px phone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck * style: prettier on the extension test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck * fix(demo): /api/browser-task is denied in the demo sandbox — it reaches the owner's machine Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7bf3220106 |
feat(browser): Loki fills a web form on your computer and stops at the final button (#1152)
A step behind the operator's own login ended in Loki listing fields to type. On 2026-10-11 npm's trusted-publisher form took three rounds of chat and a phone screenshot, and still hid two traps: an autofilled "Bitbaum" that cannot be edited once saved, and "Allow npm publish" off by default. Now Fleet Runner opens the page in Loki's own browser window (persist:loki-browser, so a sign-in sticks), fills it, outlines the final button and stops. The operator presses it and confirms any passkey. - config/browser-tasks.ts: recipes are the SSOT and the only thing a queued row can name — no raw url or free-form steps reach the runner. First recipe: npm-trusted-publisher. - lib/browser-fill.ts: one self-contained filler, found by visible label, React-safe value setter, idempotent, never presses the hand-off button. - browser_task pending command, channel "local"; validated on both sides. - Loki chat tool fill_web_form and MCP tool loki_browser_task (loki.act). - Fleet Runner 0.8.41. Tests: scripts/test/browser-fill.ts drives a React form built like npm's in Chromium, against a runner-style bundle and the actual Fleet Runner build (35/35; mutation-checked: a plain .value set fails 3). mcp-server 75/75, desktop-command-validator 17/17. Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
0096d86a4c |
feat(ship): done means seen — ship reports, and Loki records how Build next is used (#1150)
"Build next" (#1141) was reported to the operator as a merge notice: merged at 21:14, "should go live on its own", "I haven't confirmed that, or tried the screen in a browser myself", open /loki and tap a chip. Read on a phone. No link, no picture, no statement of what was checked — every rule this repo already states ("confirm the commit is LIVE, not just merged"; the fleet brief's "done means merged, deployed and checked live") skipped, because checking took tooling nobody had wired together. Ship report (`pnpm run ship:report -- /route --focus '<selector>'`): - confirms the running site's build commit contains the shipped one (/api/health `commit`, with `--wait` to sit out the deploy), never a guess from a timestamp - screenshots the real deployed page at 390 and 1440, crops the built section, counts console errors and 5xx during load - writes REPORT.md: live URL first, screenshots, what was and was NOT checked; exits non-zero while the build is not live or the section is missing - session auth shared with the responsive audit in scripts/test/lib/session-cookie.mjs (extracted, not duplicated) The contract — docs/development/ship-report.md — keeps the message it replaces, and the fleet brief now tells every dispatched agent to report the live URL first, a screenshot, and what was verified. After it ships, Loki watches whether it is used: operator_usage_events records each show, tap and rotate of Build next (surfaces and actions SSOT in src/config/usage-surfaces.ts; /api/usage refuses anything else; target is an id, never prose). A pure summariser turns the rows into one line per surface — shown, tapped, kinds offered and never taken — and a `usage` retrieval source hands it to Loki: "how am I using Build next?" leads with it, and every "what should I build?" reads it before recommending, with a prompt line to say when a surface is shown and never used and propose the one change. Tests: scripts/test/usage-summary.ts (registry refuses unlisted pairs, never-shown surface reported, window honoured, planner leads with usage when asked about use); retrieval-plan, telemetry-freshness, fleet-brief and account-deletion gates extended or passing as-is. Claude-Session: https://claude.ai/code/session_016T1Vm7uYyhpgUxbD3xXro9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
6c20cd4e0a |
feat(autopilot): the night works from what you said, and no further than you allow (#1123)
* feat(autopilot): the night works from what you said, and no further than you allow The night used to be `nudge-idle`: wake three idle projects at 04:00 with a generic "pick the highest-impact action" prompt, with no limit on what that spent and no record the owner could read in the morning. A run with no brief is where the queue of things nobody asked for came from. The night now - builds from the feedback inbox — one fix per project, the owner's own notes first, then what most visitors hit — through the same Implement path as the button, so a night's run is a person's run: same prompt, same auto-ship rules, same ledger; - is capped by a per-account budget counted in RUNS (beacon_settings .night_runs, default 4, max 20, 0 = file away but build nothing). A run is the unit that spends the owner's agent credits, and a run cap holds whether or not the runner reports a price; - reads one site not read this week, when there is budget left, through the same review prompt as "AI review this page" (now shared in lib/feedback/ai-review-prompt.ts), filing findings into the inbox; - files away reports nobody started in 21 days, with the reason on the row (site_feedback.archive_reason, cleared on reopen); - hands rows waiting for a shut laptop to the cloud builder; - writes one row per (user, night) to autopilot_nights and leaves one line on /feedback, Telegram and push — nothing when it did nothing. Decisions are one pure planner (src/config/autopilot-night.ts, tested in scripts/test/autopilot-night.ts); the lib gathers facts and carries the plan out; the same dispatch gates as Control refuse a working, blocked or failing project; a project paused on Control takes nothing. No model is called from the timer — every night action is an agent run on the owner's builder or a count — so no-free-background-ai stays green. Settings → When an agent finishes gains "Overnight: up to N runs a night"; the autopilot copy on Settings and the Control sheet says what On means now. docs/paths.md path 3 and CHANGELOG record it; effective-loop-operations.md names the night in place of the idle cron. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4 * docs(telegram): register the night's morning note The registry gate found the one new path that can reach the phone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
3ce95843d3 |
feat(control): work waits for nobody — an offline computer hands off to the cloud (#1119)
A phone tap ("Fix this" in the widget, "move forward" in chat) on a project
that prefers this computer sat "Queued for this computer" for 106 minutes
beside a cloud builder reading "online · not executing", and the hero told
the operator to restart a desktop app that was simply shut.
Routing
- A project that merely PREFERS this computer (no locus lock, cloneable
repo) falls through to the cloud builder when this computer is offline at
dispatch time and the cloud is online: `offlineFallbackChannel` +
`decideQueuedExecution({ offlineFallback })`. The chat says so
("… this computer is offline, so the cloud builder took it. Nothing to
do.") and the stored preference is untouched. A lock never falls
through; a cloud preference never falls to a laptop that cannot clone.
- The executor swaps in the cloud clone dir for a rerouted dispatch.
Already stuck
- `POST /api/control/reroute` (lib/reroute-queue.ts) moves unclaimed rows
waiting for this computer to the cloud — one row or all — on projects
the same rule allows; an `inject` row becomes a `dispatch` so it lands.
- Control hero: "Waiting for this computer · N queued 106m (loki), which is
offline. The cloud builder is online and can take it now." with ONE
button, "Run it in the cloud". The stall query reports `localQueued`.
- Feedback card: "This computer is offline — the cloud builder can take it
now" with the same button in place of "Open Fleet Runner … then Retry".
Control page, from the widget's own findings
- "N awaiting input" / "N working" now narrow the roster to that bucket,
with a chip to clear it (on a phone the tap changed nothing on screen).
- The page title is the shell's h1 at every width (md:sr-only), the Find
project and new-project fields carry labels, and the roster's 10px
evidence line and sort chips are 12px.
Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
fb25ac6734 |
feat: say who you're talking to, and whether the change is live (#1067)
* fix(terminal): name the conversation after the agent in the session; "Loki" is the supervisor only The view switch read "Loki | Terminal" (#1041). That named the coding agent's own conversation after a different AI: Loki runs on whichever model is first in its chain, and the thing in the session is Claude Code today, Codex tomorrow. The operator reported the result on 2026-10-07: "there can be one model powering the chat, and another model is open in the terminal". - TerminalViewSwitch takes the running agent's label: "Claude | Terminal", "Codex | Terminal", "Chat | Terminal" when unnamed. - "Loki" goes back to the supervisor panel: the desktop pane button and the session-sheet section, whose row now says it answers on Loki's own model. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jbux2e4GEruUYXn1PC3VhM * feat(projects): the Build strip ends on the outcome — live at skif.ch, or waiting on you The project page knew whether an agent was working, how the last run was graded, and (in the run's fix ledger) whether the change had merged and deployed. It read the first two and said "work reached the repo" — true, and not what the person who asked for the change wanted to know. - lib/project-state-sentence: one sentence per project (headline, detail, tone, waitingOnYou), from the build status plus the shipping ledger. Ends on the outcome ("Live at skif.ch", "In review — goes live by itself", "Merged, but not live"), never on the mechanism; no PR numbers, CI or auto-merge in the words. `waitingOnYou` is true only when nothing moves until the operator acts — a change in review is not waiting on anyone. - LastAttempt carries `shipping` (normalized payload.fix), and `landed` honours a deployed ledger, so a timed-out run that shipped is not "nothing". - ProjectBuildStatus renders the sentence; its kicker follows the tone, and a link to the live site or the change sits in the text — the action slot stays the one button that starts work. Control's card already shows the ledger line; Today lists only flagged projects. Both unchanged here. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jbux2e4GEruUYXn1PC3VhM --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1138940bc2 |
fix(terminal): Chat in the switch, prompts that fit the screen, nav off the keyboard; questions stay questions (#1040)
From a phone report on /terminal and /loki (2026-10-05): - The input switch ended in a "Loki" chip that opened the same panel as the header's Loki button; tapping it was expected to show the session as a conversation. Chat is now the switch's first position (Chat · Type · Prompt · Voice) on phone and desktop, the chat view carries the same switch back, and the duplicate header chat icon and desktop "Conversation" button are gone. Picking an input mode also shows the terminal. - The Prompt box offers up to three prompts read off the screen (lib/terminal-suggestions.ts): the PR whose CI is pending or red, an error on screen, a y/n question, "continue" after Completed. A tap fills, never sends. - With the soft keyboard up the bottom nav floated over the Prompt box and the terminal was squeezed out. The nav now hides while the keyboard is up (fc-keyboard-open, every page), and in Prompt the key deck folds away until the keyboard closes. - "Are you able to work on improving Loki in this field." was queued as agent work: no question word the resolver knew, no question mark, and " on " hit the last-resort task rule. Auxiliary-led yes/no questions are now chat, and the no-LLM fallback keeps questions as chat too. - The queued-offline reply named the builder and then said "starts when a builder is online (cloud or this computer)". It now names only that builder. Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
77ad544875 |
feat(terminal): attach from a phone, swipe to scroll, one bar, no dead ends (#1042)
* feat(terminal): attach from a phone, swipe to scroll, and a full screen that is full
Attaching. The paperclip on a phone opened a chooser of capture apps (Camera,
Camera, Recorder, "Photos & Videos") with no way to the screenshot: one file
input with a mixed accept. The composer is chatkit's, so the fix is there
(bitbaum/chatkit: Camera / Photos / Files sheet, one input per source) and
this bumps the pin. Control's own paperclip (attachment-strip) now renders
chatkit's AttachMenu instead of its own mixed input, and a picked PDF gets a
sentence instead of being read as text.
Attaching in the conversation view. It had attach={false}. A message with a
screenshot is folded by the same lib/composer-attachments every dispatch
uses (new /api/control/fold-attachments: the fold and nothing else) and
pasted into the session like any message. sendKey is now one serialized
chain, so Enter can never overtake a long chunked paste.
Scrolling. xterm 6 scrolls on the wheel only, so on a phone a swipe moved
nothing. lib/terminal-touch-scroll.ts turns a vertical swipe into
scrollLines, carries sub-row movement, glides after a flick, and leaves taps
alone. Verified with real xterm in Chromium under touch emulation: 0 lines
before, ~1 line per row of finger travel after. A "Live" button returns to
the newest output while scrolled back.
Full screen. Expanded kept the whole dock (two key rows, mode chips,
composer: more than half the phone), so it bought a few rows and read as
four toolbars stacked under the session. Expanded now collapses the dock to
one bar: Keys and Write open their panel on demand, Esc and Enter stay on
the bar. The phone switch drops Voice (the composer's mic dictates) and its
Loki chip (the header's Loki button is the one entry point).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
* feat(ux): one composer per screen, one bar on the phone, no dead ends
Verified on the real app (production build, local Postgres, demo tenant,
a stubbed live session) at 320/390/768/1440: responsive audit green on
every page; screenshots of each changed surface.
Terminal, phone. Both layouts are now one bar (Keys / Write; Esc / Enter
while watching) with one panel open. The normal page opens on Write, full
screen on nothing. The stacked dock (two key rows + chips + composer) is
gone from both.
Conversation view. A builder that never sends the transcript used to show
"The conversation isn't coming through … Fleet Runner 0.8.38" — now the
surface shows the terminal for that session and drops the toggle, without
touching the saved preference.
Loki panel. A working run said it three times ("Working · 2 min" /
"Agent is working" / "Agent is generating. Inject to steer…");
railStatusLines prints only lines that add something. In the conversation
view the panel is Ask-only, so the page never shows two composers for one
session. Plain empty copy; the "Full chat" text link is an icon button.
Sheets. On a phone a bottom panel is a real sheet on the bottom edge — it
floated ~90px up, clearing a bottom nav that is hidden while it is open.
Floating clutter. The Ask Loki bubble is gone from /terminal (it sat on
the Loki panel's Send); on phones the feedback launcher hides behind the
bottom nav and "Report a problem" lives in the account menu.
Dead ends. An offline/gated terminal offers "Use this computer" and "Get
Fleet Runner" as buttons. Control's never-connected banner is one
sentence and one button: the duplicate "Start a new project" card goes,
and the five CLI installers — which queued commands no builder would pick
up — only show where a builder can act on them.
Also: no-op input-mode chips hidden in the conversation view; memory
descriptions wrap instead of a hover-only ellipsis; the responsive audit
honours CHROMIUM_PATH. Tests: phone-chrome.ts, railStatusLines cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
* fix(shell): Report a problem falls back through the router, not location.assign
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
* chore(deps): pin chatkit to the merged commit of bitbaum/chatkit#7
Same tree as the branch head it replaces (5c2cdd6), which was deleted
after the squash-merge; pinning main's commit keeps the install
fetchable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
4abd1664c0 |
feat(terminal): one Loki | Terminal switch, drawn in both views at every width (#1041)
* feat(terminal): the dock's Loki switch shows the session as a conversation Beside Type / Prompt / Voice, "Loki" read as a fourth way of working and then opened a side panel about the session instead. It now switches the screen to the session as a conversation — the chat-app view (ClaudeChatView) that was only reachable through an unlabeled icon in the header. Where the agent writes no conversation log (not Claude), the chip still opens the Loki panel; the header's Loki button keeps opening the panel everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jbux2e4GEruUYXn1PC3VhM * feat(terminal): one Loki | Terminal switch, drawn in both views at every width The terminal screen named two different things "Loki" and hid a third behind an icon: a speech-bubble icon in the phone header (the conversation view), a "Loki" header button (the run summary panel), and since the last commit a "Loki" chip in the dock that disappeared with the dock the moment you used it. On desktop the conversation view had no way back at all — its only entry was a "Conversation" button inside the terminal pane. - TerminalViewSwitch: one labelled Loki | Terminal control, current view marked, in the phone header and the desktop session bar. - "Loki" now names only the conversation view. The run summary panel moves to the session sheet on phones and is "Summary" on the desktop pane. - Input modes (Type / Prompt / Voice) show only in the terminal view, where they do something. - Under 375px the switch drops its icons so the session name keeps its width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jbux2e4GEruUYXn1PC3VhM --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
a1cc13053c |
feat(mcp): message Loki from any AI app; the Telegram agent reads screenshots and videos (#965)
* feat(openclaw): the Telegram agent reads screenshots, photos and videos The Telegram agent is OpenClaw on bitbaum, and OpenClaw already describes inbound media before the chat model reads the turn — but on defaults that cut every description at 500 characters and read one attachment per message. A screenshot lost most of its text; an album was read as its first picture; video had a one-line "Describe the video." prompt. - scripts/openclaw/media-understanding.json: versioned tools.media.image and tools.media.video blocks (Gemini; screenshots transcribed verbatim, albums read whole; videos returned as transcript + visuals + claims + authenticity signs so the agent can argue about whether a clip holds up). tools.media.audio is deliberately untouched — voice notes already work. - scripts/openclaw/install-media-understanding.sh: the only way it reaches the box. Refuses without a Gemini key, writes through OpenClaw's own schema-validating `config set`, restarts the gateway, then proves an image (and, where ffmpeg exists, a video) is actually described. - scripts/test/openclaw-media-config.ts: pins the limits and the audio hands-off rule. Validated against openclaw@2026.4.23's schema locally. Not yet applied to the box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018tsc8Yu7TQR9a6Y5xNYkeD * refactor(actions): share the decision and the enqueue report; let a turn be read-only Groundwork for the MCP server, so it calls the same code the chat seams do instead of a copy of it: - lib/actions/decide-action.ts: approve/reject one draft, lifted out of POST /api/actions/[id]/decision (which now calls it; wire shape unchanged). - lib/actions/enqueue-report.ts: what an enqueue outcome may truthfully be called (auto-approved / awaiting-approval / deduped), lifted out of POST /api/actions/propose (wire shape unchanged). - config/orangecat.ts: the OrangeCat origin and OAuth issuer in a DB-free module; Auth.js and the identity bridge read the issuer from here instead of each re-deriving it. - askLoki / runLokiTurn take `readOnly`: the tool loop drops its propose tools and the OpenClaw gateway fallback is skipped, so a caller granted conversation but not action cannot get Loki to act by asking. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018tsc8Yu7TQR9a6Y5xNYkeD * feat(mcp): a remote MCP server so AI apps can message Loki and have it act POST /api/mcp speaks MCP Streamable HTTP (stateless JSON-RPC 2.0; protocol 2025-11-25 / 2025-06-18 / 2025-03-26). claude.ai and ChatGPT connectors, Claude Code and Cursor can ask Loki, list the approval queue and projects, dispatch work, book appointments and decide queued actions. Auth: a ck_* agent token (both scopes), or an OrangeCat RS256 access token verified with node:crypto against the issuer's JWKS — iss, aud (must be the Loki resource URL, never a client id), exp. `sub` maps to the Loki user via orangecatActorId; an unlinked actor gets the sign-in step, not a 500. A missing or bad token is a 401 whose WWW-Authenticate points at the RFC 9728 metadata served at /.well-known/oauth-protected-resource(/api/mcp). Scopes loki.chat / loki.act and the tool map are SSOT in src/config/mcp.ts. Act tools go through injectPrompt, enqueueAction and decideAction — the functions the Telegram skill's routes call — so the approval queue gates them exactly as it does there. Both paths are excluded from the session middleware (proxy.ts, with the reason), registered in api-route-auth and the demo sandbox. Docs: docs/development/mcp.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018tsc8Yu7TQR9a6Y5xNYkeD * fix(openclaw): match the installer's smoke output with a here-string, not a pipe printf | grep -q can report a miss on a match under pipefail (grep exits, the writer takes SIGPIPE). no-grep-q-in-a-pipe caught it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018tsc8Yu7TQR9a6Y5xNYkeD --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
839f35ef6c |
fix(feedback): one inbox surface, project links by id, a render harness (#961)
Landing from Implement on /feedback?project=<id> printed "Nothing waiting
on you for 5936f8fb-…": the inbox filtered by project NAME and showed the
reader the id, on a page whose chips, stat cards and section heads were
each drawn in a different style. Every check was green; nobody had
rendered it.
- The ?project= filter resolves a name or an id against the data; an
unknown value filters nothing instead of printing itself.
- A project-scoped view names its subject ("Showing petvity · 1 open ·
All projects"), scrolls the active chip into view, and drops the
per-row project chip. An empty project view says what is shipped and
offers "Show all projects" / "Open <project>".
- One chip primitive (ui-inbox-project) for project and source filters;
sections use the ui-inbox primitives; the three stat cards are one line
(metricsLine, pure).
- A failed row has one primary button: the provider switch (or Retry);
Watch steps down to secondary.
- Any refused feedback run gets one automatic second attempt; only
commands the runner could not read, dead credentials and a missing
workspace still stop. Test updated.
- scripts/preview/build-feedback-preview.mjs renders the real inbox with
fixture rows in headless Chromium at 390 and 1280, dark and light, for
every ?project= shape, failing on overflow or a console error. REVIEW.md
records the definition of done this adds; responsive-design.md documents
the harness.
Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
75c870da2d |
fix(terminal): PTY follows the grid, expandable full-width pane, one composer (#887)
* fix(terminal): resize the PTY to the grid on screen, not only when typing The resize was published only from an interactive (Type + live keys) view, so Prompt mode, Voice mode and every phone fitted xterm locally and never told the PTY. Measured: 79-col grid drawing a 120-col PTY on desktop Prompt mode, 86 vs 120 on a 390px phone — torn words and stray columns at the right edge. Fit + publish now run on mount, on every host resize, on a font step, and re-assert on window focus. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(terminal): one composer for chat and inject; expandable, full-width pane - components/composer/Composer is THE composer (text, attach, voice, model, Send/Stop, optional modes). Loki chat (LokiComposer), the terminal's Ask/Inject rail, the Prompt-mode box / phone dock and Control's quick send all render it. TerminalLokiComposer (bare textarea, no attach/voice) is deleted; Control's one-line ⌘Enter input is gone. - The rail's Inject is the prompt composer while the rail is beside the session, so the page no longer shows two inject boxes at once. - Terminal pane: rail is a fixed width (lg+) instead of 40% of the row, can be closed (remembered), is a sheet below lg; Expand works at every width and Esc leaves it, except when typed into the xterm or handled by a dialog. - Tests: one-composer (logic, per-call-site render, no private textareas), terminal-expand (Esc rules). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
fcd38cb463 | fix(loki): clarify terminal and retire stale guidance (#866) | ||
|
|
602a581c46 |
Organise navigation around the operator loop, give the header an identity, and stop Control contradicting itself (#797)
* refactor(shell): organise navigation around the operator loop, and give the header an account menu The sidebar carried 27 destinations in four sections, one of which was named "More" and held Approvals, Terminal, Prompts, Activity, System, Thoughts and the PUBLIC /fleet register — seven pages whose only shared property was that nobody had decided where they went. Alongside them sat a "Site" section: Mission, Philosophy, Roadmap, Whitepaper and Investors, in the signed-in app navigation. Loki is an operator console. Its surface answers three questions, so the sidebar now has exactly three sections and each one states its question: Now — what needs me? Today, Approvals, Feedback Fleet — what is my fleet doing? Control, Projects, Activity, System Command — how do I act on it? Loki, Terminal, Prompts Private stays PIN-gated below them. The marketing pages left the signed-in shell and stay reachable through Cmd-K, which now indexes NAV directly rather than whatever happens to be in the sidebar — curating the sidebar must never make a page unfindable. Alongside that, identity: - There was no way to sign out from the header, and nothing anywhere in the top bar said who was signed in. A grep of components/shell/ for "avatar", "UserMenu" or "ProfileMenu" returned nothing. Sign out, Settings and the private-zone lock lived in the sidebar footer, which is `hidden md:flex`, and were duplicated in the mobile Menu sheet's footer: two account menus, neither called one, and none where users look first. - AccountMenu now owns all of it, in the top bar, on every viewport. - The theme toggle moved inside it. It was the only control in the top bar drawn with a border and a fill (ui-theme-cycle-btn) while every signal beside it was a bare ghost circle (ui-topbar-btn) — a preference outweighing every piece of live state on the page. - SidebarFooter is deleted. Its collapse button was marked `md:hidden` inside a panel marked `hidden md:flex`, so it could never render on any viewport; SidebarBrand has always owned the working toggle. Two retired NAV entries are deleted rather than hidden: `agents` → /control and `atlas` → /projects pointed at the pages that replaced them, and since NAV_ITEMS is what AppTopBar and PageTitle scan for "which page am I on?", the first match won — /control would have been titled "Agents". Their redirect pages reference the targets, so the redirects stay honest. scripts/test/navigation.ts is rewritten to defend the new structure: every section must state its question, "more"/"misc"/"tools"/"site" are rejected by name, account items may not appear in the sidebar, marketing items may not, no two items may share an href, and the bottom bar must carry one entry point per loop section. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159PhgGrn6ccwfwVTJoTuYx * fix(control): stop the hero claiming "Idle" over a queue of six things Observed on prod: the Control hero read "Idle — nothing queued" while a panel titled "Needs you", badged 6, sat roughly a screen and a half below it, under a 23-project list. One page, one question — is anything waiting on me? — and two answers, with the confident wrong one on top. Two distinct faults, fixed together because either alone leaves the page contradicting itself. 1. The hero could not see the queue. deriveFleetPulse read agents, run outcomes and projects awaiting input, and nothing else, so the one queue on the page that literally counts things waiting on the operator was invisible to the headline that summarises them. It now takes `inbox` and ranks it last among the states that say something is up — a stall, a failure, a half-finished run and a blocked project all still outrank chores — but comfortably above "Idle". `unknown` is a separate state from `count: 0` on purpose. A queue we failed to read is not a queue we know to be empty; ControlInbox already refused to render silence as the answer "no", and the hero now refuses too. The count could not be lifted while it lived inside the panel rendering it, so the fetches moved to `useControlInbox`, called once in ControlPanel and passed down. One read, two consumers, one truth. It also removes a third copy of the /api/feedback/summary request from the page. 2. The panel was filed in the wrong tier. ControlPanel's own ordering rule says tiers 1-2 are about a human being blocked and "reporting never renders above blocking" — and a queue titled "Needs you" with a count badge is the definition of tier 2. It sat in tier 4. It now sits with AttentionBar and AgentEscalations, which it can afford because of how it was built: one line per group until opened, nothing auto-expanding, and nothing at all rendered when the queue is empty. Two rows above the fleet, not the ~1,400px of unbounded strips it replaced. The `inbox` state takes the warning dot rather than neutral grey, for the reason the `partial` state already does: grey beside the words "Waiting on you" is the page agreeing with itself in tone while disagreeing in substance. `unknown` stays neutral — that one really is "no idea". Four tests pin it: a non-empty queue is never Idle, an empty one still is, an unreadable one is not a claim of emptiness, and real trouble still outranks chores. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159PhgGrn6ccwfwVTJoTuYx * fix(design): un-invert the dark text ramp, and make token drift a build failure @bitbaum/design-tokens calls itself "the design single source of truth for OrangeCat, Loki and Solon". Solon proves it — its globals.css is 19 lines and imports the package. Loki's is ~5,800 and declares its own ramp, with the package present only as a devDependency used to generate the widget theme. A comment here said the quiet part out loud: "Loki still declares its ramp locally, so the value is kept in step by hand." Nothing was keeping it in step. Measured: Loki and the package disagree on 32 of the 36 tokens they both define, and the disagreement has a shape — someone transcribed the DIGITS between colour spaces without converting them. `--text-secondary` is `oklch(0.4 0 0)` here and `0 0% 40%` there; those are 30 of 255 apart. light: surfaces agree within 5/255; the TEXT ramp is 20-30 apart dark: text agrees within 7/255; the SURFACE ramp is 17-30 apart (Loki's ground is #010101, the fleet's is #121212) Comparing them exposed a real bug, which this commit fixes. Loki's documented ramp is primary → secondary → tertiary → muted, each quieter than the last. The light block follows it (0.1 → 0.4 → 0.58 → 0.72). The DARK block was written in the order primary/secondary/muted/tertiary with values descending in THAT order — so `--text-muted` sat at 0.65 while `--text-tertiary` sat at 0.59, and text marked muted rendered BRIGHTER than text marked tertiary. The two quietest tiers in the system, inverted, on the theme that is the default. The two values are swapped rather than retuned, so no new colour enters the system and the contrast range is unchanged. The rest is a gate, not a migration. Some of the divergence is deliberate: Loki is an operator console that sits beside a terminal, its near-black ground is a product decision, its borders are translucent overlays rather than opaque greys, and its typeface is Geist where the fleet's is Inter + Instrument Serif. Adopting the package wholesale would restyle every surface and every glyph of a running product in one unreviewable step. So scripts/test/token-drift.ts requires every difference to be DECLARED. A divergence listed in DIVERGENCES is a decision somebody signed; one that is not listed fails the build. Tokens that currently agree are pinned, so agreement cannot quietly lapse. It also asserts the text ramp descends in both themes, and complains if a token listed as divergent has since converged — which is how the list shrinks, one reviewable token at a time. It is picked up automatically by scripts/test-unit.ts (which globs scripts/test/*.ts), so it runs in `verify` and in CI without further wiring. Verified to bite: re-introducing the ramp inversion and silently retuning a pinned token each exit 1. Docs corrected to match the shell as it now is: CLAUDE.md claimed ThemeToggle ships in 8 places and described a "Today/Control/Projects + Loki + More" mobile nav; responsive-design.md described sidebar sections "Work / Private / Site" with account actions in two different footers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159PhgGrn6ccwfwVTJoTuYx * refactor(shell): stop two navigation surfaces answering a question already answered Loki ran six navigation surfaces at once — sidebar, top bar, the Profile/Chat/Control/Terminal strip, the mobile bottom bar, the Menu sheet and the command palette. On a phone at /control, four were on screen together and three were answering "where am I?". Two of them now stand down where they add nothing. FleetSurfaceGuide renders only with an active project. Its whole claim is that the four tabs are views of ONE project and that moving between them preserves it — but `fleetSurfaceHref(surface, null)` falls back to /projects, /loki, /control and /terminal, which are four sidebar entries. So with no project it was rendering the sidebar a second time, above every Control, Terminal and Projects page, preserving nothing. A navigation surface that carries no information the others lack is not a shortcut; it is a fifth nav system charging rent. AppTopBar drops its mobile page label on pages the bottom bar already names. Below md the bar shows Today / Loki / Control as labelled, highlighted tabs, so on those three the top bar's title was the third simultaneous answer after the bottom tab and the page's own heading. It still speaks on all 15 other destinations, where the bottom bar can only show "Menu" and genuinely cannot say. scripts/test/nav-surfaces.ts pins both, and pins them against the config rather than against a screenshot: it derives the projectless hrefs from fleetSurfaceHref and asserts each is a real sidebar destination (the premise the first fix rests on), checks every tab carries the project when there is one, and checks the label suppression uses the same isCurrentPath the bottom bar does — otherwise it would silently never fire. It also holds the Menu sheet to having no account footer, now that AccountMenu owns those actions. Verified to bite: reverting the strip gate fails the suite. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159PhgGrn6ccwfwVTJoTuYx * fix(ci): pre-push ran the wrong suite for scripts/test/ The hook classifies changed paths into three arms and runs the gates each one can break. `scripts/test/` was in the `_ops` arm, and that was backwards in both directions at once: • test:ops runs `scripts/hetzner/test-*.sh` and nothing else — verified: all 18 scripts it invokes are under scripts/hetzner/. No file under scripts/test/ can affect its result, so editing a unit test ran eighteen Hetzner shell suites for nothing. • scripts/test/ holds the 218 .ts files that ARE the unit suite (scripts/test-unit.ts globs the directory). The unit suite runs in the `_app` arm, which scripts/test/ did not trigger. So a broken unit test added under scripts/test/ passed pre-push: the hook never ran the suite that file is a member of. Now: `scripts/test/*.ts` → `_app` (tsc, lint, design, desktop, test:unit, test:home). `scripts/test/*gate.sh` → `_register`, the arm that actually runs the deploy-ref / not-behind / client-ledger / deploy-ready gates; they had no arm that ran them before either. `_ops` keeps hetzner and site-template. scripts/test/pre-push-routing.ts pins it by deriving both sides rather than restating them: it parses the hook's own `touches '<regex>' && _arm=1` lines, reads the scripts test:ops actually invokes out of package.json, and asserts each path reaches the arm that covers it. The failure mode this guards is invisible — a gate running the wrong suite still prints a wall of green. Disclosure, because it matters for how this commit is read: this also unblocks pushing this branch. test:ops fails 4 of 92 checks in a container running as root (the .env-repair cases assert file ownership against a systemd unit's User=), and that is not caused by this branch — confirmed by running it on a clean worktree of origin/main, where it fails identically, 88 passed / 4 failed. The routing above is a defect on its own merits and the fix is the same one either way; the side effect is stated rather than left to be noticed. Those 4 ops failures remain, unaddressed by this branch, on main. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159PhgGrn6ccwfwVTJoTuYx * chore(design): ratchet the dead ui-* rules in globals.css check-loki-classes.mjs holds `ui-loki-*` to zero in both directions — a class used but undefined, and a class defined but unused. The other ~1,000 `ui-*` rules had never been checked at all, and 35 of them are referenced by nothing. That matters more here than in most codebases. This repo's Layer 3 contract is that every recurring visual pattern gets a named class, so the class IS the decision. Someone looking for "how do we draw a metric card" finds .ui-control-metric-card, -value, -label and .ui-control-metrics-grid sitting in globals.css and reasonably concludes that is the house style. Nothing has used them in months. Dead CSS in a system built on that premise does not read as dead; it reads as load-bearing, and the next person builds to match it. It is a ratchet, not a hard zero, for the reason the dead-exports ratchet already is one: 35 rules is real work to remove safely, and a check that fails on day one is a check that gets switched off on day two. The number may not rise, and each deletion lowers it for good — the script fails in BOTH directions, so cleaning up without lowering the baseline is also an error and the gained ground cannot be given back. Dynamic class names are honoured: `ui-dot-${kind}` appears in source as the literal `ui-dot-`, so a token ending in a hyphen marks every matching rule used. Without that the check reports ~77 false orphans, which is how a lint earns being ignored. Eight such prefixes are in play. Also deletes .ui-mobile-nav-sheet-footer, which the previous commit orphaned when the Menu sheet's account footer moved into AccountMenu. Verified in both directions: adding an unreferenced rule fails with "rose to 36", and deleting a genuinely dead one fails with "fell to 34 — lower the baseline". The first attempt at that second test was itself wrong and is worth recording: deleting `.ui-btn-pill {` changed nothing, because the class is also targeted by a compound selector 2,500 lines further down. The checker was right and the test was wrong — which is exactly the sort of thing a rule counted by hand gets wrong. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159PhgGrn6ccwfwVTJoTuYx --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f1d35e5d93 | feat(fleet): expose canonical public development profiles (#737) | ||
|
|
f7c4e35fdc |
feat(builder): a project can pin its work to the hosted runner — no Claude credential needed (#718)
builder_pref gains a third value, 'hosted'. A project pinned to it never touches a runner PTY: the dispatch goes straight to the hosted runner (Hermes in its own clone on the box, on the providers the box already holds keys for — Copilot, Gemini, Groq), and the hosted runner closes the tracked run with the pull request as evidence, so the outcome reaches the thread that asked, like any other run. Why now: the box's Claude Code credential died silently and every self-dispatch hung, while Hermes on the same box answered fine. The unattended path should not depend on a person's Claude subscription at all. - statuses.ts: HOSTED_BUILDER_PREF / BUILDER_PREFS (channels stay what they were — nothing claims 'hosted' from a queue); API enum widened. - inject-core: hosted branch before the channel pin; run id travels in the hosted_dispatch payload. - hosted-runner: closeHostedRun() through updateOrchestrationRun (outcome turn, ledger, escalation bookkeeping all fire); delivered stamp at claim. - Control → project profile → Runs on: third choice with its explanation. - docs/development/cloud-local-workflows.md: the tier in the SSOT table. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |