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

Function backgroundResult

packages/opencode/src/tool/task.ts:274–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 })
273
274 function backgroundResult() {
275 return {
276 title: params.description,
277 metadata: {
278 ...metadata,
279 background: true,
280 jobId: info.id,
281 },
282 output: renderOutput({
283 sessionID: nextSession.id,
284 state: "running",
285 summary: "Background task started",
286 text: BACKGROUND_STARTED,
287 }),
288 }
289 }
290
291 if (runInBackground) {
292 yield* notify(info.id)

Callers 1

task.tsFile · 0.85

Calls 1

renderOutputFunction · 0.85

Tested by

no test coverage detected