GeezerVison is showing github.com — refactor(core): remove leftover foreground subagent and reattach code… · drpr/opencode@23dd370
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/core/src/job.ts +5-17Lines changed: 5 additions & 17 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,7 +38,6 @@ export type Background = typeof Background.Type | 38 | 38 | export type Status = Background["status"] | 39 | 39 |
| 40 | 40 | export type SubagentReportState = | 41 | | - | { readonly mode: "foreground" } | 42 | 41 | | { | 43 | 42 | readonly mode: "background" | 44 | 43 | readonly notificationID: SessionMessage.ID | @@ -107,7 +106,7 @@ type BackgroundResult = { | 107 | 106 | backgrounded?: Deferred.Deferred<Info> | 108 | 107 | } | 109 | 108 |
| 110 | | -type StartResult = { info: Info } | { info: Info; job: Active } | { info: Info; backgrounded: Deferred.Deferred<Info> } | | 109 | +type StartResult = { info: Info } | { info: Info; job: Active } | 111 | 110 |
| 112 | 111 | type BlockWait = { | 113 | 112 | done: Deferred.Deferred<Info> | @@ -363,14 +362,7 @@ export const make = Effect.gen(function* () { | 363 | 362 | const existing = jobs.get(input.id) | 364 | 363 | // A settling generation is already reporting; new work starts a fresh generation. | 365 | 364 | if (existing?.info.status === "running" && !existing.settling) { | 366 | | - if (!input.background || existing.isBackgrounded) return [{ info: snapshot(existing) }, jobs] | 367 | | - // Joining live work after its start must register the durable marker before a fast | 368 | | - // drain can settle and classify the period as foreground. | 369 | | - const updated = yield* markBackground(existing) | 370 | | - return [ | 371 | | - { info: snapshot(updated), backgrounded: existing.backgrounded }, | 372 | | - new Map(jobs).set(input.id, updated), | 373 | | - ] | | 365 | + return [{ info: snapshot(existing) }, jobs] | 374 | 366 | } | 375 | 367 | const scope = yield* Scope.fork(state.scope, "parallel") | 376 | 368 | // Closing the registry interrupts the work without settling it; interrupt its observers too. | @@ -406,7 +398,6 @@ export const make = Effect.gen(function* () { | 406 | 398 | return [{ info: snapshot(job), job }, new Map(jobs).set(input.id, job)] | 407 | 399 | }), | 408 | 400 | ) | 409 | | - if ("backgrounded" in result) yield* Deferred.succeed(result.backgrounded, result.info) | 410 | 401 | if ("job" in result) | 411 | 402 | yield* restore(input.run).pipe( | 412 | 403 | Effect.exit, | @@ -498,8 +489,6 @@ export const make = Effect.gen(function* () { | 498 | 489 | const job = jobs.get(id) | 499 | 490 | // Recoverable work may finish before the caller backgrounds it. | 500 | 491 | if (!job || (job.info.status !== "running" && !job.recovery)) return [{}, jobs] | 501 | | - // A settling generation already reported as foreground; a late Ctrl+B must not revive it. | 502 | | - if (job.settling) return [{}, jobs] | 503 | 492 | if (job.isBackgrounded) return [{ info: snapshot(job) }, jobs] | 504 | 493 | const next = yield* markBackground(job) | 505 | 494 | return [{ info: snapshot(next), backgrounded: job.backgrounded }, new Map(jobs).set(id, next)] | @@ -519,7 +508,6 @@ export const make = Effect.gen(function* () { | 519 | 508 | const next = new Map(jobs) | 520 | 509 | for (const [id, job] of jobs) { | 521 | 510 | if (job.info.status !== "running") continue | 522 | | - if (job.settling) continue | 523 | 511 | if (job.isBackgrounded) continue | 524 | 512 | if (input.type !== undefined && job.info.type !== input.type) continue | 525 | 513 | if (!job.blockingSessions.has(input.sessionID)) continue | @@ -649,7 +637,9 @@ export const make = Effect.gen(function* () { | 649 | 637 | return yield* SynchronizedRef.modify(state.jobs, (jobs): readonly [SubagentReportState, Map<string, Active>] => { | 650 | 638 | const job = jobs.get(id) | 651 | 639 | // A generation reports at most once, even when an earlier attempt only observed a cancel. | 652 | | - if (!job || job.reported) return [{ mode: "none" }, jobs] | | 640 | + if (!job?.isBackgrounded || job.reported || !job.info.notificationID || job.recovery?.kind !== "subagent") { | | 641 | + return [{ mode: "none" }, jobs] | | 642 | + } | 653 | 643 | const live = job.info.status === "running" && !job.settling | 654 | 644 | // A cancel within this busy period already consumed the live entry, but it still belongs | 655 | 645 | // here. A creation-tick interruption never bound a generation, so any cancel matches. | @@ -662,8 +652,6 @@ export const make = Effect.gen(function* () { | 662 | 652 | ...(job.info.status === "running" ? { settling: true } : {}), | 663 | 653 | } | 664 | 654 | const next = new Map(jobs).set(id, updated) | 665 | | - if (!job.isBackgrounded) return [{ mode: "foreground" }, next] | 666 | | - if (!job.info.notificationID || job.recovery?.kind !== "subagent") return [{ mode: "none" }, next] | 667 | 655 | return [ | 668 | 656 | { | 669 | 657 | mode: "background", | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/session/background.ts +2-7Lines changed: 2 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -82,14 +82,9 @@ export const outstanding = Effect.fnUntraced(function* ( | 82 | 82 | const children = new Set(items.flatMap((item) => (item.kind === "subagent" ? [item.childSessionID] : []))) | 83 | 83 | for (const activeID of active) { | 84 | 84 | if (activeID === sessionID || children.has(activeID)) continue | 85 | | - // Foreground-blocking work is the caller's inline result, and cancelled work is | 86 | | - // acknowledged elsewhere: neither is still running for this report. | | 85 | + // A cancelled child may still be draining while it cleans up. | 87 | 86 | const tracked = jobs.get ? yield* jobs.get(activeID) : undefined | 88 | | - if ( | 89 | | - tracked && | 90 | | - ((tracked.status === "running" && tracked.notificationID === undefined) || tracked.status === "cancelled") | 91 | | - ) | 92 | | - continue | | 87 | + if (tracked?.status === "cancelled") continue | 93 | 88 | if (!(yield* descends(store, parents, activeID, sessionID))) continue | 94 | 89 | const info = yield* store.get(activeID) | 95 | 90 | if (!info?.parentID) continue | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/session/execution.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -158,8 +158,7 @@ export const layer = Layer.effect( | 158 | 158 | yield* bus.publish(SessionEvent.Execution.Interrupted, { sessionID, reason: "shutdown" }) | 159 | 159 | return | 160 | 160 | } | 161 | | - // Classify and claim the Job generation before cancelling it: the settlement commit | 162 | | - // owns the outbox row, and a cancel must not race a foreground classification. | | 161 | + // Claim the Job generation before cancelling it so the settlement commit owns its outbox row. | 163 | 162 | const settlement = yield* subagentReport.prepare(sessionID, outcome) | 164 | 163 | if (outcome.type === "interrupted") yield* jobs.cancel(sessionID) | 165 | 164 | yield* publishTerminal(bus, sessionID, outcome, settlement.commit) | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/session/execution/restart.ts +10-27Lines changed: 10 additions & 27 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,7 @@ import { SessionStore } from "../store.js" | 19 | 19 | import { ImageNotice } from "../../image/notice.js" | 20 | 20 | import { ShellResult } from "../../shell/result.js" | 21 | 21 | import { SubagentCompletion } from "../subagent-completion.js" | | 22 | +import { SubagentJob } from "../subagent-job.js" | 22 | 23 | import { SubagentMetadata } from "../subagent-metadata.js" | 23 | 24 |
| 24 | 25 | const CONTINUE_AFTER_SERVER_RESTART = | @@ -41,6 +42,8 @@ export interface Options { | 41 | 42 |
| 42 | 43 | const DEFAULT_MAX_ATTEMPTS = 10 | 43 | 44 |
| | 45 | +type Notices = Pick<Session.Interface, "synthetic"> | | 46 | + | 44 | 47 | export interface Interface { | 45 | 48 | /** | 46 | 49 | * Resumes Sessions whose execution claim was never released — turns orphaned | @@ -214,7 +217,7 @@ export const layer = (options?: Options) => | 214 | 217 | const recoverShellJob = Effect.fnUntraced(function* ( | 215 | 218 | background: Job.Background, | 216 | 219 | recovery: Extract<Job.Recovery, { kind: "shell" }>, | 217 | | - notices: Session.Interface, | | 220 | + notices: Notices, | 218 | 221 | reattached: Set<string>, | 219 | 222 | ) { | 220 | 223 | const shell = background.status === "running" ? yield* shellOf(recovery.sessionID) : undefined | @@ -238,7 +241,7 @@ export const layer = (options?: Options) => | 238 | 241 | // command still running in the daemon. Settle the call as moved to the background and watch the command. | 239 | 242 | const settleBackgroundedCalls = Effect.fnUntraced(function* ( | 240 | 243 | sessionID: SessionSchema.ID, | 241 | | - notices: Session.Interface, | | 244 | + notices: Notices, | 242 | 245 | reattached: ReadonlySet<string>, | 243 | 246 | ) { | 244 | 247 | const calls = (yield* SessionHistory.incompleteAssistants(db, sessionID)).flatMap((message) => | @@ -282,7 +285,7 @@ export const layer = (options?: Options) => | 282 | 285 | }) | 283 | 286 |
| 284 | 287 | const deliverSubagentSafe = Effect.fnUntraced(function* ( | 285 | | - notices: Session.Interface, | | 288 | + notices: Notices, | 286 | 289 | notificationID: Job.Background["notificationID"], | 287 | 290 | recovery: Extract<Job.Recovery, { kind: "subagent" }>, | 288 | 291 | result: Pick<Job.Background, "status" | "output" | "error">, | @@ -328,7 +331,7 @@ export const layer = (options?: Options) => | 328 | 331 | const recoverSubagent = Effect.fnUntraced(function* ( | 329 | 332 | background: Job.Background, | 330 | 333 | recovery: Extract<Job.Recovery, { kind: "subagent" }>, | 331 | | - notices: Session.Interface, | | 334 | + notices: Notices, | 332 | 335 | ): Effect.fn.Return<boolean> { | 333 | 336 | const child = yield* store.get(recovery.childSessionID) | 334 | 337 | if (!child || child.parentID !== recovery.parentSessionID || !(yield* store.get(recovery.parentSessionID))) { | @@ -396,12 +399,11 @@ export const layer = (options?: Options) => | 396 | 399 | ) | 397 | 400 | // Hold notice wakes until every suspended root has counted its attempt, so a woken | 398 | 401 | // child cannot settle mid-sweep and wake its parent past that budget. | 399 | | - const notices: Session.Interface = { | 400 | | - ...sessions, | | 402 | + const notices: Notices = { | 401 | 403 | synthetic: (input) => | 402 | 404 | sessions.synthetic({ ...input, resume: false }).pipe( | 403 | 405 | Effect.tap(() => { | 404 | | - if (input.resume === false || suspended.has(input.sessionID)) return Effect.void | | 406 | + if (suspended.has(input.sessionID)) return Effect.void | 405 | 407 | if (!state.defer) return wake(input.sessionID) | 406 | 408 | wakes.add(input.sessionID) | 407 | 409 | return Effect.void | @@ -465,26 +467,7 @@ export const layer = (options?: Options) => | 465 | 467 | yield* Effect.forEach( | 466 | 468 | resumable, | 467 | 469 | Effect.fnUntraced(function* ({ background, recovery }) { | 468 | | - yield* jobs.start({ | 469 | | - id: background.id, | 470 | | - type: "subagent", | 471 | | - title: recovery.description, | 472 | | - notificationID: background.notificationID, | 473 | | - recovery, | 474 | | - background: true, | 475 | | - run: execution.resume(recovery.childSessionID).pipe( | 476 | | - Effect.onInterrupt(() => | 477 | | - jobs | 478 | | - .isCancelled(background.id) | 479 | | - .pipe( | 480 | | - Effect.flatMap((cancelled) => | 481 | | - cancelled ? execution.interrupt(recovery.childSessionID) : Effect.void, | 482 | | - ), | 483 | | - ), | 484 | | - ), | 485 | | - Effect.as(""), | 486 | | - ), | 487 | | - }) | | 470 | + yield* SubagentJob.start(jobs, execution, recovery, background.notificationID) | 488 | 471 | suspended.delete(recovery.childSessionID) | 489 | 472 | }), | 490 | 473 | { discard: true }, | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/session/execution/subagent-report.ts -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -135,12 +135,6 @@ export const make = (deps: Deps) => { | 135 | 135 | const period = periods.get(sessionID) | 136 | 136 | periods.delete(sessionID) | 137 | 137 | const jobState = yield* deps.jobs.prepareSubagentReport(sessionID, period?.boundGeneration) | 138 | | - if (jobState.mode === "foreground") { | 139 | | - return { | 140 | | - commit: () => deps.store.release(sessionID), | 141 | | - deliver: Effect.void, | 142 | | - } | 143 | | - } | 144 | 138 | const initial = yield* deps.store.get(sessionID) | 145 | 139 | if (!initial?.parentID && jobState.mode === "none") { | 146 | 140 | return { | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/session/subagent-completion.ts -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,6 @@ export interface SyntheticSession<E = never> { | 18 | 18 | readonly text: string | 19 | 19 | readonly description?: string | 20 | 20 | readonly metadata?: SessionSchema.Metadata | 21 | | - readonly resume?: boolean | 22 | 21 | }) => Effect.Effect<unknown, E> | 23 | 22 | } | 24 | 23 |
| @@ -56,7 +55,6 @@ export const deliver = Effect.fnUntraced(function* <E>( | 56 | 55 | jobs: Pick<Job.Interface, "completeBackground">, | 57 | 56 | input: Pick<Job.Info, "status" | "output" | "error" | "notificationID"> & { | 58 | 57 | recovery: Extract<Job.Recovery, { kind: "subagent" }> | 59 | | - resume?: boolean | 60 | 58 | }, | 61 | 59 | ) { | 62 | 60 | if (input.status === "running") return | @@ -70,7 +68,6 @@ export const deliver = Effect.fnUntraced(function* <E>( | 70 | 68 | yield* sessions.synthetic({ | 71 | 69 | ...(input.notificationID ? { id: input.notificationID } : {}), | 72 | 70 | sessionID: recovery.parentSessionID, | 73 | | - ...(input.resume === false ? { resume: false } : {}), | 74 | 71 | description: recovery.description, | 75 | 72 | text: `<subagent sessionID="${recovery.childSessionID}" state="${input.status}" description="${recovery.description}">\n${body}\n</subagent>`, | 76 | 73 | metadata: { source: "subagent", childID: recovery.childSessionID, agent: recovery.agent, state: input.status }, | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/session/subagent-job.ts +27-25Lines changed: 27 additions & 25 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,6 +14,32 @@ export interface Interface { | 14 | 14 |
| 15 | 15 | export class Service extends Context.Service<Service, Interface>()("@opencode/SubagentJob") {} | 16 | 16 |
| | 17 | +export function start( | | 18 | + jobs: Job.Interface, | | 19 | + execution: SessionExecution.Interface, | | 20 | + recovery: Recovery, | | 21 | + notificationID?: Job.Background["notificationID"], | | 22 | +) { | | 23 | + const id = recovery.childSessionID | | 24 | + return jobs.start({ | | 25 | + id, | | 26 | + type: "subagent", | | 27 | + title: recovery.description, | | 28 | + metadata: notificationID === undefined ? {} : undefined, | | 29 | + recovery, | | 30 | + notificationID, | | 31 | + background: true, | | 32 | + run: execution.resume(id).pipe( | | 33 | + // Only an explicit caller cancel releases the child's claim. A server shutdown | | 34 | + // interrupts this job but must leave the child resumable on the next start. | | 35 | + Effect.onInterrupt(() => | | 36 | + jobs.isCancelled(id).pipe(Effect.flatMap((cancelled) => (cancelled ? execution.interrupt(id) : Effect.void))), | | 37 | + ), | | 38 | + Effect.as(""), | | 39 | + ), | | 40 | + }) | | 41 | +} | | 42 | + | 17 | 43 | const make = Effect.gen(function* () { | 18 | 44 | const execution = yield* SessionExecution.Service | 19 | 45 | const jobs = yield* Job.Service | @@ -22,31 +48,7 @@ const make = Effect.gen(function* () { | 22 | 48 | const context = yield* Effect.context<never>() | 23 | 49 |
| 24 | 50 | return Service.of({ | 25 | | - start: (recovery) => | 26 | | - jobs | 27 | | - .start({ | 28 | | - id: recovery.childSessionID, | 29 | | - type: "subagent", | 30 | | - title: recovery.description, | 31 | | - metadata: {}, | 32 | | - recovery, | 33 | | - background: true, | 34 | | - run: execution.resume(recovery.childSessionID).pipe( | 35 | | - // Only an explicit caller cancel releases the child's claim. A server shutdown | 36 | | - // interrupts this job but must leave the child resumable on the next start. | 37 | | - Effect.onInterrupt(() => | 38 | | - jobs | 39 | | - .isCancelled(recovery.childSessionID) | 40 | | - .pipe( | 41 | | - Effect.flatMap((cancelled) => | 42 | | - cancelled ? execution.interrupt(recovery.childSessionID) : Effect.void, | 43 | | - ), | 44 | | - ), | 45 | | - ), | 46 | | - Effect.as(""), | 47 | | - ), | 48 | | - }) | 49 | | - .pipe(Effect.setContext(context)), | | 51 | + start: (recovery) => start(jobs, execution, recovery).pipe(Effect.setContext(context)), | 50 | 52 | }) | 51 | 53 | }) | 52 | 54 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/tool/plugin/image-generate.ts +2-4Lines changed: 2 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -345,9 +345,9 @@ export const Plugin = { | 345 | 345 | title: input.prompt, | 346 | 346 | metadata: { sessionID: context.sessionID, path: stem, model: ref }, | 347 | 347 | recovery: { kind: "image", sessionID: context.sessionID, path: stem, model: ref }, | | 348 | + background: true, | 348 | 349 | run, | 349 | 350 | }) | 350 | | - yield* jobs.background(id) | 351 | 351 | yield* notifyWhenDone({ sessionID: context.sessionID, id, notificationID, file: stem }) | 352 | 352 | return { | 353 | 353 | output: { id, path: stem, model: ref }, | @@ -359,9 +359,7 @@ export const Plugin = { | 359 | 359 | ].join("\n"), | 360 | 360 | metadata: { path: stem, model: ref, jobID: id }, | 361 | 361 | } | 362 | | - }).pipe( | 363 | | - Effect.mapError(toolFailure("Unable to generate image")), | 364 | | - ), | | 362 | + }).pipe(Effect.mapError(toolFailure("Unable to generate image"))), | 365 | 363 | }) | 366 | 364 | }) | 367 | 365 | .pipe(Effect.orDie) | |
Collapse file Copy file name to clipboardExpand all lines: packages/core/src/tool/plugin/shell.ts +5-10Lines changed: 5 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -122,23 +122,20 @@ const backgroundResult = (info: ShellResult.Result["info"], timeout?: number) => | 122 | 122 |
| 123 | 123 | // Tells the session how a background command ended, once its job settles. | 124 | 124 | const notify = Effect.fnUntraced(function* ( | 125 | | - sessions: Session.Interface, | | 125 | + sessions: Pick<Session.Interface, "synthetic">, | 126 | 126 | jobs: Job.Interface, | 127 | 127 | input: { | 128 | 128 | readonly sessionID: SessionSchema.ID | 129 | 129 | readonly id: string | 130 | 130 | readonly shellID: string | 131 | 131 | readonly command: string | 132 | 132 | readonly settled: Deferred.Deferred<Output> | 133 | | - // Read at delivery; `false` admits the notice without waking the session. | 134 | | - readonly resume?: () => false | undefined | 135 | 133 | }, | 136 | 134 | ) { | 137 | 135 | const info = (yield* jobs.wait({ id: input.id })).info | 138 | 136 | if (!info || info.status === "running") return | 139 | 137 | const output = info.status === "completed" ? yield* Deferred.await(input.settled) : undefined | 140 | 138 | const text = output ? (info.output ?? "") : info.status === "error" ? (info.error ?? "Command failed") : "Cancelled" | 141 | | - const resume = input.resume?.() | 142 | 139 | // A session deleted while its command ran has no one left to tell. | 143 | 140 | yield* sessions | 144 | 141 | .synthetic({ | @@ -153,7 +150,6 @@ const notify = Effect.fnUntraced(function* ( | 153 | 150 | text, | 154 | 151 | output, | 155 | 152 | }), | 156 | | - ...(resume === false ? { resume } : {}), | 157 | 153 | }) | 158 | 154 | .pipe(Effect.catchTag("Session.NotFoundError", () => Effect.void)) | 159 | 155 | if (info.notificationID) yield* jobs.completeBackground(info.notificationID) | @@ -166,6 +162,7 @@ const startJob = Effect.fnUntraced(function* ( | 166 | 162 | input: { | 167 | 163 | readonly sessionID: SessionSchema.ID | 168 | 164 | readonly info: ShellSchema.Info | | 165 | + readonly background?: boolean | 169 | 166 | readonly notificationID?: SessionMessage.ID | 170 | 167 | readonly timeout?: () => number | 171 | 168 | }, | @@ -185,6 +182,7 @@ const startJob = Effect.fnUntraced(function* ( | 185 | 182 | command: info.command, | 186 | 183 | }, | 187 | 184 | ...(input.notificationID ? { notificationID: input.notificationID } : {}), | | 185 | + background: input.background, | 188 | 186 | run: Effect.gen(function* () { | 189 | 187 | const result = yield* shell.result(info) | 190 | 188 | if (!result.capture) return yield* new Shell.NotFoundError({ id: info.id }) | @@ -225,22 +223,19 @@ export const backgroundToolResult = (info: ShellSchema.Info) => { | 225 | 223 | export const reattach = Effect.fnUntraced(function* (input: { | 226 | 224 | readonly shell: Shell.Interface | 227 | 225 | readonly jobs: Job.Interface | 228 | | - readonly sessions: Session.Interface | | 226 | + readonly sessions: Pick<Session.Interface, "synthetic"> | 229 | 227 | readonly sessionID: SessionSchema.ID | 230 | 228 | readonly info: ShellSchema.Info | 231 | 229 | // The job's existing durable row, if the previous server had backgrounded it. | 232 | 230 | readonly notificationID?: SessionMessage.ID | 233 | | - readonly resume?: () => false | undefined | 234 | 231 | }) { | 235 | | - const { job, settled } = yield* startJob(input.jobs, input.shell, input) | 236 | | - yield* input.jobs.background(job.id) | | 232 | + const { job, settled } = yield* startJob(input.jobs, input.shell, { ...input, background: true }) | 237 | 233 | const notifying = notify(input.sessions, input.jobs, { | 238 | 234 | sessionID: input.sessionID, | 239 | 235 | id: job.id, | 240 | 236 | shellID: input.info.id, | 241 | 237 | command: input.info.command, | 242 | 238 | settled, | 243 | | - resume: input.resume, | 244 | 239 | }) | 245 | 240 | const current = yield* input.shell.get(input.info.id).pipe(Effect.option) | 246 | 241 | if (Option.isSome(current) && current.value.status !== "running") | |
|