Files
new-api-oiss/web/src
Apple\Apple d01054e2e4 🐛 fix: resolve duplicate toast notifications when toggling message roles
- Remove duplicate onRoleToggle prop passing to ChatArea component in Playground/index.js
- Move Toast notification outside setMessage callback in useMessageActions hook
- Prevent multiple event bindings that caused repeated role switch notifications
- Add early return validation for role toggle eligibility

This fixes the issue where users would see multiple success toasts when switching
between Assistant and System roles in the chat interface.

Files changed:
- web/src/pages/Playground/index.js
- web/src/hooks/useMessageActions.js
2025-06-01 17:44:36 +08:00
..
2025-05-23 00:24:08 +08:00
2025-06-01 13:13:32 +08:00
2025-05-20 00:23:47 +08:00
2025-05-06 01:38:44 +08:00