fix(play): fix CLAUDE.md typo and dialogue history memo anti-pattern

- Fix @AGETNTS.md → @AGENTS.md typo in CLAUDE.md
- Remove ref read inside useMemo (React anti-pattern causing one-frame stale data)
- Simplify buildDialogueHistory to read visitedBeatIds directly from session.history,
  which also fixes incorrect scene-ID matching when the same ID appears multiple times

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yuanzonghao
2026-06-06 21:39:24 +08:00
parent 5a7daa8452
commit 9794a5a329
2 changed files with 4 additions and 14 deletions
+1 -1
View File
@@ -1 +1 @@
@AGETNTS.md
@AGENTS.md