Subconscious screen: show AutoAgent state
F3 screen now displays SubconsciousSnapshot from Mind's AutoAgents instead of the old process-based AgentSnapshot. Shows running status (phase + turn), last run time, and walked key count. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
94ddf7b189
commit
85aafd206c
3 changed files with 86 additions and 107 deletions
|
|
@ -127,7 +127,7 @@ pub struct App {
|
|||
pub submitted: Vec<String>,
|
||||
pub(crate) context_info: Option<ContextInfo>,
|
||||
pub(crate) shared_context: SharedContextState,
|
||||
pub(crate) agent_state: Vec<crate::subconscious::subconscious::AgentSnapshot>,
|
||||
pub(crate) agent_state: Vec<crate::mind::SubconsciousSnapshot>,
|
||||
pub(crate) channel_status: Vec<ChannelStatus>,
|
||||
pub(crate) idle_info: Option<IdleInfo>,
|
||||
}
|
||||
|
|
@ -406,6 +406,7 @@ pub async fn run(
|
|||
// State sync on every wake
|
||||
idle_state.decay_ewma();
|
||||
app.update_idle(&idle_state);
|
||||
app.agent_state = mind.subconscious_snapshots().await;
|
||||
if !startup_done {
|
||||
if let Ok(mut ag) = agent.try_lock() {
|
||||
let model = ag.model().to_string();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue