Skip to content

simulate(tui): in-TUI scenario save (no overwrite) + copy-to-clipboard; drop export-scenarios subcommand#867

Open
theomonnom wants to merge 19 commits into
mainfrom
theo/sim-tui-feedback
Open

simulate(tui): in-TUI scenario save (no overwrite) + copy-to-clipboard; drop export-scenarios subcommand#867
theomonnom wants to merge 19 commits into
mainfrom
theo/sim-tui-feedback

Conversation

@theomonnom

Copy link
Copy Markdown
Member

No description provided.

…erwrite), copy scenario to clipboard, print generated scenarios path on exit
…n/jobIconStylePtr/jobIcon) into one jobStatusIcon
- Pre-flight: reuse agentfs.CheckSDKVersion (pinned to 1.6.0, the thin-CLI baseline) in startAgent so start/dev/console/simulate fail fast with a clear 'too old, upgrade to ...' instead of a cryptic subprocess error.
- On early exit / failed register/connect, surface the agent's OWN output (the real error) plus the full log path - no string-match guessing of the cause. Wired into simulate (CI + TUI) and console.

Verified against staging with a broken .venv (shows the ModuleNotFoundError) and an old declared SDK (shows the upgrade message).
The agent logs in colored format for the TUI; the temp log file kept the
raw escape sequences.
The header listed every scenario label (bare bullets when labels are
empty) and the job list rendered them all again. Replace it with one
line: '<check> Loaded N scenarios from <file>  <group name>' — the group
name only when set.
'Loaded N scenarios from <file> — <name>' renders as the first (already
done) step in file mode, alongside Starting agent / Creating simulation,
instead of a separate header line.
Log lines were stripped of ANSI codes at scanner ingest, so the TUI
rendered everything colorless. Keep raw lines in memory (bubbletea/
lipgloss render ANSI fine) and strip only where plain text is needed:
the log file, fatal-marker matching, surfaced error excerpts, and CI
stdout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant