Repository navigation
fix(engine): resume a workflow run through the app that asked - #4413
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (AcpClientRequestsfor 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_runtakes the client and version;resume_run_inis the store-level part used by tests.acp/extension_dispatch.rspasses the asking client's host when it advertised orchestration v2+.docs/workflows.mdsays 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.pylocally; new unit tests inworkflow.rsrun in CI.Closes #4380