Skip to content

[fix] Preserve agent drafts during version restores - #6564

Merged
mmabrouk merged 1 commit into
release/v0.114.8from
fix/release-v0.114.8-revert-safety
Sep 5, 2026
Merged

[fix] Preserve agent drafts during version restores#6564
mmabrouk merged 1 commit into
release/v0.114.8from
fix/release-v0.114.8-revert-safety

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Sep 5, 2026

Copy link
Copy Markdown
Member

Context

Reverting an agent version while auto-save was busy could replace the active draft and then roll it back, while a deferred save still held the revert message. A rejected revert could also erase edits made while its request was pending. These paths are new with the version-history feature in release v0.114.8.

Changes

Reject busy reverts before staging configuration and prevent deferred flushes from keeping a revert message. After a failed request, restore the prior draft only when the user has not edited it in the meantime.

Include schemas when deciding whether a historical version differs from the latest, and explicitly clear schemas when the selected version has none. The failure message now asks the user to retry after saving finishes instead of asserting that the server rejected the commit.

Tests

248 targeted tests passed across run-request assembly, auto-save/revert, revision ordering, build-kit persistence, configuration diffs and sidebar ordering. Four concurrency regression cases failed before the relevant guards and passed afterward. Scoped frontend lint, formatting and shared UI TypeScript checks passed. Independent code review found no introduced correctness issue.

Live desktop/mobile validation and the session continuity smoke are outstanding: the release PR preview currently returns Application not found, and the available stages run other versions. No live sandbox validation is claimed.

What to QA

  • Revert while a save is in flight or just after an agent self-commit. Existing edits survive; retry after saving creates exactly one historical restore.
  • Edit configuration while a revert request is pending, then reject that request. The newer edit remains available.
  • Restore a version with different schemas but identical parameters, and one with no schemas. Verify the committed payload and the next agent run use the restored configuration.
  • Repeat the version-history flow on desktop and /m.

Prepared by the AI agent for release PR #6526. This PR does not change the runner, Daytona, sandbox lifecycle or chat transport.

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agenta-documentation Ready Ready Preview Sep 5, 2026 6:59am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mmabrouk
mmabrouk marked this pull request as ready for review September 5, 2026 07:02
@mmabrouk
mmabrouk merged commit e7faec8 into release/v0.114.8 Sep 5, 2026
30 checks passed
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-pr-6564.up.railway.app/w
Project agenta-oss-clone-spike
Image tag pr-6564-60710e5
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-09-05T07:15:47.486Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant