Skip to content

feat: add trigger-driven runs, progress comments, and JSON metadata#7

Merged
activadee merged 1 commit intomainfrom
codex/trigger-progress-review-flow
Feb 25, 2026
Merged

feat: add trigger-driven runs, progress comments, and JSON metadata#7
activadee merged 1 commit intomainfrom
codex/trigger-progress-review-flow

Conversation

@activadee
Copy link
Owner

@activadee activadee commented Feb 25, 2026

Summary

This change adds trigger-driven execution controls, execution metadata capture, and optional progress comments for issue/PR workflows in codex-action, while preserving existing prompt / prompt-file behavior 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 from pull_request.number for PR review-style payloads, and paginate sticky-comment lookup to avoid duplicates on long threads.

Validation

I validated the implementation with repository checks:

  • pnpm test
  • pnpm check
  • pnpm build

All commands completed successfully.

@activadee activadee changed the title add trigger-driven execution and progress tracking feat: add trigger-driven runs, progress comments, and JSON metadata Feb 25, 2026
@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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.

@activadee activadee force-pushed the codex/trigger-progress-review-flow branch from 8bf499b to 42dd27c Compare February 25, 2026 17:29
@activadee activadee marked this pull request as ready for review February 25, 2026 17:33
@activadee activadee merged commit ca5a8ac into main Feb 25, 2026
2 of 3 checks passed
@activadee activadee deleted the codex/trigger-progress-review-flow branch February 25, 2026 17:43
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant