Skip to content

fix(cli): exit Graph runs after root provider failure - #1605

Merged
likun666661 merged 1 commit into
mainfrom
agent/1604-graph-root-failure
Jul 29, 2026
Merged

likun666661 merged 1 commit into
mainfrom
agent/1604-graph-root-failure

Conversation

@likun666661

Copy link
Copy Markdown
Member

Closes #1604

What changed

  • skip Graph completion waiting when the root invocation is already failed or missing, so a pre-schedule provider failure exits immediately with the durable invocation failure
  • race Graph completion against the existing SIGINT/timeout stop path, allowing context teardown instead of trapping the CLI in the wait
  • serialize structured non-Error provider failures before secret redaction so diagnostics retain safe status/code/message evidence instead of [object Object]
  • cover failed-root, SIGINT-during-Graph-wait, and structured-error redaction regressions

Validation

  • targeted CLI and RunTrace tests: 31 passed
  • CLI test suite: 658 passed
  • full workspace typecheck: passed
  • Biome check on all changed files: passed
  • Runtime test suite: 2807 passed, 9 skipped, 1 unrelated environment-sensitive failure in builtin-tools.test.js (the /usr/local sandbox executable-root assertion); that test and implementation are unchanged by this PR

@likun666661
likun666661 marked this pull request as ready for review July 29, 2026 11:26
@likun666661
likun666661 merged commit c0c81ec into main Jul 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maka run --graph hangs after root provider failure before graph creation

1 participant