Skip to content

Commit ca83f61

Browse files
committed
🧹 Restore the Git-host boundary's authoritative answer path (#297)
A mutation run proving GH10 discriminates a contextual return was captured by the preceding commit. The boundary reads only the answer its private terminal accepted; a middleware return value is evidence of nothing.
1 parent 07682c3 commit ca83f61

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎packages/workflow/src/git-host/effect.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,13 @@ function* gitHostPhase<T>(
404404
request: details.request,
405405
});
406406
const terminal = invocationTerminal(routing, details, subject, parse, settlement);
407-
let returned: unknown;
408407
// Same stable name, so the shared middleware chain applies; own descriptor,
409408
// so the chain ends in this invocation's terminal rather than in the public
410409
// refusing default.
411410
const invocation = createApi<GitHostApi>(GIT_HOST_API, { route: terminal.route });
412411

413412
try {
414-
returned = yield* invocation.operations.route(routing);
413+
yield* invocation.operations.route(routing);
415414
} catch (error) {
416415
// An answer already accepted is what this phase produced. A provider that
417416
// threw afterwards, or middleware that threw around it, is reporting on
@@ -423,10 +422,7 @@ function* gitHostPhase<T>(
423422
terminal.close();
424423
}
425424

426-
const answer = terminal.accepted() ??
427-
(returned === undefined
428-
? undefined
429-
: closedAnswer(details.phase, subject, parse, returned, settlement));
425+
const answer = terminal.accepted();
430426
if (answer === undefined) {
431427
throw author(
432428
settlement,

0 commit comments

Comments
 (0)