()
| 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) |