Let agents see and test the TUI the way a user uses it #2
Loading…
Reference in a new issue
No description provided.
Delete branch "ai-agent/agent-testing"
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?
Agents kept getting conflicts with several copies wrong. Fixtures could only say "keep the conflict", which always meant the first copy, and they set state by calling app methods, so the keys themselves were never tested.
Fixtures now press keys through the terminal's own event loop, name the winning copy (
keep_conflict_b) and snapshot their final screen. Ascreenexample renders any directory for an agent to look at, and three tests run the real binary in a pseudo-terminal. The one behaviour change is that conflicts are now listed in a stable order. This should land before #1.I checked a three-way conflict by viewing the
screenexample's output as a PNG.Logic flow
ea3a59de57to3af1f0704a