Skip to content

Verify agent startup resume checkpoints#4350

Merged
asim merged 1 commit into
masterfrom
codex/increment-4349
Jul 8, 2026
Merged

Verify agent startup resume checkpoints#4350
asim merged 1 commit into
masterfrom
codex/increment-4349

Conversation

@asim

@asim asim commented Jul 8, 2026

Copy link
Copy Markdown
Member

Adds a focused startup-recovery regression for durable agent checkpoints. The test recreates an agent on the same checkpoint store, drains pending runs with ResumePending, and asserts the already-completed tool side effect is not replayed while the run reaches a done checkpoint.

Closes #4341
Closes #4349

Testing:

  • go build ./...
  • go test ./agent -run TestResumePendingAfterFreshAgentRestartDoesNotReplayCompletedTool -count=1 -timeout=60s
  • go test ./agent
  • go test ./... (fails in this environment: atlascloud stream conformance attempts a real request; loopback gRPC tests are blocked by the sandbox envoy)
  • golangci-lint run ./...

Copilot AI review requested due to automatic review settings July 8, 2026 12:20
@asim asim added the codex label Jul 8, 2026
@asim asim merged commit 415e95c into master Jul 8, 2026
10 checks passed
@asim asim deleted the codex/increment-4349 branch July 8, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test to validate durable agent checkpoint recovery on service startup: recreating an agent against the same checkpoint store and draining work via ResumePending should complete the run without replaying already-completed tool side effects.

Changes:

  • Add TestResumePendingAfterFreshAgentRestartDoesNotReplayCompletedTool, which simulates a process stop after a tool call is checkpointed and verifies a fresh agent instance can resume to done.
  • Assert ResumePending drains the backlog (no remaining Pending runs) and produces a done run summary without re-executing the tool handler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loop: build increment #138 Add durable checkpoint/resume for agent runs

3 participants