Add 'Close other tabs' command to file commands #8866

Closed
opened 2026-02-16 18:11:03 -05:00 by yindo · 1 comment
Owner

Originally created by @alexyaroshuk on GitHub (Feb 8, 2026).

Originally assigned to: @thdxr on GitHub.

Summary

Add a new command tab.closeOthers to close all tabs except the currently active one.

Implementation Details

  • Added tab.closeOthers command in use-session-commands.tsx
  • Command is disabled when there's no active tab or when there's only one tab open
  • Added localization keys for all 16 supported languages:
    • Arabic, Bosnian, Brazilian Portuguese, Danish, German, English, Spanish, French, Japanese, Korean, Norwegian, Polish, Russian, Thai, Chinese (Simplified), Chinese (Traditional)

Command Details

  • ID: tab.closeOthers
  • Category: File commands
  • Behavior: Closes all file tabs except the currently active one
  • Disabled when: No active tab OR only one tab is open

Files Modified

  • packages/app/src/pages/session/use-session-commands.tsx
  • packages/app/src/i18n/*.ts (all 16 language files)

Related

This complements the context menu "Close others" feature implemented in the feat/file-tree-context-menu-clean branch.

Originally created by @alexyaroshuk on GitHub (Feb 8, 2026). Originally assigned to: @thdxr on GitHub. ## Summary Add a new command `tab.closeOthers` to close all tabs except the currently active one. ## Implementation Details - Added `tab.closeOthers` command in `use-session-commands.tsx` - Command is disabled when there's no active tab or when there's only one tab open - Added localization keys for all 16 supported languages: - Arabic, Bosnian, Brazilian Portuguese, Danish, German, English, Spanish, French, Japanese, Korean, Norwegian, Polish, Russian, Thai, Chinese (Simplified), Chinese (Traditional) ## Command Details - **ID**: `tab.closeOthers` - **Category**: File commands - **Behavior**: Closes all file tabs except the currently active one - **Disabled when**: No active tab OR only one tab is open ## Files Modified - `packages/app/src/pages/session/use-session-commands.tsx` - `packages/app/src/i18n/*.ts` (all 16 language files) ## Related This complements the context menu "Close others" feature implemented in the `feat/file-tree-context-menu-clean` branch.
yindo closed this issue 2026-02-16 18:11:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 8, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #12754: [BUG} desktop app's "close tab" command is not localized - This is a related issue about the close tab command that may need to be considered in conjunction with this feature.

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Feb 8, 2026): This issue might be a duplicate of existing issues. Please check: - #12754: [BUG} desktop app's "close tab" command is not localized - This is a related issue about the close tab command that may need to be considered in conjunction with this feature. Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8866