Skip to content

[V1.4.1] There is no option in reset agent to delete chat session #401

Closed

Description

@ahmad-ajmal
No description provided.

Activity

  1. added
    bug
    Improvement
    on Aug 5, 2026
  2. false200 commented on Aug 9, 2026

    @false200
    Contributor

    Hey, is this issue open for contribution? I would like to work on it.

  3. CraftOS-dev commented on Aug 10, 2026

    @CraftOS-dev
    Owner

    @false200 Please go ahead!

  4. false200 commented on Aug 10, 2026

    @false200
    Contributor

    Sure, thanks.

  5. CraftOS-dev commented on Aug 10, 2026

    @CraftOS-dev
    Owner

    @false200 You can point the PR to V1.4.2. Our new development cycle just begin.

  6. false200 commented on Aug 10, 2026

    @false200
    Contributor

    Hey seems like this is already in V1.4.1, the reset agent has a “Chat sessions” checkbox in the modal.

    Image
  7. false200 commented on Aug 10, 2026

    @false200
    Contributor

    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.

  8. ahmad-ajmal commented on Aug 10, 2026

    @ahmad-ajmal
    CollaboratorAuthor

    @false200 Sorry, should've given some more context. The ticket wasn't complete.

    1. Currently, chats do get deleted but after a refresh - should happen before the refresh.
    2. 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)
  9. false200 commented on Aug 10, 2026

    @false200
    Contributor

    Ohh fine, now I understand.

  10. korivi-CraftOS commented on Sep 23, 2026

    @korivi-CraftOS
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Improvementbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions