Skip to main content

What's new

Agent tasks that haven't committed yet now keep up with main

The header of a task called Explore pricing page ideas in 1904 with a 19 behind main chip and an Ask agent to update button. The chip's explanation is open: main has 19 new commits this task doesn't have yet, and uncommitted files here and the new work on main change the same lines in docs/pricing-notes.md.

Some of the most useful agent tasks don't commit anything for days. A research task reads through the codebase and keeps notes. A plan gets argued over before any code is written. A spike sits half-finished while you decide whether you want it. Meanwhile other tasks merge, main moves, and the agent in that quiet task is still reasoning about files as they were on the day it started.

Quiet tasks follow main too

1904 already keeps idle task branches up to date with main in the background. That used to leave out any task with uncommitted files, which is nearly every research task, since its notes and plans are exactly that. A task with no commits of its own now catches up and keeps its uncommitted files. 1904 first checks, without touching the task, that those files still apply cleanly on the new main. Only then does it move the task forward and put the files back. If anything clashes, the task is left exactly as it was. A task that has both commits of its own and uncommitted files still waits for its agent, or for Submit.

Up to date when you start typing

Clicking into a task's message box brings that task up to date right then, so the question you're about to ask lands on current code. 1904 also checks your repository for commits pushed from outside it, so a change a teammate pushed from their own machine counts as well.

The agent hears what came in

Moving the files is half of it. An agent that read a module an hour ago will happily describe the old version. On its next turn after an update, the agent is told which commits arrived from main since its last turn ended and which files they changed, so it knows what to read again before it answers.

When a task can't catch up by itself

Sometimes the update isn't safe to do quietly: your uncommitted notes and the new work on main change the same lines, main gained a file at the same path as one of the task's new files, or the task has commits and loose files together. Then the task's header shows a chip such as 19 behind main. Choose it and it says why, naming the files involved. Ask agent to update, beside it, sends the job to the task's agent, after its current turn if it's busy. Submitting brings the task up to date as well, and nothing changes until you do one or the other.

Update from main in the review got a little tidier along the way. For a task with no commits of its own it now moves the task straight onto the new main with its files carried across, with no empty merge commit left for you to finish.

← 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.