MCPcopy Index your code
hub / github.com/anomalyco/opencode / queueSnapshot

Function queueSnapshot

packages/opencode/src/cli/cmd/run/subagent-data.ts:99–104  ·  view source on GitHub ↗
(data: SessionData)

Source from the content-addressed store, hash-verified

97}
98
99function queueSnapshot(data: SessionData) {
100 return {
101 permissions: data.permissions.slice(),
102 questions: data.questions.slice(),
103 }
104}
105
106function queueChanged(data: SessionData, before: ReturnType<typeof queueSnapshot>) {
107 return !sameQueue(before.permissions, data.permissions) || !sameQueue(before.questions, data.questions)

Callers 3

applyChildEventFunction · 0.85
bootstrapSubagentDataFunction · 0.85
bootstrapSubagentCallsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected