fix(cli/session): add command parameter to format_output for JSON envelope spec compliance
CI / push-validation (pull_request) Successful in 38s
CI / helm (pull_request) Successful in 42s
CI / build (pull_request) Successful in 59s
CI / lint (pull_request) Successful in 1m9s
CI / quality (pull_request) Successful in 1m11s
CI / typecheck (pull_request) Successful in 1m23s
CI / security (pull_request) Successful in 1m29s
CI / benchmark-publish (pull_request) Has been skipped
CI / e2e_tests (pull_request) Successful in 4m56s
CI / integration_tests (pull_request) Successful in 5m5s
CI / unit_tests (pull_request) Failing after 6m5s
CI / docker (pull_request) Has been skipped
CI / coverage (pull_request) Successful in 11m2s
CI / status-check (pull_request) Failing after 3s

The tell function's JSON envelope output was calling format_output(data, fmt)
without a command argument, resulting in an empty 'command' field in the output.
This violates spec compliance because all machine-readable CLI outputs must
include the originating command name in the envelope.

Fix: pass command='agents session tell' to ensure spec-compliant JSON/YAML envelopes.
This commit is contained in:
2026-05-11 02:02:45 +00:00
parent e7c7719a64
commit 43e9c4fd9a
+1 -1
View File
@@ -859,7 +859,7 @@ def tell(
"tool_calls": 0,
},
}
typer.echo(format_output(data, fmt))
typer.echo(format_output(data, fmt, command="agents session tell"))
return
if stream: