[Bug]: ReferenceError: presentation is not defined in ChatView backgroundWorkBannerItem
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 90/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
apps/web/src/components/ChatView.tsx の backgroundWorkBannerItem から始め、7050 行付近にあるバナーアイコンの式を確認してから、apps/web で tsc --noEmit を実行します。報告されたバックグラウンドタスクの完了ステータスを使って undefined presentation reference が解決され、バナーがクラッシュせずにレンダリングされ、TypeScript チェックが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- In T3 Code, open any thread that has active background tasks (e.g. background command, dev server, or subagent).
- Observe the chat view crashing or failing to render.
Expected behavior
The background work banner renders normally above the composer, with the status indicator dot pulsing only if the background work holds completion.
Actual behavior
The view crashes immediately with ReferenceError: presentation is not defined.
tsc --noEmit in apps/web fails with:
src/components/ChatView.tsx:7050:13 - error TS2304: Cannot find name 'presentation'.
7050 presentation.waiting && "animate-status-pulse",
~~~~~~~~~~~~
Impact
Major degradation or frequent failure
Version or commit
main @ a5b34b25378 (PR #15114)
Environment
macOS / Web / Desktop
Logs or stack traces
ReferenceError: presentation is not defined
at t3code://app/assets/_chat-qbkAHxVg.js:55:26814
at Object.useMemo (t3code://app/assets/dist-ChxELPrq.js:26:59806)
at e.useMemo (t3code://app/assets/Icon-l19w4AjM.js:1:7110)
at (t3code://app/assets/_chat-qbkAHxVg.js:55:26645)
at Eo (t3code://app/assets/dist-ChxELPrq.js:26:47513)
Workaround / Root cause & fix
Introduced in #15114 (commit a5b34b25378). In apps/web/src/components/ChatView.tsx line 7050:
icon: (
<span
className={cn(
"size-1.5 rounded-full bg-foreground",
presentation.waiting && "animate-status-pulse",
)}
aria-hidden="true"
/>
),
presentation was referenced without being declared or assigned in backgroundWorkBannerItem.
The fix is to import backgroundWorkHoldsCompletion from @t3tools/shared/orchestrationV2PendingBackgroundWork and evaluate:
backgroundWorkHoldsCompletion(activeBackgroundTasks) && "animate-status-pulse"
- 主要言語
- TypeScript
- スター
- 24.8k
- フォーク
- 6.4k
- 平均マージ
- 8時間 58分
- マージ済み PR(30日)
- 278
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pingdotgg/t3code のほかの issue
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo rootオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pingdotgg/t3code#17402 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
pingdotgg/t3code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
melgarafael/DeskcommCRM#2657 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
MystenLabs/MemWal#1163 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Mondriaan
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
knaw-huc/textannoviz#709 ·
メンテナーはふだん 1 日以内に返信
-
billion-context-pi
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ranxianglei/billion-context#2521 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Add: YRF Music Nepalオープンstreams:add
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信