Skip to content

Add a shortcut to archive a thread#2699

Open
atimmer wants to merge 1 commit into
pingdotgg:mainfrom
atimmer:feature/add-shortcut-for-archiving-single-thread
Open

Add a shortcut to archive a thread#2699
atimmer wants to merge 1 commit into
pingdotgg:mainfrom
atimmer:feature/add-shortcut-for-archiving-single-thread

Conversation

@atimmer
Copy link
Copy Markdown

@atimmer atimmer commented May 14, 2026

What Changed

Add a keyboard shortcut to archive a thread.

It also adds it to the Cmd+K shortcut menu. I can remove that if desired.

Why

The Cmd+1, Cmd+2, etc system is really tight for quickly working on different threads. But when you have some stale threads around you have to use Cmd+1/Cmd+5. By adding a keyboard shortcut for archiving, you don't have to take your hand off the keyboard.

UI Changes

CleanShot 2026-05-14 at 18 35 24@2x

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Low Risk
Low risk: adds a new keybinding command and wires it to existing archiveThread behavior, with minimal impact outside keyboard handling and command palette actions.

Overview
Adds a new thread.archiveCurrent keybinding command, including a default shortcut (mod+shift+a) and contract support so it can be configured/validated.

Wires the command into the chat route’s global keyboard handler to archive the currently routed thread via useThreadActions().archiveThread, and surfaces the same action in the command palette (with error toasts on failure).

Reviewed by Cursor Bugbot for commit e8f77a4. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add keyboard shortcut and command palette action to archive the current thread

  • Adds a thread.archiveCurrent command bound to mod+shift+a (when terminal is not focused) in keybindings.ts.
  • Handles the shortcut in _chat.tsx via ChatRouteGlobalShortcuts, calling archiveThread on the active route thread and showing an error toast on failure.
  • Adds an 'Archive current thread' entry to the Command Palette in CommandPalette.tsx, visible only when a thread is active.
  • Also fixes a fall-through bug in the chat.new shortcut handler by adding an early return after invocation.

Macroscope summarized e8f77a4.

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels May 14, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9578dd78-85ca-4a4b-825a-6617c57b2a3f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented May 14, 2026

Approvability

Verdict: Approved

This PR adds a keyboard shortcut (Mod+Shift+A) and command palette action to archive the current thread, wiring up the existing archiveThread function with no new business logic. The changes are additive, follow existing patterns, and have no runtime behavior impact beyond the new UI trigger.

You can customize Macroscope's approvability policy. Learn more.

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

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant