Skip to content

TUI output still drifts from the CLI: no takeover column in CSV, no JSONL summary line, ignores config/env defaults #118

Closed

Description

@TMHSDigital

Why it matters

#80 unified scan construction, but the TUI's output files still differ from the CLI's for the same scan, so downstream tooling breaks depending on which front end produced the file.

Evidence

  • internal/tui/model.go:157 never calls SetTakeoverColumn, so a TUI CSV with CNAME types drops the takeover_candidate column that JSON keeps.
  • The TUI never calls Writer.Summary, so a TUI .jsonl lacks the trailing {"type":"summary",...} line the CLI always writes. That line is the documented way to gate pipelines on the verdict.
  • TUI form defaults ignore config.json and SUBENUM_* (DX: shell completions, man page, and defaults via config file or SUBENUM_* env vars #88).

Suggested approach

Route TUI file output through the same writer-setup helper the CLI uses, and seed the form from the same defaults loader.

Done when

A TUI test with -format csv and types A,CNAME gets the takeover header, a JSONL file ends with the summary line, and a config value pre-fills the form.

Activity

  1. added
    bug
    priority: medium
    area: output
    area: tui
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: outputarea: tuibugpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions