Skip to content

gh-aw v0.61.0 fails when safe-outputs staged mode is enabled (ReferenceError: core is not defined) #21577

Description

@jaroslawgajewski

summary

When staged safe-outputs mode is enabled, workflow execution fails during activation with a JavaScript runtime error inside gh-aw action scripts.

Version

gh-aw: v0.61.0

What fails

Job: activation
Step: Generate agentic run info
Error: ReferenceError: core is not defined
Stack includes:
staged_preview.cjs
generate_aw_info.cjs

Expected behavior

Enabling staged safe-outputs should allow activation to complete and continue normal workflow execution.

Actual behavior

Activation fails before agent execution starts, so the workflow does not proceed to normal run phases.

Minimal reproduction

  • Create any workflow compiled with gh-aw v0.61.0.
  • Configure safe-outputs with staged mode enabled.
  • Trigger the workflow.
  • Observe activation step failure with ReferenceError: core is not defined.

Notes

This appears to be an internal gh-aw runtime bug, not a workflow logic bug.
The failure happens in bundled gh-aw action scripts.
Workaround: disable staged mode.
Impact

Staged safe-outputs is currently unusable in v0.61.0.
Long-running workflows cannot use staged output commits safely.

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions