Commit da5070c
committed
fix: propagate recording session to screencast stream
After `record start`, the active page switches to the new recording
context but `update_stream_client()` is never called. This causes the
live preview (screencast) to stay on the old pre-recording context
while CLI commands execute on the new recording context.
The same issue affects `record stop` — the screencast doesn't sync
back to the current active page.
Fix: call `state.update_stream_client().await` in both
`handle_recording_start` and `handle_recording_stop`, matching the
pattern used by all other commands that switch contexts (open, close,
connect, tab switch, etc.).
This is the same class of bug as #1019 (downloads not working in
recording context) — state that needs to be propagated to the new
recording context.1 parent a95bc0f commit da5070c
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3711 | 3711 | | |
3712 | 3712 | | |
3713 | 3713 | | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
3714 | 3719 | | |
3715 | 3720 | | |
3716 | 3721 | | |
| |||
3722 | 3727 | | |
3723 | 3728 | | |
3724 | 3729 | | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
3725 | 3734 | | |
3726 | 3735 | | |
3727 | 3736 | | |
| |||
0 commit comments