diff --git a/cmd/pipelines-large-chat-fixture/main.go b/cmd/pipelines-large-chat-fixture/main.go index 9ca0bf3b..17b10e8e 100644 --- a/cmd/pipelines-large-chat-fixture/main.go +++ b/cmd/pipelines-large-chat-fixture/main.go @@ -128,7 +128,11 @@ func verifyShellReadback(ctx context.Context, endpoint string, exited bool) (map if page.ChatShellOutput == nil || page.ChatShellOutput.Output != server.LargeChatFixtureShellOutput || page.ChatShellOutput.Shell.Status != map[bool]string{true: "exited", false: "running"}[exited] { return evidence, fmt.Errorf("unexpected shell readback: %+v", page.ChatShellOutput) } - evidence["owned"] = map[string]any{"shell_id": page.ChatShellOutput.Shell.ID, "output": page.ChatShellOutput.Output, "cursor": page.ChatShellOutput.Cursor, "status": page.ChatShellOutput.Shell.Status} + owned := map[string]any{"shell_id": page.ChatShellOutput.Shell.ID, "output": page.ChatShellOutput.Output, "cursor": page.ChatShellOutput.Cursor, "status": page.ChatShellOutput.Shell.Status} + if page.ChatShellOutput.Shell.Exit != nil { + owned["exit"] = *page.ChatShellOutput.Shell.Exit + } + evidence["owned"] = owned negative := evidence["negative"].([]string) negativeRequests := []protocol.Message{ {Type: protocol.ChatShells, ID: "foreign-list", ChatQuery: &protocol.ChatQuery{SessionID: server.LargeChatFixtureForeignSessionID}},