MCPcopy
hub / github.com/anomalyco/opencode / addSubtask

Function addSubtask

packages/opencode/test/session/prompt.test.ts:420–433  ·  view source on GitHub ↗
(sessionID: SessionID, messageID: MessageID, model = ref)

Source from the content-addressed store, hash-verified

418})
419
420const addSubtask = (sessionID: SessionID, messageID: MessageID, model = ref) =>
421 Effect.gen(function* () {
422 const session = yield* Session.Service
423 yield* session.updatePart({
424 id: PartID.ascending(),
425 messageID,
426 sessionID,
427 type: "subtask",
428 prompt: "look into the cache key path",
429 description: "inspect bug",
430 agent: "general",
431 model,
432 })
433 })
434
435const boot = Effect.fn("test.boot")(function* (input?: { title?: string }) {
436 const config = yield* Config.Service

Callers 1

prompt.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected