mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 00:28:51 +01:00
feat/shared-knowledge-map
189
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
900dbb6ae5 |
fix(ux): every Loki page reworked for a phone; idle sessions close; model-free commits; early pass renewals keep their days (#1652)
* fix(runner): idle agent sessions close themselves; agents sign commits without a model name; failures in plain words Three things from running a real task through Loki on 2026-11-11. - The cloud builder closes an agent session with no input or output for six hours (LOKI_AGENT_IDLE_CLOSE_HOURS; 0 turns it off), closed like a person closing it so a restart does not bring it back. 27 untouched sessions held the memory that took the sites down; the cap from #1634 stops the count growing, this gives the memory back. Shells and a person's own computer are left alone. The executor records the last byte in or out. - claude-prep sets Claude Code's attribution to a model-free trailer when none is set. The commit behind orangecat#1601 was signed 'Claude Opus 5.5', against the rule that no model identifier is pushed. A person's own attribution setting, including none, is kept. - Activity words three more causes (signed out, the builder could not start the agent, opened but never answered) and Home's failure card drops the runner's 'launched claude (pty) + injected, but Loki could not verify generation' and the operator note after it. The stored error is unchanged. Runner 0.8.65. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * chore(runner): 0.8.66, since 0.8.65 was taken on main while this was written Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix: an early pass renewal keeps its days; the menu shows @handle; three features work on any free model From the package audit of 2026-11-12, the cases a person meets: - A Bitcoin pass bought on OrangeCat was granted as 'now + days', so renewing before it ran out lost the days left. lib/billing/pass-renewal stacks onto a running pass of the same plan with @bitbaum/paykit's extendEntitlement (added); an upgrade or a lapsed pass starts at payment. - The account menu got name, email and image but not the username, so a person with no name saw 'Account' instead of @handle. - Event recovery, proposal extraction and Loki's chat fallback checked for GROQ_API_KEY although the call walks the whole free model chain; with OpenRouter or Gemini keys only they were silently off, and chat said 'Loki is offline'. They now check usableChatChain(). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * chore(deps): @bitbaum/chatkit ^0.26.0 Loki resolved chatkit 0.22.1 while 0.26.0 is published, so it lacked DictationField and CommentThread (0.23), the dictation sign-in/busy messages (0.24) and the hidden microphone on a page whose policy refuses one (0.26, bitbaum/chatkit#81). Type-check and the chat and voice tests pass. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(home): one answer to "is anything running?" Seen on a phone on 2026-11-12: Home's card said "Stalled — the latest run on 2 projects failed and nothing is currently building" and "Nothing is working. Waiting for your reply. Reply", while the section under it was headed "Being built" over two rows reading "Waiting for you · Waiting for your a…". Three answers to one question, and the "Reply" link scrolled to a project list that a phone hides, so the tap did nothing. - "Being built" lists only work being done. Agents waiting for the owner move into "Needs you", each row showing the agent's question instead of the state twice, with a neutral dot rather than the warning orange. - The card's waiting line reads "Nothing is running. 2 agents are waiting for you" and its link goes straight to the session ("Answer Orangecat") or to the waiting rows ("See who is waiting"), at least 44px and underlined so it reads as a link. - The failing state says "Last runs failed — the last run on N projects failed." and the card stays away when "Done" already lists those runs with "Ask it to finish": the same fact twice, with two fixes. - The card no longer repeats the builder line when the builder is on and working, and loses its "+" and settings icons: the foot rows are the one way to both. The foot row is titled "Settings" and says "Builds run in Loki's cloud" rather than "Cloud runner online". - Copy: "Your desktop app is closed; the cloud does the work", "An update installs when current work finishes", "Not started yet — sent 2h ago", "No word from it for 2h". - The composer's project picker says "Waiting for you" / "Gone quiet" for those jobs instead of "Being built now" for every open job. - A failed load shows "Home could not load" with "Try again" instead of a skeleton forever. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(activity): say which runs are running, in words, from the whole window Seen on 2026-11-12: Activity showed "Running (25)" while Home said nothing was working. The same run read "Running" on Activity and "Waiting for you" on Home, because Activity called every unfinished run running. Its rows showed the raw instructions sent to the agent (flags, paths, session URLs) and the builder's raw errors ("Sandbox cwd does not exist: /home/g/dev/…", "exited (code 129)"). "Last 7 days" showed the same totals as "Last 24 hours", because the headline was summed from the 60 rows the list shows, and the momentum line compared that capped count with an uncapped one. - One rule for an unfinished run (lib/open-run-state), read by Home and Activity: waiting for you, gone quiet, not started, or running. Only the last counts as Running; a run waiting for you counts as needing you, and one never picked up as queued. - Rows name the task the way Home titles it, and known failures in plain words: "Too many tasks were running at once", "The project's folder is missing on the builder", "The agent quit unexpectedly", "You cancelled it before it started", "Replaced by a newer request". An unknown error reads "It failed — open it to see why" instead of the raw text. - The headline, agent time and "Runs need you" come from every row in the window; momentum compares like with like and carries its unit ("64 tasks, up from 6 the window before"). A capped list says "Showing the latest 60". - "waiting on a runner" reads "waiting to start". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(suggestions): keep PIN-gated goals and people off the board; say each fact once Seen on 2026-11-12 with the private zone locked: Today said "goals, people, habits, money & memory are hidden", while Suggestions showed "Due 43 days ago: Launch OrangeCat / Goal at 25%, target 43 days ago" and "Get ahead of: Reach out to Ana Argentina / Commitment due 2026-10-15". Goals, Crew and Events all live behind the PIN. Every row said its fact twice, three identical "Unlock to see these" rows stood one under another, a tap recorded a choice from a row with no sign it went anywhere, and an open "…" menu sat under the next row's "…" button. - Goals and Business (Crew) are private avenues: their reads and the build ranker's goals and commitments load only while the zone is unlocked, on /suggestions and in the build row alike. - The goal leads the row and the fact sits once on the grey line ("25% done · was due 43 days ago"); a goal more than 60 days past its date asks "still the goal?" and sinks. A commitment reads "Commitment overdue since 15 Oct." instead of a raw date. Report rows say "Sent by visitors to the site; none looked at yet." - Locked avenues are one row: "Goals, Business, People, Money and Habits — unlock to see". - Rows carry a chevron; "Not now" reads "Hide for a month"; the top line reads "You've taken 2 suggestions so far." beside "All (40)". - An open row menu rises above the rows below it. Recording a choice only when the prefilled message is actually sent needs the Loki chat to carry the suggestion through; left for a follow-up. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(today): say each need once, lead each card somewhere useful, show what is locked Seen on a phone on 2026-11-12: - "Needs you" said "7 approvals and 10 reports to triage." behind an orange warning triangle, then listed "7 actions waiting for approval" and "10 feedback reports to triage" — each fact twice, in two words. The rows were links that looked like text; the next row had a chevron. - "Last night Loki built nothing (tonight's plan was not approved)." mixed two nights and opened the feedback inbox. - The locked banner read "Private zone locked — goals, pe…", while "More" offered Goals and Money as if open. - In "Log a conversation", a locked zone made the people search answer 403 and the popover said "No results". - The main-projects editor showed each project twice (raw folder name over a text box of the same name), spoke of "repositories", linked "Control →" and kept a second "Choose main projects" button over the open editor. Now the rows are the answer (no summary sentence, no warning colour for a to-do) and every row that opens something has a chevron. The night note reads "built nothing — its plan was never approved" and, in that case, leads to Autopilot settings. The banner reads "Goals, people, money, habits and memory are locked." and wraps; locked rows under "More" show a lock and "Unlock to see". The people search says "Your contacts are locked." with Unlock. The editor lists each project once by its name, with "Rename" one tap away, links "Home →", and hides its own opener. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(home): plain words in the settings sheet, the inbox groups and the new-project form Seen on a phone on 2026-11-12: - The sheet behind the sliders had no title and was built from builder internals: "Pause fleet", "Runner / Cloud runner online / Runner sync 2m ago / cloud v0.8.64 / Page data just now", "Default agent for new launches", "Not on this computer: Install Cursor Install Codex" on a phone, and a free-text model box repeating the selected chip. - The two "Needs you" groups read "Widget not on live site" and "Feedback to triage" (Today calls the same thing differently), opened into "not enabled", "token paused", "never seen a boot from the live site", buttons "Install" / "Pause" and an unlabelled </> icon; a right-pointing chevron promised a page but the group opened in place. - The new-project form asked a phone for a local disk path and a Git URL, and its × had no accessible name. Now the sheet is titled "Settings"; "Pause all building"; the autopilot hint reads "Loki keeps working through each project's list, and builds overnight from visitor feedback within your budget."; "Where builds run" says "Builds run in Loki's cloud" with sync age, versions and page age folded under "Details"; "AI used for new work"; the model box opens from "Other model…" (or when the model is not a chip); install buttons only when the desktop app is connected; "Use it in running work too". The groups read "Visitor reports to read" and "Sites without the feedback button", the same words Today now uses, with "Not set up yet", "Turned off", "Not seen on the live site yet", "Add the button", "Turn off feedback" and a labelled "Copy code"; groups use a down chevron. The form asks only "Name your project", with folder and Git address under "Advanced", and its × is "Close". The hero's unused tool row style is gone. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(chat): say what runs, close drawers, plain words on cards (owner audit) The owner's phone opens on /loki. On 2026-11-12 an audit of the chat pages found it could not answer "is anything running, and can I watch it", and that several screens were hard to read or leave. What the person saw, and what changed: - The start screen said nothing while two agents waited for his answer. It now lists, above the greeting, every job being built or waiting for him, the same row Home draws (NowJobRow), each opening the live session. Read once when the screen opens; the snapshot is too large to poll from a phone. - If the chat list failed to load, Recent simply vanished. The start screen now says "Couldn't load your chats" with Try again. - The chats drawer and the project picker covered the full phone width with no close. Drawer takes a title and draws a heading with a 44px close. - A long thread name pushed the menu off a 390px screen; the floating title was drawn over the scrolled words. The header item gets min-width: 0 and the title the same frosted pill as its buttons. Render check added. - The same chat opened as "No project" from Recent and as "Loki" from the rail. One openConversation is used by the rail, Recent and the inbox line. - The chat's name was a hidden button to the project picker, and the menu had a third way to it. The composer's Project pill is now the one place; its whole pill is the button (it was a 27px name), and the queued-message x is 44px. - The project picker listed raw folder names as bordered cards with "· 0%", and "All" chose all ~50 projects. Rows are ListRows named by projectTitle, progress said as "40% done", "New project", and "Pick all N matches" only for a search. - "substrata~39554470" showed as a project. projectTitle and the By-project grouping use the base project key. - Recent and the rail drew the same chat two ways. Recent uses the rail's line; a project already in the title is not repeated. - A failed send printed the runner's admin instructions three times and offered "Watch it". It now reads "Couldn't start", says the reason in plain words, and offers Try again (the same words, same project) with Home second. - Month-old cards polled a 404 every 2.5s and still said "waiting". A gone record now reads "No longer tracked" with Send it again; unsettled cards slow to 30s after ten minutes. - An update said "Not done - nothing reached the site" beside a link to its pull request, then "Live" for the same change. A run that left a PR or push is part done; an earlier card for the same change folds into the later one; a real "Not done" offers Ask it to finish. - "Asked" quoted the report's "--- technical details ---" tail. One helper (lib/feedback/asked-text) strips it for the board and the chat, at write and at read. - "Not stated ... worth asking" appeared four times per card. It is one line, with an Ask button that sends the questions on that project. - Cards named the project "loki" and the page "/control"; now "Loki", "Home". - The answer footer listed model ids, routing and handler names. It now says "Answered with your xAI key · checked 24 of your records · 2.5 min"; the rest is behind Details, steps named from the tool-label SSOT (labels added for every handler). The work trail shows only a quoted search phrase. - The model sheet showed "Gemma 4 31B It", a model called "Free", an Auto line naming a model not in the list, and "186 left today" on eleven rows. Names lose packaging tokens, "free" reads "Any free model", Auto reads "Loki picks the model for each message", a row repeats the count only when it differs, and the header link has a chevron. - Answer replies came as a sideways pill strip cut mid-word; they now use the same rows as the other follow-ups (FollowUpRows). - "Dispatched" became "Sent"; executor copy names Home and Terminal, not Control and Sessions. - Build-next rows say "Start", since one tap sends the work. - Voice page: plain words for the switches and commands ("Stop voice", "things waiting for your OK", no Autopilot), and no "Studio voice" under six names. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(terminal): say what a session is doing, confirm an agent switch, one way to each action What the owner saw on a phone (audit, 2026-11-12): - Chat view: while a session waited for a reply nothing said so in words; the header read "Claude · 5 sessions · cloud" beside a coloured dot. While Claude was busy the line above the box said "Waiting for the agent", the word Home uses for "waiting for you". - A message Loki sent showed as the owner's own bubble with a "Dispatch details" fold holding a raw "<pasted_content id=…>" packet. - Session sheet: rows read "claude · needs you", "gemini", "claude"; two of five had no state. One tap on "Grok" under "Agent" swapped the running agent with no confirmation. "Your computer" was offered with no word that it was offline. - "New session" from inside Orangecat preselected Orangecat, so the sheet opened on a warning, "Start another session" and a "Go to its session" that only closed the sheet. - "What's going on?" was both a chip above the box and the first row of the ⋮ sheet; the feedback edge tab covered the ends of terminal lines. What changed: - New copy SSOT src/config/terminal-copy.ts. The live line says "Claude is working"; an answer with nothing running says "Done. Waiting for your reply". The header subtitle carries the status words ("Claude · needs you · 5 sessions · cloud"). - The fold is "Full instructions Loki sent", without the paste markers, and the bubble says "Sent by Loki" (also in project Watch). - Sheet rows always read "Agent · state" with the agent's name, "open" when the stream has nothing. The agent switch is titled "Switch this session to…", arms on the first tap ("Switch to Grok? Claude stops here") and switches on a second, like End. Disabled reasons drop "CLI"/"tab". "Your computer" says "Offline: open Fleet Runner on it" when it is. - Opened from a session, the launcher preselects a project with no session, and never offers to go to the session already on screen. - ⋮ offers "What's going on?" only while the chip is hidden (keys deck or full screen); on phones the raw terminal keeps 12px clear of the edge tab. Tests: terminal-conversation, terminal-launch-project and terminal-tabs-browser extended; terminal-clean-browser follows the new fold label. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(models): one primary choice, honest counts, one price source, quieter cards What the owner saw on /models on a phone (audit, 2026-11-12): - The page's only filled button was "Add your endpoint", in the most technical part (Ollama, Tailscale Funnel, "OpenAI shape", "shared pool"). - "343 of 343 models" sat over 60 cards and a "Show 60 more" with 283 left. - Two near-identical "where prices come from" paragraphs, with two different read times (06:05 and 06:18). - Every card repeated "OpenRouter USD per 1M tokens", drew "Direct" / "OpenRouter" as bordered boxes that did nothing when pressed, labelled closed models "Weights not listed", and coloured "Open weights", "Free tier" and "Free catalog rate" status green. - The lab filter listed "Meta · 9" and "Meta · 7"; picking one hid the other. - "Your keys: xAI grok-4.7. Manage →": a raw model id and an 18px link. - No name in the phone top bar and no way back to Settings. What changed: - "Run a model on your own computer": one line ("Optional. Loki works from your phone without it."), the how-to folded, plain words, and a secondary button. - "Showing 60 of 343 · …" (with "matching (N in all)" under a filter) and "Show more (283 left)". - Inside the store the Auto card drops its source paragraph; the footer says it once, with one time. - The unit is the card's label ("Price per 1M tokens"), a free model reads "Free", "Runs via" is plain text ("Direct (your key) or OpenRouter"), every tag is the neutral shape, and closed models carry no badge. The unused ui-store-badge-* and ui-store-via* rules are gone. - labsOf keys labs by name and applyFilters matches every namespace with that name, so Meta is one entry that shows all its models. - The keys line names the model as the list does; "Manage" carries ui-tap. - NAV.models (href MODEL_STORE_PATH) names the page in the top bar and the palette; the page links back to AI settings. Tests: model-store pins the card markup and the Meta merge. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(watch): one thing happening at a time, in plain words On 2026-11-12 the owner's watch page for Orangecat said "Next in line" above three rows marked "Happening now" at once: "Waiting for a runner 31m 30s", "Claude Code is finishing up" and "Testing", with "Pull request opened" already ticked below the first. The overview called the same run "Building now". Nobody could tell whether anything was running. - run-track: a run with a pull request, a push or commits has started, whether or not its claim was recorded, so the builder stage is done and never "Waiting". At most one stage is "now": the furthest; an earlier one is behind it ("Claude Code made the change"). A push while the agent is still in its session is done, not a second "now". - The watch card's kicker reads "<agent> is working" once the track is past the queue, and its headline is the track's sentence, not "Queued". - Stage words a non-technical owner can read: "Waiting for a computer to start it", "The change is ready for checks" (its headline without the #number or fix(...) prefix), "Checking the change — it goes live by itself once the checks pass". - The autopilot button says what a tap does ("Pause after this" / "Keep going on its own") where the caption already says the state; "Follow fleet" is "Use my usual setting", drawn like its sibling. - Timeline rows, "See the change" and "Show all" are 44px tall. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(projects): Priority puts the rows that want you first Under "Sort: Priority" ("Projects with issues first"), Kivvi and Bitbaum said "Needs you: 1 note" and sat 11th and 17th, under a dozen rows that said "Live" (owner's phone, 2026-11-12). The order read only the flags; the row's words come from projectListLine, which also knows unread notes and what is running. The "Show" menu never offered "With a problem" for them either. Priority now ranks by the row's own line: a problem, then something waiting on you ("Needs you", "Didn't start"), then something building, then most recent work. The "With a problem" lens and its count use the same rule, and the hint says "Problems and things waiting on you first, then most recent work". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(project): one next step, a way forward from past work, one way back What the owner saw on Orangecat's pages on 2026-11-12, and what changed: - Overview "Next step" printed the agent's handoff note word for word: "NOT PUSHED - pre-push hook fails … --no-verify was blocked; push test/box-safe-unit-tests, open PR, enable auto-merge", while Plan named a different next step. It now reads the plan's next step, then the top open goal — Plan's own source — and is hidden while a build runs, where "Building now · View progress" already answers it. - "Past work" listed red "Failed" rows cut mid-word ("Dispatch failed before the prompt reached the agent: Sandbox c…") that led nowhere. Each row now says why in a sentence (explainRunFailure) and opens the run's watch page, where Retry lives. "Saved changes" shows commit headlines without the fix(...) prefix. - On a phone, Workbench was a menu repeating the overview, with every explanation cut by an ellipsis. The overview row goes straight to the agent ("Talk to the agent — Say what to change"); the workbench's own rows fit one line and sit on the 16px margin, not 33px. "The robot" is "Talk to the agent"; "Review it" reads "See it as visitors do". - Review's way back read "← orangecat"; it is the project's name with the same icon link every project page draws. - The top bar said "Projects" on watch and workbench but nothing on the overview and review; every page of one project now names itself. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(project): Story, Feedback and Settings in plain words and calm colour What the owner saw on Orangecat's tabs on 2026-11-12, and what changed: - "Built from" cut package names mid-word ("@bitbaum/g / eo-kit"): the name is sized to itself and may break only after the scope; the version wraps to its own line. - "Profile 10/10" sat above "The story 8 of 10 answered": the bar counts setup checks, so it is called "Setup". The stage chip said "production"; it says "Live" (PROJECT_STAGE_WORD, one word per stage). - "About it" filled a phone screen: four lines, then "Show all". - Feedback: nineteen fixed notes each had a filled "Watch the fix"; on a fixed note it is a secondary button. The quiet moves and "Technical details" are 44px tall. The "--- technical details ---" tail is folded under the note instead of read as part of it. - Radios were the browser's bright blue in both themes; every radio and checkbox takes the text ink token. The live-site panel starts with nothing chosen, not "Take it off the internet". - "Reversible"/"Permanent" are plain words, not green/amber tags; a package behind is neutral unless an update waits on the owner. - Plain words: "Feedback button is on the site", "Fix notes from helper agents without asking me", "Also delete the copy on this computer", "Posting updates on OrangeCat: on", and a two-sentence Flags note. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(activity): show what is running now, and say failures in plain words What the owner saw on /activity on 2026-11-12, on a phone: 23 rows said "Running", one of them for over two hours, on a builder the same page said runs 8 at once; running rows were grey and mixed in with failures. "33 runs need you" counted briefs a newer one replaced and waits he had cancelled himself. Failure lines were the builder's own ("exited (code 129)", "Sandbox cwd does not exist: /home/g/dev/orangecat", "no runner picked it up"), done lines carried CRON_SECRET and commit hashes, and running rows showed raw briefs with claude.ai session links. A grouped row of 8 failures across four projects had one "Run again" that resent only the first, next to a cause (the builder was full) that a retry cannot fix. "See all 33" reloaded the page with the same three groups above the same list. A failed retry hid its reason in a tooltip phones never show. "up from 9 the window before" named no noun. What changed: - An open run silent past RUN_PROGRESS_FRESH_MS (the progress contract's window, read from the run ledger's last event) reads "Stopped answering" and counts as needing you; only runs still heard from are Running. - A "Running now" section opens the page: live dot, project, "Working for 12 min", the brief in plain words; each row opens Watch. The mixed feed no longer repeats them. - "superseded" closes read "Replaced" and cancelled waits "Stopped by you"; neither counts as needing you. Every row counted as needing you has the red dot (Partial had none). The headline drops "anyway" and says "waiting for a computer"; the filter says "Sent, no word back", like the rows. - plainFailure maps exit codes, missing folders, a full builder, no free computer and replaced briefs to plain sentences; plainLine strips links, session ids, hashes, setting names, paths and leading routing notes from every row line. - A full-builder group offers "See what's running" instead of a retry; a group spanning projects names the one run its button resends. A retry's outcome becomes the row's grey line. - The needs-you card is hidden on the "Needs you" filter. - Momentum says "up from 9 runs the 24 hours before". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(feedback): label Do all, one story per report, shorter "Needs a yes" What the owner saw on /feedback and /my-feedback on 2026-11-12, on a phone: - The most consequential tap in the app, "Do all 109 · starts 106 runs", was an unlabelled round icon in the top bar; its sheet's button said "Do it" and never mentioned that the cloud builder runs 8 at a time. - The same report read "Last try failed" on /feedback and "Fix is live" on /my-feedback; others read "Being implemented" for 21 days. - "Needs a yes" listed all 112 rows (about 9000px), sixty of them "Last try failed · Try again" with the reason only inside the sheet; some thirty titles read "While I was using this page a request fai…", identical. - "Last night Loki built nothing (tonight's plan was not approved)." had no way forward and mixed last night with tonight. - The report sheet had "Watch the fix" and a second "Watch" promising "watch the agent, live" for a run that ended weeks ago, on two rows. - Done rows showed two unlabelled times; the footer said "archived" beside a "Filed away" section and "6d median to confirmed". - /my-feedback was the one page with a blank top bar, and nothing led to it. What changed: - Do all is a full-width labelled button under the sentence; the sheet's button says "Start 106 runs" and, past the builder's limit, says that runs beyond it are turned away and show on Activity. - The reporter view reads the same facts as the owner's recommendation: Loki's page read "not visible" is "Not fixed yet", a partial run "Partly fixed", a live fix nobody could confirm "Fix shipped, being checked"; a finished run whose change has not reached the site after three days is "Stalled". - "Needs a yes" shows 10 with "See all 112"; a retry row says why the last try failed. Report titles drop watch mode's lead-ins (lib/feedback/report-title.ts), on both pages. - The night note reads "the plan was not approved" and links Autopilot settings beside it. - The sheet shows "Watch it work" only while the run is open; afterwards "See what the agent did" sits under More. - Done rows drop the second time when the line carries one; the footer says "filed away" and "usually fixed in about 6 days". - /my-feedback is registered in navigation (no menu seat) so the top bar names it; /feedback links "Reports you sent". Footer links are 44px tall. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(approvals): one primary while locked; package updates in plain words What the owner saw on /approvals, locked, on 2026-11-12: "7 actions waiting for approval, behind your PIN" over a small outlined "Unlock to review" (38px tall), and below it a filled "Update" on a breaking package update — the eye went to the merge, not to the unlock. The card opened on "@bitbaum/chatkit v0.21.2 → v0.23.0 breaking", offered "Not now" beside "Stay on this version" without saying how they differ, and its "Pull request #16" and project links were 16px and 24px tall. The top bar's page action ("Write a report") was 40px. What changed: - Locked, "Unlock to review" is the page's one filled button, 44px tall; the package cards draw their "Update" as secondary there. - The card leads with one sentence from config ("Keller can move to newer versions of 3 shared parts. 2 of them may need changes to the project's code."); package names and versions sit behind "Details". - "Not now" says what it does: "Ask me again in 7 days". - The pull request and project links are 44px tall, and so is the top bar's page action. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(system): alarms in plain words with a way forward; one reading per fact What the owner saw on /system on a phone (2026-11-12): eleven alarms that were the box's raw shell lines ("🧟 STRANDED agent work in loki-wt-scope — unpushed fc/1840a4dd-…", "docker stop <name>", "sudo reboot", "Replace GEMINI_API_KEY in … /opt/<app>/shared/.env"), each with only Dismiss; two disk alarms ("still 93%", "still 91%") above a live reading of 70%; the same branches listed twice for two worktrees of one repository; a 41-day-old "Server size" reading that still promised a Telegram alert; scheduled-job switches drawn "on" for jobs that were off; eleven leftover "smoke-<timestamp> cron" test jobs; a "Health check" section that only said it did not apply; "Recent errors" that was nine heartbeats around one error; and builder words throughout ("claimed", "runner", "Queued — a connected runner … will claim it"). What changed: - config/box-alert-copy.ts turns each known box line (stranded work, new container, critical dependency, disk clean-up, pending reboot, dead API key) into a plain title, one sentence and an "Ask Loki to …" button that opens the chat with the ask and the original line written. The raw line stays behind "Details". Applied when drawn, so the rows already open read plainly too; rows of one kind collapse into the newest (both disk alarms, both worktrees of loki). Intrusion alarms keep their own words and button. The notice still carries no button, because a box line with one would reach the phone, which only an intrusion may. - lib/notify/box.ts keys a line without its numbers, so a repeat updates one row instead of adding one. - Server size: a reading older than six hours no longer draws "blocked" or the Telegram promise; it says Loki stopped checking and offers to restart the check. The current size is no longer listed as an upgrade target. - Scheduled jobs: the shared ui-switch with role="switch", aria-checked and a name, 44px to tap; test artifacts (isPublicTestArtifact) are not listed. - Health check is not drawn where it cannot run; Recent problems lists only errors and warnings, names the source plainly, and offers "Ask Loki to fix this"; nothing wrong draws nothing. - Builds and cost (was "Room for more work"): "How long work waited to start", "On Loki's servers", "started", and the longest wait in the warning colour only past 30 minutes. - What Loki decided: what was asked, a plain status word (EXECUTOR_COPY .decision), project titles; the inject reason is EXECUTOR_COPY.inject .queuedForRunner, "Waiting for a computer to pick it up". - RAM and disk bars warn from 85% and turn red from 95% (was 66/86): a disk two-thirds full is normal and made amber the page's accent. - "More records" names only what is always there; the plan form's Days field stacks like the others; Pause/Carry on everywhere and the alarm's Details button reach 44px. Test: scripts/test/box-alert-copy.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(missions): runs say what they are and open to watch; one progress number What the owner saw (2026-11-12): every mission row showed two progress numbers that disagreed ("0 of 1 goals reported done" beside "25%", "4 of 14" beside "54%"); "Recent runs" was five identical rows, "Running or queued 12.11.2026", that could not be tapped, with a failed one reading "error" and a section link called "Terminal"; "Next move" cut its sentence to one line under the label "Next step" while the handoff further down gave a different next step; the handoff printed agent notes (hashes, branches, paths) in full; the start button said "Sending to the runner…". What changed: - goalsLine() is the one progress measure on the board and the detail page, pluralised ("0 of 1 goal reported done"); the averaged percentage is gone. - lib/missions/run-row.ts: each run row names its task (its result, else its last step, else its kind), says "Working now" / "Waiting to start" / "Stopped with a problem" …, shows a relative time, and opens the run on Watch. The section link is "Watch live" to the project's Watch page. - Next move is one wrapping sentence from one source (the handoff's next step, else the project's, else the first open goal). The handoff's own note shows only when it differs, labelled as the agent's note. - Handoff text goes through plainWords() and is clamped to three lines with More/Less; an empty test report is not drawn. - The start button says "Starting…" (EXECUTOR_COPY.honesty.starting). Tests: scripts/test/missions-projection.ts, missions-attention-board.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(packages): behind count first, install at latest, a way to update What the owner saw (2026-11-12): on /packages the ellipsis took the one fact worth opening a row for ("used by 22 projects, 20 beh…"); on a package page the install command pinned v1.5.2 under "Latest version v1.7.1"; twenty amber "2 minor versions behind" cards each repeated their raw version spec and offered nothing to do, while five identical "Pause vX everywhere" buttons were the page's only actions; a release with no version read "the last release was released … its tag shows here on the next read"; the same action was "Read again" on one page and "Refresh" on the other. What changed: - The list line leads with the behind count ("20 of 22 projects behind · v1.7.1") and drops the warning dot. - installCommand() rewrites a `<name>@<version>` install to the latest version. - "Behind" is a neutral tag; only a breaking bump keeps the warning colour. behindLabel says "2 updates behind" / "1 major update behind". - The raw spec is a hover on the version, not a line of its own. - "Ask Loki to update the N behind" opens the chat with the package, version and projects written. - Pause shows only on the latest version, a failing one, or one already paused. - Release run copy lives in RELEASE_RUN_COPY; a finished run with no version reads "Last release finished 1d ago." - One name for re-reading: "Check again"; its text-link form is 44px tall. Tests: scripts/test/packages.ts, packages-pages.ts, package-releases.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(studio): show the chosen request, one primary action, decisions that say what they do What the owner saw on /feedback/studio on a phone (2026-11-12): tapping a request card seemed to do nothing, because no style marked the chosen card and the detail opened ~1,100px below the list; card titles were cut mid-word by character count ("Checking the partner f"); the detail showed the applicant's own status line to the reviewer; four solid primary buttons sat on one request, and "Record builder decision" sat under a select pre-set to "Approve this builder"; "Revoke guest access" had a 13px checkbox; history dates were US-format with seconds. What changed: - .ui-card-shell[aria-pressed="true"] is raised and outlined; on narrow screens a tap scrolls the detail into view. - Titles are whole, clamped to two lines, with the last update's relative time so identical websites can be told apart. - STUDIO_REVIEW (config/studio.ts) gives the reviewer's next step per status. - "Send reply" is the only primary; other forms are secondary. The partner decision is two buttons, "Approve builder" and "Decline application" (or "Withdraw approval"). Revoking is a danger button, "Stop their link", with its checkbox in ui-checkbox-hit. - History times are relative, with the full date as a hover. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(fill): a link Loki does not know offers the way back to Loki What the owner saw (2026-11-12): /fill without a known form said "Ask Loki again — for example 'set up npm trusted publishing for my package'" with no way to do it from the page. It is now an empty state with one button, "Ask Loki to fill a form", and an example in plain words. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(settings): ask before disconnecting a computer What the owner saw (2026-11-12, Settings → Agent on a phone): every connected computer ("box-runner", "Fleet Runner (local file)") had a red trash icon that revoked its key on one tap, with no question and no undo, named only by a hover title "Revoke token" that a touch screen never shows. One mis-tap disconnected the cloud runner and stopped every agent. Now the icon is named "Disconnect <label>" and only asks: the row turns into "Disconnect box-runner? Agents on it stop until you connect it again." with Disconnect (danger) and Cancel. The icon uses ui-icon-action-danger, which carries the 44px touch floor. Dates read "Added November 12, 2026 · last used 2h ago" instead of US-order numerals. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(settings): AI providers in plain words, raw output behind a disclosure What the owner saw (2026-11-12, Settings → Agent → AI providers): env var names, server paths, install commands, German shell errors, stack-trace fragments and ANSI escape codes as each row's line ("add OPENROUTER_API_KEY to the cloud runner's env (/opt/loki/runner/.env)", "fix: ␛[91mError: ␛[0mInvalid API Key"), uninstalled providers listed as long as working ones, and "This computer · checked 1 day ago" with seven amber rows as if the failures were current. Now the row line is derived from the measured facts in provider-words.ts ("Not set up on Loki's computer", "Signed out. Open it once on your computer to sign in again.", "Its key was refused"), the runner's own text is cleaned of colour codes and kept under a collapsed "Technical details", providers that are not set up fold behind "Show N more not set up", the runners are called "Loki's computer" and "Your computer", and a runner that has not reported for an hour is one sentence saying when it last checked in instead of a list of stale faults. The runner-side nextActionFor is unchanged, so no runner redeploy is needed. Test: scripts/test/provider-words.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(settings): one fact once, a name for every section, plain words What the owner saw on a phone (2026-11-12 audit of /settings): - Projects: all 37 projects twice, under "Your projects" and again under "Team projects" (getOrgProjects includes the caller on purpose). Team now lists only other people's projects, and only when there are any. - Account: "Connected accounts" and AccountKit's "Ways to sign in" both listed how you sign in, and disagreed (Google in one, not the other). On AccountKit the Loki list keeps only the links Loki acts through (GitHub for code, OrangeCat for publishing), titled "Accounts Loki works through"; sign-in lives in the panel. Its disconnect icon gets the 44px floor. - Notifications: the Telegram card said "Connect here" with no connect button when the bot is not set up; it now says "Your messages go to your Telegram chat." and promises connecting only when the button is drawn. The six category toggles were solid primary buttons reading "On"; they are now the ui-switch every other on/off in Settings uses. "The last one went out 11/10/2026, 7:00:04 AM" is in the reader's own locale without seconds. - Billing: the operator, who runs this Loki with no project limit, was told "You are on Free" and urged to "Get more room". They now read "You run this Loki. No limits apply." without the plan pitch, and the Bitcoin/renewal sentence is said once (PRICING_BILLING_NOTE), not twice. - Every section: the top bar and the back control both said "Settings" and sections opened on a sub-heading ("What you have left", "Members"). The open section's name is now its h2; the four sections that drew their own duplicate h2 no longer do. - AI: "Add a provider" twice and "Upgrade plan" duplicating Billing; the button pair is gone (the store link stays in Your providers). The operator's spend list showed codebase slugs ("terminal-next-steps"); config/ai-feature-labels.ts names them ("Next-step suggestions in Terminal"), with a test that every metered feature has a label. - Agent: "Loki dispatches nothing. You type every prompt in /control", "Groq first (~2s, free), local Whisper", "~/.cache/huggingface/". The autopilot and transcription copy is rewritten in plain words, the two autopilot cards align the same way, and the row says the section also holds autopilot. Moving voice transcription to its own tab is deferred. - Voice: "layers on top of the house style … Agents you dispatch" is now "How Loki writes to you. Agents building your projects don't use it." and the presets are one pick-one list with a check (like the digest choice) instead of a 2x2 wrapped grid. - Location: the timezone starts from this device's when none is saved (marked "(this device's)"), the lede drops "scheduled jobs", and "Save current location" is "Save while traveling", which is what it does. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(private): one list of what the PIN protects, one PIN form What the owner saw (2026-11-12): three screens gave three lists of what the PIN protects. Privacy named Crew but not Robots, /unlock named Robots and Commitments but not Crew, the no-PIN page Robots but not Crew. The locked pages showed a different form ("Private Zone / Enter PIN / This section is PIN-protected", nothing while loading, a bare "Network error") from /unlock ("Enter your PIN", shield, lock icon), /unlock's top bar had no name, and Privacy sent people to "Account → Danger zone", which does not exist on AccountKit. Now navigation.ts derives PRIVATE_NAV_ITEMS and PRIVATE_AREAS_PHRASE from the "private" sidebar section, and Privacy, /unlock's list and the no-PIN page all read it (Commitments fold into Money, where they live; counts are plain nouns: "2,805 things", not "entities"). PrivatePinGate renders UnlockForm, named for the page: "Memory is private / Enter your PIN to open it." with a skeleton while loading, "Could not reach Loki. Check your connection and try again." on a network failure, and a 44px "Get help". /unlock's top bar reads "Private" (UNLISTED_PAGE_TITLES). Privacy links "Delete account" in Account settings. The top bar also stops naming the parent ("Home") on a child page that draws its own h1 (/control/import, /control/new-from-scratch), where the bar, the back link and the title were three competing names. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(control): workspace, import and new-project pages for a non-builder What the owner saw (2026-11-12): - /control/workspace: an amber warning box of server words ("Server-owned PTY workspaces", "control plane", "box-runner peek stream", "dispatch") for a switched-off feature, with three inline links in one sentence and "Back to Control". With server workspaces off the page now redirects to /terminal; otherwise it is a neutral callout (new ui-callout, amber is kept for real warnings) with one "Open Terminal" button. The API error strings in runtime.ts / workspace-access.ts are plain words too. - /control/import: "Pick the repos … duplicates by name are silently skipped", a heading icon squashed to 6px, "No repos found" with no next step, a twice-dimmed disabled Import button and "Go to Control →". Now "Choose the code you want Loki to look after", shrink-0 on the icon, "Missing one? Give Loki access on GitHub" under the list and in the empty state, one dimming, 44px Select all / Clear, and Home named from NAV.control. - /control/new-from-scratch: "Leave on Empty and the agent picks the stack" against "Empty — Just a README. Bring your own stack.", template descriptions with shell commands and "ms-scale cold starts", and "No technical decisions required" beside "GitHub repo" and "stack". The bare template is now "Let Loki choose" (recommended in the hint), each template says what it suits, the subtitle is "Loki makes a private place for the code and sets it up.", and native radios and checkboxes take the ink colour instead of the browser's blue. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(auth): offer GitHub once, and say continue on sign-up What a newcomer saw on 2026-11-12: the first sign-in screen offered "Continue with Google or GitHub" and then "Continue with GitHub", two doors to the same place with no way to tell whether they lead to one account. "Create an account" offered "Sign in with a Lightning wallet", telling someone with no account to sign in. The "Create an account" and "Sign in" links under the forms were 18px tall on a phone. What changed: with Loki's own GitHub app mounted, the shared sign-in's button names only the other providers (offerGithubOnce). Only the label changes; the shared service's own chooser still offers GitHub, so no account that came in that way is stranded, and when GitHub is all it publishes nothing is hidden. The sign-up screen's Lightning button reads "Continue with a Lightning wallet". The two hint links carry ui-auth-hint-link, which the coarse-pointer floor sizes to 44px. The label filter belongs in @bitbaum/accountkit's signInMethods for every product that keeps its own GitHub app; it lives here until it moves there. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(public): theme-true download band, readable menus, one count on the roadmap, plain words What a visitor saw on a phone (audit, 2026-11-12), and what changed: - /download in Light: the band stayed black and the accent button (black in Light) vanished into it. Every ui-public-download-* rule now uses surface, text and border tokens; no white/black left in the band. The phone handoff, lede and comparison drop "control plane", "dispatch", "runner", "CLI" and "Open Home"; the desktop-only "After install" steps render only once the downloads are shown, and the edge-to-edge closing line that repeated the handoff is gone. - Light-mode phones got a light status bar over a black page: the theme-color meta now starts dark (the default theme) and follows the resolved theme (ThemeColorSync, themeColorFor). - The menu's Appearance button sat under the floating feedback button, so tapping it opened feedback: it now sits next to its label. Every menu description was cut off with an ellipsis: they wrap to two lines and are shorter ("Talk to Loki with your phone in your pocket"). - Links inside sentences ("whitepaper", "docs") looked like plain words: in prose they are underlined in a token colour. - /roadmap gave 47% shipped, 22 of 59 steps (37%) and bare ring numbers on one screen. The headline is now "16 of 34 items shipped", the steps line says it is the work inside the open items, and rings carry no number (the card's "6/9 steps" is the count). Collapsed changelog months and roadmap step lists show the same rotating chevron as other disclosures. ROADMAP.md summaries say what a person gets instead of paths, class names and shell flags, and a bare address in a line is a link. - /pricing: "Start free. Pay when you need more.", Loki's engine explained once, no "operators", "fleet" or internal screen names; Free no longer claims "nothing held back" above a Team plan with more. - One public name for the machine: PUBLIC_WHERE in executor-copy.ts ("Loki's computers" / "your own computer"), used on the home page, /why, pricing and the whitepaper summary; "runs this week" reads "tasks". - Signed in, the home page still offered "Create an account" and "Start a project" to /sign-up and the footer "Sign in": visitorLink turns those into "Open Loki"; /sign-in no longer links to itself. - Build-path cards said each thing twice ("Do it yourself" / "Build it yourself"): the kicker is gone. The footer's version link duplicated "Fleet Runner releases"; the owner line reads "Loki, run by Cato" as the terms do; BiasLens has its own one-line blurb. "Notes in, fixes out" shows the year and no raw page path. bip-kit's Copy button gets the 44px coarse-pointer floor. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(search): the magnifier searches; asking an agent is last and never on Enter What the owner saw (phone, 2026-11-12): the header magnifier opened a box whose placeholder was cut off ("Type a command (e.g. “code re…"), and anything typed became "Run: <text> / Resolve in natural language & dispatch" as the first row and the Enter default, so a search plus Enter sent the words to an agent as work. With nothing typed it listed 43 projects with their server folders ("/home/g/dev/bitbaum", "no local path"), raw ids as names, then 17 "Switch X to Claude — quits current CLI" rows; the 60-row limit was hit before a single page, so Activity, Prompts and Settings never showed. The "esc" hint showed on a phone. The More sheet and the search sheet also drew the widget's floating feedback button over themselves, a second shape of the header's button. What changed: - Empty list: recents, then the pages in the sidebar's order, then projects named the way a person knows them (projectTitle, with the site's host instead of a folder), then prompts. - Switch-agent rows are gone from search; the project's own screen keeps that control. - Typed text finds first. "Ask Loki to do: “…”" is the last row, says what it does, and Enter only takes it if the arrow keys chose it (enterTarget, tested). - Placeholder "Search projects and pages"; the desktop field no longer says "dispatch"; "esc" is shown from md up only. - The palette panel and the More sheet carry data-fc-place="hidden", as <Modal> does, so the widget does not float its button over them. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(chrome): 44px for the page action and the search mic; tokens, not white What the owner saw (phone, 2026-11-12): the filled page-action circle in the top bar ("New project", "Write a report") was 40px beside 44px search and bell buttons; the search sheet's microphone was 28px, and its background was white at 4%, so on the light theme it had no visible edge. The bell's count was hard-coded `color: white`. On /activity the page's primary circle was a sparkle, where every other page puts "+", and nothing on screen said it meant "Write a report". What changed: - .ui-page-action on a phone is 44px with a 2px transparent border the fill does not paint, so the circle still reads 40px like its neighbours' visible circles. - .ui-palette-mic joins the coarse-pointer 44px floor and is raised with a hairline (tokens), as is the kbd hint; no oklch literal left. - The bell badge uses text-text-inverted on status-negative (also better contrast on the dark theme's lighter red). - "Write a report" uses a page icon (FileText). Not changed: .ui-btn-icon (row "…", bell ×) and the theme button already get 44px under `pointer: coarse`; the audit measured with a mouse pointer. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(bell): plain words, one row per thing, every row opens somewhere What the owner saw (phone, 2026-11-12): the bell listed the server's raw lines as titles: "🧟 STRANDED agent work in loki-wt-scope — unpushed fc/1840a4dd-…", "🐳 NEW CONTAINER", "♻️ REBOOT PENDING for 7 days", "bitbaum: ☠️ SUSPICIOUS PROCESS / pid 951241 running … Kill it: sudo kill -9 951241". Half the rows opened nothing (the box's no-action lines are recorded with no button), and nine near-identical SUSPICIOUS PROCESS rows kept a red "9+" lit. What changed: - The bell leaves out `system_event` rows ("no action needed from you", already listed on /system) and links there in one counted line instead. - Intrusion notices get a plain title ("An unexpected program ran on bitbaum", "Someone signed in to bitbaum with a password") and one sentence; the raw line stays in the body behind "Details" (lib/notify/intrusion-words). Rows recorded the old way read the same in the bell (bellWords). - Rows with the same title fold into one ("9 times · …"), dismissed together; the badge counts the folded rows, and its spoken label says "More than 9" when the badge says "9+". - A row with no link of its own opens /today, where it is listed. Not changed: urgent alerts still never fold into Earlier (design reset rule 11), and the delivery key is untouched, so a login from a second address is still its own phone notice. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * test(widget): the palette and the More sheet may hide the launcher while open The search palette and the More sheet are dialogs; since 285a975e they carry data-fc-place="hidden" as <Modal> does, so the widget stops floating its own button over them (it sat beside the More sheet's close ×, 2026-11-12). The reach check allowed only Modal and the sign-in wall; it now names these two, with why. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(more): say what Unlock opens, mark the row that leaves Loki, show waiting feedback What the owner saw in the More sheet (phone, 2026-11-12): "Private → Unlock" with no hint of what is private; "Bots", which quietly opens orangecat.ch; "Waiting for you → Approvals, Feedback" with no count, while Home said "Feedback to triage 10"; and "Download" in the account menu, which did not say what gets downloaded. What changed: - The lock row names what it opens: "Unlock Memory, People, Crew and 5 more". - A row whose page is on another site says so ("on OrangeCat" and an outside-link icon). - Feedback carries the same new-feedback count the desktop sidebar shows (FeedbackNavCount). Approvals has no count: its list needs the private zone, so a locked phone could not read it. - The download page is called "Desktop app" (NAV.download, the one name every menu reads). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(feedback): the owner gets his own panel inside Loki; one door to it What the owner saw (phone, 2026-11-12): signed in to his own app, the header's spiral opened the visitor's panel — "I own or build this site — sign in with Loki →", "No account? You make one on the way", "Made with Loki →", "Hide this button on this site". The widget knows the owner only by a pass, and on Loki's own origin nothing handed it one. The account menu also opened the same panel a second time ("Report a problem"), next to "Hide feedback button" for a button nobody could point at, and its Appearance control read "☀ Light" while a tap switched to Dark. What changed: - The app layout mints the owner pass for the signed-in person when they may act for Loki's own widget (lib/feedback/own-site-pass, same canActForSite check as /api/widget/owner), and OwnSitePass stores it where the widget reads it (widget/owner-pass storeOwnerPass). The widget then shows the owner's panel, without the sign-in door, "Made with Loki" or "Hide this button". Anyone else gets null, as before. The first time, Watch starts paused: nobody asked for it here, and it is one tap ("Watch again") in the panel. - "Report a problem" is in the account menu only while the top bar has no spiral; the switch says what it switches ("Hide the spiral (feedback) from the top bar"). - Appearance is Light · Dark · Auto, the current one marked (Segmented), instead of a cycle button. Test: scripts/test/own-site-pass.ts (the page and the widget agree on the storage key; minting is gated on the owner; first pass starts paused); phone-chrome.ts updated. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * feat(chrome): the top bar says when an agent is working, and opens it to watch What the owner asked (2026-11-12): "I would like to know if anything is actively running, and I would like to watch it". No icon, tab or More row said whether anything was running; Terminal, the place to watch, was the first row of the fourth More section. What changed: while an agent is working, the top bar on every page shows a screen icon with a green dot (one agent) or a count (several). It opens that session in the terminal, or the terminal's list when there are several; its label says "1 agent working now — watch it". Nothing working, nothing drawn; on /terminal itself it is not shown. It reads /api/sessions/snapshot (the Sessions drawer's DB-only list) once a minute; "working" is the same rule the drawer and the terminal's tabs use (lib/session-list workingNow, tested). Checked against production: the list had one working (solon) and one waiting (orangecat) session, so the bar would show one green dot to Solon. Home's and Activity's own wording of the same question is being fixed in the home and review branches. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(prompts): say what each prompt does in plain words; tell the twins apart What the owner saw on /prompts (phone, 2026-11-12): "Next Best Step" beside "Next best task", and "Test & Fix" beside "Test & fix", with descriptions that did not say how they differ ("Autonomously determine and execute the single highest-impact task right now" / "Autopilot loop — read ground truth … Self-throttles"), and lines he could not judge before tapping Run: "OWASP Top 10", "write a conventional commit, push to origin", "Audit ~/.loki/sessions/<P>.roadmap.md", "Kill switch", "N+1 queries", "prop drilling". What changed: those descriptions say the outcome ("Check the site for the ten most common security holes", "Check the finished work, then save and publish it", "Stop the agent at once — it changes nothing more"), and the two autopilot entries say they are "What autopilot runs on its own", so each twin reads differently from its sibling. Not changed: the names (task titles across the app read the library's name for an autopilot intent, lib/task-title) and the templates themselves (two of them drive the autopilot loop). Saved copies under "Your prompts" are the owner's own rows; they already say "4 copies" and offer "Remove extra copies". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix: the combined phone audit passes the whole suite Folding nine groups' fixes into one branch (2026-11-12): - getLastRunEventTimes is gone: Activity and Home now share one rule for an unfinished run (lib/open-run-state), so the second lookup the review group added for the same question had no caller. - terminal-clean-browser follows the watch page's new button names ('Pause after this' / 'Keep going on its own'). - widget-kit-browser: the chat chunk measures 41 KB gzipped on chatkit 0.26 (agent mark, paperclip sources, dictation sign-in/busy, no mic where the policy refuses one); the budget moves from 40 to 42. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(voice): one name for talking to Loki, written on the button The chat box had two unlabelled sound icons side by side: the mic, which types your words, and a waveform that starts a spoken conversation. The More menu had a third entry, 'Voice', for the same conversation with the screen off. The owner could not tell them apart (2026-11-12). - The chat's conversation button reads 'Talk' on the button itself. - The /voice page is 'Talk to Loki' in the menu, its title and its start button ('Start talking'); its voice picker is 'Loki's voice'. - The mic is unchanged: it dictates into the box. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(voice): the menu entry is 'Talk', the button's own word 'Talk to Loki' and its one-slip spellings collided with other pages in the search palette (palette-entries: 'tak to loki' found Suggestions). The menu entry is 'Talk', the word on the chat's button; the page title stays 'Talk to Loki'. Suggestions' description no longer says 'takes', which 'tak' landed on. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * test: the Home browser test follows waiting agents into 'Needs you' home-being-built-browser (from #1670) looked for the waiting row under 'Being built'. After the merge it sits in 'Needs you' with its question and the reply field; the test now checks that list, that only the working row is 'Being built', and that the reply still reaches the project's agent. runner-update-hold reads the queue label in this branch's words. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * style: format home-parts after the merge Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(home): keep main's load-failure branch as written; shorten the waiting list call instead home-load-failure pins the shape of Home's no-data branch. Home stays under its 510-line limit by naming the reply handler once. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * chore(deps): @bitbaum/chatkit 0.29.0, the version kivvi and causius canaried The fleet rollout gate held this PR: chatkit 0.26.0 was never deployed on its canaries, which moved straight to 0.29.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * chore(billing): early pass renewals wait for paykit's rollout gate; the rest of this PR lands now @bitbaum/paykit 0.3.0 canaries through OrangeCat, whose live receipt only matches while its newest main commit is the one deployed; OrangeCat's main moves every few minutes, so the gate has held this PR through four sweeps. The renewal change (extendEntitlement) comes back in its own PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
510d8e2a14 |
fix(runs): whose pull request it is, after the review of #1643 (#1666)
* fix(runs): whose pull request it is, after the review of #1643 A review of the merged attribution change found the remaining ways a run could claim, or act on, a pull request that is not its own: - The fix ledger decided "this run's" by time alone, and on that basis could merge (auto-ship) or put back into draft a pull request somebody opened on another branch, when the handoff named it. auto-ship prOwnership: Loki acts only on a pull request on one of the run's own branches; it reports one as the run's when it is on them, or, for a runner too old to report branches, when the handoff names it. - Evidence recorded before #1643 was never checked again, so run 70d1a78d kept loki#1636. It is checked with GitHub once and removed when foreign; Watch no longer falls back to evidence the ledger called foreign, and other views do not trust unchecked old evidence. - The window had no end, so an earlier run sharing a branch with a later one claimed the later run's pull request. It ends 15 minutes after the run. - Only the ten newest pull requests were scanned; a busy repository pushed the run's own off the page. Pull requests are asked for by head branch. - Legal branch names with # or + were dropped. The rules are git's. - The runner also reports the remote branch a checkout pushes to, skips the repository's default branch whatever it is called, and its exit and shipped beats carry the branch. Runner 0.8.69. scripts/test/run-evidence-ownership.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtHxn2FxY2x8pJ83Xj * fix(runner): a run closes as shipped only with a pull request opened during it, and only then stops the agent The runner's idle check took any open or merged pull request on the branch the agent sat on. A session that carries on from an earlier run sits on that run's branch, so a read-only probe was closed Done with the earlier run's pull request, and the runner stopped the shared session whatever the server answered (also when the run had already been closed another way). - findShippedPr takes the run's start; a pull request opened before it is not this run's. - The server says closed: true when the beat closed the run; the runner stops the agent only then. Found by a review of the probe path (2026-11-12). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtHxn2FxY2x8pJ83Xj --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
b824a48686 |
fix(lanes): a lane starts clean: from main, in a new conversation, without touching the shared checkout (#1662)
* fix(lanes): a lane starts clean: from main, in a new conversation, without touching the shared checkout A lane is a run beside the project's own session, in a worktree of the same checkout on the cloud builder. A review of the merged runner fixes (2026-11-12) found three ways it did not start clean: - Its worktree was cut from the checkout's HEAD, which on the box is the shared session's run branch (loki/run-<id8>). The lane began with another run's unmerged commits and its pull request carried them. It now starts from the remote default branch (worktree-workspace laneBaseRef). - Its checkout step ran git pull --ff-only in the folder the shared session's agent works in; the run branch tracks origin's default, so the live agent's files could move under it. A lane now only fetches (ensureBoxWorkspace pull: false). - A dispatch that carried the project's sessionId kept it in a lane, so the lane ran claude --resume of the shared conversation in a new folder. A lane resumes nothing. Also: a live lane reopened after a builder restart is looked for in its own folder (pty-runtime's record), and traced back to its checkout for pruning, not to the dispatch's laptop path. scripts/test/lane-base.ts runs real git for each case. Runner 0.8.68. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtHxn2FxY2x8pJ83Xj * fix(lanes): a lane that cannot start says why in words the retry policy reads A laptop lane for a folder that is not on that machine was refused as a worktree failure, and a missing box checkout as "nothing was launched". auto-reimplement-policy reads neither as a workspace problem, so both were retried on a builder where they cannot work. Both now use its words ("does not exist on this machine", "nothing was launched here"). Found by a review of the merged runner fixes (2026-11-12). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtHxn2FxY2x8pJ83Xj --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f7a0b051b7 |
fix(runner): a dispatch is delivered only once the request is in Claude Code's own conversation (#1660)
A busy CLI looks the same whether it is answering the request or carrying on with its own plan (probe 9e3658d9, 2026-11-12). The runner verified a Claude dispatch on the CLI's session status alone. - prompt-evidence transcriptShowsPrompt: the request must be in the agent's log as a person's message written after the inject. Measured how Claude Code 2.1.322 logs a pasted prompt by driving it in a pseudo-terminal as the runner does: inside <pasted_content> tags, which are unwrapped. An older [Pasted text #N] placeholder after the inject also counts. - The dispatch ack is verified:false with a sentence when the log exists and the request is not in it; no log is no evidence either way. - The ack now sends deliveredAt and workspaceId. Both were built and then dropped, so delivery was stamped at ack time. - Runner 0.8.67 with its release note. - scripts/test/prompt-in-transcript.ts, with the measured log line as a fixture. Claude-Session: https://claude.ai/code/session_019MDtmtHxn2FxY2x8pJ83Xj Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
186679c091 |
fix(runner): auth and quota failures are judged only on the run's own evidence (#1650)
* fix(runner): the auth canary fails a run only on that run's own evidence A fresh solon tab on the cloud runner was failed as "claude is not authenticated" because the newest Claude transcript in its folder was a two-day-old session ending "Please run /login". A Grok run a minute later was failed with the same text, telling the operator to set CLAUDE_CODE_OAUTH_TOKEN, because the canary read Claude's folder for an agent that never writes there. The runner's sign-ins were fine. - Claude: a transcript last written before the prompt is not evidence. - Other agents: read what the agent printed since the prompt, minus the prompt's own words; never Claude's transcripts. - The error names the refused agent and its own fix. * chore(runner): 0.8.66 with its release note: the auth canary reads only this run * fix(runner): a quota wall is the agent's own answer, and a provider that answered since is not spent At 05:41 Zurich a Solon brief about replacing a "rate limiter" whose memory "resets on deploy" failed its run as "claude cannot generate because its usage limit is exhausted", and Loki then offered Claude as spent for an hour. Claude kept working for fourteen more minutes. - Claude: a wall counts only when Claude's own transcript since the prompt holds an API error naming a limit. The screen echoes our brief. - Other agents: the screen check also ignores an echo of the prompt whose spaces a TUI redraw dropped. - spentProviders: newest run per provider decides; a run that finished successfully after the wall clears it. An open run proves nothing. - Runner 0.8.67 (0.8.66 went to #1643). |
||
|
|
6bb3d7461c |
fix(runs): a pull request is a run's only when it is on one of the run's own branches (#1643)
* fix(runs): a pull request is a run's only when it is on one of the run's own branches Run 70d1a78d on loki ran git status and nothing else; its page claimed loki#1636 as its pull request and "Pushed:" with that pull request's commit. #1636 was opened by hand on another branch while the run was open. "The newest pull request since the run started" is a time window, not an attribution. - lib/run-branches: a run's branches are loki/run-<id8>, its worktree branch, and every branch its runner reported the agent's checkout on. Never main. - findRepoWorkEvidence takes those branches; a pull request's head or a pushed ref must be one of them. Watch, the reaper's correction and the outcome post all pass them. - The runner's progress beat carries the checkout's branch; the server keeps the list on the run (payload.branches). - The two branch names have one source; the builder code re-exports it. - scripts/test/run-branches.ts replays the incident against the real finder. * chore(runner): 0.8.66 with its release note --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1be367df36 |
fix(builder): a dispatch starts in the builder's own checkout, never the laptop path (#1638)
* fix(builder): a dispatch starts in the builder's own checkout, never the laptop path
A message to a busy project gets a parallel lane, tab <project>~<run>. On the
cloud builder the checkout was looked up under that tab name: no such project,
nothing to clone, and the stored laptop directory went on to the sandbox
("Sandbox cwd does not exist: /home/g/dev/orangecat", 2026-11-12). The run
died before the prompt arrived.
- dispatchLaunchDir: the project's checkout on this builder first, by project
name, then the run's worktree of it. A lane without its own worktree, or a
project the builder can neither find nor clone, is refused with the reason.
- launchAgentPty no longer hands on a directory that is not on the builder,
and asks for the project's repository and token, not the lane's.
- /api/control/workspace-source answers for a lane tab as for its project.
- scripts/test/dispatch-launch-dir.ts pins it against the real checkout and
worktree steps.
* chore(runner): 0.8.65 with its release note
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
ddd57fe562 |
fix(builder): sealed agents start after a reboot; the cloud builder caps open agent sessions (#1634)
* fix(runner): the cloud builder keeps at most eight agent sessions open On 2026-11-11 the box had 27 agent CLIs open, about 0.4 GB each, beside 21 live sites on 16 GB. Memory ran out and every site went down. Plain shells were capped at three; agent sessions were not capped at all. - lib/agent-session-limit: eight by default (LOKI_AGENT_MAX_OPEN changes it), cloud builder only, shells not counted, re-opening an open tab is never refused - /api/agent/launch refuses the ninth with a sentence that says to close one; Resume and New session already show that error - launchAgentPty refuses it again: every way in ends there (launch, dispatch, switch, tabs restored after a restart) and the server's count can be one heartbeat old Idle sessions are still not closed by themselves. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq * fix(builder): sealed agents start again after a reboot; runner 0.8.64 After the power reset of 2026-11-11 every sealed agent failed with 'the container failed to start: it exited before printing anything'. podman keeps its runtime state under the runner's $HOME/.run, a real directory, so the state outlived the reboot and podman refused every container ('current system boot ID differs from cached boot ID'). - the sealed drop-in gets an ExecStartPre that removes that state when it was written before this boot, and leaves it alone otherwise - sealed-builds.yml mode reset-runtime does the same by hand for a runner that is already up - desktop/package.json 0.8.64 with its release note: the session limit changed the runner Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq --------- 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> |
||
|
|
169f920055 |
fix(desktop): Linux AppImage keeps the Chromium sandbox on (#1521)
Every Linux launch passed --no-sandbox. afterPack.cjs wrapped the Electron binary in a stub that added it unconditionally, the .desktop Exec= line carried it (electron-builder's AppImage default), and the systemd unit from install-fleet-runner.sh passed it again. The reason was real but narrow: inside an AppImage the setuid chrome-sandbox can never work (the FUSE mount is nosuid), so where unprivileged user namespaces are also blocked Chromium aborts at FATAL. Everywhere else the namespace sandbox works without any setuid helper, and the flag switched off the renderer sandbox #1479 had turned on. - desktop/scripts/linux-launcher.sh replaces the stub. It runs Chromium's own probe (create a userns, write its maps, nest another) and the setuid-helper check for .deb installs, and passes --no-sandbox only when neither is available (or as root). It then prints why and how to fix it, and sets FLEET_RUNNER_SANDBOX_OFF. It also reports a --no-sandbox that arrives on argv, including the one electron-builder's AppRun appends silently. - The main process shows that reason as a notification. - linux.executableArgs is [] so the .desktop entry stops passing it. - The systemd unit no longer passes --no-sandbox. - The stale-instance pgrep no longer requires --no-sandbox in argv. - Packaged-build test: test-linux-sandbox.sh starts the real AppImage under Xvfb and checks the live process tree (main argv; renderer seccomp-bpf and its own user namespace). ci-linux-sandbox.sh runs it with Ubuntu's userns restriction off (must be sandboxed) and on (must still start, with the notice). New PR workflow desktop-linux-sandbox.yml, and a step on the Linux release build. - Version 0.8.62 with its changelog entry. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
42bf0dceb7 |
fix(deps): Electron 43.8.4 and a sandboxed main window in Fleet Runner (#1479)
* fix(deps): Electron 43.8.4 and a sandboxed main window in Fleet Runner Fleet Runner ships Electron 43.4.1, which has two high advisories (GHSA-qmv3-fv6v-rmhq, GHSA-jr5w-w6x2-84p9) plus moderates and lows. The fix is inside the existing major: electron ^43.8.4. The main window loads the remote web shell, and it ran with sandbox:false. The preload only imports contextBridge and ipcRenderer from 'electron', which a sandboxed preload supports, so the window now runs with sandbox:true, contextIsolation:true and nodeIntegration:false. Also clears the desktop dev-toolchain highs (vite ^8.3.5, undici, brace-expansion, source-map-js, fast-uri lock refresh) and two root moderates through pnpm overrides (qs ^6.16.1, ip-address ^10.7.4, both via the shadcn CLI). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 * fix(deps): release Fleet Runner 0.8.61 with the Electron security update The desktop change has to reach machines, so desktop/package.json moves to 0.8.61 with its FLEET_RUNNER_RELEASES entry (desktop-release-drift). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 --------- 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> |
||
|
|
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> |
||
|
|
2c18d1f4de |
A merged PR at the agent's HEAD also closes the run Done (#1395)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
d857a449b8 |
Close a run Done with the agent's own PR once it sits idle (#1393)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
07eb43fd00 |
Control reads the open run's state; name container-start failures (#1392)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
c1f95c0dd8 |
Sealed Antigravity unattended; one run state; dead agent = Failed; salvage PR (#1388)
* Sealed Gemini auto-answers its taint prompt; one run state (project page/Control read the run); dead agent closes Failed; salvage PR on exit * format --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
316ccce8b0 |
Antigravity auto-approve; permission prompts show Needs you with the question (#1387)
* Antigravity auto-approve in unattended runs; agent permission prompts read as Needs you with the question * Sealed git identity+push, drain counts sealed agents, dead agent = Agent stopped, no menu-pick suggestions; worktree read mode * worktree mode: find nested worktrees * worktree mode: match by branch * worktree mode: staged diff --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
2e645b01c1 |
Sealed builds: Antigravity gets a TTY and its key (fixes 'never accepted the prompt') (#1380)
* sealed-builds: diag mode (runner journal + gemini under real PTY in the sealed container) * probe: show composer + working screens * Sealed builds: Antigravity gets a TTY and its key; Gemini 0.65 working/composer markers * Fleet Runner 0.8.53 release entry; .env.example XDG_RUNTIME_DIR * format --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
45dc3ead2e |
Provider inventory: measured per-runner provider status; failover and AI Providers read it (#1374)
* Provider inventory: each runner measures and reports what it can build with; failover and Settings → Agent read it * prettier * Fleet Runner 0.8.51 (provider inventory); env example --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
7964da23c6 |
Prompt delivery: drop terminal-query answers from input; Working needs evidence; fresh branch per run (#1373)
* Agent prompt delivery: drop viewer terminal-query answers, Working only on evidence, fresh branch per run * Fleet Runner 0.8.51 --------- Co-authored-by: catomean <catomean@users.noreply.github.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>
|
||
|
|
d12f1b08a2 |
fix: the bell counts what happened, Codex resumes, Projects rows speak plainly (#1332)
- The bell counted feedback waiting for triage, which Home's "To review" already shows: "9+" beside "Feedback to triage 13" on one screen. It now counts only alerts, and exactly what its panel lists (it also counted new_feedback alerts the panel hid). - Resume continues Codex conversations too (`codex resume --last`, scoped to the folder by Codex; falls back to a fresh session), from the Sessions page and when the cloud builder reopens sessions after an update. Cursor stays Start: its resume reaches chats from every project. Runner 0.8.49. - Projects: no subtitle restating the sort; the sort is the even segmented row with its meaning under it; "Not connected" sits once in the facts line instead of orange capitals beside every name; "health 5/10" reads "5 of 10 checks", the rail's own word. 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>
|
||
|
|
1f1f40429c |
fix(builder): sessions survive cloud builder updates (#1326)
Every deploy restarted the cloud builder, and a restart ends every session it holds. The drain waited for nobody to be mid-task, then logged "idle sessions resume on their next dispatch" — nothing resumed them. The owner found "No live sessions" after each of five deploys in one afternoon. - The builder writes down each session it opens (~/.loki/open-tabs.json) and crosses it off only when it really ends: closed from Loki, or the agent exited while the builder stayed up. On start it reopens the rest; Claude sessions come back as the same conversation (claude --resume). - Deploys compare runner files by content (rsync --checksum). A fresh checkout gives every file a new mtime, so every deploy, docs-only included, read as a runner change and restarted it. - The manifest sync no longer lists a package-lock.json this pnpm repo does not have; its rsync error blanked the output and hid real changes. - Runner 0.8.47; the drain log says what happens now. 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> |
||
|
|
071ef57447 |
fix(session): switch to Fable or Opus from the phone, see it confirmed; the terminal says it is opening (#1312)
From a phone the owner could not switch a session from Fable to Opus, and
opening the terminal showed a black pane before the screen appeared.
- The model sheet offers each family by Claude Code's own alias: Fable,
Opus, Sonnet, Haiku. Fable was missing. Versions are never written
down, because the aliases resolve to the newest model in each family.
- Claude Code's own "Set model to Opus 5.5", "Set effort level to high"
and refusals ("Model 'x' isn't available for your account") are read
from the session log as setting items. The sheet settles on them at
once and shows a refusal in Claude Code's words. The conversation
gets a quiet line where the change happened. A runner too old to send
these items still settles on the next answer.
- The chip reads "Model · Auto" instead of "Model? · Auto".
- The box's book button is now a slash button labelled "Commands and
prompts". It always opened the agent's commands above the library.
- The terminal pane says "Opening the screen…" until the first frame.
The server remembers each session's last screen, and a new viewer sees
it at once, marked "Last screen · updating", until the runner's live
replay lands. A remembered screen never counts as proof of life for
the stall watchdog, and closing a session forgets it.
- The conversation view's wait reads "Opening the conversation…".
- Fleet Runner 0.8.46 carries the log reader.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
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> |
||
|
|
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> |
||
|
|
afb39da877 |
fix(agents): each project is offered what its own builder has, and a missing CLI is said, not launched (#1262)
* fix(agents): each project is offered what its own builder has, and a missing CLI is said, not launched - Control offered one agent list for the whole panel, read from the computer's report first, so a cloud project was offered Codex because the laptop had it. Each card now gets the list of the builder that will run that project (the same answer dispatch gives: locus lock, builder_pref, cloud), and an agent that builder lacks reads "not on the cloud builder". A builder that has not reported changes nothing (unknown, not none). - A builder about to launch a CLI it does not have used to open a terminal on "command not found", and the run read as an agent that never answered. launchAgentPty now refuses first: "Codex is not installed on the cloud builder, so nothing was started. Switch this project to an agent installed there, or install Codex on the cloud builder, then try again." - The next-step suggestions told the model the agent was "Claude Code" in every session. They now name the agent actually running (looked up from its adapter id; no free text reaches the system prompt). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(desktop): Fleet Runner 0.8.43 — the launch check reaches computers The launch check lives in desktop/src/main/pty-runtime.ts, so it reaches a computer only with a release; desktop-release-drift (new on main) is right to refuse it at 0.8.42. Bump and record the release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
d3325afbad |
fix(runner): the cloud builder crash-looped on an Electron import — load the browser hand-off lazily (#1159)
* fix(runner): the cloud builder crash-looped on an Electron import — load the browser hand-off lazily #1152 (2026-10-11 22:25 UTC) added a top-level `import { openBrowserHandoff } from './browser-handoff'` to the shared poller. browser-handoff.ts imports `electron`. The desktop app has it; the headless box-runner runs the same poller under plain Node and does not, so it died at load with "Cannot find module 'electron'". systemd restarted it 220 times; /api/health/builder has read offline since 22:34, and every cloud dispatch — including the owner's from a second computer — sat in the queue. The deploy's new runner-state print showed it: "Main process exited, code=exited, status=1/FAILURE … restart counter is at 220". - poller.ts: `browser_task` loads browser-handoff with a dynamic import at the call site. Browser tasks are channel "local", so the box never takes that path; on a desktop the module is a separate chunk (checked with electron-vite build). - scripts/test/box-runner-headless.ts: walks the static import graph from scripts/box-runner.ts and fails on any desktop-only package (electron, electron-updater, @sentry/electron, @electron-toolkit/utils), printing the chain. Fails on main with "electron via box-runner.ts → poller.ts → browser-handoff.ts"; passes here. - Fleet Runner 0.8.42 (desktop-release-drift requires the bump for any desktop/ change), with a release note. Verified: the poller and every other box-runner import load under plain Node (`tsx`); desktop tsc and electron-vite build clean; desktop-command-validator 17/17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Xssd1hFZCUSxqjACjoVBB * test(browser-fill): find the filler in any built main chunk The poller now loads browser-handoff lazily, so electron-vite emits it as its own chunk beside index.js. The test looked only in index.js and failed in CI with 'has no top-level fillBrowserForm'. It now reads every .js file in desktop/out/main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Xssd1hFZCUSxqjACjoVBB --------- 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> |
||
|
|
2011f31d64 |
feat(loki, terminal): AI next steps, one-action dispatch card, chat view's clock and mode (#1046)
* feat(loki, terminal): AI next steps, a dispatch card with one next step, the chat view's clock
From the operator, on a phone (2026-10-05): smarter suggestions, a less
confusing dispatch card, a phone layout pass, and a chat view more like the
Claude app.
- AI next steps. Once a session's screen or Claude's reply stops changing,
the fast model reads it (POST /api/terminal/next-steps, one call per
distinct context) and its three steps lead the suggestion row in both the
Prompt box and the chat view. The rule-based chips show at once and stay
as the fallback when the model is slow or fails.
- Dispatch card. "Queued · waiting for a builder · Target: loki" over
Control state / Cloud terminal / This computer is now a headline that
names where the work is ("Waiting for this computer"), one line on what
happens next, and ONE primary action chosen by state: Connect Fleet Runner
while it waits on this computer, Watch it while it runs (on the terminal
it actually runs on), Open in Control when it failed, See the result when
it finished. lib/dispatch-card.ts, tested.
- Chat view. The live line carries the turn's age ("2 min 5 s"), the way
the Claude app shows it; a single tool step names itself ("Ran" + the
command in mono) instead of "Ran a command".
- Status dots. dispatchToneDotClass returned a colour class without the
ui-dot size, so every dispatch status line (Loki card, terminal composer,
prompt run modal, activity retry) began with a 0×0 dot.
- Suggestion chips ellipsize instead of cutting a step mid-word.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39
* feat(terminal): Claude Code's mode beside the message box, one tap to the next
The Claude app shows Auto / Accept edits / Plan beside its composer. Loki's
conversation view now does too.
- Claude Code writes `permissionMode` on every message you send. The shared
log reader (lib/claude-transcript, also Fleet Runner's) keeps it on user
items; the frame route accepts it; sessionMode() reads the newest.
- SessionModeChip in the composer row: the mode as of your last message,
and a tap sends Shift+Tab, the TUI's next-mode key. It says "Switched…"
until your next message records the new mode. No pick-a-mode list on
purpose: the cycle order varies by Claude Code version and settings, so a
picker could land on the wrong mode and claim otherwise.
- Fleet Runner 0.8.40 (the runner reduces the log), with its changelog
entry. Older runners send no mode and the chip simply does not show.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
d5719be7f9 |
feat(terminal): screenshots reach the agent as images — the runner writes them, Claude opens them (#1045)
* feat(terminal): screenshots reach the agent as images — the runner writes them, Claude opens them From the operator: a screenshot attached in the Terminal's composer should actually reach the agent working in it. It never did — it was "described" by a free vision model first, and when those were rate-limited the agent got "Could not analyze attached image(s): all vision models failed — HTTP 429" (2026-10-05). Even when they answered, the agent read a paraphrase. Claude Code reads an image file when the prompt names its path. So: - lib/agent-attachments: an image gets a placeholder line in the prompt and travels with the command (pending_commands payload `attachments`); parseAgentImages is the runner's boundary check (uuid ids, png/jpeg/gif/ webp, size and count caps — refused whole). - lib/agent-attachments-fs: where the agent runs (box runner, Fleet Runner, or a local Loki), write each image to ~/.loki/attachments/<id>.<ext> (0600, outside any checkout) and swap the placeholder for its absolute path; a file that cannot be written becomes a sentence, never a token. - tab-inject (Terminal composer): stageAttachmentsForAgent instead of the vision fold; dispatch/inject carry the images. - Runner (poller inject + dispatch, command-validator): accept and materialize them before typing. - Chat view: a message with a screenshot goes through the new /api/control/chat-send (verbatim inject; the keystroke lane has no room for a picture), replacing /api/control/fold-attachments. Other dispatch paths (Control's orchestration run, /api/inject, feedback) still describe images; they are not typed into a live terminal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(desktop): Fleet Runner 0.8.39 — screenshots reach the agent as image files The runner now materializes attached screenshots (poller inject/dispatch), so this change must reach machines, not only the box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d0e7fa68a7 |
Feedback inbox as one view; a Claude conversation that finds its log; follow-ups and voice chat in Loki (#1027)
* feat(feedback): one integrated inbox instead of stacked widgets /feedback on a phone read as "a bunch of random elements": a lone bordered Studio requests button, two rows of pills, a line restating the chip just tapped, three bordered cards with grey headers, and rows whose status, context and buttons sat in different places and came in three heights and two fills. - Lens: Needs you · Under way · Shipped as one segmented control with counts. One list shows at a time; it opens on the first lens that holds something. An empty lens links to the lens that has work, never a dead end. - Filters: one line. Project chips scroll; source is a compact select; the loop's numbers and the Studio requests link share the line under the chips. - Rows: same anatomy for every phase. Context (status · project · page · who · age), message, one "why" line, then an action bar of one height: the labelled decision leads, icon utilities (note, resolve, archive) sit at the trailing edge. Under-way Resolve becomes an icon; "What changed" becomes a link on the agent's line. The "Watching this run" strip is gone, because the Watch panel already holds Terminal and Chat. - Dead .ui-inbox-fold rules removed; the fold now uses .ui-fb-fold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE * fix(terminal): the Claude conversation finds its log; a calmer phone chat The /terminal conversation view sat on "No conversation from this session yet" for sessions that were plainly running. - Runner (0.8.38): claudeProjectSlug now matches Claude Code — every non-alphanumeric becomes "-", not just "/" and ".". Workspace and worktree names may contain "_", and for those the transcript stream, the usage collector and the auth canary all looked in a folder that never exists. Slugs past 200 chars (Claude truncates and hashes them) match on prefix. - Runner: when it has the session but Claude has written no log, it says so once (an empty frame). The view tells apart "builder never answered", "Claude hasn't started here" and "nothing said yet", each with its own next step; the composer stays live in all of them. - Answers in the Claude conversation get the same row as Loki's chat: Copy, Listen and — where the phone has a share sheet — Share (AnswerActions, shared with MessageTurn). - Phone chrome: the Profile/Chat/Control/Terminal strip and its repeated project name are hidden on /terminal below md (the one-line header names the session); the agent chip drops in conversation view so the session name is readable; the Loki button says "Loki", not a second "Chat". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE * feat(loki): suggested follow-ups and a hands-free voice conversation Two things the reference chat apps have and Loki's chat did not. - Suggested follow-ups: after an ordinary answer that ends the thread, up to three "↳ Make it longer" rows; a tap sends one as the next message. POST /api/loki/follow-ups asks the fast model once (feature "chat-follow-ups"); a slow or failed model answers [] and nothing shows. lib/loki/follow-ups.ts parses whatever comes back (numbering, bullets, quotes, a JSON array, a preamble) into clean tap targets — tested. - Talk: a filled pill beside the composer's controls (only while the box is empty — the mic beside send still dictates). It opens a full-screen voice chat: listen until you pause, send what you said through the normal send path, read the answer aloud, listen again. The mic is closed while the answer is read, so the phone never answers itself; a failed turn goes back to listening rather than to silence; 20s of quiet pauses it. Endpointing (lib/loki/voice-turn.ts) works on waveform RMS against an adaptive noise floor and ends a turn only on a pause AFTER speech — tested. Transcription is the composer's own server leg (/api/control/transcribe). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE * fix(loki): voice chat passes lint — no setState in an effect body, workspace under its line cap The answer that arrives during a voice turn is read aloud from a deferred callback rather than the effect body (react-hooks/set-state-in-effect), and the voice screen takes the hook's state whole, so LokiWorkspace drops back under its 510-line max-lines-per-function ratchet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE * fix(loki): answer first, never a wall of projects; thumbs-down files feedback From the owner's phone: "This all is making it unworkable. Flow should be easy and enjoyable." A plain message ("let's keep improving this interface") came back as "Which project should I run that on?" over seventeen two-column project tiles, and the thread title ran across the back arrow. - Loki always answers. When the message also reads like work, the answer carries one closed line under it — "Run this on a project…" (or "No project called X — run this on another…") — which opens the picker only when tapped. The blocking needs-project turn is gone; older threads that contain one still render it. - The picker is small wrapping chips, not 44px tiles in a grid. - Thread header: the title truncates instead of overflowing both edges (a centred flex child is as wide as its text, so `truncate` never engaged). - Thumbs-down under Loki's answers: one optional line on what was wrong, then Send. POST /api/loki/answer-feedback files it into Loki's own project (FEEDBACK_WIDGET_TOKEN, where the dogfood widget files), with the question and answer attached so it reads on its own in /feedback, and the reporter recorded so it shows in their /my-feedback. Not on the Claude Code conversation, which is not Loki's answer. Says plainly when the token is not provisioned. Report text: lib/loki/answer-report.ts, tested. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE * fix(feedback): scale widths, not arbitrary ones, in the row context line max-w-48 / max-w-40 are the same 12rem / 10rem on Tailwind's scale; the arbitrary values raised design-principles' one-off-layout ratchet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE * fix(loki): answer report takes optional note/question, as the route sends them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
88c08a70cb |
Claude Code as a phone conversation, texting-app chat, operator-only OpenClaw, one task to several projects (#1024)
* feat(control): one task, several projects — write a cross-repo task once
A change that spans repositories ("make it so I can post prompts in
OrangeCat and Loki") had to be pasted into each project separately, and
each agent then tried to build the whole thing in its own repo.
- lib/multi-project-dispatch.ts fans one task out through injectPrompt
(same routing, serialisation, tracking as /api/inject). Names resolve
before anything is sent; an unknown name refuses the whole task and
lists the projects that would have worked.
- lib/multi-dispatch-prompt.ts: with 2+ projects each agent is told who
else got the task, which part is theirs, and to write down any
cross-repo contract it assumed.
- POST /api/inject/multi (session / agent token).
- POST /api/orangecat/task: signed OrangeCat rail, runs as the Loki user
linked to the actor, 409 with the next step when unlinked.
- Control: select projects on the rail -> "Send a task" opens the shared
Composer; a partial send keeps the draft and retries only the refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cwwmrb1uCjRv7wKDWLiA21
* fix(loki): the operator's OpenClaw agent and personal session are the operator's alone
Loki is multi-user with open sign-up, but three paths let any signed-in
account reach the instance operator's private agent:
- ask_openclaw (a `read` tool every user's tool loop advertised) queried
the operator's OpenClaw agent, which remembers their Telegram and
WhatsApp threads.
- The gateway fallback ran for every user whose tool loop failed, with
the operator's gateway token at operator.write scope.
- LOKI_PERSONAL_SESSION_KEY put every user's "Ask Loki" into the
operator's personal session.
Now: tools can be marked operatorOnly and runLokiTurn drops them unless
operator === true (fail closed); askLoki resolves "operator" from the
account (users.is_default) — never from a caller option — and only then
may fall back to the gateway; the personal session key applies to the
operator's account only. Everyone else keeps the shared chain and their
own per-user thread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cwwmrb1uCjRv7wKDWLiA21
* feat(loki): a texting-app chat on phones
On a phone the chat got about a fifth of the screen: the app top bar, a
second row of two icons, a "save this exchange" row, a row of starter
chips, a four-row composer and the bottom tabs. Now:
- An open conversation takes the whole phone (useImmersiveChat hides
the app top bar and bottom tabs below md). Its own ThreadHeader is one
line: back to chats, the title with the project scope under it, and a
menu (New chat, All chats, Projects).
- Your messages are neutral bubbles, answers are plain 16px text, and
copy/retry are icon-only 44px targets on phones.
- The composer is one rounded card: words first, then one row —
attach · model · project on the left, mic beside send on the right.
The project pill sits inline (tap to change, × to drop) instead of a
header row, the builder badge is a coloured dot on phones, and starter
chips stay off phones mid-conversation. chatkit's stylesheet is
unlayered, so these overrides are unlayered too (a rule inside @layer
components silently loses to it).
- "Save this exchange to a project" scrolls with the thread instead of
holding a fixed row.
- The start screen is a messages inbox — round initials, title + time,
project under it, eight deep. It used to hide recent chats on every
phone because the desktop rail's pin (on by default) was treated as
"the rail is visible", so Back from a thread landed on nothing.
- On the start screen the chat's own two icons render inside the app
top bar's empty left half (TopbarSlot) instead of a second header.
Checked at 320/390 in light and dark: no horizontal overflow, send
never pushed off (model and project pills give up width first).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cwwmrb1uCjRv7wKDWLiA21
* feat(terminal): Claude Code as a conversation on your phone; a model sheet that reads like one
/terminal showed a Claude session only as its PTY — answers as 80-column
TUI cells, unreadable on a phone. Claude Code already writes the same
conversation as structured data, so now it is shown as one.
- lib/claude-transcript.ts (pure, tested): Claude Code's session JSONL
→ user / assistant / tool items. A tool's result lands on a later line
and updates its row in place; harness noise, sidechains and meta lines
are dropped; results are previews, never whole files. Consecutive tool
calls fold into one line ("Ran 2 commands, edited a file"), and a live
one says what is happening now ("Running git push").
- Runner (desktop 0.8.37): transcript-streamer.ts follows the newest log
for the folder the agent was launched in, reading only appended bytes
with fs/promises on a 1s timer, and only while someone watches — it
rides peek_start/peek_stop.
- Server: POST /api/control/transcript-frame (runner token) and
GET /api/control/transcript-stream (session). The server keeps the
latest conversation per (user, tab), so a phone that slept repaints at
once.
- ClaudeChatView: bubbles, readable answers, folded tool runs you can
open, an animated status line while Claude works, Allow / Always / Deny
when Claude may be asking, and a composer that types into the same PTY
(bracketed paste, so newlines do not send early). Stop is Esc; once you
type mid-run the slot becomes Send and Claude Code queues it. Chat is
the default view; the raw terminal is one tap away (header icon on
phones, "Chat" in the desktop pane chrome) and agents that write no
Claude log always get the terminal.
- Model picker: a bottom sheet on phones — plain names, one line on what
each is for, a check, locked rows saying why in words.
- Fix: the chat model you picked never reached the chat turn (askLoki had
no model; runLokiTurn always started at LOKI_MODEL). It now sets where
the free chain starts. And it is no longer handed to dispatched project
agents, which were being launched with a Groq/OpenRouter model id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cwwmrb1uCjRv7wKDWLiA21
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
9747207038 |
fix(runner): a working Claude is not reported as silent; fresh launches close dialogs (#966)
* fix(runner): a working Claude is not reported as silent; fresh launches close dialogs Petvity, 2026-09-28: two dispatches failed with "claude opened on this computer, but produced no response" while Claude was logged in, well inside its limits, and working normally in a terminal on the same account. The runner's only evidence for "no response" is Claude's own status file (~/.claude/sessions/<pid>.json) staying idle for ~22s, matched to the workspace by folder path. Three gaps, all closed here: - claudeLiveSessionForDir compared paths as strings. Claude records its cwd as the kernel reports it (symlinks resolved, no trailing slash); the runner holds the path it was handed. One folder spelled two ways meant no session was found, the check fell back to a guess, and a working Claude was NACKed. Both sides are now compared by realpath as well as as given. - The dialog dismissal added after Farmhouse (2026-09-26) ran only for an already-live session. A freshly launched Claude can open on a dialog too; the prompt then answered the dialog. The launch path now closes it first. - The generic failure now quotes the last lines the CLI drew (screenExcerpt), so the next unexplained failure says what Claude was showing instead of leaving the operator to guess. Tests: claude-dialog-not-a-composer (symlink, trailing slash, subfolder, other folder; fresh-launch dismissal; the excerpt strips escapes and borders and stays short). Unit suite 296/296, tsc clean, check:desktop ok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsT2PtLuBKwgaaBU5pheG8 * chore(desktop): Fleet Runner 0.8.36 carries the silent-Claude fix The runner change touches desktop/, so it needs a version the release workflow can publish, or it lands on the server and on no machine (desktop-release-drift). 0.8.36 with its FLEET_RUNNER_RELEASES entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsT2PtLuBKwgaaBU5pheG8 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
3af2fec589 |
fix: what the Farmhouse end-to-end test broke — Live link, stuck Claude dialog, owner wording (#938)
* fix(sites): a site that goes live after registration is recorded, and its owner told Registration wrote the live URL only if the site answered at that moment. Farmhouse's first deploy failed, a later one succeeded, and nothing looked again: no live URL, a Live link that opened the OrangeCat listing, and no word to the owner. An hourly check (and the owner opening the project page) now asks the same question registration asks and, the first time the answer is yes, sends the owner their link that readies the widget. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(telemetry): six crons run hourly now that check-site-live does Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(runner): a Claude session showing a dialog is cleared before a prompt is sent into it Farmhouse's parked session sat on Claude Code's "Teach auto mode about your environment?" dialog. The owner's widget note was injected into the dialog, nothing ran, and the run was NACKed 33s later while the widget said "On it". Claude reports this itself ({status: waiting, waitingFor: "dialog open"}); the runner now presses Escape and, if the dialog stays, starts a fresh session. Also: on the box every live-session lookup used the dispatch's laptop path, which no session has, so the generation check fell back to guessing from screen activity. They now use the folder the agent really runs in, and the reader accepts current CLIs' updatedAt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(widget): owner mode reads as the owner's, and the agent is told the owner asked The widget no longer asks the owner for a name/email and says what happens ("Your site: what you say here gets built and goes live"). The agent's brief now opens with "The owner of <project> asked for this change" instead of "Fix this visitor feedback" — still fenced as text from a browser. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(desktop): 0.8.35 — ships the dialog-clearing runner fix to Fleet Runner too Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(changelog): Fleet Runner 0.8.35 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
10b1f3a082 |
fix(orchestration): a runner restart closes the runs its sessions were serving (#917)
The runner now reports bootedAt (process start, captured once) on every runtime-state post. Runs on that runner's channel whose agent session was live before the boot (claimed/launched/submitted/generating/progress event older than bootedAt), with nothing heard since and no un-acked command, are closed at once with the restart named, instead of reading 'waiting' until the hourly reaper. Only-dispatched runs are left for the new runner. Verdict matches the reaper's (partial on handoff, else timeout) so the same repo-evidence correction upgrades runs that had already pushed work. Fleet Runner 0.8.34. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
f2f6206bcf |
fix(projects): truthful cloud presence + project header state/actions (#912)
* fix(projects): tell the truth about cloud presence and separate header state Box-runner heartbeats as cloud but could register bridge presence as local, so /terminal said Cloud offline while the journal shipped work. Infer cloud from box-* versions, force the channel in box-runner, and scope the terminal honesty chip. Project header now shows listing/live as status, not peer links; catalogue invite waits until kickoff/build is idle. Co-authored-by: Cursor <cursoragent@cursor.com> * chore(desktop): bump Fleet Runner to 0.8.33 for presence-channel fix desktop/bridge-subscriber changed so box-* runners register as cloud; the release-drift gate requires a version bump and changelog entry before merge. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|
|
49553dadec |
fix(runner): stop killing working agents — quota NACK read our own prompt, drain waited on idle CLIs (#898)
Two defects hit one Skif dispatch on 2026-09-25, and either alone loses work.
1. The dispatch was NACKed "claude cannot generate because its usage limit
is exhausted" 14s in, while Claude was visibly working on the brief. The
capacity check scanned the WHOLE PTY buffer with a topic-word regex
("rate limit", "credit", "context window"), so the echoed prompt, the boot
banner or a file the agent printed read as a quota wall. Now it reads only
what the CLI printed after the injection, ignores lines that are just the
prompt echoed back, and for Claude defers to its own session status: a
session still generating has not hit a wall.
2. Two minutes later the box runner restarted and killed every session. The
post-deploy drain waited for agent processes to EXIT, and interactive CLIs
never exit, so it always ran to its 30-minute cap and then killed whatever
had started most recently. It now counts agents that are WORKING: an idle
Claude does not hold the restart; generating, waiting mid-task, or any
status it cannot read does.
Fleet Runner 0.8.32 (desktop/ changed, so it ships as a release).
Tests: terminal-run-view (echo vs real wall, mutation-checked) and a new
test-drain-and-restart-runner.sh (18 checks, four mutations each caught).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
||
|
|
9c94a0f20c |
fix(desktop): ship 0.8.31 with the vulnerable transitives pinned to patched versions (#893)
All of desktop's advisories sit in desktop/package-lock.json with no direct dependency to bump, so Dependabot never proposes a fix. desktop is NOT part of the pnpm workspace (that covers packages/* and bridge), so it takes npm `overrides` in its own package.json. Five pins, each the advisory's own first_patched_version and bounded to one major (^0.8.15 on @xmldom/xmldom stays inside 0.8.x). nanoid is not in GitHub's alert list -- `npm audit` finds it locally -- so the dashboard count understates the exposure. `npm audit`: 0 vulnerabilities. The bump to 0.8.31 is required, not cosmetic: desktop code reaches a machine only when a fleet-runner-v* tag is minted from this version, so pins without a bump would stay on the server and on no machine. desktop-release-drift.ts enforces that and the matching FLEET_RUNNER_RELEASES entry. Redo of loki#803, closed 2026-09-23 as a stale draft. Main moved to 0.8.30 in the meantime without these pins. Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
a1e81da2d8 |
chore(desktop): land three stranded dependency bumps as one release (#827)
* chore(deps): bump the minor-and-patch group across 1 directory with 3 updates Bumps the minor-and-patch group with 3 updates in the /desktop directory: [@sentry/electron](https://github.com/getsentry/sentry-electron), [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). Updates `@sentry/electron` from 7.17.0 to 7.19.0 - [Release notes](https://github.com/getsentry/sentry-electron/releases) - [Changelog](https://github.com/getsentry/sentry-electron/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-electron/compare/7.17.0...7.19.0) Updates `@types/node` from 26.4.0 to 26.6.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `vite` from 8.2.2 to 8.3.0 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/create-vite@8.3.0/packages/vite) --- updated-dependencies: - dependency-name: "@sentry/electron" dependency-version: 7.18.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: "@types/node" dependency-version: 26.5.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: vite dependency-version: 8.3.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(desktop): land three stranded dependency bumps as one release Takes #713 (@sentry/electron 7.17.0 -> 7.19.0, vite 8.2.2 -> 8.3.0) and #619 (js-yaml 4.2.0 -> 4.3.2, transitive) and ships them together as fleet-runner-v0.8.30. WHY THEY WERE STUCK, and why the gate was right Each was red on desktop-release-drift, which refuses a change that reaches a machine unless `desktop/package.json` is ahead of the last released tag and `FLEET_RUNNER_RELEASES` has the matching entry. Desktop code does not ship itself: without the bump, a merged change is live nowhere and `git log` looks healthy anyway. Dependabot cannot know to do that, so every desktop bump it opens is born red. That is the gate working. The failure was upstream of it: the auto-merge sweep had deadlocked (fixed in fleet#123 today), so nothing surfaced them either. #619 had sat since 2026-09-11, #713 since 09-14. ONE RELEASE, NOT THREE Merging the PRs separately would mint three runner releases for what is a single maintenance update, and every operator would see three identical-looking updates. Combined here so the version moves once. js-yaml is a lockfile-only (transitive) bump, so it is spliced into the merged lockfile rather than reformatting the file wholesale. NOT INCLUDED: #524 (electron 43.4.1 -> 44.3.0). A major Electron bump replaces the Chromium and Node inside every installed runner, and a green build proves it packages, not that it runs. That deserves its own change with a real smoke test, not a ride-along in a maintenance commit. Closing it; dependabot will re-raise at a current version (44.4.3 today). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
a02d31d996 |
Every public claim matches the code, and two gates can now fail (#802)
* fix(truth): every public claim now matches what the code and the licence say The /license page forbade what LICENSE grants. #791 relicensed the repo to MIT and fixed LICENSE, the README and the Terms — but missed the page, which still said "source-available", listed hosting and repackaging under "you may not", and promised a replacement licence that had already shipped. On a public repo, that revoked rights we had granted. Same shape, five more places: - Three live /thoughts pages and four front-matters carried "Mao Nakamoto", the retired identity, into the rendered byline and the OG social card. - legal/ named that identity as operator, data controller and IP assignor, and assigned the work to bitbaum AG / orangecat GmbH / loki GmbH — none of which were ever incorporated. Rewritten as a record of authorship and the MIT grant, which is what is actually true. - The desktop About dialog and the installer copyright metadata shipped "© 2026 Mao Nakamoto" in every build. No audit pass had looked there. - /pricing and the feedback-widget docs said the report loop "closes itself" months after close-loop.ts deliberately removed auto-resolve for being untrue; resolve is an operator act and has zero call sites. - /roadmap claimed signed installers under "Shipping now"; no signing secret exists and /download says the opposite two pages away. - /releases claimed "every shipped version" while missing nine, and listed a 0.8.25 that was never tagged — its "Binaries →" link 404'd. Removed per the file's own rule: one entry per tag pushed to loki-releases. - desktop/README pointed all five install commands at bitbaum/loki, which 404s; releases publish to loki-releases. Version pin replaced with a glob so it cannot rot again. - DEFAULT_USER_NAME greeted nameless OAuth users as "Mao". And the two that lied to agents rather than users: CLAUDE.md claimed pre-push runs the full verify bundle so "green locally means green in CI", and AGENTS.md claimed pre-commit runs tsc. The hook's own header documents why it stopped doing both — a docs-only push runs nothing. An agent trusting either line would skip the verification it needed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(gates): close the two gaps that let deleted things keep passing Two gates could not fail, and one migration ledger had silently drifted. MIGRATION JOURNAL — 13 files missing, next db:generate breaks the deploy. drizzle/ held 78 .sql files; meta/_journal.json had 65 entries. Production was fine and always had been: apply-schema.sh globs the directory and keeps its own _deploy_schema_history, so it never reads the journal. But drizzle-kit does, and its newest snapshot was 0072 — so the next generate would re-emit 0073-0077, including CREATE TABLE "calendar_busy" with no IF NOT EXISTS. apply-schema.sh rewrites ADD COLUMN only, and the batch is one transaction, so the deploy would abort on a change unrelated to it. Reconciled to 78 via bootstrap-migration-ledger.ts --write-journal, and added scripts/test/migration-journal-coverage.ts so it cannot drift again: files vs journal in both directions, plus idx contiguity. Proven by mutation — drop one entry and it exits 1; restore it and it exits 0. SMOKE — every authenticated probe passed whether or not the route existed. The auth middleware answers 401 before routing, and check_route accepted 401 for everything in AUTH_API_ROUTES. Measured: /api/definitely-not-a-real-route returns 401 exactly like /api/orgs. So the list proved nothing, and /api/checkout/personal sat in it for 15 days after the Stripe rail was removed. A 401 now only passes if a route file actually resolves on disk (dynamic and catch-all segments included); the dead entry is gone, and all remaining probes resolve. Also: bumping desktop/package.json to 0.8.29, because the retired-identity fix in the previous commit touched desktop/src/main/index.ts and desktop-release- drift.ts correctly refused to let a shipped file change without a release to carry it. That gate was right and is the model for the two above. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
f4164a6f67 |
fix(runner): make Terminal and provider status truthful (#755)
* fix(terminal): stop claiming dead sessions are generating * fix(runner): report provider quota walls honestly * docs: define Loki's working product contract * fix(runner): replace stale provider PTY on retry * fix(control): route provider switches to project runner * fix(terminal): keep Watch on the dispatched runner |
||
|
|
8034cb629b | feat(feedback): add reporter tracking and project editors (#754) | ||
|
|
43c6bb44af | fix(runner): make feedback dispatch observably start (#745) | ||
|
|
a78b4b1e9a |
fix(runs): a fast task closes its run — delivery is stamped at injection, not at the ack (#720)
* fix(runs): a fast task closes its run — delivery is stamped when the prompt lands, not when the runner acks The e2e health probe did everything right and its run never closed. The agent was injected at 05:12:55, wrote `status: ready` at 05:13:06, and the runner acked at 05:13:11 — because between injecting and acking it spends up to eight seconds (plus retries) checking that the agent is actually generating. `deliveredAt` was stamped at the ack, and closeRunFromSession requires the handoff to POST-DATE delivery, so the run's own handoff read as stale. It sat `waiting` until the hourly reaper called it a timeout. Every task shorter than that check hits this, which is every health probe and most one-line fixes — the runs most likely to be used as proof that the loop works. The runner now records the moment of `injectPty()` and reports it in the ack; the server prefers it (`deliveryStampFor`) within bounds that keep the floor honest: never before the run was created (60s of clock slack), never in the future, otherwise the ack time as before. Tested on the verbatim timings above. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh * chore(desktop): ship the delivery-stamp fix as Fleet Runner 0.8.25 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
3abdd4b7ea |
chore(desktop): ship the rename as Fleet Runner 0.8.24 (#696)
desktop/ changed in the rename, and the drift gate refuses a desktop change that does not carry a new version — merging one leaves it on the server and on no machine. Bumped, with the /releases entry that the same gate requires. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
95c40a9cd8 |
refactor: rename the product from FleetCrown to Loki (#695)
The product, its assistant, the repo, the host and every unit on the box now share one name. 638 files, ~3,000 mentions: UI copy, config, env keys (FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs, articles, the deploy workflow other repos reuse, and nine file names. - Three article slugs carried the old name and had been shared; permanent redirects keep those links alive (next.config.ts). - test-no-retired-name.sh now also forbids the old product name across the whole repo, so the rename cannot creep back through templates and examples. - ASSISTANT_STACK collapses the product and the assistant into one entry, because they are now the same name. Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki` database and role, loki.orangecat.ch (old host 308s to it; /api, /widget, /embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases. The Resend sending domain stays fleetcrown.orangecat.ch until the new domain is verified in DNS. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |