Skip to content

In the interactive /resume menu, deleting a session using the x shortcut fails silently. The session disappears from the UI but the underlying .jsonl file in ~/.gemini/tmp/<hash>/chats/ is never deleted #26113

@kursov-git

Description

@kursov-git

What happened?

Root Cause: The handleDeleteSession callback in chunk-APBWRLCM.js (and related chunks) expects session.file to be present (await chatRecordingService.deleteSession(session.file);), but the session object
passed from the UI session browser does not seem to contain the correct file property or path. The backend deleteSession method catches the missing/invalid file path and resolves without throwing an error,
causing the UI to optimistically remove the item from the state while the file remains on disk.

What did you expect to happen?

Pressing x should permanently delete both the UI reference and the physical session file from the local storage.

Client information

  • CLI Version: 0.39.1
  • Git Commit: 4d73f34
  • Session ID: 216fd0ff-20e 1-4dfa-ab28-96a5b62935a6
  • Operating System: linux v22.22.2
  • Sandbox Environment: no sandbox
  • Model Version: gemini-3-pro-preview
  • Auth Type: o auth-personal
  • Memory Usage: 348.8 MB
  • Terminal Name: tmux 3.4
  • Terminal Background: #0c0c0c
  • Kitty Keyboard Protocol: Unsupported

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityeffort/medium2-3 days: UI state, async flow, cross-component refactorskind/bugpriority/p2Important but can be addressed in a future release.status/bot-triaged

    Type

    No fields configured for Bug.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions