Skip to content

[WIP] [GH-123] Fix gh-aw v0.61.0 fails when safe-outputs staged mode is enabled#21597

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-gh-aw-v0-61-0-staged-mode-error
Closed

[WIP] [GH-123] Fix gh-aw v0.61.0 fails when safe-outputs staged mode is enabled#21597
Copilot wants to merge 1 commit intomainfrom
copilot/fix-gh-aw-v0-61-0-staged-mode-error

Conversation

Copy link
Contributor

Copilot AI commented Mar 18, 2026

  • Identify root cause: generate_aw_info step never calls setupGlobals, so global.core is not set; staged_preview.cjs uses core as a global → ReferenceError: core is not defined
  • Add require('./shim.cjs') to setup_globals.cjs module level (as suggested by @pelikhan)
  • Add setupGlobals call before generate_aw_info require in compiler_yaml.go
  • Update aw_info_tmp_test.go to verify setupGlobals is present in the generated step
  • Build, recompile lock files, run tests

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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.

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

2 participants