Fix unrelated bugs with parallel coding agents.
Recent revisions are kept. Restoring one creates a new revision.