Skip to content

fix(engine): resume a workflow run through the app that asked - #4413

Merged
LHagfoss merged 1 commit into
mainfrom
fix/engine-workflow-resume-client
Nov 25, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
fix/engine-workflow-resume-client

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

The workflow card's Resume button (_rustcode/workflows/resume) always drove the resumed run through the engine's no-app path, so for a thread below Full access every worker was refused and the run failed. The engine now resumes with the asking connection's orchestration client (AcpClientRequests for the session, which still falls back to the engine's own answer when no app hosts the session), at the client's orchestration version.

  • workflow::resume_run takes the client and version; resume_run_in is the store-level part used by tests.
  • acp/extension_dispatch.rs passes the asking client's host when it advertised orchestration v2+.
  • docs/workflows.md says who drives a resumed run.

Changelog

Resuming a workflow run from the app now starts its workers with approval cards instead of failing for threads below Full access.

Testing

cargo fmt --check, scripts/check-comments.py, scripts/check-rust-size.py locally; new unit tests in workflow.rs run in CI.

Closes #4380

@github-actions github-actions Bot added the fix A bug fix label Nov 25, 2026
@LHagfoss
LHagfoss merged commit 87edb80 into main Nov 25, 2026
7 checks passed
@LHagfoss
LHagfoss deleted the fix/engine-workflow-resume-client branch November 25, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(engine): resume a workflow run through the app that asked

2 participants