8 Commits
Author SHA1 Message Date
HomerandClaude Opus 5.5 805dfe2f1f Should-fix, second part: with AI off the settings list and the status start nothing; a shell over ssh keeps its suggestions; tests
- S5: with AI off, LLeMbas: settings and LLeMbas: autocomplete status no
  longer ask the CLI what it can do (they use what is known), and forgetting
  a directory's settings is an AI key like the others. A test switches
  everything with AI off and counts no process, then the AI switch: the
  store keeps it and the settings are read.
- S1/S2: while the pane's own shell runs ssh, a shell on the other machine
  that says it is at its prompt may have suggestions drawn - nothing else
  follows from its word (no mark, no history, the file untouched).
- Tests: M3 (a display that ends gives the question back with what it
  said; a split that fails; an ask line already open waits), S4 (two
  windows, two directories), S6 (an updated CLI is seen), S7 (question card:
  number, n, words; the approve key does not answer it), S15 (numbered
  asks; an ask that just changed is not answered; a cut value), S17 (a
  shell over ssh: the display opens here, version 1 for an engine of 1).
- The smoke test asks for configure_pane, real_path and local_dir, and
  hands the status over without a directory.
- Texts: "choose chat model" and "chat model" for the list and the
  selector; "the LLeMbas CLI's own choice"; the built-in configuration's
  comment says what a person's file starts from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 08:07:34 +00:00
HomerandClaude Opus 5.5 24464aa48e Security (M3 and should-fix): a question is never lost, an answer goes to what was shown, a record is the shell's own
llembas-term / linux (push) Failing after 38s
M3. Asked from a full-screen program with nothing of its screen asked
about, the context had nothing in it; the engine refuses such a file and a
display started with one never started. Now no file is written and the
question goes alone. A display that ends before it took a question gives
it back: the ask line opens again with the question on it and what the
display said last before it ended.

S1. What a pane says of its shell by user variable is only what it said.
A record the shell of this machine wrote itself (its process id, no via)
and whose shell still runs is the authority: a user variable never
replaces that file, and only it puts a command into the history, has the
input mark written, and numbers the blocks of a context.
S2. A suggestion is drawn and taken, and the AI asked, only while the
shell's record says it is at its prompt (or there is none); the AI only
while the program in front is a shell.
S3. The ask line opens at once from what is known; the settings and the
model are asked of the engine after, and the prefix follows. Answers and
stop no longer wait for the settings either.
S4. The settings that apply are the pane's own directory's: the layer says
them per pane (wezterm.llembas.configure_pane), so two windows in two
directories each keep theirs.
S5. With AI off nothing of the engine is started to read or keep a
setting, but the AI switch itself; a choice made then holds until the
terminal closes. The store's machine-wide values apply in a directory not
read yet.
S6. What the CLI can do is asked again after a minute, and at once when
it lacked what was needed (it may have been updated).
S7. A question card is answered on the ask line: a number, n, or words;
the notice says so, and the approve key says where the answer goes.
S8. A question that waits for a starting display keeps its context file
and sends it; an older waiting one's file goes at once; left-over files
are swept once a minute while any was written.
S10. A suggestion holds nothing invisible (format characters, bidi,
zero-width, variation selectors, tags, separators: filtered in the crate,
for history too); a key takes exactly what was drawn (a cut suggestion its
drawn part); and none is taken while a key sent to the shell is not on
its screen yet.
S12. No stat per word typed: the directories of PATH are listed at most
once a minute; nothing on a network or automounted file system is looked
at; whether an input line stands is read from the rows already fetched;
input marks and history lines are written by one thread of their own.
S13. The status directory is always this terminal's own: one inherited
from a terminal that started it, or set in the configuration, is not used.
S15. An answer is bound to what was asked: a number the engine gives what
it asks (approval#7 …) goes with the answer (/approve 7); without one, an
ask that changed a moment ago is not answered ("read it, then answer
again"). A cut value says that the rest is in the display.
S17. A context of a shell reached over SSH names its host (context file
version 2, with each block's seq and the exit status the shell said, for
an engine that reads it); the display starts in a directory of this machine.
S18. A notice whose display is gone is taken away at once.

Also: one answer for "is this pane's shell on this machine"
(wezterm.llembas.local_dir); dead complete::run and Log::clear only in
tests; the minimum-version check for a CLI that does not say what it can
do is gone (any such CLI is too old, said with the key that still works).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 07:58:43 +00:00
HomerandClaude Fable 5.2 1ca4a644cc Security (M2): a line that looks as if it holds a secret is not sent, kept or passed on
llembas-term / linux (push) Failing after 35s
With AI autocomplete on, the line being typed went to the engine after a
pause with no check for secrets: an exported key, a password on a database
client's command line, an Authorization header, a URL with credentials.

llembas_line::secret::looks_secret is a pure, table-driven matcher (no
dependency), and core.looks_secret is the same rules in Lua; both are held to
one table of cases, llembas/tests/secrets.txt (92 lines that must be taken
for a secret, 171 ordinary commands that must not). It is applied:

- before any AI autocomplete request (complete::decide -> Skip::Secret; the
  status says "not asked: the line looks like it holds a secret", never the
  line), whatever the engine itself checks;
- before a command is kept in the terminal's own history (history::accepts),
  and a history file that holds such a line is rewritten without it on load;
- to a context file: a command that looks so is replaced by a placeholder
  and its output is not read; a line of output or of the screen that looks
  so is replaced too.

A secret is recognised from the first character of its value, so nothing of
it is on a line that still passes while it is typed (tested a character at a
time); a URL's password is caught before its `@` is typed. The README says
what is recognised and what cannot be.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 21:15:33 +00:00
HomerandClaude Fable 5.2 593df939b9 LLeMbas TTY is LLeMbas TERM: the names, what is carried over, three keys, and the keys LLeMbas IDE has too
llembas-term / linux (push) Canceled after 0s
The rename. Commands llembas-term, -gui, -mux-server, -setup; package llembas-term
(Replaces, Conflicts and Provides llembas-tty, so installing it removes the old one);
directories llembas-term; application id eu.llembas.term; the variables a pane sees
LLEMBAS_TERM…; the status record llembas-term-status=1, the input mark
llembas-term-input=1, the user variable llembas_term_status; the shell integration
llembas-term.sh; the workflow llembas-term.yml; every changed upstream block is marked
"LLeMbas TERM:". The terminal needs the engine's terminal contract 4 and says so in
words with an older CLI.

Carried over from the earlier name: the variables LLEMBAS_TTY… of a terminal that
started this one are dropped; a configuration file of the old name is read where it
is while there is none of the new, with a warning; command-history and
settings-chosen are copied once into a data directory that does not exist yet
(llembas-line::migrate); the set-up program prints the new line for an rc file that
has the old one.

Keys. Ctrl+Tab on the ask line switches the mode (the next tab anywhere else);
Ctrl+Shift+M and Ctrl+Alt+M open the lists of chat and autocomplete models, also
over the ask line, which then says the choice. In a pane where LLeMbas IDE says it
is in front (user variable llembas_ide=1) the chords both have are sent on to it as
the keyboard protocol's bytes and the terminal does nothing of its own; the
terminal's palette is also on Ctrl+Shift+Alt+P. The built-in configuration honours
the kitty keyboard protocol for a program that asks for it.

CI: the .deb is installed over the released llembas-tty 1.0.0-beta.5; keys are
pressed in a real window on Xvfb (not a gate).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 20:26:37 +00:00
HomerandClaude Fable 5.2 b803aa39d9 Contract 3 as built: the input mark, the engine's own decisions, the timeouts it recommends, --json
llembas-tty / linux (push) Failing after 37s
- the terminal writes the input mark (pane-<n>.input beside the status
  record): whether anything stands on the input line of that prompt, from
  the input cells the shell integration marks. With AI on, for local panes.
- lembas complete: 8 s, and 20 s for the first request after autocomplete
  is switched on or its model changes; --debug with an engine of contract 3,
  whose decisions the autocomplete status shows.
- settings set and forget with --json.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 13:54:20 +00:00
HomerandClaude Fable 5.2 dc630ca398 README, changelog and developer notes: settings, the autocomplete status, manual mode; the smoke test asks the new parts
llembas-tty / linux (push) Failing after 37s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 13:32:46 +00:00
HomerandClaude Fable 5.2 26e836d9e9 AI autocomplete: the engine is given the pane's directory, its errors are kept, and a hint that stands
llembas-tty / linux (push) Failing after 36s
The pane's directory came from the URL the shell integration reports
(file://<host><directory>) through the URL library's own conversion, which
refuses every URL that names a host. So the engine was started without
--cwd, which it requires, ended with a usage error, and its error output
was thrown away: no suggestion, no request, no word of it.

- llembas-line gains complete: whether a line is asked about (decide), the
  directory of a reported URL, one request at a time (Tracker), the engine's
  command line and its run (std only), and the last attempts in words. Tested
  with a stand-in engine that records its arguments, input and environment.
- the engine's timeout is an option (10 s by default); the autocomplete
  model chosen in the terminal is passed on; what the engine says on its
  standard error is the sentence shown.
- wezterm.llembas.complete_status(), .hint() (a word that stands at the
  cursor's row until it is taken away; gentle: never over a cell that shows
  something) and .data_dir().

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 13:24:57 +00:00
HomerandClaude Fable 5.2 b44ec57291 The ask line in place of the shell's line, drawn by the terminal
llembas-tty / linux (push) Failing after 38s
The ask key turns the row of the cursor into a line for a question to LLeMbas: a prefix naming
the model and the mode, and a small line editor of the terminal's own (insert, delete, word
motions, paste, earlier questions). Enter hands the line to the layer as its event; Escape or
the key again leaves it. Nothing typed there reaches the shell, and nothing is written to the
pane: it is an overlay over the pane, as the terminal's search and quick select are, drawing
the pane's own lines with the one row replaced.

- llembas/line: a crate of its own with no dependencies for what is decided about a line of
  text - the editor, the shell's input line as read from the screen's cells, the terminal's own
  command history, suggestions, and the parts of a command line for its colours - with its
  tests. The last four are used by what comes next.
- wezterm-gui/src/llembas: the thin part between that and the terminal, and wezterm.llembas
  through which the Lua layer asks for it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 12:10:57 +00:00