Skip to content

Copilot CLI exits with code 1 silently when compiled with v0.67.3 (pre-release) #25494

Closed
1 of 1 issue completed

Description

@theletterf

Summary

Workflows compiled with gh-aw v0.67.3 (pre-release) fail silently — the Copilot CLI exits with code 1 after ~5 seconds, producing zero output. The same workflow compiled with v0.67.1 (latest stable) works fine.

Reproduction

  1. Create a minimal workflow:
---
description: Minimal test workflow
engine:
  id: copilot
on:
  workflow_dispatch:
permissions:
  contents: read
tools:
  bash: true
safe-outputs:
  noop:
timeout-minutes: 5
---

Say "Hello from gh-aw!" and then call noop with the message "test successful".
  1. Compile with gh aw v0.67.3: gh aw compile

  2. Push and trigger via workflow_dispatch

  3. The agent job starts, containers come up healthy, but the Copilot CLI exits with code 1 after ~5 seconds with no output

  4. Recompile the same workflow with v0.67.1: works perfectly

Observed behavior (v0.67.3)

  • pre_activation: success
  • activation: success
  • agent: failure — Copilot CLI exits with code 1, zero inference output
  • detect_inference_access_error: false (token is valid)
  • The CLI starts, health checks pass, then immediately exits:
[entrypoint] Unsetting sensitive tokens from parent shell environment...
[entrypoint] Unset COPILOT_GITHUB_TOKEN from /proc/1/environ
[SUCCESS] Containers stopped successfully
[WARN] Command completed with exit code: 1

Expected behavior

The Copilot CLI should run inference and execute the agent prompt, as it does with v0.67.1.

Environment

Additional context

We also observed a possibly related issue: the MCP gateway v0.2.16 (used in v0.67.3 compiled lock files) filters out all tools when tools: ["*"] is set, keeping 0 of N tools. The v0.2.16 release notes say ["*"] should allow all tools, but the wildcard appears to be treated as a literal tool name. This was observed in a separate run: [allowed-tools] Filtered 6 tools from elastic-docs: keeping 0 of 6.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. pelikhan commented on Apr 9, 2026

    @pelikhan
    Collaborator

    /plan open sub issue for the tool filtering issue in the gateway

  2. pelikhan commented on Apr 9, 2026

    @pelikhan
    Collaborator

    @copilot focus on diagnosing the copilot start issue

  3. github-actions commented on Apr 9, 2026

    @github-actions
    Contributor

    ✅ Plan Command completed successfully!

  4. locked and limited conversation to collaborators on Apr 9, 2026
  5. unlocked this conversation on Apr 9, 2026
  6. Calinator444 commented on Apr 10, 2026

    @Calinator444

    This seems to be happening on v0.67.4 as well. I recompiled my workflows and now they're failing.
    Image

  7. locked and limited conversation to collaborators on Apr 10, 2026
  8. unlocked this conversation on Apr 10, 2026
  9. theletterf commented on Apr 10, 2026

    @theletterf
    Author

    I confirm this keeps happening with 0.67.4. Did you test it?

  10. locked and limited conversation to collaborators on Apr 10, 2026
  11. unlocked this conversation on Apr 10, 2026
  12. pelikhan commented on Apr 10, 2026

    @pelikhan
    Collaborator

    It seems that the CLI added a check on /models on startup that is causing the issue.

    #25593

  13. pelikhan commented on Apr 10, 2026

    @pelikhan
    Collaborator

    Pinning copilot to v1.0.20 until we have a better fix

  14. pelikhan commented on Apr 11, 2026

    @pelikhan
    Collaborator

    Please try the latest release, things should be back to normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions