fix(#713): add missing action fields to acp and config json responses; acp->status, config bare->list, config section->show

This commit is contained in:
YeonGyu-Kim
2026-05-26 03:32:02 +09:00
parent fdde5e45cf
commit 7d6b2044d5
2 changed files with 5 additions and 0 deletions

View File

@@ -7308,6 +7308,7 @@ fn acp_status_json() -> serde_json::Value {
json!({
"schema_version": "1.0",
"kind": "acp",
"action": "status",
"status": "unsupported",
"phase": "discoverability_only",
"supported": false,
@@ -7472,6 +7473,7 @@ fn render_config_json(
let base = serde_json::json!({
"kind": "config",
"action": if section.is_some() { "show" } else { "list" },
"status": "ok",
"cwd": cwd.display().to_string(),
"loaded_files": loaded_paths.len(),
@@ -7491,6 +7493,7 @@ fn render_config_json(
other => {
return Ok(serde_json::json!({
"kind": "config",
"action": "show",
"status": "error",
"error_kind": "unsupported_config_section",
"section": other,