- 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>
S11. autocomplete = 'shell' had the shell integration send what was typed
to the engine itself: it could not see a private pane or the AI switch,
and had its own timeout and no chosen model. autocomplete.bash and
autocomplete.zsh are removed, with what exported their switch; the shell
integration keeps its zones and the status record. 'shell' turns nothing
on and is said in the log.
S14. The build job may only read the repository; a job of its own,
for a tag only and after the build passed, downloads the build's artefact
and publishes the release with write access. Every action is pinned by
its commit, with the tag it was taken from beside it.
S16. The set-up program refuses to run as root (everything goes into the
person's own home). A signed SHA256SUMS whose first line names a product
and version must name the release asked for: an older signed release served
under the newest tag is refused. Sums that name nothing yet are still taken,
and that is said. Tests for both, and for the root refusal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
A pane counted as "the display", or as a pane running LLeMbas, by user
variables alone - which any program printing to a pane can set, and which
stay set when LLeMbas was killed. The next question was then written to that
pane as a paste with Enter, and the path of a context file with it.
Now the display of a tab is the pane the layer itself split and started the
engine in, remembered by its id together with the command started there.
Everything the layer writes (a question, a context file's path, an answer, a
model, a mode) goes through one function, to that pane only, and only when
the process in front of it is seen to be the engine the layer resolved, or
the very command the layer started with that engine under it
(core.display_runs, from pane:get_foreground_process_info()). Where that
cannot be known nothing is sent, and that is said.
- user variables of another pane are not looked at; of the display they are
shown, without control or invisible characters; of a pane whose program in
front is the CLI itself they fill the bar and the tab mark
- the ask line is never typed into the CLI's own interface in a tab
- a display whose engine is gone is forgotten: the next question starts a new
one and closes the old pane
- the shell that keeps a failed display's sentence on screen no longer reads
from the pane (it would take the next question for its Enter); it empties
the variables a killed engine left and sleeps until Ctrl+C
- wezterm.llembas.real_path: the CLI's path with its links followed
Tests: a pane forging each variable and all of them, a forged display beside
the real one, the display's program replaced by a shell, a killed display, a
display whose process cannot be seen, a second window; 49 of the new checks
fail on the layer as it was.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Found by the keys pressed in a real window: the chord reached the pane as the
terminal's own Escape, Return instead of opening the list of autocomplete models.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
- 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>
- every switch and choice (AI, AI autocomplete, suggestions, highlighting,
mode, the two models, the display's width) is kept by the engine's store
of the terminal's settings (lembas terminal settings, contract 3): in the
palette twice, for this directory and for this machine; a key keeps it
where the directory's settings already are. The settings of the active
pane's directory apply, read lazily and kept a minute.
- a CLI without the store: as before, for this run, said once.
- what the display asks stands at the person's cursor row until it is
answered (it was shown for four seconds); a command placed at the prompt
(manual mode, contract 3) gets a hint that covers nothing.
- LLeMbas: settings, LLeMbas: autocomplete status, LLeMbas: display width.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Drawn when a pane is painted and nowhere else: nothing is written to the pane and the
terminal's model of the screen is not touched. The input line is found among the cells the
shell integration marked; the painter gets the pane's own lines with copies of the few rows
that are drawn differently.
- The rest of the line, dimmed after the cursor, from the terminal's own history of commands
it saw run (its own file, the person's alone; nothing that starts with a space, was not
found or came from a private pane). Right or End takes it, Alt+Right one word, as if typed.
- With the AI's autocomplete on, LLeMbas is asked after a pause when the history has nothing,
off the window's thread, and its answer shows in the same place.
- The command line in colours of the colour scheme's palette: the command when it exists,
options, strings, variables, operators, comments, paths that exist. Existence is looked up
only for a shell on this machine.
- A word from the terminal at the cursor's row for a moment, in place of a dialog.
- Off under a full-screen program, without shell integration, for a line of more than three
rows, under an overlay, and by its options and switches.
The layer, to the engine's contract as built: answers and stop go as lines (/approve, /deny,
/always, /stop); the display is started so that the pane stays to say why it could not; every
pane is told where the status records of this terminal are, each terminal keeping its own.
The autocomplete drawn by the shell integration is now autocomplete = 'shell'.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- An option `ai` and a switch that works at any moment; with AI off every key of the layer
but the switch does nothing, and says so once.
- A key opens the LLeMbas CLI whole, in a new tab, as if `lembas` were typed.
- A question goes to the terminal's display (`lembas terminal`, started to the right of the
pane at a third of its width, the focus staying where it was) and never to the CLI's own
interface in a split. A CLI without the display is said so in words, with how to update.
- Keys and palette entries that act on the display from the person's own pane: allow, allow
always, deny, stop the turn, new conversation, show/hide, choose model, choose mode.
- The shell integration writes the pane's status record at every prompt and when a command
starts (a file of the person's own, and the user variable llembas_tty_status), and the layer
keeps the file for a shell that could not write it.
- The layer talks to the terminal's own drawing part (wezterm.llembas) when there is one:
the ask line in place, a word at the cursor's row, what is on.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The terminal is the front of a set of three, not a container for the
other two: lembas and llembas-ide are found on PATH or in ~/.local/bin,
the same installations used outside it. llembas-tty-setup runs each
product's own installer after checking it against the release key.
LLeMbas IDE opens from the terminal (Ctrl+Shift+E).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Started through a shell function, the id kept was the subshell's, and the
server outlived the test.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- llembas-cli.version pins the LLeMbas CLI; scripts/fetch-cli.sh fetches it
and checks SHA256SUMS against the release key before anything is bundled.
- llembas/packaging/package.sh stages /usr/lib/llembas-tty (our three
binaries and the CLI beside them), links, shell integration, desktop entry,
icons and licences, and makes the .deb and the tarball.
- .github/workflows/llembas-tty.yml: hygiene, the layer's tests, a release
build, a headless smoke test of what was built, the packages, and on a
v* tag the GitHub Release. WezTerm's workflow files are untouched;
llembas/ci/disable-upstream-workflows.sh switches them off on our repository.
- The window icon is the LLeMbas mark.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The terminal delivers a paste later than a plain write, so Enter arrived
before the question (seen with a real mux server). The context line, the
question as a bracketed paste and Enter now go as one write. The screen of a
context is cut by what it costs in JSON, not by its raw length.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
llembas/tests/run.lua runs the layer against a stand-in for the terminal;
scripts/test-lua.sh runs it with lua5.4, lua, luajit or nvim -l.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>