Export temporary ID map from safe output handler manager#12450
Merged
Export temporary ID map from safe output handler manager#12450
Conversation
Export temporary_id_map as output from safe_output_handler_manager so downstream steps (like assign_to_agent) can resolve temporary IDs to real issue numbers. Also export processed_count for consistency with project handler manager. Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
mnkiefer
approved these changes
Jan 29, 2026
Contributor
|
@copilot recompile workflows |
Set temporary_id_map and processed_count outputs to empty/zero values when returning early (no agent output or no handlers). This ensures downstream steps always have defined values to work with. Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix safe output errors for newly created issue assignment
Export temporary ID map from safe output handler manager
Jan 29, 2026
mnkiefer
approved these changes
Jan 29, 2026
Contributor
Author
Workflows recompiled successfully. No changes to |
mnkiefer
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
assign_to_agentstep fails to resolve temporary IDs (e.g.,aw_abc123def456) becausesafe_output_handler_manager.cjsgenerates the mappings internally but never exports them as step outputs. TheGH_AW_TEMPORARY_ID_MAPenvironment variable remains empty, causing GraphQL queries to fail with "Could not resolve to an Issue with the number of X".Changes
core.setOutput("temporary_id_map", ...)after message processing to pass mappings to downstream stepscore.setOutput("processed_count", ...)for consistency with project handler managerThe workflow now successfully passes temporary ID mappings:
create_issue→safe_output_handler_manager(creates mapping) →assign_to_agent(resolves mapping).Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.