consciousness/src/user
Kent Overstreet 603d58e686 Fix Thinking/Log panics: skip entries with empty token_ids
Entries with empty token_ids (Thinking, Log) are not part of the
prompt and don't have messages. Skip them in streaming_index(),
route_entry(), and sync_from_agent() instead of calling .message()
which panics.

Using token_ids.is_empty() as the guard in streaming_index means
the check is tied to the data, not the type — any entry that
doesn't produce tokens is safely skipped.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-08 12:05:49 -04:00
..
chat.rs Fix Thinking/Log panics: skip entries with empty token_ids 2026-04-08 12:05:49 -04:00
context.rs Replace token counting with token generation via HuggingFace tokenizer 2026-04-08 11:20:03 -04:00
mod.rs Init tokenizer in consciousness binary main 2026-04-08 11:55:32 -04:00
subconscious.rs Add status column to context tree with tab-stop alignment 2026-04-07 22:13:27 -04:00
thalamus.rs Fix build warnings across workspace 2026-04-07 13:55:30 -04:00
unconscious.rs fix unused imports 2026-04-06 22:43:55 -04:00
widgets.rs Replace token counting with token generation via HuggingFace tokenizer 2026-04-08 11:20:03 -04:00