Skip to main content

What's new

Submit once: a failing check goes back to the agent, and the merge follows

Two settings from Agent Instructions in 1904, both switched on: Watch pull requests after submitting, and Merge after fixing failing checks, which says the agent fixes failing repository checks, 1904 pushes the fix and also merges once the checks pass, following the app's approval rules.

Somebody has to watch a pull request between Submit and merged. The checks take ten minutes, one of them fails on a test or a lint rule, and whoever pressed the button is in a meeting by then. So the change waits, finished and unmerged, until that person comes back to read a log. In the Agents dashboard, Submit now carries a task through that stretch by itself.

When a check fails after you submit

If the repository's own checks fail on the pull request, the submission no longer ends there. 1904 sends the failed checks to the task's agent, with the failing step of the job log for GitHub Actions jobs, and tells you so: Repository checks failed on PR #42, so your agent is fixing them. 1904 pushes the fix, waits for the checks and merges the pull request when they pass. You can close the review at that point. When the agent's turn ends, 1904 commits its change, pushes it to the pull request and watches the checks run again. Once they pass it merges, and you get a notification that says Pull request fixed and merged. The same happens when you press Merge PR on a pull request whose checks have gone red. A check that failed because a runner shut down or timed out is run again first, since no commit would fix that.

Where it stops and asks you

The merge follows the app's approval rules. If the app holds agent changes for a person to approve, 1904 asks for that approval again, because the content changed after the fix. If the agent looks at the failure and changes nothing, which is what should happen when the cause is a missing repository secret or a setting, you get Failing checks need you with what the agent said. A fix that leaves conflicts, or one that contains a secret, isn't pushed, and you're told. If you'd rather press merge yourself, open Agent Instructions on a task in that app and turn off Merge after fixing failing checks. The agent still fixes the checks and 1904 still pushes the fix, and then you're told the pull request is ready. All of this covers pull requests 1904 opened for a task.

Lint errors go to the agent too

1904's Lint check never holds a merge, so its findings were easy to leave behind. Errors on the lines a task changed now go to the agent when its turn ends, and once more when you submit, where the review says Your agent is fixing lint errors. Submission continues automatically when it finishes. In the Checks tab, the Lint row shows a plain summary, the first error and Ask agent to fix. The agent can leave a line alone when a rule is wrong for it, as long as it says why.

A submission that stops says why

A busy repository used to be able to end a submission part-way, with the pull request open and nothing to explain it. Steps that are refused because the repository is busy are now tried again for up to two minutes. If a submission still stops, the review keeps a note, such as Your last submission stopped while waiting to merge, with the reason, a reminder that everything committed and pushed is saved, and what to press to continue. If main moves while you're submitting and the merge hits a conflict, the task updates again and the agent resolves it. You're asked only when the agent left a decision for you or its resolution dropped something.

Two smaller things

A change with too many files for the review window used to fail the review. Now the review closes and the task's conversation opens with a note and a message for the agent already written in the message box, ready for you to send or edit. And the pull request number on a task's tile is a link: click it to open the pull request, or on a phone tap it and choose Open pull request.

← All posts

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.