MCPcopy Create free account
hub / github.com/anomalyco/opencode / sameSubagentTab

Function sameSubagentTab

packages/opencode/src/cli/cmd/run/subagent-data.ts:74–91  ·  view source on GitHub ↗
(a: FooterSubagentTab | undefined, b: FooterSubagentTab | undefined)

Source from the content-addressed store, hash-verified

72}
73
74export function sameSubagentTab(a: FooterSubagentTab | undefined, b: FooterSubagentTab | undefined) {
75 if (!a || !b) {
76 return false
77 }
78
79 return (
80 a.sessionID === b.sessionID &&
81 a.partID === b.partID &&
82 a.callID === b.callID &&
83 a.label === b.label &&
84 a.description === b.description &&
85 a.status === b.status &&
86 a.background === b.background &&
87 a.title === b.title &&
88 a.toolCalls === b.toolCalls &&
89 a.lastUpdatedAt === b.lastUpdatedAt
90 )
91}
92
93function sameQueue<T extends { id: string }>(left: T[], right: T[]) {
94 return (

Callers 4

traceTabsFunction · 0.90
syncTaskTabFunction · 0.85
ensureBlockerTabFunction · 0.85
cancelSubagentTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected