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