{{define "session_detail.html"}} {{template "page_head"}} Session {{.Session.ID}} — Railyard {{template "page_nav" .}}

Session #{{.Session.ID}} {{.Session.Source}} {{.Session.Status}}

User: {{.Session.UserName}} · Duration: {{.Session.Duration}}

Metadata

Source
{{.Session.Source}}
User
{{if .Session.UserName}}{{.Session.UserName}}{{else}}—{{end}}
Status
{{.Session.Status}}
Created
{{timeAgo .Session.CreatedAt}}
{{if .Session.CompletedAt}}
Completed
{{timeAgo (deref .Session.CompletedAt)}}
{{end}}
Last Heartbeat
{{timeAgo .Session.LastHeartbeat}}
{{if .Session.PlatformThreadID}}
Thread ID
{{.Session.PlatformThreadID}}
{{end}} {{if .Session.ChannelID}}
Channel ID
{{.Session.ChannelID}}
{{end}}
{{if .Session.CarsCreated}}

Cars Created ({{len .Session.CarsCreated}})

    {{range .Session.CarsCreated}}
  • {{.}}
  • {{end}}
{{end}}
{{if .Session.Conversations}}

Conversation ({{len .Session.Conversations}} messages)

{{range .Session.Conversations}}
{{.Role}}{{if .UserName}} ({{.UserName}}){{end}} · {{timeAgo .CreatedAt}}
{{.Content}}
{{end}}
{{else}}

No conversation messages

{{end}}
{{end}}