Repository navigation
Description
Found while verifying dev (8f2ab000) end to end after the #141 wave.
What happened
go test -tags e2e -run TestTUIE2E ./internal/e2e/ (tmux, a real model, the screen read back with capture-pane) fails 7 of 9 subtests. Every failure is the suite waiting for the home page as it was before the redesign: "aforge" "esc close", a ─ elsewhere rule, ▸ delta / ▸ epsilon folded projects, the space space home · / commands hint, left-off / keys bands on a conversation card, ◦ keeping an eye on N in the status line. The screen it actually saw is the current home — the tab row home tasks standing memory spend search settings, tier rows, › say what you want done, type to search or start something new · ↑↓ pick · enter open · tab next place.
The suite was last touched 2026-08-23 (34d72f74); the home redesign, the tab row and the conversation switcher landed after that. The two subtests that pass (answer_from_home_across_two_windows, narrow_window_ask_here) are the ones that do not assert on home chrome. The engine e2e suites (TestStandingE2E 11/11, TestStandingRecognitionE2E 8/8) pass on the same tip, so the model, the standing machinery and the firing path are fine; what is stale is the picture of the surface.
A suite that fails on a clean tree is a suite nobody runs, and this is the only test that drives the real binary in a real terminal against a real model.
The mechanism
- Rewrite
internal/e2e/tui_e2e_test.goagainst the home and conversation surfaces as they are today: read the strings from the code (internal/tui3), never from memory; where a band or hint was removed on purpose, drop the assertion and say so in the test's comment; where behaviour still exists under new words (escclosing home, the folded projects, the standing item's presence in the status line, the firing reaching the person), assert the new words. - Keep the suite's own laws (its file header): skips rather than fails when it cannot be honest; every rig its own
AFORGE_HOME;modelPatienceper real turn. - Add a cheap guard so it cannot go stale silently again: a structural test (no model, no tmux) that asserts every literal the e2e suite waits for exists somewhere in
internal/tui3's non-test sources — the same trick the manual gates use for slash commands. - Record how to run it in CLAUDE.md's Tests section (tag, key, tmux, cost, runtime ~17 min), so the next wave verifies with it.
Acceptance
go test -tags e2e -run TestTUIE2E ./internal/e2e/passes 9/9 on the Linux box (dependent on the model; flakes rerun alone) — or a subtest that covers a removed feature is deleted with its reason.- The structural literal-guard test exists and is green; deleting a string the suite waits for from tui3 turns it red.
- CLAUDE.md names the command and its cost.
Drafted with CodeAF · reviewed and owned by the author
Activity
the tmux TUI suite meets the home that exists, and a cheap gate keeps…
the tmux TUI suite meets the home that exists, and a cheap gate keeps…
an issue carries a replication a stranger can run, and acceptance tha…
an issue carries a replication a stranger can run, and acceptance tha…
tests: the six task-state shapes, measured on a real screen
tests: the six task-state shapes, measured on a real screen
tests: the six task-state shapes, measured on a real screen
tests: the six task-state shapes, measured on a real screen
tests: the six task-state shapes, measured on a real screen (#698)
The interactive door's ready needle lost its screen, so every aforge …
e2e: gate the live lanes on the product's own key resolution (#576)
fix(#576): e2e live-key gate uses product key resolution (#824)
e2e: a needle names a key, it never spells one
e2e: a needle names a key, it never spells one (review needed) (#1004)
e2e: the tmux suite reads the surface again (#1360)
e2e: the tmux suite reads the surface again (#1360)