Skip to content

Commit 4b23da4

Browse files
committed
test: assert non-empty title in e2e title generation test
1 parent 34cb957 commit 4b23da4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

e2e/debug_title_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func TestDebug_Title(t *testing.T) {
3535

3636
title := runCLI(t, "debug", "title", "testdata/basic.yaml", "--model="+tt.model, "What can you do?")
3737

38+
// The non-empty check is the key invariant: reasoning models
39+
// (o-series, gpt-5) must produce visible title text despite
40+
// hidden reasoning tokens consuming part of the output budget.
41+
assert.NotEmpty(t, title, "title must not be empty")
3842
assert.Equal(t, tt.want, title)
3943
})
4044
}

0 commit comments

Comments
 (0)