Skip to content

設定の再表示で分類別辞書が重複する不具合を修正 / Fix duplicate dictionary rows after Back navigation - #1355

Merged
KazumaProject merged 1 commit into
devfrom
codex/settings-dictionary-duplicates
Nov 15, 2026
Merged

KazumaProject merged 1 commit into
devfrom
codex/settings-dictionary-duplicates

Conversation

@KazumaProject

Copy link
Copy Markdown
Owner

分類別辞書から戻るたびに、辞書設定の入口と分類ごとの一括操作行が増えていました。従来の辞書タブ・新しい設定の両方で、1回の往復により入口が1→2件、一括操作行が28→56件になることを修正前のAPI35エミュレーターで再現しました。

AsyncPreferenceFragmentは設定階層を保持してビューだけを再作成します。その際に再実行される設定処理が、既存の行へ追加していました。入口と一括操作行をキーで再利用し、一括操作のコールバックと集計対象を再設定します。

検証:

  • 修正前:画面テスト2件と再バインドの単体テスト1件で重複を再現。
  • 修正後:単体テスト7件・画面テスト5件成功。辞書への5往復、従来タブの切り替え、画面再生成で項目数を確認。
  • 他の設定33画面を従来・新モードで各3往復+再生成(66条件)し、項目の増加なし。新ホームのプレビュー・カード数も確認。
  • メニュー登録33か所、設定階層の生成、関連する一覧更新をコード確認。

端末テストはLite Debug、API35 arm64エミュレーター、日本語で実行。実機およびFull専用AI設定の端末確認は未実施です。アプリ全体の無不具合を保証するものではありません。


Returning from classified dictionaries appended another manager entry and another set of bulk-action rows. Before the fix, one round trip increased the entry count from 1 to 2 and bulk rows from 28 to 56 in both the legacy dictionary tab and the new settings route on an API35 emulator.

AsyncPreferenceFragment retains its preference hierarchy while recreating the view. The repeated setup appended new preferences to that hierarchy. Reuse rows by key and refresh the bulk-action callbacks and tracked categories.

Validation:

  • Reproduced the original failure with 2 device tests and 1 rebinding unit test.
  • All 7 unit tests and 5 device tests pass after the fix, including 5 dictionary round trips, legacy tab switching and recreation.
  • Audited 33 other preference screens in both home modes: 3 round trips and recreation per screen (66 cases), with stable rows. Also checked preview/card counts on the new home.
  • Reviewed 33 menu-provider registrations, hierarchy builders and related list-update paths in source.

Device tests ran on Lite Debug, API35 arm64, Japanese locale. Physical devices and Full-only AI settings were not device-tested. This is a scoped regression audit, not a claim that the entire app is bug-free.

@KazumaProject
KazumaProject merged commit 896bd0f into dev Nov 15, 2026
1 check passed
@KazumaProject
KazumaProject deleted the codex/settings-dictionary-duplicates branch November 16, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant