Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/332.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sessions now restore plugin state and todo lists across restarts in UI, SDK, ACP, print, and agent modes.
3 changes: 2 additions & 1 deletion n00n-acp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub mod translate;
use std::path::PathBuf;
use std::sync::Arc;

use n00n_agent::headless::InteractiveHandle;
use n00n_agent::headless::{InteractiveHandle, SessionStatePersistence};
use n00n_agent::prompt::ResolvedSlots;
use n00n_agent::{AgentConfig, PermissionsConfig};
use n00n_providers::model::Model;
Expand All @@ -27,6 +27,7 @@ pub struct AcpParams {
pub initial_wd: PathBuf,
pub mcp_handle: Option<n00n_agent::McpHandle>,
pub prompt_slots: Arc<ResolvedSlots>,
pub state_persistence: Option<Arc<dyn SessionStatePersistence>>,
pub yolo: bool,
pub session_daemon_register: Option<SessionDaemonRegister>,
}
Expand Down
1 change: 1 addition & 0 deletions n00n-acp/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ fn spawn_session(
timeouts: params.timeouts,
openai_options: params.openai_options,
prompt_slots: Arc::clone(&params.prompt_slots),
state_persistence: params.state_persistence.clone(),
excluded_tools: Vec::new(),
mcp_handle: params.mcp_handle.clone(),
initial_wd: cwd,
Expand Down
Loading
Loading