From eb3dff845828f60ff2659586883af622b8b035eb Mon Sep 17 00:00:00 2001 From: Victor Hong Date: Tue, 14 Oct 2025 18:28:16 +1100 Subject: [PATCH] fix: Add JSON output flag to gemini CLI configuration The gemini CLI was returning plain text instead of JSON, causing clink to fail with: 'Failed to decode Gemini CLI JSON output: Expecting value: line 1 column 1 (char 0)' Root cause: gemini.json was missing the '-o json' flag in additional_args. This fix adds '-o json' to ensure JSON output format, aligning with the codex pattern (which uses --json). Tested with gemini CLI v0.8.2 --- conf/cli_clients/gemini.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/cli_clients/gemini.json b/conf/cli_clients/gemini.json index 6151f2d..6ff9762 100644 --- a/conf/cli_clients/gemini.json +++ b/conf/cli_clients/gemini.json @@ -4,7 +4,9 @@ "additional_args": [ "--telemetry", "false", - "--yolo" + "--yolo", + "-o", + "json" ], "env": {}, "roles": {