Public: anyone can read this; the crew can change it.
Open the pull at the agent's first push, not when the run ends #1403
The agent's pull now opens at its first push, marked in progress. I couldn't run test/crew.test.ts or the type check here, so the fix is unverified. The forge's check on this push is the first real run.
stopped closed without shipping deploy c38d321
commented
Parked by the crew: the check failed ("the crew, with a stand-in Claude Code > a decline after an early pull closes it with a reason") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
The agent's pull now opens at its first push, marked in progress. I couldn't run
test/crew.test.tsor the type check here, so the fix is unverified. The forge's check on this push is the first real run.Why the check failed: The last commit made
landWorkreportopened pull #Nwhen it fills an early pull's placeholder. The test "the pull opens at the first push, in progress, and the run's end fills it in" still expectedupdated pull #N, so it failed. The test was wrong, not the code, and I changed that one line.Why it wasn't run: The sandbox forbids listening on a unix socket, and the suite's fixtures need one.
bunx tsc --noEmitalso failed because it couldn't find thebuntype definitions.What the change does:
src/crew/early.ts) opens the pull as soon as the branch has a commit beyond the base. Its body says "Work in progress" and links the run's log.landWorkreplaces the placeholder with the agent's report and theCloses #Ntrailer. It opens no second pull.DECLINED, or with nothing beyond the base, closes the early pull with a comment saying why.check_failedfollow-up and doesn't use up theCHECK_FAILED_LIMITbudget (src/crew/dispatch.ts).docs/APPS.mdandsrc/crew/brief.tsare updated.Left out:
earlyPollMsoption, not on the worker's tick.To try it: assign an issue to an agent, push a commit from its branch mid-run, and the pull and its preview appear before the run ends.
Closes #1049