mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 13:08:27 +01:00
Reported from a phone: /loki and /terminal were unusable, and the work did not appear to happen. Both halves were real. It did not work. "…what is left to do with Orange Cat…" resolved to no project and came back as a nine-chip picker that did not contain the project just named. Two bugs lined up: project matching was `text.includes(slug)`, so the registered `orangecat` never matched a typed "Orange Cat"; and looksLikeDispatchTask treated any sentence over 16 chars containing " for " as work, so a question was routed to an agent instead of answered. - project-mention.ts is now the one matcher (four call sites each had their own copy). Contiguous token runs, so "Orange Cat"/"orange-cat"/"OrangeCat" all resolve, while "going" still does not match a project named `go`. - Naming a project we do not have says so, in the operator's own words, instead of listing nine others. - The picker gained a filter and "Just answer" — a question that arrived without a project is still a question. It was awful. Loki centred the composer in ~1000px of empty grey, out of thumb reach, and kept its opener chips through the whole conversation. /terminal stacked 331px of desktop chrome above four visible lines of a terminal whose text arrived torn mid-word. - Loki docks the composer to the thumb zone on phones and fills the space above it with the threads you were last in. - /terminal hides the desktop stack below md for one two-row control bar; the link bar collapses to a single line. - xterm auto-fits its font until 80 columns fit (the width agent TUIs draw for) instead of tearing that output into a 44-column grid, with an A−/A+ stepper and a live column readout. TERMINAL_MIN_COLS 40 → 60 so a phone never reshapes a session a laptop is working in. And the dangerous one: /terminal?tab=orangecat found no such session, silently attached to sbb-lost-found, and left the bar below promising "keystrokes go straight to the session". A miss now attaches to nothing until the operator picks. Covered by scripts/test/project-mention.ts and the extended terminal-viewport suite; both run in test:unit. Claude-Session: https://claude.ai/code/session_019imtHmWBrC94hVK1EMTpzi Co-authored-by: Claude <noreply@anthropic.com>