Expand description
agent.input-history* and agent.input-draft: what the user typed to an
agent, kept with the agent (storage/agent_input_history.rs,
docs/specs/SPEC_AGENT_INPUT_HISTORY_2026_10_18.md). For the UI: the
composer’s ArrowUp recall and draft. No agent tool reads it.
Constants§
- DEFAULT_
LIMIT 🔒 - KINDS 🔒
- MAX_
LIMIT 🔒 - TYPED_
BY_ 🔒THE_ PERSON - What a history entry or a draft is: what the person typed, so only their window writes one.
Statics§
- BACKFILLING 🔒
- Agents whose history is being filled from their past conversations, so a second composer opening meanwhile doesn’t start another fill.
Functions§
- changed 🔒
- Tell every window
agent_id’s history or draft changed. - forgotten_
by 🔒 - Who forgot, from the connection: the agent’s slug when it registered as
one, else the window (
armory-ui), as Global Memory writes are recorded. - input_
draft 🔒 agent.input-draft: store the composer’s draft when one is sent, and answer with what is stored.- input_
history 🔒 agent.input-history: the agent’s entries, newest first, the first read filling it from past conversations.- input_
history_ 🔒append agent.input-history-append: keep what the user just sent, unless recording is off.- input_
history_ 🔒clear agent.input-history-clear: forget an agent’s whole history, into the trash.- input_
history_ 🔒delete agent.input-history-delete: forget one entry, into the trash.- input_
history_ 🔒restore agent.input-history-restore: bring a forgotten batch back.- input_
history_ 🔒search agent.input-history-search.- input_
history_ 🔒trash agent.input-history-trash: what was forgotten and can still be restored.- item 🔒
- kept_
per_ 🔒agent - How many entries each agent keeps, newest first (
agent:inputhistory:max, 10,000 unless set); 0 turns recording off. - maybe_
backfill 🔒 - The first time a composer reads an agent’s history, fill it once with what
the user typed in the agent’s past conversations (spec §4.7), in the
background: the composer gets what is kept now, and every window hears
backfillwhen the older entries are in. A history index still being built, or any failure, leaves it to the next read. - record_
broadcast 🔒 - A Swarm broadcast the user typed reached the agent in
block_id: keep it in that agent’s history (source: swarm), as if typed in its composer. A pane with no defined agent keeps nothing. - register