backport: upstream #2399 — export AO_RUN_FILE to spawned sessions#30
Merged
Merged
Conversation
… finds the spawning daemon Sessions inherited AO_DATA_DIR but not AO_RUN_FILE; with a non-default state location, every 'ao hooks' callback fell back to ~/.ao/running.json and failed (all sessions no_signal, permission dialogs undetected, observed 2026-07-04). Mirrors SIGNAL_REPORT fix proposal #2.
4 tasks
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
Backports upstream AgentWrapper#2399 as the canonical change.
This threads the daemon's resolved
AO_RUN_FILEpath into spawned session environments so workspace hook callbacks resolve the same daemon run-file instead of falling back to the default~/.ao/running.json.Closes #13.
Verification
cd backend && env -u AO_PROJECT_ID -u AO_SESSION_ID go build ./...cd backend && env -u AO_PROJECT_ID -u AO_SESSION_ID go vet ./...cd backend && env -u AO_PROJECT_ID -u AO_SESSION_ID go test ./...timeout 420s codex-fugu exec review --base origin/main --dangerously-bypass-approvals-and-sandboxParking
PARKED merge-ready for human review. This PR touches sensitive paths:
backend/internal/daemon/lifecycle_wiring.gobackend/internal/session_manager/manager.gobackend/internal/session_manager/provision_test.goPer repo policy and issue #13, autonomous merge is forbidden for these paths.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.