Skip to content

fix: enable automatic PR creation for agent:codex labels#4266

Closed
stranske wants to merge 1 commit intomainfrom
fix/workflow-startup-failure
Closed

fix: enable automatic PR creation for agent:codex labels#4266
stranske wants to merge 1 commit intomainfrom
fix/workflow-startup-failure

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Jan 7, 2026

Root Cause

The workflow was using mode: 'invite' without force_mode, causing the reusable workflow to ignore the mode parameter and prevent automatic bootstrap PR creation when issues are labeled with agent:codex.

From the reusable workflow code (line 257-268), when the event is 'issues', the mode is hardcoded to 'invite' unless force_mode is enabled.

Changes

  • Change mode from 'invite' to 'create' in bridge job
  • Add force_mode: true to override issue event defaults

This matches the fix from Workflows repo commit bd48949 (PR stranske/Workflows#606) which resolved the same startup_failure issue in other consumer repos.

Testing

After this fix:

  1. When an issue is labeled with agent:codex, the workflow will automatically create a bootstrap PR
  2. The agent can immediately start working without manual PR creation
  3. Workflow will no longer fail with startup_failure

Fixes #4185

Source: Issue #606

Automated Status Summary

Scope

Summary

Tasks

  • - install pip, setuptools, and wheel before installing project deps in Dockerfile
  • - ensures editable install of [app] extras works during image build

Acceptance criteria

  • - ⚠️ ./scripts/run_streamlit.sh --help (bootstrap cancelled)
  • - ❌ pytest -q (6 failed, 444 passed)

Head SHA: e8d439c
Latest Runs: ❔ in progress — Gate
Required: gate: ❔ in progress

Workflow / Job Result Logs
.github/workflows/dependabot-auto-lock.yml ❌ failure View run
Agents PR Meta ❔ in progress View run
Autofix ❔ in progress View run
Copilot code review ⏳ queued View run
Gate ❔ in progress View run
Health 45 Agents Guard ✅ success View run
PR 11 - Minimal invariant CI ❔ in progress View run
PR 12 - Fund selector Playwright smoke ❔ in progress View run

Root cause: The workflow was using mode: 'invite' without force_mode,
causing the reusable workflow to ignore the mode and prevent automatic
bootstrap PR creation when issues are labeled with agent:codex.

Changes:
- Change mode from 'invite' to 'create' in bridge job
- Add force_mode: true to override issue event defaults

This matches the fix from Workflows repo commit bd48949 (PR #606) which
resolved the same startup_failure issue in other consumer repos.

Fixes #4185
Copilot AI review requested due to automatic review settings January 7, 2026 17:55
@github-actions github-actions bot added the autofix Triggers automated code fixes label Jan 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes automatic bootstrap PR creation for issues labeled with agent:codex by updating the workflow configuration to properly override the default behavior for issue events.

Key Changes

  • Changed the mode parameter from "invite" to "create" in the bridge job
  • Added force_mode: true to override the hardcoded mode behavior for issue events

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2026

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2026-01-07 17:58:49 UTC
Report artifact | autofix-report-pr-4266
Remaining | 0
New | 0
No additional artifacts

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2026

🤖 Keepalive Loop Status

PR #4266 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Disposition skipped (transient)
Gate success
Tasks 0/4 complete
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

@stranske
Copy link
Copy Markdown
Owner Author

stranske commented Jan 7, 2026

Closing this PR as the fix needs to be made in the Workflows repo template instead, which will then sync to all consumer repos.

The correct fix has been submitted here: stranske/Workflows#646

Once that PR is merged and synced, this repository (along with all other consumer repos) will automatically get the fix that enables automatic PR creation when issues are labeled with agent:codex.

Related: #4185

@stranske stranske closed this Jan 7, 2026
@stranske stranske deleted the fix/workflow-startup-failure branch January 9, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix Triggers automated code fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NL-7] Build LangChain NL-to-ConfigPatch Chain

2 participants