Repository navigation
Add flashspace extension - #27201
Add flashspace extension#27201
Conversation
- 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
|
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. |
Fixes build error
Greptile SummaryThis 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.
Confidence Score: 4/5Safe 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
Prompt To Fix All With AIFix 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 |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…rences interface (#2) Agent-Logs-Url: https://github.com/krmbzds/raycast-extensions/sessions/d3cfca24-0cc7-44e1-a451-dd1eb5b2ffcd Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: krmbzds <[email protected]>
…in workspace-icons.ts (#3) Agent-Logs-Url: https://github.com/krmbzds/raycast-extensions/sessions/1805f363-9d23-4d7e-8c7c-f9abaf694120 Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: krmbzds <[email protected]>
…n export (#4) Agent-Logs-Url: https://github.com/krmbzds/raycast-extensions/sessions/8f9a12cd-5444-4c67-be7c-593a271d7d21 Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: krmbzds <[email protected]>
|
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! |
|
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 😊 |
- 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.
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
| await runFlashspaceAsync(["floating-apps", undoAction, "--name", identifier]); | ||
| setOverrides((current) => ({ | ||
| ...current, | ||
| [identifier]: { app: { name, bundleId }, isFloating: undoAction === "float" }, | ||
| })); | ||
| revalidate(); |
There was a problem hiding this 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.
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.
Description
Manage FlashSpace workspaces, profiles, and apps directly from Raycast.
Commands
Workspace Management
Profile Management
App Management
Utility Commands
Screenshots
Screenshots
List profiles and switch between them
List workspaces and switch between them
List apps running in active workspace or other workspaces and switch between them.
Toggle float/unfloat for running apps.
Assign app to workspace.
Create new workspace.
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder