Skip to content

The only tool you need to know what is happening and how to fix it.

contract cli update

narrow-adventure37ba451f864d
diff --git a/cli/pkg/client/detail.go b/cli/pkg/client/detail.go
index b80a75f0..3b00cadd 100644
--- a/cli/pkg/client/detail.go
+++ b/cli/pkg/client/detail.go
@@ -110,16 +110,17 @@ type AiTrace struct {
// Session mirrors models.Session — one user session that can be replayed.
type Session struct {
- Id uuid.UUID `json:"id"`
- ProjectId uuid.UUID `json:"projectId"`
- StartedAt time.Time `json:"startedAt"`
- EndedAt *time.Time `json:"endedAt,omitempty"`
- Duration int64 `json:"duration"`
- ClientIP string `json:"clientIP"`
- Attributes map[string]string `json:"attributes"`
- AppVersion string `json:"appVersion"`
- ServerName string `json:"serverName"`
- TraceId string `json:"traceId,omitempty"`
+ Id uuid.UUID `json:"id"`
+ ProjectId uuid.UUID `json:"projectId"`
+ StartedAt time.Time `json:"startedAt"`
+ EndedAt *time.Time `json:"endedAt,omitempty"`
+ Duration int64 `json:"duration"`
+ ClientIP string `json:"clientIP"`
+ Attributes map[string]string `json:"attributes"`
+ AppVersion string `json:"appVersion"`
+ ServerName string `json:"serverName"`
+ TraceId string `json:"traceId,omitempty"`
+ HasRecording bool `json:"hasRecording"`
}
// LinkedException is the exception/message summary attached to endpoint, task,
diff --git a/cli/test/contract/testdata/session-detail.schema.txt b/cli/test/contract/testdata/session-detail.schema.txt
index 33484d3e..7a808677 100644
--- a/cli/test/contract/testdata/session-detail.schema.txt
+++ b/cli/test/contract/testdata/session-detail.schema.txt
@@ -7,6 +7,7 @@ session.appVersion: string
session.attributes: null
session.clientIP: string
session.duration: number
+session.hasRecording: bool
session.id: string
session.projectId: string
session.serverName: string