Skip to content

Add flashspace extension - #27201

Merged
raycastbot merged 10 commits into
raycast:mainfrom
krmbzds:ext/flashspace
May 6, 2026
Merged

raycastbot merged 10 commits into
raycast:mainfrom
krmbzds:ext/flashspace

Conversation

@krmbzds

@krmbzds krmbzds commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Manage FlashSpace workspaces, profiles, and apps directly from Raycast.

Commands

Workspace Management

  • List Workspaces – View all workspaces with display assignments
  • Create Workspace – Create new workspaces with display, icon, and hotkey options
  • Delete Workspace – Remove workspaces with confirmation dialog
  • Update Workspace – Modify workspace display and app settings
  • Activate Workspace – Quick-switch to any workspace by name

Profile Management

  • List Profiles – View all profiles with active indicator
  • Create Profile – Create profiles with copy and activate options
  • Delete Profile – Remove profiles with confirmation dialog

App Management

  • Assign App – Assign running apps to workspaces
  • Unassign App – Remove app assignments from all workspaces
  • Assign Visible Apps – Bulk-assign all visible apps to a workspace
  • List Workspace Apps – View apps assigned to each workspace
  • List Running Apps – View all currently running apps
  • Floating Apps – Toggle float/unfloat for apps

Utility Commands

  • Focus Window – Focus windows by direction or cycle through apps/windows
  • List Displays – View connected displays with active indicator
  • Get Status – View current active profile, workspace, app, and display
  • Hide Unassigned Apps – Hide all apps not assigned to any workspace
  • Open FlashSpace – Launch the FlashSpace application
  • Open Space Control – Open FlashSpace Space Control

Screenshots

Screenshots

FlashSpace - List Profiles
List profiles and switch between them

FlashSpace - List Workspaces
List workspaces and switch between them

FlashSpace - List Workspace Apps
List apps running in active workspace or other workspaces and switch between them.

FlashSpace - Floating Apps
Toggle float/unfloat for running apps.

FlashSpace - Assign App to Workspace
Assign app to workspace.

FlashSpace - Create New Workspace
Create new workspace.

Checklist

- Merge pull request #4 from krmbzds/copilot/split-focus-window-commands
- feat: remove HUD toaster messages from all focus commands
- feat: remove focus-window list command; 8 individual commands are now the only focus commands
- feat: add 8 individual no-view focus commands (left/right/up/down/next-app/prev-app/next-window/prev-window)
- Add screenshots section to README
- Add changelog
- Add screenshots
- Merge pull request #2 from krmbzds/copilot/update-list-profiles-imports-and-actions
- fix: revert to previous workspace on activation failure; clarify formatHotkey requirement
- fix: icon picker, hotkey selectors, and active workspace label refresh
- Remove changes to changelog
- chore: prepare extension for store - update CHANGELOG
- refactor: migrate list-profiles to async CLI calls with toast feedback
- Resize app icon to 512x512
- Merge pull request #1 from krmbzds/copilot/build-flashspace-raycast-extension
- Remove duplicate test blocks from cli-exec.test.ts
- Async CLI, async workspace icons, async open, enriched errors, new tests
- Update floating apps undo helper docs
- Add non-floating apps to floating apps menu
- Rename optimistic profile indicator state
- Update profile state and remove reserved enter shortcuts
- Update app icon
- Fix assign unassign floating profile and workspace UX
- Refactor icon mapping and name CLI timeout constant
- Polish status item readability and floating undo comments
- Clarify floating undo semantics and log config parse failures
- Fix remaining app, floating, status, and workspace icon bugs
- Remove unused getAppIconPath function
- Add comprehensive tests for all CLI parsing and command logic (51 tests)
- Fix all 5 bugs: parsing, activate workspace UI, app icons, focus action, unassign bundleId
- Fix command injection: use execFileSync via runFlashspace utility
- Implement complete FlashSpace Raycast extension with 20 commands
- Initial plan for FlashSpace Raycast Extension
- Add initial raycast extension scaffold
- Initial commit
@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Apr 15, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@krmbzds
krmbzds marked this pull request as ready for review April 15, 2026 10:19
@greptile-apps

greptile-apps Bot commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new Raycast extension for managing FlashSpace workspaces, profiles, and apps. The extension is well-structured with a clean separation between CLI utilities and UI commands, consistent optimistic-update patterns, and good test coverage.

  • 87 files introducing workspace/profile/app management commands, a CLI wrapper with async/sync variants, SF Symbol icon resolution, and vitest-based unit tests.
  • The floating-apps command has an issue in its undo toast action: a failed undo swallows the error silently and does not call revalidate(), leaving the UI stuck with an incorrect optimistic state and giving the user no feedback.
  • All other commands follow consistent patterns — delete actions use confirmAlert, active-item badges revalidate correctly, and bundleId || name is used uniformly as the CLI identifier.

Confidence Score: 4/5

Safe to merge after fixing the silent undo failure in floating-apps, which leaves users with no feedback and a stale UI state.

The undo handler in floating-apps.tsx catches all errors without showing a toast or calling revalidate(). A user who clicks Undo when the CLI call fails sees nothing happen and is left with an incorrect floating/unfloated indicator until they manually refresh. The rest of the extension is solid.

extensions/flashspace/src/commands/floating-apps.tsx — specifically the undo error handler in the toast primary action.

Important Files Changed

Filename Overview
extensions/flashspace/src/commands/floating-apps.tsx Floating/unfloat toggle with optimistic UI — undo error handler silently swallows failures without resetting state or notifying the user
extensions/flashspace/src/commands/list-workspaces.tsx Workspace list with activate/delete actions; delete uses confirmAlert and activate calls revalidateActiveWorkspace — looks correct
extensions/flashspace/src/utils/cli.ts CLI path resolution, sync/async exec wrappers, and output parsers — uses auto-generated Preferences type, no manual interface
extensions/flashspace/src/utils/workspace-icons.ts SF Symbol → Raycast icon mapping; fs imports consolidated into a single statement; async variant used in UI commands
extensions/flashspace/src/commands/unassign-app.tsx Unassign flow correctly uses bundleId
extensions/flashspace/src/commands/list-profiles.tsx Profile list with delete confirmation, optimistic active-profile display, and dual revalidation on activation
extensions/flashspace/src/utils/app-state.ts Builds optimistic item lists for assigned and floating apps with override maps — logic is straightforward
extensions/flashspace/package.json Well-formed package.json with $schema, correct platforms, Productivity category, and a single optional CLI path preference
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
extensions/flashspace/src/commands/floating-apps.tsx:46-51
**Silent undo failure leaves UI in stale state**

When the undo CLI call fails, the error is swallowed, no toast is shown to the user, and `revalidate()` is never called. The optimistic override set by the original action remains in place, so the list keeps displaying the post-action state (e.g., "Floating") even though the server still has the pre-action state. The user clicks "Undo", nothing visually changes, and there is no indication that it failed — the only way to recover is a manual refresh.

Reviews (6): Last reviewed commit: "Update CHANGELOG.md and optimise images" | Re-trigger Greptile

Comment thread extensions/flashspace/src/utils/cli.ts Resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@krmbzds
krmbzds marked this pull request as draft April 15, 2026 14:24
@krmbzds
krmbzds marked this pull request as ready for review April 15, 2026 16:00
@krmbzds

krmbzds commented Apr 15, 2026

Copy link
Copy Markdown
Contributor Author

It's lowkey impossible to clone the Raycast extensions repo so I made little a script that just clones what's necessary and installs the plugin in dev mode: install_flashspace_raycast_extension.sh

If there's an easier well-known way to do this I think it should be better advertised! :shipit:

@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Apr 29, 2026
@0xdhrv 0xdhrv self-assigned this May 6, 2026
@raycastbot raycastbot removed the status: stalled Stalled due inactivity label May 6, 2026
0xdhrv added 2 commits May 6, 2026 16:33
- Updated dependencies in package.json and package-lock.json for @raycast/api, @raycast/utils, toml, and yaml.
- Enhanced devDependencies with updated versions of eslint, prettier, typescript, and vitest.
- Modified TypeScript configuration to use Node16 module resolution and updated target to ES2022.
- Improved README formatting for better clarity.
- Refactored unassign-app command to handle app unassignment more robustly.
…rades

- Added new dependencies for @emnapi/core and @emnapi/runtime.
- Updated versions for @humanfs/core, @humanfs/node, and several @oclif packages.
- Upgraded @typescript-eslint packages to the latest version.
- Enhanced overall dependency management in the project.

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 5f84ca7 into raycast:main May 6, 2026
3 checks passed
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Comment on lines +46 to +51
await runFlashspaceAsync(["floating-apps", undoAction, "--name", identifier]);
setOverrides((current) => ({
...current,
[identifier]: { app: { name, bundleId }, isFloating: undoAction === "float" },
}));
revalidate();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Silent undo failure leaves UI in stale state

When the undo CLI call fails, the error is swallowed, no toast is shown to the user, and revalidate() is never called. The optimistic override set by the original action remains in place, so the list keeps displaying the post-action state (e.g., "Floating") even though the server still has the pre-action state. The user clicks "Undo", nothing visually changes, and there is no indication that it failed — the only way to recover is a manual refresh.

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/flashspace/src/commands/floating-apps.tsx
Line: 46-51

Comment:
**Silent undo failure leaves UI in stale state**

When the undo CLI call fails, the error is swallowed, no toast is shown to the user, and `revalidate()` is never called. The optimistic override set by the original action remains in place, so the list keeps displaying the post-action state (e.g., "Floating") even though the server still has the pre-action state. The user clicks "Undo", nothing visually changes, and there is no indication that it failed — the only way to recover is a manual refresh.

How can I resolve this? If you propose a fix, please make it concise.

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

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants