Skip to content

feat(app): add delete button for sessions in sidebar#33131

Closed
achmalll wants to merge 1 commit into
anomalyco:devfrom
achmalll:add-session-delete-button
Closed

feat(app): add delete button for sessions in sidebar#33131
achmalll wants to merge 1 commit into
anomalyco:devfrom
achmalll:add-session-delete-button

Conversation

@achmalll

Copy link
Copy Markdown

Closes #33129

Add a delete (trash) icon button next to the existing archive button on root session rows in the project/session sidebar.

Clicking the trash icon opens a confirmation dialog. After confirming, the app calls the existing client.session.delete API to permanently remove the session. If the deleted session is currently active, the user is redirected to the next session or the new-session view.

Changes

  • packages/app/src/pages/layout.tsx: add executeDeleteSession, confirmDeleteSession, and DialogDeleteSession; wire into sidebar contexts.
  • packages/app/src/pages/layout/sidebar-items.tsx: add trash IconButton next to archive button and expand hover width.
  • packages/app/src/pages/layout/sidebar-workspace.tsx: pass confirmDeleteSession through workspace context.

Verification

  • bun run --cwd packages/app typecheck
  • bun lint
  • Manual test: hover session → click trash → confirm → session removed.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 20, 2026
@github-actions github-actions Bot closed this Jun 20, 2026
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 delete button for sessions in sidebar

1 participant