Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Preview annotations replace each other after the preview page reloads

オープン 初心者向け
#14,364 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@not-compromised がすでに取り組んでいます。

2026年9月30日 から。

  • #14360 @not-compromised による — オープン
  • #16971 @jackroberts236 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
desktop

調査の方向性

apps/desktop/src/preview/PickPreload.ts とその idSequence から始め、次に apps/web/src/composerDraftStore.ts の addPreviewAnnotation を読んでください。preview の reload、Refresh、Back、または webview の remount をまたいで picks を再現してください。アノテーションに異なる id が付与され、draft が先の annotation chip を置き換えずに両方保持すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

What happened

Several annotations picked in the desktop preview for one prompt overwrite each other: a new one replaces the previous one instead of being added.

Diagnosis

apps/desktop/src/preview/PickPreload.ts numbers ids with a module-level counter (idSequence) that restarts on every page load (refresh, HMR, Back, webview remount). The first pick after any load is annotation_2. The composer draft keeps annotations across reloads, and addPreviewAnnotation (apps/web/src/composerDraftStore.ts) drops an entry with the same id before adding the new one, so the older annotation is replaced and its chip now shows the new one.

Steps to reproduce
  1. Open a page in the desktop preview.
  2. Pick an element, add a comment, attach.
  3. Refresh the preview.
  4. Pick another element, add a comment, attach.
  5. The draft holds one annotation (the second); the first is gone.
Version

v0.0.44 and main @ 0fcd5f906 (first seen on 0.0.42)

Environment

Linux (Arch, Hyprland), T3 Code desktop app

Evidence
Desktop trace, one evening on 0.0.42: 15 picks, most after a
preview refresh, Back, or webview re-registration.
Two simulated page loads through the same counter both yield
"annotation_2".

Fix: #14360

Investigated and filed by Claude Opus 5.5 in Claude Code.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
2時間 31分
マージ済み PR(30日)
475

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。