⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@mmabrouk
Copy link
Member

@mmabrouk mmabrouk commented Jan 22, 2026

Summary

  • Fix commit modal hanging indefinitely when committing from the variant drawer
  • Add bounded 1.5s settle timeout so the modal never waits forever
  • Update variant drawer to navigate to the new revision on commit success

Problem

The commit modal waited for selectedVariantsAtom to include the new revision before closing. This atom is local selection state (stored in localStorage) and only updates when the UI explicitly sets it. When committing from the variant drawer (where the revision may not be in the playground selection), the modal would wait forever.

Solution

  • Only wait for selection update when the committed revision was already selected
  • Add a 1.5 second timeout fallback so the modal always closes
  • Have the variant drawer update its URL to the new revision on success

Research

See docs/design/commit-loading-stall/ for detailed analysis of the root cause and design decisions.

Testing

Deployed and tested on worktree at http://144.76.237.122:8280

  • Commit from playground (selected revision) - closes promptly
  • Commit from variant drawer (non-selected revision) - closes promptly
  • Commit with deploy after commit - works correctly

Closes #3447


Open with Devin

The commit modal could hang indefinitely when committing from the variant
drawer because it waited for selectedVariantsAtom to include the new
revision. That atom is local selection state and does not update when
the committed revision was not already selected.

Changes:
- Add a bounded 1.5s settle timeout so the modal never waits forever
- Only wait for selection update when the committed revision was selected
- Update the variant drawer to navigate to the new revision on success

Closes #3447
@vercel
Copy link

vercel bot commented Jan 22, 2026

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

Project Deployment Review Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jan 22, 2026 0:13am

Request Review

Copy link

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

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 5 additional flags.

Open in Devin Review

@mmabrouk mmabrouk requested a review from ardaerzin January 22, 2026 12:19
@mmabrouk mmabrouk marked this pull request as ready for review January 22, 2026 12:19
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working UI labels Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files. UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(api): remove legacy /api/testsets endpoints

2 participants