Show full audited run graphs and scope searchable run history
This commit is contained in:
@@ -72,6 +72,9 @@ func TestRunWebSocketRemainsResponsiveAndAuditable(t *testing.T) {
|
||||
if started.Type != protocol.RunStarted || started.RunDetail == nil {
|
||||
t.Fatal("run not started", started)
|
||||
}
|
||||
if len(started.RunDetail.Graph.Stages) == 0 {
|
||||
t.Fatal("started run omitted pinned graph")
|
||||
}
|
||||
<-entered
|
||||
if response := request(protocol.Message{Type: protocol.Ping, ID: "ping"}); response.Type != protocol.Pong {
|
||||
t.Fatal("active run blocked ping")
|
||||
@@ -87,4 +90,7 @@ func TestRunWebSocketRemainsResponsiveAndAuditable(t *testing.T) {
|
||||
if result.RunDetail == nil || result.RunDetail.Status != "canceled" || len(result.RunDetail.Steps) != 1 || result.RunDetail.Steps[0].Input["prompt"] != "test" {
|
||||
t.Fatal("missing canceled audit", result)
|
||||
}
|
||||
if len(result.RunDetail.Graph.Stages) != len(started.RunDetail.Graph.Stages) {
|
||||
t.Fatal("inspected run omitted pinned graph")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user