mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 06:07:57 +01:00
feat/shared-knowledge-map
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e47011e270 |
Security: the server's files belong to its owner; Loki answers general questions and recaps chats (#1260)
* fix(loki): answer general questions, plain words for who can build, one reminder at a time
- General questions get general answers. "What year was the Eiffel Tower
built?" answered "Not in your data." live: the closed-world check flagged
every name and year, and the repair pass deleted them. When the question
names no surface of the person's records, only the sentences about their
records are checked (cited, or naming a person/project/goal they have).
Contract rule 11 says the same to the model.
- A bold "<project>: …" line that only the person can carry out (install the
desktop app, sign in, add a key, approve, pay) is no longer offered to a
"yes", and is rewritten as a plain sentence.
- The fleet facts and brief say "can new work start right now" in plain words
(Loki's own computers / the desktop app) instead of runner/builder, and the
two no longer disagree. Field names stop leaking ("the query returned none").
- One account reminder at a time: the OrangeCat link line first, then the
verify-email line, each one row on a phone.
- Onboarding: no CLI/tenant wording; the folder field is asked only of someone
whose code is already on this computer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
* fix(security): the server's files and telemetry are the operator's, not every account's
- /api/people/sync/openclaw read the OpenClaw contact book from the server's
home directory — the site operator's WhatsApp/Telegram contacts — and
wrote it into the CALLER's book. Any signed-in account with its private
zone open (a new one has no PIN) could copy it. Now operator-only, and the
People page no longer explains OpenClaw and Hermes to people who have
neither.
- /system showed every account the box's RAM, disk, uptime, Hetzner capacity
and "Recent telemetry" from debug_logs, which has no user column: every
account's errors, sign-in failures and cron counts. Those cards and
/api/system, /api/system/hetzner are now the operator's; a tenant keeps
their own alarms, jobs and records.
- Suggestions: OrangeCat gift wishlists ("My Birthday Wishlist") are no
longer offered as things to build, and each starter says what it is
instead of one sentence repeated four times.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
* fix(loki): name threads from the server; phone-sized targets and clamps
- A thread is named the moment its first answer is saved, server-side. The
browser was the only caller, 3s after the answer, so a person who locked
their phone or closed the tab left the thread named by its opening line.
The browser's ask now also takes a title the server already set.
- /suggestions: the "Quiet today" links were 18px tall; now 44px targets.
- /packages: descriptions declared two lines and rendered four (a `block`
utility beat line-clamp).
- /loki start screen: an untitled thread shows two lines of the question
instead of one cut mid-word.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
* fix(security): free-text folder paths and server files are the machine owner's
An audit of every route that touches the server's own filesystem or
processes, for an ordinary signed-in account on the hosted server:
- DELETE /api/projects/[id]?deleteLocal=1 removed any folder under the dev
root that the account's free-text dirPath named — the operator's checkout,
another tenant's preview. Now only an account allowed on the fleet machine.
- GET /api/projects/[id] returned the operator's OpenClaw cron jobs matched by
a substring of the project name. Operator only.
- POST /api/control/agent rewrote the server's global agent preferences and
Claude settings. Now the machine owner's: own desktop app, or the operator.
- GET /api/sessions read any project's handoff by name. Now only a project the
account owns, where the server's files can be its own.
- merge-prompts fell back to the operator's OpenClaw agent with user text
through a shell. Machine owner only, argv not shell, input bounded.
- /api/control ran git and a /proc scan on account-chosen folders. Machine
owner only.
- Previews (public <slug>.orangecat.ch sites with the fleet's deploy key) are
fleet infrastructure; preview owner lookup no longer lets a copied dirPath
decide whose access code opens a preview.
- The feedback page picture no longer opens private-network addresses on the
server (checked on every request the page makes).
- New cron jobs are addressed to the operator's Telegram only for the operator.
Also: "what did I ask you today?" never worked live — the thread source threw
on a timestamp the driver returned as a string, and returned nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
* fix(models): the model table no longer pushes a tablet page sideways
At 768px the table needed ~910px and overflowed the page by 164px
(responsive audit against production, 2026-10-17). Rows stay cards up to the
laptop breakpoint, and the table scrolls inside its own box as a backstop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
ddea79f5cc |
fix(loki): what talking to the live chat turned up (#1213)
Found by using loki.orangecat.ch as a new, non-technical account:
- "Yes, create it" under Loki's own suggestion was sent to the only
project as a build task. A bare yes is now a reply: it runs the one
ready-to-send line the previous answer ended with, or stays in chat.
- A newcomer's private zone (approvals, commitments, people) was locked
behind the founder's env PIN, which every PIN-less account inherited —
a dead end for them, and the founder's PIN opened all of them. The env
PIN now gates the owner account only.
- Loki did not know the date: "dentist on Monday" came back as "the date
for Monday is not in your data". Every turn now carries the time in
the person's own zone, and drafts lead with what was drafted.
- "What did I ask you today?" got "no record of any request". Recent
threads are now a source Loki reads when asked about them.
- A refused dispatch left its run WAITING forever (six phantom runs);
it is now closed as undelivered, quietly, since the reply says so.
- The fleet fact said "OFFLINE — nothing can run" to an account that
can never use the cloud builder, so Loki told it to restart a runner.
It now says which is true and the way forward; the prompt asks for
plain words and no "restart Loki's services" advice.
- A system-prompt example leaked the owner's project into strangers'
answers ("sink: bring runner online…").
- Citations were eight 44px "Source" buttons inline; now one per
paragraph, at its end.
- Thread titles were cut by reasoning tokens ("Bring") and repeated the
project shown right beside them.
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
Co-authored-by: Claude <noreply@anthropic.com>
|