MCPcopy Create free account
hub / github.com/compozy/agh / appendSessionSandboxBlock

Function appendSessionSandboxBlock

internal/cli/session.go:790–802  ·  view source on GitHub ↗
(blocks []string, info SessionRecord)

Source from the content-addressed store, hash-verified

788}
789
790func appendSessionSandboxBlock(blocks []string, info SessionRecord) []string {
791 if info.Sandbox == nil {
792 return blocks
793 }
794 return append(blocks, renderHumanSection("Sandbox", []keyValue{
795 {Label: sessionBackendValue, Value: stringOrDash(info.Sandbox.Backend)},
796 {Label: sessionProfileValue, Value: stringOrDash(info.Sandbox.Profile)},
797 {Label: "Sandbox ID", Value: stringOrDash(info.Sandbox.SandboxID)},
798 {Label: "Instance ID", Value: stringOrDash(info.Sandbox.InstanceID)},
799 {Label: sessionStateValue, Value: stringOrDash(info.Sandbox.State)},
800 {Label: "Last Sync Error", Value: stringOrDash(info.Sandbox.LastSyncError)},
801 }))
802}
803
804func appendSessionCapsBlock(blocks []string, info SessionRecord) []string {
805 if info.ACPCaps == nil {

Callers 1

renderSessionHumanFunction · 0.85

Calls 3

appendFunction · 0.85
renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85

Tested by

no test coverage detected