detect --apply --json emits invalid JSON (human line after JSON) #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found: full codebase audit 2026-10-15, by reading src/app.rs cmd_detect.
Confidence: high.
Location: src/app.rs:478-490.
With --json --apply, the command prints a {"profile":...} JSON line, then runs flow and calls print_outcome(), which prints a human "connected..." line. A machine consumer parsing stdout as JSON gets two lines, one not JSON.
Suggested fix: under --json, suppress the human line, or emit a single JSON object covering profile plus outcome.