🤖 fix: prefer foreground workflow runs#3462
Conversation
|
@codex review |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b9a827d9e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9b9a827 to
773b3ab
Compare
|
Addressed Codex feedback:
|
|
@codex review Please take another look. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 773b3ab171
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Update workflow_run and workflow-authoring guidance to recommend foreground execution by default, reserving background mode for parallel work that can proceed while the workflow runs. --- _Generated with `mux` • Model: `openai:gpt-5.5` • Thinking: `xhigh` • Cost: `$2.89`_ <!-- mux-attribution: model=openai:gpt-5.5 thinking=xhigh costs=2.89 -->
773b3ab to
8b7a3d0
Compare
|
Addressed Codex feedback:
|
|
@codex review Please take another look. |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Update workflow tooling guidance so agents default to foreground
workflow_runcalls and reserve background workflow runs for cases where parallel or independent work can proceed.Background
Foreground workflow runs return the completed result directly. Recommending foreground by default avoids an unnecessary
task_awaitround-trip when the agent has no useful work to do while the workflow runs.Implementation
workflow_run.run_in_background.workflow_runtool description andtask_awaitwarning text.Validation
make static-checkbun test src/common/utils/tools/toolDefinitions.test.tsmake typecheckRisks
Low. This changes tool and skill guidance text only; no workflow execution behavior changes.
Generated with
mux• Model:openai:gpt-5.5• Thinking:xhigh• Cost:$2.89