Skip to content
Closed
2 changes: 1 addition & 1 deletion crates/sharecli-ipc/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use serde_json::Value;
use sharecli::commands::proc::{AgentProcRow, AgentProcSnapshot};
use sharecli::config::Config;
use sharecli::monitoring::HostResourceWatchJson;
use sharecli::runtime::ProcState;
pub use sharecli::runtime::ProcState;
use sharecli::runtime::SharedRuntime;
use sharecli::{ProcessInfo, ProcessPool};
use sharecli_fleet::thermal::ThermalGovernor;
Expand Down
11 changes: 10 additions & 1 deletion tests/fr007_ipc_monitoring_report_gate_host_watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn fr007_ipc_monitoring_report_snapshot_gate_before_host_watch() {
use sharecli::monitoring::HostResourceWatchJson;
use sharecli_fleet::GateStatusSnapshot;
use sharecli_ipc::handler::{
MonitoringProcessEntry, MonitoringReportSnapshot, PoolSnapshot, StatusSnapshot,
MonitoringProcessEntry, MonitoringReportSnapshot, PoolSnapshot, ProcState, StatusSnapshot,
};

let gate = GateStatusSnapshot {
Expand Down Expand Up @@ -99,6 +99,15 @@ fn fr007_ipc_monitoring_report_snapshot_gate_before_host_watch() {
project: Some("demo".into()),
harness: None,
start_time: 0,
cpu_percent: 0.0,
ppid: None,
cwd: None,
env_count: 0,
state: ProcState::Run,
disk_read_bytes: None,
disk_write_bytes: None,
fd_count: None,
log_location: None,
}],
gate: gate.clone(),
host_watch: host_watch.clone(),
Expand Down
11 changes: 10 additions & 1 deletion tests/fr007_ipc_monitoring_report_pool_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn fr007_ipc_monitoring_report_snapshot_pool_status_order() {
use sharecli::monitoring::HostResourceWatchJson;
use sharecli_fleet::GateStatusSnapshot;
use sharecli_ipc::handler::{
MonitoringProcessEntry, MonitoringReportSnapshot, PoolSnapshot, StatusSnapshot,
MonitoringProcessEntry, MonitoringReportSnapshot, PoolSnapshot, ProcState, StatusSnapshot,
};

let gate = GateStatusSnapshot {
Expand Down Expand Up @@ -99,6 +99,15 @@ fn fr007_ipc_monitoring_report_snapshot_pool_status_order() {
project: Some("demo".into()),
harness: None,
start_time: 0,
cpu_percent: 0.0,
ppid: None,
cwd: None,
env_count: 0,
state: ProcState::default(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: ProcState is not in scope in this test

Line 106 uses ProcState::default(), but no use statement brings ProcState into scope in this file, and sharecli_ipc does not re-export ProcState at the crate root. Add use sharecli::runtime::ProcState; inside the test function or qualify the path as sharecli::runtime::ProcState::default().


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

disk_read_bytes: None,
disk_write_bytes: None,
fd_count: None,
log_location: None,
}],
gate: gate.clone(),
host_watch: host_watch.clone(),
Expand Down
9 changes: 8 additions & 1 deletion tests/fr007_ps_all_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn fr007_ps_csv_requires_all() {
/// FR-007 / AC-007.83 — unit render_ps_all_csv_body preserves managed + agent sections.
#[test]
fn fr007_ps_all_csv_body_shape() {
use sharecli::runtime::ProcessInfo;
use sharecli::runtime::{ProcessInfo, ProcState};
use sharecli_fleet::HostProcSource;

let proc_source = HostProcSource;
Expand All @@ -156,6 +156,13 @@ fn fr007_ps_all_csv_body_shape() {
harness: Some("claude".into()),
cmd: vec![],
start_time: 0,
cpu_percent: 0.0,
ppid: None,
cwd: None,
env_count: 0,
state: ProcState::default(),
disk_read_bytes: Some(0),
disk_write_bytes: Some(0),
fd_count: None,
thread_count: None,
}];
Expand Down
Loading