Skip to content

TUI form lacks sources, max duration, auto rate, retry inconclusive, permute #274

Closed

Description

@TMHSDigital

Summary

The TUI form has no fields for options added since v0.9: passive sources / CT, max duration, auto rate, retry inconclusive and permute. Earlier work (#80, #195) aimed to keep the CLI and TUI in step.

Where

  • internal/tui/form.go:76-117 (formFields spec table)
  • internal/tui/form.go:486-506 (options): it doesn't set AutoRate, RetryInconclusive or Deadline

Proposal

Add the missing fields through the existing formFields table (one entry per field), and map them in options(). Sources and permute run around the scan rather than inside the engine, so wire them into the TUI scan start alongside the pool.

Who benefits

TUI users, who currently have to switch to the CLI for these features.

Getting started

  • Relevant files: internal/tui/form.go, internal/tui/model.go
  • How to run tests: go test ./internal/tui/
  • Related docs: docs/cli.md

Related: #80, #195


Filed by repo-audit/full-audit at 3f671b2. Severity: medium. Effort: M. audit-key: enhancement|internal/tui/form.go|parity

Activity

  1. added
    enhancement
    help wanted
    severity: medium
    on Nov 14, 2026
  2. TMHSDigital commented on Nov 14, 2026

    @TMHSDigital
    OwnerAuthor

    Partly done in 83fa92b: the form now has Auto Rate, Max Duration (a Go duration such as 20m, blank for none) and Retry Inconclusive, mapped in options(). beginScan sets the deadline when the scan starts. The fields are seeded from flags, SUBENUM_* and the config file, and saved for the next session.

    Verified with the new TestAutoRateDurationRetryFields (mapping, bad and negative durations, save and reload), the updated form-row and tab-order tests, the #262 drift guard (these three are off the TUI's unmapped list), and the full go test ./... plus golangci-lint.

    Still open: passive sources (-sources/-ct) and -permute. Both run around the scan, not inside the engine. Sources need an HTTPS fetch before the scan and permute needs a second scan pass after it, so the TUI needs new stages and screen states for them rather than a form row each.

  3. TMHSDigital commented on Nov 15, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 04ffe4a. Auto Rate, Max Duration and Retry Inconclusive were already added in 83fa92b; this adds the remaining two.

    • Sources (text, after Wordlist): parsed like -sources. The sources are asked while the wordlist loads and their names are merged after its entries. A failed or truncated source is a warning on the scan screen. They are not asked with Simulate on.
    • Permute (toggle, after Depth): when the main pass finishes, a permutation pass runs on the same screen. It is skipped after ctrl+c or a reliability abort, as on the command line. The finished screen sums both passes and shows the worse verdict.

    Both fields are pre-filled from flags, SUBENUM_* and the config file, and saved with the last settings. With either set, the results file carries sources per result and permutation on permutation hits, and the summary has the matching entries. The short-terminal form from #287 still fits with the two extra rows.

    Verified with five new tests in internal/tui/passes_test.go, including an end-to-end scan against the in-process DNS server with local stand-ins for the two sources. go test ./... and golangci-lint run pass.

    Left as is: subenum -tui -ct still warns instead of pre-filling Sources with ct, and -axfr and -seeds remain command-line only. The source-merge and permutation logic in the TUI is a compact copy of the CLI's rather than shared code.

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

    enhancementhelp wantedseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions