You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[V1.4.1] There is no option in reset agent to delete chat session #401
I tried creating chats and resetting them, it actually works. The issue is that when chat sessions are reset, the page has to be reloaded to see the change. I can fix that so chats are deleted without reloading the page.
@false200 Sorry, should've given some more context. The ticket wasn't complete.
Currently, chats do get deleted but after a refresh - should happen before the refresh.
The conversation history and the chat session check marks are confusing - we need only 1 option which deletes all chat session, cleans out main session and the ONLY deletes the chat history from living ui session (we still want to keep the living UIs and there is a separate check mark which completely deletes the living UI apps)
Fixed — and already shipped. Not by the recent V1.4.3 batch: PR #429 ("fix: merge reset-agent chat options and refresh the session list", commit 973e120b) landed in V1.4.2 and reached V1.4.3 via 0730677e. It is intact on V1.4.3 today.
Both points from the clarification on this thread are addressed:
One merged option.ResetModal.tsx now has RESET_ITEMS = [sessions, memory, triggers, workspace, agentapp] — the separate "Conversation history" item is gone, and grep -rn "'conversation'" frontend/src finds nothing. The en locale reads "Chats — Delete extra chats, clear Main, and clear Agent App chat history. Apps are kept." Backend matches: _reset_selected_components maps the legacy conversation/tasks names onto sessions, deletes chat sessions, clears Main, and only clear_session()s Agent App sessions — the apps themselves survive unless agentapp is ticked separately.
No page refresh needed._handle_reset snapshots session ids before the reset and broadcasts a session_deleted for each removed id, plus chat_clear, action_clear and a fresh session_list, before the reset ack. The frontend consumes all of them.
Verified by running it, not by reading: driving the real AgentBase.reset_agent_state against a real SessionManager (main + 2 chats + 1 agent-app session, temp workspace) through the real BrowserAdapter._handle_reset emitted chat_clear -> action_clear -> session_list [main, agentapp-1] -> session_deleted x2 -> reset {success: True}, leaving main and the agent-app session intact with its project id.
One gap worth a follow-up: no automated test covers the reset path at all.
Activity
false200 commentedon Aug 9, 2026
Hey, is this issue open for contribution? I would like to work on it.
CraftOS-dev commentedon Aug 10, 2026
@false200 Please go ahead!
false200 commentedon Aug 10, 2026
Sure, thanks.
CraftOS-dev commentedon Aug 10, 2026
@false200 You can point the PR to V1.4.2. Our new development cycle just begin.
false200 commentedon Aug 10, 2026
Hey seems like this is already in V1.4.1, the reset agent has a “Chat sessions” checkbox in the modal.
false200 commentedon Aug 10, 2026
I tried creating chats and resetting them, it actually works. The issue is that when chat sessions are reset, the page has to be reloaded to see the change. I can fix that so chats are deleted without reloading the page.
ahmad-ajmal commentedon Aug 10, 2026
@false200 Sorry, should've given some more context. The ticket wasn't complete.
conversation historyand thechat sessioncheck marks are confusing - we need only 1 option which deletes all chat session, cleans out main session and the ONLY deletes the chat history from living ui session (we still want to keep the living UIs and there is a separate check mark which completely deletes the living UI apps)false200 commentedon Aug 10, 2026
Ohh fine, now I understand.
korivi-CraftOS commentedon Sep 23, 2026
Fixed — and already shipped. Not by the recent V1.4.3 batch: PR #429 ("fix: merge reset-agent chat options and refresh the session list", commit
973e120b) landed in V1.4.2 and reached V1.4.3 via0730677e. It is intact on V1.4.3 today.Both points from the clarification on this thread are addressed:
One merged option.
ResetModal.tsxnow hasRESET_ITEMS = [sessions, memory, triggers, workspace, agentapp]— the separate "Conversation history" item is gone, andgrep -rn "'conversation'" frontend/srcfinds nothing. The en locale reads "Chats — Delete extra chats, clear Main, and clear Agent App chat history. Apps are kept." Backend matches:_reset_selected_componentsmaps the legacyconversation/tasksnames ontosessions, deletes chat sessions, clears Main, and onlyclear_session()s Agent App sessions — the apps themselves survive unlessagentappis ticked separately.No page refresh needed.
_handle_resetsnapshots session ids before the reset and broadcasts asession_deletedfor each removed id, pluschat_clear,action_clearand a freshsession_list, before theresetack. The frontend consumes all of them.Verified by running it, not by reading: driving the real
AgentBase.reset_agent_stateagainst a realSessionManager(main + 2 chats + 1 agent-app session, temp workspace) through the realBrowserAdapter._handle_resetemittedchat_clear->action_clear->session_list [main, agentapp-1]->session_deletedx2 ->reset {success: True}, leaving main and the agent-app session intact with its project id.One gap worth a follow-up: no automated test covers the reset path at all.