Repository navigation
feat(webapp): end the recording when the web recorder is stopped - #2121
Merged
irvingouj@Devolutions (irvingoujAtDevolution) merged 1 commit intoOct 29, 2026
Merged
irvingouj@Devolutions (irvingoujAtDevolution) merged 1 commit into
irvingouj@Devolutions (irvingoujAtDevolution) merged 1 commit into
Conversation
irvingouj@Devolutions (irvingoujAtDevolution)
added this pull request to stack #2122
October 19, 2026 19:00
Contributor
Author
|
How this was checked (the package has no test setup):
Stacked on #2116, which teaches Gateway what 4011 means. Note LLM-assisted content (no human feedback). |
irvingouj@Devolutions (irvingoujAtDevolution)
requested a review
from Benoît Cortier (CBenoit)
October 19, 2026 20:53
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/web-recorder-ended-close
branch
from
October 20, 2026 15:25
1b75fa0 to
93b85d0
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/web-recorder-ended-close
branch
from
October 20, 2026 15:43
93b85d0 to
a374223
Compare
Copilot started reviewing on behalf of
irvingouj@Devolutions (irvingoujAtDevolution)
October 20, 2026 15:44
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused changes preserve reconnectable closures while signaling intentional recording completion, with no unresolved findings.
No open issues 🎉
What changed in this PR
Ends browser recordings immediately on explicit stop, avoiding Gateway’s reconnection delay for live viewers.
Changes:
- Sends close code
4011for intentional stops in both recorders. - Preserves reconnectable closures for failures and internal restarts.
- Exports the shared close-code constant.
| File | Description |
|---|---|
| webapp/packages/web-recorder/src/webm-recorder.ts | Distinguishes intentional stops from failures. |
| webapp/packages/web-recorder/src/index.ts | Exports the recording-ended close code. |
| webapp/packages/web-recorder/src/close-codes.ts | Defines and documents code 4011. |
| webapp/packages/web-recorder/src/asciicast-v2-recorder.ts | Sends the code on explicit stops, not restarts. |
Review effort: Balanced
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/web-recorder-ended-close
branch
3 times, most recently
from
October 20, 2026 17:05
1f82592 to
75869a5
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/web-recorder-ended-close
branch
from
October 23, 2026 18:15
75869a5 to
32a2530
Compare
Contributor
Author
|
Lines changed, against master:
All of it is the Note LLM-assisted content (no human feedback). |
Gateway keeps a recording open for its reconnection window after any push close, so live viewers of a browser recording only saw it end after that delay. The WebM and asciicast recorders now close the push with code 4011 when stop() is called, which tells Gateway the recording is over. Failures, and the asciicast recorder restarting its own push, still close without a code and keep the recording open for a reconnection. The code is exported as RECORDING_ENDED_CLOSE_CODE. Issue: DGW-477
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/web-recorder-ended-close
branch
from
October 28, 2026 20:13
32a2530 to
b8fb77f
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
merged commit Oct 29, 2026
352312e
into
master
53 checks passed
irvingouj@Devolutions (irvingoujAtDevolution)
deleted the
feat/web-recorder-ended-close
branch
October 29, 2026 23:43
Benoît Cortier (CBenoit)
pushed a commit
that referenced
this pull request
Oct 30, 2026
Bumps \`@devolutions/web-recorder\` to 0.2.0 so the change from #2121 gets published. \`stop()\` now closes the push with \`RECORDING_ENDED_CLOSE_CODE\`, and that constant is a new export. Issue: DGW-477 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gateway keeps a recording open for its reconnection window after any push close, so live viewers of a browser recording only saw it end after that delay.
The WebM and asciicast recorders now close the push with code 4011 when stop() is called, which tells Gateway the recording is over. Failures, and the asciicast recorder restarting its own push, still close without a code and keep the recording open for a reconnection. The code is exported as RECORDING_ENDED_CLOSE_CODE.
Issue: DGW-477