mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 16:07:35 +01:00
cursor-probe-trust
797
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
55141f4614 | Send widget guided choices through the conversation handler (#1379) | ||
|
|
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> |
||
|
|
d17fdfad88 |
Sealed builds that actually start: NNP off for the unit, runsc without NoCgroups, slirp4netns, per-user image, crun (#1372)
* sealed-builds test: NoNewPrivileges toggle for diagnosis * sealed test: qualified image name, image visibility diagnostics * sealed test: store diagnostics * sealed: load the agent image into the runner user's own store * sealed test: diagnostic without runsc * sealed: runtime matrix diagnostic * Sealed builds that start: NNP off for the unit, runsc without NoCgroups, crun, per-user image * Sealed builds: slirp4netns for rootless networking * prettier * test: sealed network is slirp4netns --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
b3bdd96ce9 |
Fail over to the next agent on a quota wall; never 'Done' over a failure; Watch on the decision card (#1367)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
9901e004d8 |
Use the shared visual answer engine in AI chats (#1364)
* feat: adopt shared visual AI answers * test: preserve all citations in one sources sheet per answer * feat: negotiate visual answers with public chat clients * fix: preserve complete visual widget answers and bounded history * fix: keep visitors' literal messages in rich chat history * style: normalize widget history formatting * fix(widget): keep chatkit out of the panel bundle The panel (public/widget.js) imported richAnswerText from @bitbaum/chatkit, pulling a dependency into every customer page load and failing widget-self-contained. Use a dependency-free copy in widget/rich-history.ts with a parity test against chatkit. * style: format widget visual answer test --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
f883de4c20 |
feat(loki): chatkit 0.10 (the row under an answer, studio voice) and temporary chat (#1361)
* feat(loki): chatkit 0.10 — the row under an answer is the fleet's, read in the studio voice Copy · Listen · Share · Try again · Bad answer under every answer are chatkit's AnswerActions now (0.10.0): Listen reads the answer in the studio voice (createServerSpeaker, made inside the tap so a phone does not mute it, the phone's own voice as the fallback) and the row becomes a small player — Stop and the time so far — while it reads. Loki's own copy of the flattening (speech-text) and the browser-voice hook are gone; the path re-exports chatkit's for the voice modules. The composer's placeholder is one row on the narrowest phone, from the same release. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * chore(deps): chatkit 0.10.0 pinned to main Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * feat(loki): temporary chat — never listed, gone when you leave "Temporary chat" in the start screen's menu (and a thread's): the next conversation is created `ephemeral` (conversations.ephemeral, drizzle 0126). It is never in the rail, the start screen or an export — every list reads ephemeral = false — and it is deleted the moment the person leaves it: a new chat, a switch to another thread, a closed tab (the delete goes with keepalive). The daily sweep (crons/sweep-temporary-chats, 04:40 UTC) takes any left behind by a dead phone. The header says "Not saved — gone when you leave" while one is open or armed. lib/loki/temporary-chat.ts holds the leave rule, pure and tested (scripts/test/loki-temporary-chat.ts). The workspace's two drawers moved to WorkspaceDrawers to stay under the line cap. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * chore(drizzle): format the generated 0126 meta Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * fix(crons): the temporary-chat sweep writes its outcome down cron-outcome-persistence: every cron-authed route records what it did with logDebug, since the journal holds about a day. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
93ab3816a8 |
feat(loki): the start screen owns the phone too — floating chats · Loki · menu, nothing clipped (#1360)
* feat(loki): the start screen owns the phone too — floating chats · Loki · menu, nothing clipped What the owner saw on /loki from his phone (2026-10-21) was the START screen, which the thread redesign had left with the app shell: the app top bar, the bottom tabs, the starters and the composer around an inner scroller that clipped the spiral and the Build next row and drew Android's grey scrollbars. "It says the thread fills the display edge to edge, but it doesn't really." Now the whole of /loki takes the phone (useImmersiveChat on the start screen as well). The start screen is laid out like a thread: a floating one-line header — chats (the history drawer, as the ChatGPT and Claude apps keep it) · Loki · a menu that carries Home and every other page now that the tabs are gone — and the composer floating at the bottom with the starters above it, where the thumb is. The greeting, the recent chats and Build next scroll under both with the measured insets as padding, so nothing is cut off between two bars. Build next and the starter row scroll sideways with no scrollbar and a fade at the edge, never a chip cut in half. The desktop keeps its sidebar, top bar and in-flow composer. The TopbarPortal that lent two buttons to the phone top bar is gone with the bar. scripts/test/mobile-flow-browser.ts now pins it: no bottom tabs, no top bar, the page's own header on screen, Home one tap from its menu. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * fix(loki): the starter row says it scrolls (ui-scroll-fade-right) CI's scroll-strips-have-an-affordance ratchet: a strip that hides its scrollbar must carry the fade, and the starter row above the composer had the one without the other. Room after the last chip so it clears it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
3024426a65 |
fix: Voice says why studio voices are off, Watching says each thing once, Prompts in words (#1358)
* fix(prompts): one card per saved prompt, schedules in words, dialogs that say why
What the owner found on /prompts from an Android phone, item by item:
1. Saved prompts: saving the same name + words again no longer inserts a
row — POST /api/prompts answers with the prompt already saved
(existing: true); the form opens it, the default's save button says
"Already in your prompts". A card that stands for identical copies says
how many and offers "Remove N extra copies" — one explicit tap, the
caller's own rows only, the same soft delete as Delete
(DELETE /api/prompts/<id>/copies). Same name with different words says
"2 versions with this name, worded differently".
2. Filters: the scope filter is a <Segmented> (All / Any project / One
project) sitting with the category row on the list they both filter,
under "Loki's prompts". Category counts follow the scope. Filter chip
rows on a phone get a wider fade, snap to a chip's start and leave room
after the last chip, so the edge reads as "more" rather than a cut word.
3. New prompt: Create stays disabled until there is a name and a prompt,
and says what is missing beside it. Opening or closing the form never
saved anything; the copy glyph on every default card did, in one tap
with no label on a phone — it is now a labelled "save a copy" button.
4. Schedule: pick Every day / Weekdays / Every week / Every month, a day
and a time; Loki writes the cron (lib/cron-words), with "Write it as a
cron line instead" for experts. The schedule reads back in words with
the time zone it runs in ("Every Monday at 10:00, Zurich time
(Europe/Zurich)") and a link to change it; the zone is sent with the
job. The API refuses a cron line the scheduler cannot read, in words.
Create is the primary button and says why when it cannot be pressed.
5. Run: a prompt that names {{project_name}} asks for a project whatever
its scope (a saved copy is global), defaulting to the project in use;
the prompt is shown only once complete. Each action says in one line
who does the work; Send to terminal works for any of your projects
(tab-inject starts or queues the session) and says why when it cannot.
Project pickers list projectTitle(), not folder keys.
6. Category chips are neutral (ui-tag-neutral); the ui-cat-* rainbow and
the featured star's amber are gone. "control" was a second id for the
fleet prompts — one category now, "Fleet control".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(voice): spoken sentences start with a capital and name a repeated project once
The briefing read "one run is waiting for a builder: loki ... three runs
failed: loki, loki and loki". Sentences now open with a capital, and the
runs' projects are said once each: "Three runs failed on loki.", "Four runs
failed: loki three times and heidi once." The same for runs waiting for a
builder, agents working, and the announcements between turns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(voice): say why the studio voice is off, with the link that fixes it
POST /api/voice/speak answered 502 with Groq's reason only in the server
console, and the phone fell back to its own voice in silence, so every voice
in the picker sounded the same. Groq's refusal is now classified
(lib/voice/tts-failure: terms gate, bad key, limit, model gone, vendor down,
no key) into one plain sentence and, where one exists, the link that fixes
it — for the Orpheus terms gate, Groq's voice page and "press Accept". The
route returns it in the 502/503 body and records it in debug_logs (once per
reason per half hour) so System shows it. The speaker reports the fallback
to the page; useStudioVoiceStatus keeps it for the tab's session and
StudioVoiceNotice shows it. The phone-voice fallback stays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(voice): change Loki's voice by saying so, and answer questions about voice mode truthfully
"I don't like your voice, can I change your voice" was answered like a
generic chatbot ("in most voice-enabled AI chat apps... look in settings").
Now "use Troy", "change your voice to Diana", "other voice" and
"switch voice" are a spoken command (config/no-screen.ts, lib/voice/commands)
that the phone answers itself; with no name it lists the voices. A question
that does reach Loki carries voiceModeContext (lib/voice/self.ts), built from
the SSOT: the voices by name, how to change one, the three switches with the
same one-line notes the screen shows (NO_SCREEN_OPTIONS), every command, the
current settings and why studio voices are off, if they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(voice): a music bed a phone can actually play, and keep its sound awake
The bed sat at about -38 dBFS RMS alone and -50 under the voice, every note
98-370 Hz behind a 900 Hz low-pass: below what a phone speaker or many
earbuds reproduce, so "music bed on" was silence. It is now an octave
higher (196-740 Hz), about 12 dB louder, ducks by 10 dB instead of 11 more on
top, and earcons sit above it. The AudioContext is resumed inside the Start
tap, on every tap on the circle or headphone button, on return to the page,
and when the phone suspends it mid-session.
useSoundscape also returned a new object every render, so effects keyed on
it re-ran ~20 times a second while listening: the gain was re-ramped every
frame and the 20-second fleet poll was cleared before it could fire. It is
memoized now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(voice): one h1 per screen, End clear of the feedback launcher, voices as an even grid
- Speaking screen: an h1 below md, where the app top bar steps aside; the
start screen's big "Voice" is no longer a second h1 beside the top bar's.
- The speaking screen sets data-fc-place="tab", so the feedback launcher
and its Watching pill become the slim edge handle instead of sitting on
End; End is larger, with room below it, and the stage scrolls rather than
pushing End off a short screen.
- The voice picker is a <Segmented> grid of four columns (seven voices as
4 + 3, the last two cells wide) instead of a chip row cut off at the edge;
the setting groups have real headings.
- The unclear note under the switches is one short line under each switch,
shared with what Loki is told about itself.
- The page wires the studio-voice notice (under the picker and under the
circle, said aloud once), the spoken voice change, the page's state sent
with each question, and the sound resume on every tap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(widget): one card per finding, settled page checks, honest fix status, a count that means what needs you
Watching on Loki's own /voice from an Android phone showed six problems in
one panel. Each is fixed where it starts:
- Notices no longer stack. A page's checks own ONE card (checksSlot), which
each new reading replaces in place and a clean reading takes back
(thread.ts pushNoticed / dropNoticed); a remark whose words are already on
screen is not said again; a finding's signature ignores its count and its
placeholder example (findingKind), and the card names its page.
- The heading miscount: the check counted headings inside aria-hidden and
inert subtrees, and measured the page once, mid-swap — /voice's setup
screen (top bar h1 + page h1) leaving for its speaking screen (immersive
mode hides the top bar: no h1). Checks now count only rendered elements and
run once the page has held still, twice, keeping only what both readings
agree on (settledPageChecks / stableChecks). The Voice page itself now has
one h1 on each screen.
- A fix Watch started that failed no longer promises it "goes live by
itself": it says the fix did not finish, and "Open it in Loki to see why"
is a real link to that run's Watch page (owner-view ownerTap; watch-fix
now resolves a failed run's Watch page even without a live page).
- Self-watch: "I couldn't check on your changes just now" replaces the old
sentence; a request that lived through the page being put away (a phone
locking) is never a failure; background reads count only after three
failures in a row; the changes route always answers with CORS headers and
logs what failed.
- The header's one number is what waits on the owner's decision (failed
attempts, saved notes, notes not started, changes said but not saved),
counted by the server over ALL of the owner's rows, not inside the newest
twelve; the open list shows every one of them first. Nothing waiting:
just "Watching".
- The save receipt never quotes a cut sentence: several changes are listed
one per line under it, clamped to whole lines with "Show all".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* docs(changelog): voice, Watching and Prompts fixes
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>
|
||
|
|
6fb45f69a6 |
fix(loki): New chat always starts a blank box with the cursor in it (#1356)
On the start page, "New chat" only left a thread that was not open, so a press changed nothing: the half-typed draft stayed and focus stayed where it was (watch-mode report: "pressed New chat three times and nothing happened"). Every New chat — rail, phone top bar, thread menu — now clears the start page's stored draft, empties the composer and focuses it (hooks/use-new-chat.ts). Back in a phone's thread header only leaves the thread: no keyboard, draft kept. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
9a8142a1ac |
fix(terminal): a real page heading, a clear box, a Terminal button that toggles (#1354)
Owner feedback on /terminal (2026-10-20): - h1 "Live Terminal – AI Agent Sessions", present at every width (screen-reader only below sm, where it used to be display:none) - subtitle says what the page is for instead of describing the view switch - tapping the view you are in flips Chat | Terminal, so "Terminal" always changes the screen - the session box draws its text line as a field on a card set apart from the terminal; Send stays on the owner's + · model · mic · Send row - app footer: the bare commit hash becomes a Help link (/support); the hash is the env cell's tooltip Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
331e5aa528 |
fix(watch): send work to an agent the builder has, and say a stop once (#1353)
A report filed from Loki's own page went to Grok on the cloud builder, which only runs Claude Code. Watch then showed the refusal three times, "Try again" (which fails the same way), empty future stages, "Grok stopped" for an agent that never opened, "Done." filler, and the report's technical details inside "You asked". - Dispatch (Implement, kickoff, retry) routes around an agent the builder reported it does not have, and records why (reroutedWhy). - A not-installed stop offers the installed agent as the one button. - The reason and the buttons sit together in the card; the duplicate Loki message and "Stopped · N steps" line go when a track exists. - The track ends at a failed stage; "could not start" when nothing opened. - The user's bubble hides "--- technical details ---" behind Dispatch details. - Reroute line says the true reason; an operator's own pick says nothing. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7e9a55d800 |
feat(studio): a booked partner holds a seat on one project and is paid through a service in their own name (#1349)
Track 3 of docs/master-plan-2026-10.md, the Loki half (the OrangeCat half is its PR #1366: the `service.write` scope and services that go live at once). - The seat (lib/studio/seat.ts, seat-change.ts): assigning an approved partner to a website brief resolves their Loki account (users.orangecat_actor_id = the identity they connected), makes them an EDITOR on the brief's linked project and switches their private builder on, so they build under their own tenant on their own engine. The seat follows the assignment and the project link (assign_partner, link_project, revoke_access) and goes when either does. Never an org membership. studio_requests.builder_user_id. - The fee (lib/studio/fee.ts, fee-listing.ts, integrations/orangecat-fee- service.ts): with a delivery a partner may state a fee once; after the delivery is saved Loki lists it as a service in the partner's OWN name on OrangeCat with the partner's own token, live at once and off their profile, and the brief shows the link to pay it. The sign-in asks for service.write. studio_requests.fee_amount/currency/service_id/url (migration 0125). - Paid is OrangeCat's word: /api/orangecat/events marks the brief paid from the settled-payment signal for a service (markStudioFeePaid, idempotent on the payment), records the event, and tells the studio, the customer and the partner. fee_paid_at is written nowhere else. - The staff screen says where the seat stands and what the fee is; the portal view carries `fee` for the partner's and the customer's screens. - Records: changelog {#builder-seat} {#builder-fee}; roadmap "Builders on other people's sites" seat and fee ticked; private-builders.md "Booked builders"; builders-and-booking.md status. scripts/test/builder-booking.ts. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
01d0c4fc65 |
feat(cloud): sealed builds — rootless podman and gVisor as readings, switched on per tenant by the operator (#1348)
Track 4.2 of docs/master-plan-2026-10.md, built; switched on by a reading. - SandboxExecutor gains a podman mode (buildPodmanRunArgs): rootless as the tenant (--userns=keep-id), the tenant's home bound at the same path so sign-ins, trust and transcripts stay where the runner looks, the project's real path as workdir, network on, capabilities dropped, --cgroups=disabled so the deploy's drain still counts the processes, and gVisor's runsc as the OCI runtime when the box has it. - scripts/hetzner/agent-image/Containerfile: the image (shell, git, gh, node, Claude Code, Codex). install-sealed-builds.sh, run by every deploy: rootless podman, runsc best-effort, the image built into a shared read-only store, and a reading in /etc/loki/sealed-builds. - Nothing switches on by itself: new-tenant.sh writes the unit drop-in (LOKI_EXECUTOR=sandbox, LOKI_SANDBOX_RUNTIME=podman, runsc when read) only when the reading says ready AND /etc/loki/sealed-builds.on exists. The roadmap milestone stays unticked until a tenant builds in a container. - Tests: sandbox-executor pins the sealed shape; private-builders pins the two-reading switch and that no tenant ever joins the docker group. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9c84c929e4 |
feat(engines): your own key builds when you say so; welcome builds, then the plan's, then your own; capacity you can read (#1347)
* feat(settings): your own key builds, when you say so — a key marked for building reaches your private builder
Track 1, PR 6 of docs/architecture/private-builders.md.
- user_model_keys.for_building (migration 0123), off by default; one
switch per key in Settings → AI, offered only on keys that can drive an
agent CLI (config/build-engines.ts: Anthropic → ANTHROPIC_API_KEY for
Claude Code, OpenAI → Codex, xAI → Grok, Google → Gemini CLI) and only
to an account with a builder on the cloud.
- scripts/write-tenant-engines.ts (root on the box, from the reconcile
timer) opens the marked keys with the app's sealing secret and writes
them to /etc/loki/runners/<short>.env; a unit whose file changed is
drain-restarted, so the key reaches its next agent without ending a
session mid-task. No route ever returns an opened key.
- Records: changelog {#your-engine}; roadmap milestones ticked.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(settings): the building switch sits in one row with its sentence
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(engines): welcome builds, then the plan's, then your own — and capacity you can read
Track 2 (2.1, 2.2, 2.5) and Track 4.1 of docs/master-plan-2026-10.md.
- users.build_engine (migration 0124): "own" by default — the person's
sign-in or a key marked for building, never counted — or "loki": Loki's
key within WELCOME_BUILDS (3, config/welcome-changes.ts) and the plan's
PLAN_LIMITS.buildsMonthly (10 / 40 / 100). Every run records which
engine paid for it (payload.engine); welcome and plan builds are counted
from that marker. A dispatch past the last build is refused with the way
forward (code engine-exhausted), and the kickoff screen shows it with
one tap to Settings. Loki's welcome spending stops for everyone at
WELCOME_MONTHLY_CAP_CHF (20), at CHF_PER_USD, a hand-set rate.
- The box writes Loki's key (LOKI_BUILD_ENGINE_ANTHROPIC_KEY from the
app's env) into a tenant's unit only while they chose Loki's engine and
have builds left; otherwise their own marked keys.
- Settings → AI: "Your engine for building", one Segmented choice with the
numbers; /api/settings/build-engine. The kickoff's no-builder copy says
the operator switches a private builder on per account.
- System → Capacity: how long work waited for a builder in the last day
per channel (median, worst), this month's builds, tokens and cost per
account, and welcome spend against its cap.
- /pricing and the whitepaper (0.3.3) state the builds a month on Loki's
engine and the rule. Records: changelog {#welcome-changes}
{#capacity-card}; roadmap milestones ticked.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* style(engines): format resolve.ts the way prettier wants it
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>
|
||
|
|
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>
|
||
|
|
83316f063a |
feat(feedback): whoever asks pays — a seat's request is a suggestion, the allowance is retired, routing tells the truth (#1344)
Track 0 of docs/master-plan-2026-10.md: stop the leak and the routing lies,
app only, nothing on the box changes.
Stop the leak
- A request on a shared project from a Builder, a client or a viewer is
filed as a suggestion in the owner's tenant (source `client` or the new
`member`), announced like a visitor's note, and waits for the owner's
tap. Only the owner's own word starts a build on the owner's builder
(ask-in-loki.ts, implement.ts, pass-holder.ts). Until now a Builder's
ask built at once on the owner's subscription and a client's built on
a monthly allowance; both spent one person's engine on another's word.
- The per-site allowance is retired: config/client-allowance.ts, the
members PATCH, the People-panel picker, the dossier count, the invite
copy. The `monthly_changes` columns stay in the schema unread (a DROP
aborts the deploy; dropped by hand later). `on_allowance` is kept and
read as `previewFirst`: a change built for the person who asked still
opens as a draft and goes live on their "Make it live".
- The owner pass is the owner's alone; everyone with a seat carries a
member pass. The 40-builds-a-day cap is keyed by the owner, not the
project: a guard on one engine, never a price.
Routing honesty
- inject-core requests only what was chosen (a lock, a named builder, a
stored preference) and lets the decision apply the floor, so a fresh
account with Fleet Runner connected runs there instead of a 403
(execution-access.ts requestedDispatchChannel).
- Kickoff writes a path under the cloud builder's root only for accounts
the cloud serves; for anyone else the path stays empty so the project
is not locked to a builder they do not have.
- "Hosted runner" is offered, accepted and dispatched only for the one
account it serves (lib/hosted-runner/serves.ts).
Records: CHANGELOG entry {#seat-suggests}, ROADMAP milestone ticked,
CLAUDE.md and feedback-widget.md say what a seat's ask is now. Tests:
client-seat rewritten, execution-access extended, the pinned shapes in
client-seat-browser, seat-on-site-and-tracking, feedback-trust,
project-capabilities and owner-note-builds updated.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
9031430125 |
feat(feedback): a client's seat on the site itself; visitors follow notes without an account (#1337)
* feat(feedback): a client's seat on the site itself; visitors follow notes without an account Step 3 — the seat reaches the site: - A member pass (#loki-member=) names the person, not the owner. Their project page's Open link and the widget's sign-in door give it to anyone on the project who does not build it. The widget stays the ordinary panel and sends it with each note; ingest files it through the same path as asking in Loki, so a client's note on the site builds on their allowance and goes live on their word. Membership is read when used. - The owner's own link is no longer what a client is sent: the preview's share card offers Invite them as Client. - An approved /change request seats its requester as the site's client (5 changes a month), and their request page says where to ask. Step 4 — the way back without an account: - The tracking link opens on the note's status (the My feedback card), for six months; an account is optional, below it. - A visitor who leaves an email gets the link by mail (three a day per address), and again in the shipped mail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(widget): keep the conversation within its length limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(widget): hand the passes on through one helper Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * test(feedback): the shared reporter card and the six-month link 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> |
||
|
|
50d632f21a |
feat(projects): a client's seat — builds on a monthly allowance, live on their word (#1336)
* feat(projects): a client's seat — builds on a monthly allowance, live on their word The client is the person a site is for. Their asks used to wait for the owner; the only other seat was Builder, which builds without limit and ships without anyone looking. Now: - The owner picks a client's changes a month on the People panel (Ask me / 5 / 20 / 50), on the invite and per client later. - Within it, the client's ask builds at once on the owner's builder. The agent opens a DRAFT pull request; it merges only after the client taps Make it live (their project page and My feedback), which lifts the draft and merges once green. Auto-ship OFF still means the owner merges. - Past it, or with Ask me, the owner decides, and the night never builds it unasked. A build that did not start is not counted. - The client is told what happened in plain words, with changes left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * fix(projects): a client's change stays a draft until their yes; the inbox names it as theirs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(db): format the migration snapshot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * fix(db): drizzle comparisons for the allowance count 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> |
||
|
|
c485486984 |
fix(feedback): a stranger's words reach a builder only by a person's tap (#1335)
* fix(feedback): a stranger's words reach a builder only by a person's tap - Who filed a note is the server's call: Loki's reviewer and synthesizer carry a signed pass; a note without one is a visitor's, whatever it claims. - An overnight allowance builds only notes someone vouched for; a plan with a stranger's note waits for a tap. - Opening a tracking link never starts a build. - Telegram carries the operator's own projects only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * docs(telegram): whose news reaches the operator's chat 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> |
||
|
|
62bf5f6935 |
feat: fixes where things fail, plain Sessions, calm alerts, even layouts (#1334)
* feat(home): every failure carries its fix; one list, no repeats
* feat(alerts): one calm row for the bell and /system — one thing to read, one thing to do
The bell put "WARNING"/"INFO" in capitals beside every title, the whole
description, a bordered "View" and a bare tick; /system put each alert in a
beige or red box holding its full text (owner, 2026-10-19: "a bunch of
text ... some are red, some are green. Very bad design").
- components/alerts/AlertList: shared by both. A dot only for urgent or
warning; the title; the description's first paragraph in at most two
lines, the technical record behind "Details"; when; "Dismiss" as a word;
ONE button named for where it goes, and the whole row opens it. No button
to the page you are already on.
- config/alert-types: an optional `action` per type ("Review", "Fix in
Projects", "Reconnect"), else a label from the destination
("Get the update", "Open Home").
- The system alerts' producers now open with what is wrong and what to do,
in plain words, with the old engineer's text kept as the record:
runner version (and the cloud builder, which updates itself, no longer
says "Get the update"), missing repositories, telemetry, a stalled queue,
model ids.
- /system: a divided list in the card; the count reads "3 open · 1 urgent".
- scripts/test/alert-list-browser.ts mounts both at 390px.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* feat(sessions): open sessions in words, every other project one tap from its own
The Sessions drawer listed all 42 projects, each with one of four coloured
dots, one of six codes (ready / offline / open / closed / working / —), the
age of a database row and a git-branch icon; a tap went to Home. Owner,
2026-10-19: "what exactly do you mean by sessions? What will happen when I
click on AOZ Housing? ... super useless".
- Open now: only sessions the runner has seen open in the last ten minutes,
each in words that say what a tap gives you (Working on <task> / Waiting
for you / Finished — your turn / Open, nothing running). A tap attaches.
- Start in another project: plain rows with when an agent last worked there
(its own handoff time, not the row's heartbeat), a search, Show all. A tap
opens the project on the Sessions page, which now offers its Resume row
instead of "Start it from Loki".
- No colour legend (one pulse for working), no branch icon, no codes.
- lib/session-list is the pure SSOT for the words; tests: session-list,
sessions-drawer-browser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(ui): chat starts under its header, nothing floats over the terminal, one shape for project settings
- Chat view: the thread no longer bottom-anchors (mt-auto) a short
conversation onto the box, which left ~200px of nothing above the first
message. Dispatch details is a centred 44px row; reply steps are one
grouped list.
- Terminal: "Last screen · updating" was a pill over the output's first
lines. It is a 2px edge bar now, and the header says "connecting…" until
a live frame lands (the remembered screen no longer reports live).
- Project settings: every row is a SettingRow (what it is, its value, its
actions), and every action one bordered 44px shape whichever control drew
it. The phone section picker is one full-width control.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
* fix(projects): publish actions take the settings row's size
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
41b23a81f0 |
feat(projects): a name you can change, and a project page a client can use (#1333)
A project's name is its key (activity, cron jobs and dispatch match on it),
so renaming it hid history. entities.title is now what a person calls it:
the pencil next to the title edits it, and every place a person reads the
name (header, list, invite page and email, shared projects, /my-feedback)
shows projectTitle(). Legacy "<host>-refresh-<request id>" names read as the
site ("Xhiva") until someone names them, and the "Develop a new version of
this existing website: URL" brief reads as "A new version of xhiva.art."
For the person a client site is made for:
- the invite defaults to Client on client work;
- inviting an existing account emails them the link instead of nothing;
- sign-in finds a free handle so onboarding never asks a project invitee
to set up repositories;
- a client or viewer sees one page: the box to ask in (typed or spoken),
where their asks are, and whether something is being built. The
builder's Story/Plan/Activity tabs stay on the builder's page;
- "See where it is" goes to /my-feedback, which names the project;
- Home no longer shows "No builder connected" to someone who only has
shared projects.
Migration 0120 adds entities.title (nullable, no backfill).
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ
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> |
||
|
|
f2b6fc7e66 |
feat: Sessions, an even session sheet, a terminal that scrolls, no ragged choice rows (#1331)
What the owner saw on a phone, and what changed: - "Terminal" over a "Claude | Terminal" pill: the page is now Sessions, and the pill is Chat | Terminal for every agent. The agent is named once, under the session's name; an agent with no chat view gets no switch. - The black terminal would not scroll: vertical swipes now belong to the terminal (touch-action: pan-x), and a swipe past the oldest kept line says so and offers Chat, where the whole conversation is. - The model sheet: Model and Effort are <Segmented> rows — equal cells, one line, the chosen one's meaning under it. "Next mode" (whose result showed only "with your next message") is a list of modes; a tap presses Shift+Tab until Claude Code's own footer names the one chosen, read live from the session's screen (use-live-mode, lib/claude-mode-footer). - More: no duplicate "Feedback on this page" row (the edge tab is on every page); sections regrouped so none is a heading over one row — Build (Home, Projects, Sessions, Prompts), Loki (chat, Voice, Today, Suggestions), To review, The fleet. "No-screen" is Voice. - Every pick-one row that wrapped into "4 + 1 orphan" on a phone is now <Segmented> (even row or grid), a one-line scrolling filter row, or one row per choice; scripts/test/choice-rows.ts fails on the old shape. - A page whose header is only its (phone-hidden) title no longer leaves a blank band above its content — Home opened on one. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
b495bedb95 |
feat(change): a new account's build goes to a person instead of a 403 (#1329)
* feat(change): a new account's build goes to a person instead of a 403 On /change, "Make it real" from any account but the operator's met "Previews are built on Loki's own computers, which this account does not have" and stopped. The cloud builder only claims the operator's commands, and that boundary stays; what changes is that the request no longer dies. - It is filed (build_requests, migration 0119) with the before/after the visitor just saw, once per brief however often it is sent, and the operator is told by push, Telegram and an alert. - /approvals shows it (operator only): Approve builds it as the operator's client work; Decline sends their note. Exactly one decision wins, and an approval whose build cannot start goes back to waiting with the reason. - The visitor follows it on /change/requests/<id> and gets an email. - The preview opens with a code of its own (entities.metadata.previewCode, read by getProjectPreviewCode wherever a preview is opened or signed for), never the operator's code, which opens every preview they have. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ * docs(telegram): register the build-request notification Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
8e8ffa0b82 |
feat(change): see your own site changed in under a minute, before any account (#1328)
A stranger on /change now taps "Show it on my site" and gets their live homepage, photographed by Loki's browser, then the same spot with what they asked for drawn on it, compared with a slider. No account, no repository, no build: the widget's "Show me" edits (same closed vocabulary, same sanitising) applied in a headless page on the server, never in their site. - widget/instant-page.ts bundles the widget's outline + applyPreview for that page (public/instant-page.js, built with the widget). It is evaluated, not injected, so a site's own CSP cannot block it. - page-picture: withLivePage shares the picture's queue, private-network guard and patience with a caller that photographs more than once. - POST /api/site-consult/preview streams NDJSON: their site the moment it exists (~5 s), then before/after. The address must pass the consultation first. It spends the owner's AI on purpose, behind a per-visitor and an everyone-per-hour limit and the owner's daily budget. - The preview prompt drops its "was just changed for" line when nothing was. Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ 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> |
||
|
|
db90b51066 |
style: one colour — in-app primary buttons are monochrome (#1325)
Loki's tokens define the accent as near-black on light and near-white on dark, x.ai's way. The primary button style pointed at the warm orange instead, so ~120 buttons in 85 files were orange and a screen held three orange slabs at once (Start something, Autopilot paused, Next best). ui-btn-primary, ui-btn-ready-primary and ui-btn-nextbest now use the accent; orange stays on the public site (download button, roadmap). Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9d53f55028 |
fix(terminal): name the agent, read the model from a limit, and make limit steps commands (#1324)
From the owner's phone (2026-10-19), a session that hit "You've reached your
Fable limit":
- The header and box said "cloud builder" and "Message the agent…": no
live process badge yet. They now name the agent the tab resolves to.
- The model chip said "Model": Claude Code's limit line carries no model.
It names the one that hit the limit, and the chip now reads it ("Fable").
- The replies were sentences sent to an agent that answers nothing until
the limit is dealt with ("switch to a different model with /model",
"request additional credits from the user"). A limit now offers Claude
Code's own commands, typed as commands: Use Opus, Use Sonnet, Continue
with usage credits (/usage-credits, added to the command list).
- The next-steps prompt now says every line is sent TO the agent.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
8cade87c2d |
fix(terminal): phone header no longer says "Cloud builder" twice (#1321)
With no session open the header's title is the builder's name, and the line
under it repeated it ("Cloud builder" / "cloud builder"). The line now names
the builder only when the title is a session.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
cde8d5f688 |
feat(terminal): phone session reads like a chat app — name in the header, one "+" (#1320)
The phone terminal had five bands of chrome around the session: the app bar, a scrolling row of session tabs with "+" beside it, a full-width view switch, the box with a paperclip AND a slash button, and the bottom tabs. - Header: back to Control · the session's name with "Claude · 2 sessions · cloud builder" under it · ⋮, and the Claude | Terminal pill centred below. The name opens the session sheet (every session, New session, where it runs, agent); ⋮ opens TerminalMoreSheet (What's going on?, full screen, text size, live keystrokes). No row of tabs to run off the edge. - An open session hides the app bar and bottom tabs below md (useImmersiveChat), so the session gets the screen and back is the way out. - The box is + · model · mic · send. "+" opens one sheet: photo or screenshot (presses chatkit's hidden paperclip, so paste and Camera/Photos/Files stay chatkit's), Keys on a phone, the agent's commands, Loki's records and the prompt library. - Conversation view: next steps are reply rows under the answer, sent by the box's own path (sendRequest). Terminal view: What's going on? and at most two steps in one sideways row. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
835e3f21e6 |
fix(terminal): one feedback launcher, "+" that stays, keys that close from the deck (#1318)
From the phone: the header's feedback button duplicated the widget's own edge tab beside it; "+" scrolled off the right edge with two sessions open; the key deck had no way out but the faint round button it came from, and the owner refreshed the page to be rid of it; "Starting Claude in …" after Start was a sentence with no spinner and read as a dead end. - The terminal header has no feedback button. The widget's edge tab is on the page and is the one launcher. - "+" sits outside the scrolling session row and keeps its place. - The key deck's lane starts with a hide cap, and the corner button is solid when the keys are up. - After Start, a spinner and "Opening Claude in … — the session appears here in a moment". Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
882016e080 |
fix(terminal): a command is typed then entered, one Loki sheet on the phone, Keys keeps the terminal (#1316)
From a phone the owner switched the model and the session answered
"Model 'opusWhy is the name of the repo…' not found": the command and
its Enter went in one write, Claude Code read it as a paste, the Enter
became a newline, and the next message was typed after it. Then
"What's going on?" opened a sheet with a second composer and a second
model picker, which led to Loki chat and its own "Choose a model".
- Every command button types its words, then Enter as its own
keystroke after a beat (lib/session-keystrokes typeCommand), and
commands queue behind each other so two quick taps never interleave.
Covers the model sheet, the commands sheet, the screen's action chips,
the rail's "Type it" steps and a "/model opus" typed in the box.
- On a phone, "What's going on?" opens the answer: TerminalLokiRail in
sheet form has no composer, no model picker, no run-status filler, a
visible question button and one link to continue in Loki chat.
- Keys open hides the next-step row, so the terminal keeps its lines.
- Loki's model picker is named as Loki's ("Loki answers with"), and on
a phone its button shows the model's name beside the count instead of
"your key" alone.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
f568852158 |
feat(studio): approved partners keep their profile with OrangeCat (#1315)
* feat(studio): approved partners keep their profile with OrangeCat The owner chose: applying stays link-only, no account; once approved, a partner connects their OrangeCat account so a lost link is not a lost profile. - studio_requests.orangecat_actor_id (migration 0117), set only on an approved, open partner application, never to a second identity. - POST /api/studio-portal/[id]/connect checks the private key once and returns a fifteen-minute signed link to /studio/connect; the key never travels to Loki's sign-in pages. - /studio/connect signs the partner in with OrangeCat (one button) and ties the application to that identity, then sends them back to the portal. /studio/partner lists a signed-in partner's connected applications and reopens one with a fresh private link (the old one stops working, as with email recovery). - The portal view says whether OrangeCat is connected. - Also: an approved partner who skipped the course now sees their assigned briefs; the portal still asked for a course pass there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ * style(drizzle): format the generated migration meta Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ * test(responsive): measure the studio partner's OrangeCat pages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9e5319a9f8 |
fix(terminal): model chip in both views, commands as a sheet, nothing jumps when you type (#1314)
From a phone the owner could not switch models in the Terminal view, and the screen jumped around whenever the keyboard came up. - The model chip is in the Terminal view too. TerminalSessionInfo reads Claude Code's log itself, because the terminal view has no conversation loaded. The box's row is now identical in both views: attach, commands, model, microphone, send. The chip names only the model, so it fits. - Keys moved onto the terminal's bottom corner. It acts on the screen, and in the row it squeezed the model's name to "Op…". - The slash button opens a bottom sheet instead of a panel pinned above the box. The pinned panel ran over the header with the commands clipped. Its search no longer grabs the keyboard on a touch screen. - While the phone keyboard is up, the app bar and the Chat/Terminal switch step aside, and the next steps go to one sideways row, so the terminal keeps its height. - The conversation tab reads "Claude" from the first frame instead of "Chat" turning into "Claude". Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
27eb8f1e24 |
feat(studio): partners are approved on their work; the course is optional (#1313)
The owner asked for qualified builders not to be forced through the systems design course, while still offering it, with its exam, to anyone who wants to learn or earn a credential. - approve_partner no longer requires a course pass; approval is a person's decision on the applicant's work. The directory, availability and delivery no longer require it either. The directory returns coursePassed, so a profile can show the credential. - Course evidence can be submitted at any stage, an approved partner included; it never resets approval or a published profile. A course review checks the evidence that exists, not a live fetch of today's course, which used to block every review when the site was slow or the course moved on. - A new partner application starts "applied" (old rows keep their status, with words that now say the same). The intake no longer fails when the course is unavailable. - The applicant is emailed when the studio says something they can see (decision, review, note), if they gave an address. The private key is never in the mail; it points at the first mail and at recovery. - /feedback/studio opens the request a notification links to, offers approve or decline without a course gate, the course review only when there is evidence, and publishing only for an approved profile. - The concierge states the new terms. Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ 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>
|
||
|
|
07f182edfd |
fix(watch): a preview's run ends "Live on <address>", not "Nothing reached GitHub" (#1311)
A preview is a folder Loki serves as it is saved: no repository, so no pull request, merge or deploy follows a run. The delivery track still looked for one, and Center SOM's redesign — which finished well, 41 pages screenshotted and checked — read "Nothing reached GitHub · failed" on Watch and in the chat card. A run on a preview folder (isPreviewDir) now tracks asked → builder → working → live, and settles when it finishes. Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
48dbead196 |
feat(previews): built to a design standard, looked at before done; chat screenshots reach the builder as images (#1309)
Center SOM's preview passed every rule in the build brief and its owner still called it cramped and not beautiful: the text ran to the screen's edge and the headline was a five-line search-engine title. The brief said what a preview must get RIGHT and nothing about what makes it GOOD, and nothing ever looked at the result. - The brief now carries a design standard (page gutter and a readable measure, type sizes and line height, short headlines, one spacing scale, one primary button, real photos cropped to consistent shapes) and a last step: screenshot every page at 390 and 1440 px with the box's headless Chromium, judge it as the owner would, fix and look again. - A screenshot sent in the Loki chat about a project now reaches its builder as the image itself (staged like the session box's: the runner writes the file, the prompt names its path). Before, the builder got only a vision model's paraphrase, and "the text is cramped" did not survive it. The description still serves the chat itself (choosing the project, the reply). injectPrompt and the queue carry `attachments`; a prompt with images is always queued for a runner (a live PTY would get unresolved placeholders), and the hosted builder, which has no runner to write files, is told plainly that the screenshot could not be delivered. Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
80deb99c5d |
fix(chat): no invented sign-ups or advice, no bold, no dead addresses (#1308)
Seen live 2026-10-18 on bitbaum.orangecat.ch: the concierge told a visitor to "sign up" for Diplodoctor (it needs no account), said Causius would "advise" them (it gives no legal advice), and printed **bold** as asterisks. - Two rules: never tell a visitor to sign up, register or install anything; no product gives medical, legal or financial advice — say what it reads, explains or drafts, and that a professional decides. - stripEmphasis removes markdown emphasis the widget would print literally. - reachableLinks asks each project link a reply attaches whether its address answers (cached ten minutes, a slow wake counts as up) and falls back to the public profile when it does not. Only attached links are asked, never the whole map, so sleeping sites are not kept awake. Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
b617187cfe |
fix(chat): a Builder who owns nothing is never told to install the desktop app (#1307)
Re-walking as a new Builder after #1304, live: Today, Control and the ask box on the project worked, but the chat still answered "requires the Loki desktop app ... the only way" — its "can work start" line said exactly that for an account with no builder, and outweighed the shared-project facts. And a build that could not start handed the Builder the owner's chore ("add a Git URL, then Implement"). - builderStatusLine takes the account's shared projects: they build on their owner's computers, nothing to install, ask on the project's page — said first, before the line about a project of their own. The fleet fact and the brief both pass it. - askReply tells a Builder whose build could not start that the owner has been told and will start it, never the owner's own instructions. Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5359720879 |
fix(register): a project says what it is from its README, and Diplodoctor and Causius are live (#1306)
Found 2026-10-18: diplodoctor.orangecat.ch and causius.orangecat.ch have
been running since 2026-09-10 (health green, changelogs moving), but the
fleet map — and so bitbaum.orangecat.ch and the public chat — still said
"prospect" / "validating", and Diplodoctor's description and identity still
told its first idea: cross-border healthcare and medical tourism.
- The map's `what` reads the README's opening paragraph first, the way the
roadmap and changelog already come from ROADMAP.md and CHANGELOG.md
(repo-records.ts: readmeLead). Headings, badges, lists, code, generator
boilerplate and sentences meant for contributors ("defined in HEIDI.md",
"Built with Next.js") are skipped; the stored description is the fallback.
Audited against the fifteen shown projects: the README was right in every
case where the two disagreed (evig, Hirnli, Diplodoctor, Causius).
- Migration 0116: Diplodoctor's project gets its repository link (it had
none, so Loki never read its README, roadmap or changelog) and its public
identity is rewritten from its README. The replaced texts are kept in the
migration's comment.
- apps.conf: diplodoctor prospect → live, causius validating → live. Both
are served products in beta ("live" means served, not released). They
stop sleeping when idle, like Heidi. fleet-sites.ts regenerated; the
public footer gets their names and a line each from their own headlines.
Tests: repo-records covers the lead (heading glued to its paragraph, badges,
contributor sentences, boilerplate, the length cut) and the third fetch.
tsc, eslint, prettier, fleet-map, fleet-register, fleet-sites-derived and
widget-chat-concierge pass.
Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
adfbdcfe07 |
fix(session): the builder updates, the sheet changes things, one box, a preview is the site (#1305)
The owner used Loki from a phone (2026-10-18) and could not tell whether
anything worked. Four separate faults, each passing every check:
The cloud builder ran code days behind the app. Its restart waits for
every agent to be idle, and autopilot refilled the queue the instant one
finished: ten consecutive deploys (23:38 → 09:12) found "2 agent(s)
working — deferring restart". Hence "Model: not known yet" of an answer
the screen was showing. Now, while the cloud runner's heartbeat version is
behind the deploy's, the commands route hands it no work-starting
commands (dispatch, launch_agent, auto_continue, browser_task) — a
person's own words into a session still go through — so the idle moment
comes, the restart lands, the queue resumes on the new code. Server-side
on purpose: a runner-side rule would have waited for the very restart it
was meant to allow. Control's builder line says "a newer version waits
for its agents to finish" meanwhile.
An agent renamed a preview site, committed, and reported "the work lives
only on this machine — tell Loki where this preview's remote should
live". The box contract says push or fail loudly; a preview folder is
served from disk and has no remote by design, so the change had been live
since the save and the owner read a failure and a chore. Every dispatch
to a preview folder now carries "Where this goes" (lib/previews/
delivery-note), and the contract has the same section.
The session sheet's Change and Set typed /model and /effort into the
terminal and closed; Claude Code drew its picker behind the conversation
and nothing on screen moved. Each row now lists its choices; a tap sends
the command with the choice named (/model sonnet, /effort high), the
sheet stays open and says what is changing, and settles when the log
names it. The sheet is built like the Settings sheet.
The session box had a 26px library button beside 44px round ones, a 36px
chip and a 34px Keys pill, the microphone second from the left in one
view and beside Send in the other, and "claude" on the tab beside
"Message Claude…". One row, one size, one order in both views; the
agent's name everywhere (terminal-strip-tabs badgeNames).
Widget: the owner's change list reads what needs them first (the line
counted nine, the list showed none); "9 needs you" → "9 need you"; a
failed call is named ("my call to Loki to save your note failed… Your
words are still here — press it again") instead of "one of my calls to
Loki failed — nothing for you to do".
Tests: runner-update-hold, preview-delivery-note, owner-changes-order,
session-sheet-browser (new); builder-presence, widget-changes,
widget-self-report, inject-context-boundaries extended.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
2ff657ecf8 |
feat(projects): a Builder asks for a change from Loki, not only from the site (#1304)
Walking the loop as a new Builder on a shared project (live, 2026-10-18):
the project's orange "Ask Loki" opened the chat in the member's own
account, which has no builder for the project, and it answered "edit the
site's HTML/CSS ... requires the Loki desktop app". Today said "Add a
project" and Control said "Connect a builder ... install the desktop app".
- The project page has the box to ask in (#ask, THE composer, voice on).
POST /api/projects/[id]/ask files the same row the widget would: built
at once on the owner's builder for a Builder (owner told), waiting for
the owner for anyone else. The reply says which, with a link to follow.
- The header sends members to that box ("Ask for a change"), and a tab
can own in-page anchors so #ask opens Overview from any section.
- Today and Control show the projects shared with you instead of the
first-run "Add a project" and the desktop-app pitch.
- The chat's facts name each shared project and where it is changed.
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
44def109a9 |
feat(widget): a spoken walk read as a list, whole sentences, talk from the launcher, per-page builds (#1302)
* feat(widget): one Talk bar, status header, read-back, per-page builds - One Talk to Loki bar above a one-line message box; the box shows its tools only once used. The second Talk button in the thread is gone. - The owner's header is the status (Watching / 2 to look at), Pause, close: no second logo, no page line. Opening on a phone no longer raises the keyboard. - A spoken note is read back as a list per part of the page, with Read it back (speech) and Edit. - Build all starts saved notes as one build per page (dispatchFeedbackBatch, shared with the project batch route). - Regex literals use \u escapes; a test fails on non-ASCII in the bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa * feat(widget): a walk read as a list, whole sentences, talk from the launcher - Loki's read of a spoken note is a list: one change or question per line, with where it applies, editable, ✕ to drop. The part on screen is background; a line names a part only when it was pointed at. - Save files each change as its own note, with only the moments it came from, on the page it was said on. Questions stay on the card for Ask. - Whisper's segments are joined into whole sentences before they are placed under a heading, so a sentence is never cut across two parts. - The owner can start talking from a microphone beside the launcher without opening the panel (widget/quick-talk.ts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
da75cbd356 |
fix(phone): one row of widget header, room to type, the tab not the pill, one menu (#1297)
* fix(phone): one row of widget header, room to type, the tab not the pill, one menu The owner on a phone, on Loki's own Control (2026-10-18): "this looks disgusting… why is it so crowded?" Widget panel (owner): - The status line IS the header: the brand row and the page name above it are gone for the owner (a visitor keeps them). Close sits at its end. - The line carries one number of one named thing: "11 changes need you", "2 being built", "noticed 2 things" — not "4 to look at · 11 needs you". It wraps to a second line on a narrow phone instead of cutting the noun. - Typing is one state however the keyboard is drawn. Loki's pages shrink for the keyboard (interactive-widget=resizes-content), so the inset check never fired, the sheet stayed at 68% of a halved viewport and the thread was a one-pixel sliver. A focused box now fills what is visible and steps the extras aside; the sheet resets on close. Launcher: the phone bottom bar asks for the edge tab (data-fc-place="tab"), so the "Watching" pill no longer floats over Control's cards. An open dialog still wins over a later region's tab (resolvePlaceDirective). One menu on a phone: the Profile/Chat/Control/Terminal strip no longer renders below md (the bottom bar is the menu there), nor on /control, where it named one remembered project above a page about all of them. Control: "Default agent and model" moved into the Settings sheet the foot already opens, and the foot is the page's last line (shown with no projects too). The sort and Select row of the project list is desk-only. Tests: new widget-owner-phone-browser (fails on the old header and on the old sheet); nav-surfaces and phone-chrome guards updated to the new rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * fix(widget): keep buildShadowCSS within the function-length limit The owner-header rules took buildShadowCSS to 516 lines (limit 510); the same rules, compacted onto two lines in the file's own one-line style. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * test(widget): wait for each state, not a clock, in the owner phone test CI runs it beside every other unit test on two cores, where the owner's changes arrive late; fixed half-second sleeps failed there (its own output showed only a closing brace). It now waits for the status line, the typing state and the edge tab, and prints a one-line reason last if it fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * fix(widget): the keyboard, not the focus, decides the typing layout CI's fonts left the thread 44px at 320px with the keyboard up: the composer's "This page / Point to area" row cost the room. It steps aside while the keyboard is up, with the starters. And the typing layout now follows the keyboard (the visible area well below its tallest), not focus alone: Android's back key drops the keyboard but keeps focus in the box, and the extras then come back. The phone test checks both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * test(widget): the thread must show what it holds, not be 60px tall CI's thread held 44px of text and showed all 44px — content-sized, not squeezed. The check is now what the bug was: a thread showing less than min(60px, what it holds). The original sliver (1px of 64px) still fails it. 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> |
||
|
|
d22f176f01 |
fix(widget): the spoken-note read names the pages and finds the asides (#1300)
Checked live with the owner's own Petvity walk the minute #1299 deployed: the read came back as their last sentence copied verbatim — "look at all these things and let me know what you think" — with no pages, without "the design is inconsistent", and no asides, though "No, no, I'm just making a coffee" was said twice to someone in the room. Right kind (question), useless ask. - The strong model (gpt-oss-120b, medium reasoning): one call per spoken note, read by the person before anything is built. - The instructions say what the grouping means ("On /path — heading") and that the ask must stand on its own for someone who never heard the recording: this / here / these things become the pages and parts by name, the observation stays in the ask, a sentence that only makes sense with the recording is never copied. Asides name the kinds that were missed: answering someone else, narrating where one goes. Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
09e04ab4ed |
feat(widget): Loki reads a spoken note before it is saved (#1299)
The owner walked Petvity for 43 seconds on 2026-10-18 — the home page, Features, the dashboard, Settings — saying the design was inconsistent and asking Loki to look at it all and say what it thought, then asked whether Loki had heard them at all. It had, and it had watched: every page and part was noted. But the card was every word verbatim under each part of the page, including "No, no, I'm just making a coffee", said twice to someone in the room; it led with Save and Fix it now for what was a question; it sat under three "Loki noticed" cards, one of them repeating the same finding; and replaying the walk showed every sentence filed one page early. Loki reads it first (widget/walk-read.ts, POST /api/widget/understand, guarded like /api/widget/advise): - The card says what it heard: "Loki heard you · 0:43 across 4 pages". - The box leads with the ask, editable; what was not meant for Loki is named as "Left out"; the words as spoken stay under "Word for word" with "Use my exact words instead". Whatever is saved, the words as spoken still travel with it in each moment's `said`. - A question leads with Ask Loki, answered about every page of the walk (the walk is sent as the review session); a change leads with Save (owner, then Fix it now) or Save feedback (visitor). - Nothing waits on the read: while it comes and when it fails, the card is the words as spoken with the buttons as before; words edited before it arrives are never replaced. - The card is brought into view from its top when it appears and when the read redraws it, without throwing the phone keyboard up again. Walk alignment: a page change is noted the moment the address changes (a site's own links change it without an event; polled every 250 ms while recording, popstate too). It used to wait for scrolling to settle, so the first words on each new page landed under the page before. A site-wide finding (the page's language) is said on the first page of a visit, not on every page (onceSiteWide in watch-trail.ts). Tests: widget-walk-read (rules, prompt, wiring), widget-walk-read-browser (the owner's walk replayed at 390 and 320: question, change, and words edited before the read), widget-browse-voice-browser updated for the new header and the read-fails path. Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
fd5164981b |
feat(previews): private tiles get real pictures; a preview can move to its right name (#1298)
Private tiles on bitbaum.orangecat.ch/private/ now render through the same tile as the public work grid (bitbaum PR #136). This adds the picture they show: GET /api/fleet/private/shot/<slug>, owner only, a 1280x800 picture of the project's site (a preview through Loki's own route with the owner's cookie, its widget left out), kept for twelve hours. A site behind its own access-code page is not photographed, so its tile is text, not a code page. takePagePicture takes a viewport; wider than a phone is a desktop browser. The owner check is one helper (studioOwnerCheck) shared by the list and its pictures. A preview can now move: POST /api/previews/<slug>/move { to, name } attaches the new address, renames the folder, moves the project row and its name in one transaction (the folder moves back if that fails), points the widget at the new address and detaches the old one. Center SOM was born center-com-3 from a domain spelled in look-alike Latin letters; this is how it becomes tsentr-som. previews.yml gains `move` and `ask` (send the builder a change). A website preview's one line names the site by host ("center-com.ru"), not by its URL. Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 Co-authored-by: Claude <noreply@anthropic.com> |