refactor(chat): remove unused agent action handlers from NewChatPage component to streamline code and improve maintainability

This commit is contained in:
Anish Sarkar 2026-04-30 16:33:13 +05:30
parent 872065f90d
commit 1d6d7e3eb1

View file

@ -1512,8 +1512,6 @@ export default function NewChatPage() {
tokenUsageStore,
pendingUserImageUrls,
setPendingUserImageUrls,
upsertAgentAction,
updateAgentActionReversible,
handleStreamTerminalError,
handleChatFailure,
persistAssistantTurn,
@ -1894,8 +1892,6 @@ export default function NewChatPage() {
messages,
searchSpaceId,
tokenUsageStore,
upsertAgentAction,
updateAgentActionReversible,
handleStreamTerminalError,
persistAssistantTurn,
]
@ -2433,9 +2429,6 @@ export default function NewChatPage() {
messageDocumentsMap,
setMessageDocumentsMap,
tokenUsageStore,
upsertAgentAction,
updateAgentActionReversible,
markAgentActionReverted,
handleStreamTerminalError,
persistAssistantTurn,
persistUserTurn,