Repository navigation
fix(live): データ放送はサーバが選局を受けてから閉じる - #2792
Merged
Merged
Conversation
別の局を選ぶと、サーバの答えを待たずにデータ放送を閉じていた。サーバが選局を 断ると (復号できない局の error)、前の局を受信したままデータ放送だけが閉じていた。 - tuned に受けた局 (serviceId) を載せ、待っていた局の答えが届いたら閉じる - 答えを待つ間は前の局のデータ放送を出したまま、受信のリクエストだけやめる - 断られたら閉じずに受信のリクエストを戻し、エンジンも前の局のまま作り直さない Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVbtN2Hp8wNmqBX8pzT
|
Claude finished @5ym's task in 27s —— View job レビュー結果大きな不具合は見つかりませんでした。 不具合・競合
セキュリティ
テスト
文章 (docs/writing.md)
設計
|
| * 追っかけ・録画に譲っている間は局のデータ放送が無いので、開いていなければリクエストしない | ||
| * 追っかけ・録画に譲っている間は局のデータ放送が無いので、開いていなければリクエストしない。 | ||
| * 別の局への選局の答えを待っている間 (`switching`。`closingOnTune`) は、開いていてもリクエストしない。 | ||
| * 答えが届けば閉じるので、次の局のセッションが覚えているぶん (実機で約 2MB) を受け取っても使わない |
There was a problem hiding this comment.
docs/writing.md の決まりでは、半角の英数字と単位の間に半角の空白を入れます。「約 2MB」は「約 2 MB」にしてください。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVbtN2Hp8wNmqBX8pzT
|
Claude finished @5ym's task in 17s —— View job レビュー結果前回の指摘 (「約 2MB」→「約 2 MB」、「忘れる」の言い換え) は 2 つ目のコミット (fcea384) で直っています。新しく付ける指摘はありません。 不具合・競合
セキュリティ
テスト
文章
設計
|
5ym
added a commit
that referenced
this pull request
Nov 14, 2026
追っかけの答えには serviceId を付けない (#2792 の決まり)。channel は録画の ID だけにする (この PR) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVbtN2Hp8wNmqBX8pzT
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.
#2764 のレビューで見つかったものを直します。
別の局を選ぶと、
tune()がサーバの答えを待たずにデータ放送を閉じ、前の局 (lastService) を選んだ局に書き換えていました。サーバが選局を断ると (復号できない局のerror。サーバは前の局を流したまま)、前の局を受信したままデータ放送だけが閉じていました。tunedに受けた局 (serviceId) を載せる (ライブだけ。追っかけには無い)tunedが届いたら閉じる (closingOnTune・tunedCloses)。続けて選び直したあとで前の指示の答えが遅れて届いても閉じないwantsDataのswitching)fail) 閉じずに受信のリクエストを戻す。エンジンはサーバが受けた局 (dataChannel) のもので、断られた局で作り直さないtunedが先に届くので、そのときは閉じる (サーバは前の局から抜けている)テスト:
data-receive.test.tsに決め方、E2E (20-live-tune) にライブの WebSocket の間に入って選局を断らせるものを足しました。E2E は直す前のコードで落ちることを確かめています。🤖 Generated with Claude Code
https://claude.ai/code/session_01T8TqVbtN2Hp8wNmqBX8pzT