From 3b2eff58ac0e2388045a7442c63f56ce259b54ba Mon Sep 17 00:00:00 2001 From: Kevin Courbet Date: Thu, 16 Oct 2025 03:10:00 +0200 Subject: [PATCH] fix: remove duplicate -o json flag in gemini CLI config Fixes #291 The gemini CLI configuration had a duplicate -o json flag that caused Gemini to return plain text instead of JSON, breaking the clink parser. Root cause: - Internal defaults (clink/constants.py) already provide -o json - Config file (conf/cli_clients/gemini.json) duplicated this flag - Result: command became 'gemini -o json ... -o json' (duplicate) This caused Gemini CLI to malfunction and output plain text, leading to 'Failed to decode Gemini CLI JSON output' errors. Solution: Remove the duplicate -o json from additional_args since it's already provided by internal defaults, matching the pattern used by claude and codex CLI configurations. After fix: - Command: gemini -o json --telemetry false --yolo (correct) - Output: Valid JSON with response and stats - Parser: Successfully extracts content and metadata --- conf/cli_clients/gemini.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/cli_clients/gemini.json b/conf/cli_clients/gemini.json index 6ff9762..6151f2d 100644 --- a/conf/cli_clients/gemini.json +++ b/conf/cli_clients/gemini.json @@ -4,9 +4,7 @@ "additional_args": [ "--telemetry", "false", - "--yolo", - "-o", - "json" + "--yolo" ], "env": {}, "roles": {