Commit 4d42b89
committed
refactor(chat): extract useRunTurn hook from Chat
- Move processStream → runTurn and processStreamReadOnly → runTurnReadOnly
- Move buildToolResultMessage and buildPlanModeCorrectionMessage as plain
module-level functions into useRunTurn.ts
- Reduce Chat.tsx from ~1123 to ~467 lines1 parent 3cb8aba commit 4d42b89
2 files changed
Lines changed: 710 additions & 686 deletions
0 commit comments