Skip to content

fix(chrome-extension): reset a recording phase left by a failed start - #2914

Merged
richiemcilroy merged 2 commits into
CapSoftware:mainfrom
ManthanNimodiya:fix/extension-zombie-capture-status
Oct 22, 2026
Merged

richiemcilroy merged 2 commits into
CapSoftware:mainfrom
ManthanNimodiya:fix/extension-zombie-capture-status

Conversation

@ManthanNimodiya

@ManthanNimodiya ManthanNimodiya commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What & Why

startRecording sets status to "recording" before calling recorder.start(). If that throws, the catch clears activeRecording but only reset "creating", so a capture phase was left with no session behind it: stop became a no-op, every tab's recording bar froze, and the recorder document never idle-closed. The catch now resets the phase this attempt set.

Changes

  • apps/chrome-extension/src/offscreen/recorder.ts: reset "recording" as well as "creating" in the start failure path

Checklist

  • Code builds locally
  • Typecheck, Biome and the extension test suite pass

RetriggerView in GreptileConfidence Score: 5/5

This change appears safe to merge.

Summary

Fixes the stale recording phase when recorder.start() fails.

  • Failed recording starts no longer leave the extension marked as recording.

Reviews (1) · Last reviewed commit: "fix(chrome-extension): reset a recording..." · Reviewed by Greptile

A throw from recorder.start() left status recording with no active session, so stop was a no-op and the document never idle-closed.
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

@ManthanNimodiya is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 12:18 Inactive
@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:18pm UTC

@richiemcilroy
richiemcilroy merged commit 848d18f into CapSoftware:main Oct 22, 2026
28 of 29 checks passed

This branch was previously deployed

1 inactive deployment
Preview – cap-status — f36d0844 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