Skip to content

fix(chrome-extension): preserve newer status during recording polls - #2881

Merged
richiemcilroy merged 2 commits into
CapSoftware:mainfrom
yashranaway:fix/extension-status-poll-race
Oct 22, 2026
Merged

richiemcilroy merged 2 commits into
CapSoftware:mainfrom
yashranaway:fix/extension-status-poll-race

Conversation

@yashranaway

@yashranaway yashranaway commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

the extension's service worker polls the offscreen recorder for status, but that poll awaits twice before it writes. if the recorder broadcast a newer status in between, like finished or failed, the slow poll result landed after it and put the old recording controls back on the page.

now the poll remembers the status it started from and drops its result if anything changed while it was waiting, since that update is newer. tests delay the chrome callbacks to hit both waits.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Prevents delayed recording polls from replacing a status received while the poll was waiting.

  • Recording polls keep newer status updates.

Reviews (1) · Last reviewed commit: "fix(chrome-extension): preserve newer st..." · Reviewed by Greptile

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 22, 2026 12:13pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 07:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 12:13 Inactive
@richiemcilroy
richiemcilroy merged commit abad28b into CapSoftware:main Oct 22, 2026
28 of 29 checks passed

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 20e64447 Deployed Oct 22, 2026 by vercel[bot]
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.

2 participants