fix(desktop): resolve all remaining P1 defects (P1-02/05/06, P1-01 experimental)
Some checks failed
CI / Build Frontend (push) Has been cancelled
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- P1-02: Heartbeat auto-initialized in kernel_init for default agent
- P1-05: CloneManager shows warning when deleting active agent + auto-switch
- P1-06: AgentInfo returns soul/system_prompt/temperature/max_tokens
- P1-01: Browser Hand marked experimental (requires Fantoccini bridge)
- Updated DEFECT_LIST.md: all P1 resolved (0 active)
- Updated RELEASE_READINESS.md: all P1 sections reflect current status
This commit is contained in:
iven
2026-04-05 21:21:33 +08:00
parent e65b49c821
commit bcaab50c56
8 changed files with 89 additions and 32 deletions

View File

@@ -81,6 +81,10 @@ impl AgentRegistry {
message_count: self.message_counts.get(id).map(|c| *c as usize).unwrap_or(0),
created_at,
updated_at: Utc::now(),
soul: config.soul.clone(),
system_prompt: config.system_prompt.clone(),
temperature: config.temperature,
max_tokens: config.max_tokens,
})
}

View File

@@ -166,6 +166,10 @@ pub struct AgentInfo {
pub message_count: usize,
pub created_at: chrono::DateTime<chrono::Utc>,
pub updated_at: chrono::DateTime<chrono::Utc>,
pub soul: Option<String>,
pub system_prompt: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
}
impl From<AgentConfig> for AgentInfo {
@@ -180,6 +184,10 @@ impl From<AgentConfig> for AgentInfo {
message_count: 0,
created_at: chrono::Utc::now(),
updated_at: chrono::Utc::now(),
soul: config.soul,
system_prompt: config.system_prompt,
temperature: config.temperature,
max_tokens: config.max_tokens,
}
}
}