Skip to content

fix(action): define COMMENT_ID before referencing it in the progress-comment step - #59

Merged
Mearman merged 1 commit into
mainfrom
fix/progress-comment-id-unbound-variable
Sep 11, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/progress-comment-id-unbound-variable

Conversation

@Mearman

@Mearman Mearman commented Sep 11, 2026

Copy link
Copy Markdown
Member

The "Post progress comment" step's closing diagnostic line reads $COMMENT_ID, but the step never assigns that variable; it only ever built the value inline inside the comment_id=... GITHUB_OUTPUT line. Under set -u this fails with "COMMENT_ID: unbound variable" at the very end of the step, on every run of every mode.

Introduced in e93cb45, which replaced the old COMMENT_ID=... assignment with the inline comment_id=$(jq ...) output write but dropped the variable itself. Silent because the step has continue-on-error: true, so the crash never fails the job -- caught while triaging an unrelated PR's own claude-review dogfooding check.

Fix: assign COMMENT_ID once from the API response, reuse it for both the output and the diagnostic echo.

…comment step

Under set -u, the "Post progress comment" step's own closing diagnostic
line read an unset COMMENT_ID: the step only ever built comment_id inline
inside the GITHUB_OUTPUT echo, never assigning it to a local variable the
later echo could read. This crashed the step on every run of every mode
(the step's own continue-on-error kept the job green, so the crash was
silent). Assign COMMENT_ID from the API response once, then reuse it for
both the output and the diagnostic line.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-11T09:51:59.659164Z 3cf02b1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown

❌ Claude's run did not complete (outcome: failure). View job run

@github-actions

Copy link
Copy Markdown

🗜️ Headroom context compression

Metric Value
Requests proxied 6
Tokens saved 4050
Aggregate savings 1.1% of all tokens sent
Average per-request compression 1.8%

@Mearman
Mearman merged commit cb438b7 into main Sep 11, 2026
11 of 12 checks passed
@Mearman
Mearman deleted the fix/progress-comment-id-unbound-variable branch September 11, 2026 11:32
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant