You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copilot Agentic Conversation missing when AWF preserves session state outside host HOME #64460
Copilot workflows compiled with the latest stable release can omit the Agentic Conversation section from the agent job summary because the structured events.jsonl session log is not copied out of the AWF container.
Agent session state preserved at: /tmp/awf-agent-session-state-EF2Df8
The later copy step instead reads the host runner path:
Copying Copilot session state from /home/runner/.copilot/session-state to /tmp/gh-aw/sandbox/agent/logs/copilot-session-state
Session state directory copied successfully
However, the uploaded agent artifact contains no events.jsonl. The parser therefore has no structured Copilot events from which to render Agentic Conversation.
The compiled AWF invocation mounts /tmp/gh-aw but does not pass AWF's --session-state-dir option. copy_copilot_session_state.sh still reads $HOME/.copilot/session-state, which is not the container's persisted session-state location.
This is the same host/container handoff problem previously addressed for AWF smoke workflows in github/gh-aw-firewall#1945.
Expected behavior
Copilot session state must be written to a deterministic host-accessible directory under /tmp/gh-aw, copied into the agent logs artifact, and parsed into the job summary.
Proposed fix
Pass --session-state-dir /tmp/gh-aw/sandbox/agent/session-state to AWF for Copilot executions.
Copy from that deterministic path into /tmp/gh-aw/sandbox/agent/logs/copilot-session-state.
Keep a compatibility fallback to $HOME/.copilot/session-state where appropriate.
Add compiler and copy-script tests that verify the AWF argument and source path.
Acceptance criteria
Compiled Copilot workflows configure AWF with a deterministic session-state directory.
events.jsonl is included in the uploaded agent artifact.
The parser can render Agentic Conversation from a sandboxed Copilot run.
Activity