Skip to content

Conversation

@frouo
Copy link

@frouo frouo commented Feb 1, 2026

What does this PR do?

Added a /delete command to delete the current session

Closes #8677

Demo video : #8677 (comment).

Note: The 3rd commit fixes a routing bug shown at the end of the demo video where an extra newline appeared when returning to the home screen after deletion.

How did you verify your code works?

I tested it by running bun dev.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found one potentially related PR:

PR #6732 - feat: add delete session button to session header
#6732

This PR is related because it also addresses session deletion functionality. However, PR #6732 adds a delete button to the session header UI, while the current PR #11684 adds a /delete command with a confirmation dialog. These are different approaches to the same feature (deleting a session), so they may be addressing the same underlying issue (#8677) but with different implementations.

You should verify if one of these PRs has already been merged or if they should be consolidated into a single approach.

frouo added 3 commits February 2, 2026 00:44
Without preventDefault/stopPropagation, the return key event continues
propagating after the dialog closes. When navigating to a new screen
with a prompt (e.g., after deleting a session via /delete command),
the stale event inserts an unwanted newline, causing the cursor to
start on line 2 instead of line 1.

Tested independently: both preventDefault() and stopPropagation() fix
the issue on their own. However, using both is recommended by Claude
Sonnet 4.5 as the safest approach and aligns with the existing pattern
used in DialogSelect.
@frouo frouo force-pushed the feature/add-a-delete-command-to-delete-the-current-session-#8677 branch from 9d24a77 to 5d319a4 Compare February 1, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add a /delete command to delete the current session

1 participant