(t *testing.T)
| 666 | } |
| 667 | |
| 668 | func TestSessionFromEventsWithSessionTitle(t *testing.T) { |
| 669 | t.Parallel() |
| 670 | |
| 671 | events := []map[string]any{ |
| 672 | {"type": "session_title", "title": "Auto-generated title"}, |
| 673 | {"type": "agent_choice", "content": "Hello!"}, |
| 674 | {"type": "stream_stopped"}, |
| 675 | } |
| 676 | |
| 677 | // Start with a default title |
| 678 | sess := SessionFromEvents(events, "default-title", []string{"hi"}) |
| 679 | |
| 680 | // Title should be updated from the event |
| 681 | assert.Equal(t, "Auto-generated title", sess.Title) |
| 682 | } |
| 683 | |
| 684 | func TestInputIDPassthrough(t *testing.T) { |
| 685 | t.Parallel() |
nothing calls this directly
no test coverage detected