Skip to main content

Module input_history

Module input_history 

Source
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 backfill when 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