Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ nonisolated struct AgentEntry: Codable, Sendable {
let pid: Int?
let sessionId: String?
let suspended: Bool?
let suspendedAt: String?
let command: String?

// Explicit CodingKeys document the camelCase wire format
// matching Rust's #[serde(rename_all = "camelCase")] on types::AgentEntry.
private enum CodingKeys: String, CodingKey {
case id, name, status, prompt, error, pid, suspended, command
case agentType, startedAt, completedAt, exitCode, sessionId
case agentType, startedAt, completedAt, exitCode, sessionId, suspendedAt
}
}
2 changes: 1 addition & 1 deletion crates/pu-cli/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use thiserror::Error;

#[derive(Debug, Error)]
pub enum CliError {
#[error("daemon not running — run `pu spawn` to start it")]
#[error("daemon not running — it should auto-start; check `~/.pu/logs/daemon.log` for errors")]
DaemonNotRunning,

#[error("daemon request timed out after 30 seconds")]
Expand Down
2 changes: 1 addition & 1 deletion crates/pu-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ mod tests {
fn given_kill_target_required_should_hint_flags() {
let err = PuError::KillTargetRequired;
let msg = format!("{err}");
assert!(msg.contains("--agent") || msg.contains("--all"));
assert!(msg.contains("--agent") && msg.contains("--worktree") && msg.contains("--all"));
}

#[test]
Expand Down
Loading