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

🤖 fix: a Daytona connection test started before a settings save can show the old key as connected

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

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

まだ誰も着手していません。

評価

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

調査の方向性

src/browser/features/Settings/Sections/DaytonaSettingsForms.tsx と、issue にリンクされている以前のレビュー議論から始めてください。runTest、settle、resetTest、保存または削除が実行中のテストをどのように処理するかを追い、説明されている UI テストを追加してください。テストを開始し、新しいキーを保存してから、古いテストを成功として解決します。古い結果に「Connected」と表示されなければ完了です。提案された修正のいずれかを選んでください。

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

説明

Follow-up from the Codex review of #7100 (thread: https://github.com/coder/xum/pull/7100#discussion_r4354065080, src/browser/features/Settings/Sections/DaytonaSettingsForms.tsx:89).

Problem

In Settings > Daytona, a connection test result is tagged with the settings load generation (loads) it ran under. Saving or removing the API key calls resetTest(), which clears the current result but neither cancels the in-flight daytona.testConnection() call nor bumps loads (that happens only after the reload). Save stays enabled while a test runs. So a test started with the old key can finish after the save and show "Connected" for the previous credentials, even when the newly saved key is invalid.

Proposed fix

Either invalidate the test generation on every save and remove (a local counter that runTest captures and settle compares), or disable Save and Remove while a test is running. Add a UI test: start a test, save a new key, resolve the old test as ok, and expect no "Connected" state.

Why it is deferred

#7100 runs its review loop under a P0/P1-only rule; P2 findings get a tracked follow-up.

主要言語
TypeScript
スター
2.1k
フォーク
140
平均マージ
4時間 55分
マージ済み PR(30日)
897

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

coder/xum のほかの issue

coder/xum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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