Host controls in the live video stage fail silently
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
apps/frontend/src/components/live/LiveStage.tsxから始めて、ホストのアクションボタンのエラー処理と、streamErrorを使ってproblemを表示するプレーヤーのマイクコントロールを比較します。472行目付近で言及されている、コンソールにのみ出力されるもう一つのエラーパスを確認してください。ホストのアクションが失敗したときにコントロールの横にわかりやすいメッセージが表示され、再試行が成功するとそのメッセージが消え、プレーヤー側の動作は変わらないことを完了条件とします。
索引モデルが issue の本文から書いたものです。
説明
In apps/frontend/src/components/live/LiveStage.tsx, the host's action buttons — letting a player speak, taking the floor back — swallow their errors into the console:
onClick={async () => {
setBusy(true);
try {
await onClick();
} catch (err) {
console.error("[live] host action failed", err); // nothing reaches the host
} finally {
setBusy(false);
}
}}
The button goes busy, comes back, and nothing changes. No message, no retry, no indication the request failed at all.
Why it matters
This happens live, in front of a room. A host taps "let in" on a raised hand, the button flickers, and the player stays silent. The host has no idea whether they misclicked, whether the player's connection is bad, or whether the request failed — so they tap it again, and again.
Meanwhile the player is waiting to speak and can see their hand is still up.
There is already a correct pattern in the same file
The player-side mic controls handle this properly:
const run = async (action: () => Promise<unknown>, failure: string) => {
setBusy(true);
setProblem(null);
try {
await action();
} catch (err) {
setProblem(streamError(err, failure)); // shown to the user
} finally {
setBusy(false);
}
};
streamError already turns a failed request into a readable message, and the component already renders problem. The host buttons just never got the same treatment.
What a fix looks like
Give the host actions the same error state the player controls have, and show the message near the control that failed rather than at the top of the stage — the host is looking at a list of participants, so an error floating elsewhere is easy to miss.
Worth checking the whole file for other places that only console.error. The two paths I know about are the host action button and one around line 472.
Definition of done
- A failed host action shows a readable message, not just a console line
- The message appears near the control the host used
- The error clears on a successful retry
- The player-side behaviour is unchanged
Good first issue: the working pattern is a few hundred lines below in the same file, so this is mostly applying something that already exists.
- 主要言語
- TypeScript
- スター
- 21
- フォーク
- 7
- 平均マージ
- 5時間 6分
- マージ済み PR(30日)
- 29
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TheCodeHeist-Coder/Rexial のほかの issue
-
The join endpoint returns an error shape the frontend cannot read対応中かも @Anshuu2004 が 3 日前に担当しました。 オープンBackend first issue bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
TheCodeHeist-Coder/Rexial#192 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue help wanted UI & UX
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
TheCodeHeist-Coder/Rexial#178 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug help wanted UI & UX
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
TheCodeHeist-Coder/Rexial#175 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement good first issue help wanted UI & UX
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TheCodeHeist-Coder/Rexial#162 ·
メンテナーはふだん 1 日以内に返信
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)対応中かも @Anshuu2004 が今日担当しました。 オープンlevel3 nsoc26
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
TheCodeHeist-Coder/Rexial#215 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
TheCodeHeist-Coder/Rexial の issue をすべて見る
似ている issue
-
area: server priority: P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
appandflow/stim#4538 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Published Docker images lack the redis extra: HEADROOM_COMPRESS_SESSION_STORE stops startup対応中かも @AlessandroSpallina が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
headroomlabs-ai/headroom#4513 ·
メンテナーはふだん 1 日以内に返信
-
bug extension extension: obsidian platform: Windows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
raycast/extensions#32838 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
copy design-review mac P3
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
tosunlab/hisarapp-core#510 ·
-
bug priority-medium to-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信