Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

fix: reset _json_output after each REPL dispatch

Teo Gonzalez Collazob8329a59075d
diff --git a/exa/agent-harness/cli_anything/exa/exa_cli.py b/exa/agent-harness/cli_anything/exa/exa_cli.py
index 394485616..d95beff54 100644
--- a/exa/agent-harness/cli_anything/exa/exa_cli.py
+++ b/exa/agent-harness/cli_anything/exa/exa_cli.py
@@ -301,6 +301,9 @@ def repl() -> None:
pass
except Exception as exc: # noqa: BLE001
_err(str(exc))
+ finally:
+ global _json_output
+ _json_output = False
# ---------------------------------------------------------------------------