Validate providers and retain complete run debugging context

This commit is contained in:
2026-10-09 23:21:01 +01:00
parent f3d829bea5
commit 08b8647d5b
51 changed files with 1036 additions and 159 deletions
+7 -2
View File
@@ -46,8 +46,13 @@ func TestCreateAndSubmit(t *testing.T) {
m.editorInput.SetValue("ocd")
updated, editor = m.Update(tea.KeyMsg{Type: tea.KeyEnter})
m = updated.(Model)
if editor == nil || m.editorOpen {
t.Fatal("new editor choice did not launch")
if editor != nil || m.editorOpen || m.mutationCommand == nil {
t.Fatal("new editor choice did not require approval")
}
updated, editor = m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'y'}})
m = updated.(Model)
if editor == nil {
t.Fatal("approved editor did not launch")
}
// Editor lifecycle is smoke-tested separately; feed its completion here.
source := pipeline.Template([]string{"a", "b"}, true)