mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 05:57:09 +01:00
The phone terminal made a person choose Type (keystrokes, no microphone),
Prompt (a task with a microphone) or Keys before saying anything, the next-step
chips reshuffled while you read them, and the prompt picker could not find the
prompts you had saved yourself.
One box for the agent (SessionComposer), in the terminal view and the
conversation view, on a phone and a computer:
- Microphone, screenshots and the prompt library ("/" or the book button) in it.
- It picks the path itself: one of the agent's own commands is typed as keys,
a screenshot goes through chat-send, a live session is typed into (paste +
Enter, as in the terminal), and with nothing running the words go as a task
that starts the agent or waits for the builder.
- "What's going on?" is the first chip above it; the header and the big button
that asked the same question are gone.
- Keys is a button in its tool row and opens only the keys — no second text box.
- Pressing the terminal puts the cursor in the box (or, with live keystrokes on,
hands the screen the keyboard).
- The Type / Prompt / Voice switch, the voice-only button and the exact-keys
composer are removed; Loki's side panel only asks, and a summary's step lands
in the box.
Next steps hold still: one set per settled screen or reply, waiting for the
fast model (then the rules), never reshuffled by a late answer, frozen while
you type, shown whole instead of clamped, two on a phone.
Prompt library:
- The picker lists your saved prompts first, then Loki's, with chips for Yours
and each group; the keyboard hint is hidden on touch screens.
- Search also finds a prompt by the words inside it, after name, tag and
description matches so a typo'd name still comes first.
- On /prompts the search box sits on top and searches your own prompts too.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
/**
|
|
* The next-step chips hold still (lib/stable-steps). Report, 2026-10-15: "they
|
|
* rapidly change, you cannot see them, and it's just terrible".
|
|
*/
|
|
import { nextShownSteps, visibleSteps } from "@/lib/stable-steps";
|
|
|
|
let passed = 0;
|
|
function check(label: string, condition: boolean): void {
|
|
if (!condition) throw new Error(`✗ ${label}`);
|
|
passed++;
|
|
console.log(` ✓ ${label}`);
|
|
}
|
|
|
|
const rules = ["Run the checks.", "Summarize what you did."];
|
|
const base = { shown: null, key: "screen A", ai: null, rules, timedOut: false, hold: false };
|
|
|
|
check("nothing yet while the model is thinking", nextShownSteps(base) === null);
|
|
const fallback = nextShownSteps({ ...base, timedOut: true });
|
|
check("the rules once the wait runs out", fallback?.steps[0] === "Run the checks.");
|
|
const ai = nextShownSteps({ ...base, ai: ["Fix the login page."] });
|
|
check("the model's steps lead when they come in time", ai?.steps[0] === "Fix the login page.");
|
|
check(
|
|
"a late model answer does not reshuffle what is shown",
|
|
nextShownSteps({ ...base, shown: fallback, ai: ["Something else."] }) === fallback,
|
|
);
|
|
check(
|
|
"a new settled screen gets a new set",
|
|
nextShownSteps({ ...base, shown: ai, key: "screen B", ai: ["Deploy it."] })?.steps[0] ===
|
|
"Deploy it.",
|
|
);
|
|
check(
|
|
"typing freezes the chips",
|
|
nextShownSteps({ ...base, shown: ai, key: "screen B", ai: ["Deploy it."], hold: true }) === ai,
|
|
);
|
|
check(
|
|
"the old set stays up while the next is chosen (no blink)",
|
|
visibleSteps(ai, "screen B")[0] === "Fix the login page.",
|
|
);
|
|
check("nothing to answer → no chips", visibleSteps(ai, null).length === 0);
|
|
|
|
console.log(`\n${passed} passed`);
|