🙌 OpenHands: AI-Driven Development
Clear history at the beginning of a new task🧹 (#3285)
Kavinkumar8bb9e37c4620
diff --git a/frontend/src/components/AgentControlBar.tsx b/frontend/src/components/AgentControlBar.tsxindex 04f1775b23..7c4437086d 100644--- a/frontend/src/components/AgentControlBar.tsx+++ b/frontend/src/components/AgentControlBar.tsx@@ -8,6 +8,7 @@ import { changeAgentState } from "#/services/agentStateService";import store, { RootState } from "#/store";import AgentState from "#/types/AgentState";import { clearMessages } from "#/state/chatSlice";+import Session from "#/services/session";const IgnoreTaskStateMap: { [k: string]: AgentState[] } = {[AgentState.PAUSED]: [@@ -83,6 +84,7 @@ function AgentControlBar() {}if (action === AgentState.STOPPED) {+ Session._history = [];store.dispatch(clearMessages());} else {setIsLoading(true);