Skip to content

feat: command palette parity for per-instance reload/hibernate/wake#13

Open
Teamingzooper wants to merge 1 commit into
feat/sidebar-context-actionsfrom
feat/command-palette-actions
Open

feat: command palette parity for per-instance reload/hibernate/wake#13
Teamingzooper wants to merge 1 commit into
feat/sidebar-context-actionsfrom
feat/command-palette-actions

Conversation

@Teamingzooper

Copy link
Copy Markdown
Owner

Summary

PR #12 added Reload, Hibernate, and Wake to the sidebar right-click context menu. This adds the same operations to the CommandPalette (⌘K) so keyboard-only users get them too. Fuzzy-match means typing `hib telegram` instantly surfaces "Hibernate Telegram".

Branch base: `feat/sidebar-context-actions` — eighth in the stack. Merge order: #6#7#8#9#10#11#12 → this.

What's added per instance

Command When shown
Reload <name> Always
Hibernate <name> Hibernate feature is enabled + instance is not active + not already asleep
Wake <name> Hibernate feature is enabled + instance is currently asleep

Existing jump/mute commands unchanged.

Test plan

  • `npm run typecheck` — clean
  • `npm run test` — 178/178 passing
  • `npm run build` — renderer + main both clean
  • Manual smoke: ⌘K, type "reload" — see reload entries for every instance. Pick a background one, hit Enter. The instance reloads without you switching to it.
  • Manual smoke (after feat: auto-hibernate inactive instances to reclaim memory #10 merged + hibernate enabled): ⌘K, type "hib" — see Hibernate entries for non-active, non-hibernated instances. Pick one. The 💤 appears. ⌘K, type "wake" — see Wake entry for that instance. Pick it. View rebuilds.

🤖 Generated with Claude Code

PR #12 added Reload, Hibernate, and Wake to the sidebar right-click
context menu. This adds the same operations to the CommandPalette
(⌘K) so keyboard-only users get them too.

Per instance, the palette now offers:
- "Reload <name>" — always shown. Refreshes the instance in place.
- "Hibernate <name>" — only when the hibernate feature is enabled
  AND the instance is not currently active AND it's not already
  hibernated.
- "Wake <name>" — only when the hibernate feature is enabled AND the
  instance is currently hibernated.

The existing fuzzy scoring means typing "hib telegram" instantly
surfaces the Hibernate Telegram command. Existing jump/mute commands
are unchanged.

178/178 tests still pass, typecheck + build clean.
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.

2 participants