[codex] teach orchestrator status command guidance#2227
Open
cneuralnetwork wants to merge 2 commits into
Open
Conversation
Vaibhaav-Tiwari
approved these changes
Jun 29, 2026
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.

Summary
Teach orchestrator sessions the existing worker status commands instead of leaving them to guess. The standing orchestrator prompt now points to
ao session ls,ao session get <worker-session-id>, andao --helpas the fallback before inventing commands.Why
The prompt previously listed
ao spawnandao send, then told the orchestrator to track worker progress without naming the real inspection commands. That made orchestrators try nonexistent commands such asao listorao status --sessionbefore eventually discovering help.Changes
orchestratorPrompt.TestSpawnOrchestrator_UsesCoordinatorPromptto assert the status and help hints are present in the orchestrator system prompt.ao stoppolls for shutdown, matching the productionao startbehavior.Testing
env GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath go test ./internal/session_managerenv GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath go test -race ./internal/session_managerenv GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath SHELL=/bin/bash go test -tags e2e -run TestE2E_Lifecycle -v ./internal/clienv GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath SHELL=/bin/bash go test -tags e2e -v ./internal/clienv GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath SHELL=/bin/bash go test ./...env GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath SHELL=/bin/bash npm run lintenv GOTOOLCHAIN=auto GOSUMDB=sum.golang.org GOCACHE=/tmp/ao-go-cache GOPATH=/tmp/ao-gopath SHELL=/bin/bash go test -race ./...Fixes #2197