From ef8039846636db1cf1f25aecbd4ec9767fb0f791 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 12 Apr 2026 01:45:10 -0400 Subject: [PATCH] subconscious screen: show full context window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously only showed Conversation section; now shows System, Identity, Journal, and Conversation — making tools visible in the debug view. Co-Authored-By: Proof of Concept --- src/user/subconscious.rs | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/user/subconscious.rs b/src/user/subconscious.rs index 41c0824..c332ce6 100644 --- a/src/user/subconscious.rs +++ b/src/user/subconscious.rs @@ -223,10 +223,26 @@ impl SubconsciousScreen { agent.context.try_lock().ok() .map(|ctx| { + let mut views = Vec::new(); + views.push(section_to_view("System", ctx.system())); + views.push(section_to_view("Identity", ctx.identity())); + views.push(section_to_view("Journal", ctx.journal())); + + // Conversation: skip to fork point for subconscious agents let conv = ctx.conversation(); - let view = section_to_view("Conversation", conv); - let fork = fork_point.min(view.children.len()); - view.children.into_iter().skip(fork).collect() + let conv_view = section_to_view("Conversation", conv); + let fork = fork_point.min(conv_view.children.len()); + let conv_children: Vec = conv_view.children + .into_iter().skip(fork).collect(); + views.push(SectionView { + name: format!("Conversation ({} entries)", conv_children.len()), + tokens: conv_children.iter().map(|c| c.tokens).sum(), + content: String::new(), + children: conv_children, + status: String::new(), + }); + + views }) .unwrap_or_default() }