Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
1234567891011121314151617181920212223//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()) }}