You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve stale Amber Session check runs stuck in_progress (#1255)
<!-- acp:session_id=session-44c6d156-6e05-4dd0-85c2-532a323684aa
source=#1253 last_action=2026-04-10T14:30:31Z retry_count=1 -->
## Summary
- **Root cause**: The `batch-pr-fixer` job created `in_progress` check
runs when dispatching sessions but never updated them to `completed`
when the session finished. Healthy PRs were skipped entirely without
resolving their stale checks. Additionally, the `handle-comment` job
always created new check runs instead of updating existing ones.
- Adds `update_check_run`, `resolve_stale_checks`, and
`get_existing_check_run_id` functions to the batch Python script
- Resolves stale `in_progress` checks for healthy/skipped PRs on each
batch cycle
- Updates existing in_progress checks instead of creating duplicates
(both handle-comment and batch jobs)
- Polls pending sessions after dispatch (up to 30 min) and updates
checks on completion
- In the `handle-comment` job, finds and updates existing `in_progress`
checks via PATCH instead of creating new ones via POST
## Test plan
- [ ] Trigger the batch job via `workflow_dispatch` and verify stale
checks on healthy PRs are completed
- [ ] Comment `@ambient-code` on a PR and verify the existing
in_progress check is updated (not duplicated)
- [ ] Verify a new session dispatched by the batch job has its check
updated to success/failure after completion
Closes#1253
---
🤖 [Ambient
Session](https://ambient-code.apps.rosa.vteam-uat.0ksl.p3.openshiftapps.com/projects/ambient-platform-and-workflow-feedback-loop-running/sessions/session-44c6d156-6e05-4dd0-85c2-532a323684aa)
Co-authored-by: Ambient Code Bot <bot@ambient-code.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
0 commit comments