Skip to content

fix: address review feedback from PR #25977#26422

Merged
asharma53 merged 1 commit into
mainfrom
fix/drain-queue-after-tail-persist
Apr 18, 2026
Merged

fix: address review feedback from PR #25977#26422
asharma53 merged 1 commit into
mainfrom
fix/drain-queue-after-tail-persist

Conversation

@asharma53

@asharma53 asharma53 commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • agent-wake.ts: Move drainQueue() to after tail messages are pushed and persisted, so concurrent sends dequeue against up-to-date history. Uses a drainedInTry flag so the finally block only handles error/early-return paths where no tail was produced.
  • build.sh: Revert default VELLUM_ENVIRONMENT for run and fallback * commands back to local (was changed to dev, which would connect local builds to dev platform instead of localhost).
  • gmail-archive.ts blocklist fix was already landed in fix(gmail): ensure blocklist records on single-message path and scope to scan_id #25979 — no action needed here.

Addresses feedback from #25977.

Test plan

  • agent-wake.test.ts — all 16 tests pass including ordering invariant test

🤖 Generated with Claude Code


Open in Devin Review

Addresses review feedback from #25977:
- Move drainQueue() after tailMessages are pushed/persisted in agent-wake.ts
  so queued user messages are dequeued against up-to-date history
- Revert build.sh default VELLUM_ENVIRONMENT back to local for run/fallback
  commands (was changed to dev, which would connect local builds to dev platform)
- gmail-archive.ts blocklist fix was already landed in #25979, no action needed

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@asharma53 asharma53 self-assigned this Apr 18, 2026
@asharma53 asharma53 merged commit f97ac4a into main Apr 18, 2026
12 checks passed
@asharma53 asharma53 deleted the fix/drain-queue-after-tail-persist branch April 18, 2026 21:14

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant