Conversation
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
8bf499b to
42dd27c
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
This change adds trigger-driven execution controls, execution metadata capture, and optional progress comments for issue/PR workflows in
codex-action, while preserving existingprompt/prompt-filebehavior for unchanged workflows.Problem and User Impact
Before this change, users had limited control over when the action should run from GitHub events, limited structured telemetry from
codex exec, and no built-in progress signaling on issue/PR threads. That made it harder to run Codex only for specific intents (for example mentions/labels/assignees), harder to consume run metadata programmatically, and harder for collaborators to track in-flight action status.Root Cause
The action flow only supported static prompt inputs and did not parse JSON event streams from
codex exec. It also lacked a first-class progress comment lifecycle and event-context trigger detection pipeline to gate downstream steps.Fix
The patch introduces a trigger detection stage (
trigger-phrase,label-trigger,assignee-trigger) that can derive a prompt from event payload context with optional sanitization. It adds JSON event capture (--json) and metadata extraction for session/usage outputs, plus optional step-summary output. It adds start/finish progress comment updates with sticky-comment support and new action inputs/outputs/documentation. The follow-up review fixes are included: finalize progress comments only when a start comment ID exists, pull issue/PR number frompull_request.numberfor PR review-style payloads, and paginate sticky-comment lookup to avoid duplicates on long threads.Validation
I validated the implementation with repository checks:
pnpm testpnpm checkpnpm buildAll commands completed successfully.