Repository navigation
Close 書き出し on Esc and show each profile's own env on the モデル screen (D-57) - #39
Merged
Merged
Conversation
…D-57) Dialog re-added its keydown listener on every render, so when the app's Esc handler re-rendered the export dialog mid-dispatch the new listener missed the key. It now keeps one listener and calls the latest onClose. The モデル form's env and extra-args fields are uncontrolled, so picking another profile kept the first one's text, and leaving the field saved it into the other profile. The form is now keyed by the profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/deviations.md
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.
React 19 の動作確認(#38)中に見つけた既存バグ2件の修正です。どちらも React 18.3 の
mainで同じ手順で再現します。修正
Dialogが毎回新しいonCloseでリスナーを付け直し、配信中に付いたリスナーは呼ばれない。Dialogはリスナーを1つだけ持ち、ref 経由で最新のonCloseを呼ぶようにした。defaultValue、blur で保存)の欄なのにフォームが再マウントされていなかった。そのまま欄を離れると、別プロファイル(例: Irodori)に Drama-3 の Vulkan 環境変数が保存されていた。フォームにkey={prof.id}を付けた。確認
src/app/Dialog.test.tsx、src/features/models/ModelManager.test.tsxを追加。どちらも修正前は失敗、修正後は成功。npm run check全通過。D-57 は #38 の D-56 を参照しています(#38 を先にマージする想定)。
🤖 Generated with Claude Code