consciousness/src/agent
Kent Overstreet 8971e6841b Fix streaming entry duplication and context state freshness
Replace pop+push of streaming entries with finalize_streaming() which
finds the unstamped assistant entry and updates it in place. The
streaming entry IS the assistant message — just stamp it when done.

Also: set dirty flag on agent_changed/turn_watch so the TUI actually
redraws when the agent state changes. Publish context state on F2
switch so the debug screen shows current data.

Age out images during compact() so old screenshots don't bloat the
request payload on startup.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-06 22:43:55 -04:00
..
api Delete ui_channel.rs — relocate types, remove all UiMessage/UiSender plumbing 2026-04-05 22:34:48 -04:00
tools Delete ui_channel.rs — relocate types, remove all UiMessage/UiSender plumbing 2026-04-05 22:34:48 -04:00
context.rs Fix context budgeting and compaction 2026-04-06 22:43:55 -04:00
mod.rs Fix streaming entry duplication and context state freshness 2026-04-06 22:43:55 -04:00
oneshot.rs oneshot: remove PID tracking from run_one_agent 2026-04-04 18:19:21 -04:00