Problem
When a run's PR is merged, the status remains pr_open instead of transitioning to done.
Expected Behavior
After a PR is merged:
- The run status should change from
pr_open → done
- The MERGED column should show
merged (not dirty)
Current Behavior
- Status stays at
pr_open
- MERGED column may show
dirty even for merged PRs
Reproduction
- Start a run:
orch run <issue>
- Wait for agent to create PR (status:
pr_open)
- Merge the PR on GitHub
- Run
orch ps - status still shows pr_open
Likely Cause
The daemon's PR merge detection may not be polling correctly, or the state transition logic isn't triggering on merge events.
Problem
When a run's PR is merged, the status remains
pr_openinstead of transitioning todone.Expected Behavior
After a PR is merged:
pr_open→donemerged(notdirty)Current Behavior
pr_opendirtyeven for merged PRsReproduction
orch run <issue>pr_open)orch ps- status still showspr_openLikely Cause
The daemon's PR merge detection may not be polling correctly, or the state transition logic isn't triggering on merge events.