An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.
Rust
fix(cli): emit JSON for /history in --output-format json --resume mode
YeonGyu-Kim3ed27d5cba44
diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rsindex e6a2ffd7..95057359 100644--- a/rust/crates/rusty-claude-cli/src/main.rs+++ b/rust/crates/rusty-claude-cli/src/main.rs@@ -2760,10 +2760,19 @@ fn run_resume_command(let limit = parse_history_count(count.as_deref()).map_err(|error| -> Box<dyn std::error::Error> { error.into() })?;let entries = collect_session_prompt_history(session);+ let shown: Vec<_> = entries.iter().rev().take(limit).rev().collect();Ok(ResumeCommandOutcome {session: session.clone(),message: Some(render_prompt_history_report(&entries, limit)),- json: None,+ json: Some(serde_json::json!({+ "kind": "history",+ "total": entries.len(),+ "showing": shown.len(),+ "entries": shown.iter().map(|e| serde_json::json!({+ "timestamp_ms": e.timestamp_ms,+ "text": e.text,+ })).collect::<Vec<_>>(),+ })),})}SlashCommand::Unknown(name) => Err(format_unknown_slash_command(name).into()),