Skip to content

backport: upstream #2399 — export AO_RUN_FILE to spawned sessions#30

Merged
nhod merged 1 commit into
mainfrom
ao/agent-orchestrator-4/issue-13-backport-2399
Jul 6, 2026
Merged

backport: upstream #2399 — export AO_RUN_FILE to spawned sessions#30
nhod merged 1 commit into
mainfrom
ao/agent-orchestrator-4/issue-13-backport-2399

Conversation

@polymath-orchestrator

@polymath-orchestrator polymath-orchestrator commented Jul 6, 2026

Copy link
Copy Markdown

Summary

Backports upstream AgentWrapper#2399 as the canonical change.

This threads the daemon's resolved AO_RUN_FILE path 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-sandbox

Parking

PARKED merge-ready for human review. This PR touches sensitive paths:

  • backend/internal/daemon/lifecycle_wiring.go
  • backend/internal/session_manager/manager.go
  • backend/internal/session_manager/provision_test.go

Per repo policy and issue #13, autonomous merge is forbidden for these paths.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

… 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

backport: upstream #2399 — export AO_RUN_FILE to spawned sessions

3 participants