#18145 · @anduimagui · opened Mar 18, 2026 at 10:22 PM UTC · last updated Mar 21, 2026 at 1:41 PM UTC
feat(app): import global commands from files and folders
Score breakdown
Impact
Clarity
Urgency
Ease Of Review
Guidelines
Readiness
Size
Trust
Traction
Summary
This draft PR introduces a new settings tab for the desktop application, enabling users to import global slash commands from markdown files and folders. It also addresses a bug by ensuring imported commands merge with existing configurations instead of overwriting them. The PR lacks a linked issue, making it difficult to assess specific user need or priority.
Description
Issue for this PR
Closes #
Type of change
- [ ] Bug fix
- [x] New feature
- [x] Refactor / code improvement
- [ ] Documentation
What does this PR do?
Adds a real Commands settings tab in desktop that imports global slash commands from either selected .md files or selected folders. Folder imports recurse to discover markdown files, parse frontmatter/body, then save commands to global config.
Also fixes import behavior to merge with existing command config instead of overwriting it, so previously configured global commands are preserved.
How did you verify your code works?
bun run typecheck(inpackages/desktop)cargo check(inpackages/desktop/src-tauri)cargo test test_export_types --lib(inpackages/desktop/src-tauri)
Screenshots / recordings
Included screenshot in discussion showing Commands settings with import actions.
Checklist
- [x] I have tested my changes locally
- [x] I have not included unrelated changes in this PR
Linked Issues
None.
Comments
No comments.
Changed Files
packages/app/src/components/dialog-settings.tsx
+8−0packages/app/src/components/settings-commands.tsx
+186−6packages/app/src/context/platform.tsx
+6−0packages/desktop/src-tauri/src/lib.rs
+73−1packages/desktop/src/bindings.ts
+7−0packages/desktop/src/index.tsx
+4−0