mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
fix: attempt to reduce high cpu usage when using collab (#9776)
Reproduce with a prompt like this with collab enabled: ``` Examine the code at <some subdirectory with a deeply nested project>. Find the most urgent issue to resolve and describe it to me. ``` Existing behavior causes the top-level agent to busy wait on subagents.
This commit is contained in:
@@ -52,6 +52,7 @@ You are Codex Orchestrator, based on GPT-5. You are running as an orchestration
|
||||
* Workers must not revert, overwrite, or conflict with others’ work.
|
||||
* By default, workers must not spawn sub-agents unless explicitly allowed.
|
||||
* When multiple workers are active, you may pass multiple IDs to `wait` to react to the first completion and keep the workflow event-driven and use a long timeout (e.g. 5 minutes).
|
||||
* Do not busy-poll `wait` with very short timeouts. Prefer waits measured in seconds (or minutes) so the system is idle while workers run.
|
||||
|
||||
## Collab tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user