[GH-ISSUE #4940] [REFACTOR]: Remove redundant message state in ChatContainer #3097

Closed
opened 2026-02-22 18:32:36 -05:00 by yindo · 0 comments
Owner

Originally created by @shatfield4 on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4940

Originally assigned to: @shatfield4 on GitHub.

What would you like to see?

  • ChatContainer maintains a message state that syncs with PromptInput on every keystroke via onChange
  • This is redundant since PromptInput already owns its own input state internally
  • This causes ChatContainer to rerender on every keystroke, which cascades to child components unnecessarily
  • The recent fix in fc9bd71 addressed a visual symptom of this (animation restart) by stabilizing the key prop, but the underlying unnecessary rerenders remain
Originally created by @shatfield4 on GitHub (Jan 29, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4940 Originally assigned to: @shatfield4 on GitHub. ### What would you like to see? - `ChatContainer` maintains a `message` state that syncs with `PromptInput` on every keystroke via `onChange` - This is redundant since `PromptInput` already owns its own input state internally - This causes `ChatContainer` to rerender on every keystroke, which cascades to child components unnecessarily - The recent fix in fc9bd71 addressed a visual symptom of this (animation restart) by stabilizing the key prop, but the underlying unnecessary rerenders remain
yindo added the enhancementfeature request labels 2026-02-22 18:32:36 -05:00
yindo closed this issue 2026-02-22 18:32:36 -05:00
yindo changed title from [REFACTOR]: Remove redundant message state in ChatContainer to [GH-ISSUE #4940] [REFACTOR]: Remove redundant message state in ChatContainer 2026-06-05 14:50:18 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3097