diff --git a/kinode/packages/tester/tester/src/lib.rs b/kinode/packages/tester/tester/src/lib.rs index fa112f5a..7a0cd475 100644 --- a/kinode/packages/tester/tester/src/lib.rs +++ b/kinode/packages/tester/tester/src/lib.rs @@ -147,13 +147,14 @@ fn handle_request( .iter() .map(|cap| { serde_json::from_str::<(ProcessId, String)>(cap).unwrap_or_else(|_| { - (cap.parse::().unwrap(), "messaging".to_string()) + (cap.parse::().unwrap(), "\"messaging\"".to_string()) }) }) .collect(), )) }) .unwrap_or((vec![], vec![])); + println!("tester: request_caps: {request_caps:?}\ntester: grant_caps: {grant_caps:?}"); request_caps.extend(our_capabilities()); let child_process_id = match spawn( None, diff --git a/kinode/src/kernel/standard_host_v1.rs b/kinode/src/kernel/standard_host_v1.rs index 9d91d2ba..97bdbcf8 100644 --- a/kinode/src/kernel/standard_host_v1.rs +++ b/kinode/src/kernel/standard_host_v1.rs @@ -754,7 +754,10 @@ impl StandardHost for process::ProcessWasiV1 { .send(t::CapMessage::Add { on: t::ProcessId::de_wit_v1(process_id), caps: vec![t::Capability::new( - self.process.metadata.our.clone(), + ( + self.process.metadata.our.node.clone(), + &new_process_id, + ), params, )], responder: Some(tx),