//go:build unix // The real command catalog and daemon must agree on the JSON body of /retitle. package e2e import ( "testing" "albedo/cli/internal/tui" ) func TestTUIRetitleSubmitsAnEmptyJSONObject(t *testing.T) { providerRoute(t, echoReply) session := daemonSession(t, newSession(t, t.TempDir())) d := driveTUI(t, &session) defer d.App.Chat.Close() d.Dispatch(tui.CapabilityPageChangedMsg{}) d.Dispatch(tui.ChatExecuteCommandMsg{Name: "/retitle"}) if notices := d.App.Chat.Notices; len(notices) == 0 || notices.HasError() { t.Fatalf("/retitle was not admitted by the daemon:\n%s", d.View()) } }