Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(copilot): add raw-loader and dynamic system prompt loading #1887

Merged
merged 9 commits into from
Mar 11, 2025

Conversation

ysfscream
Copy link
Member

@ysfscream ysfscream commented Mar 10, 2025

I'll help you complete the GitHub PR description based on the template and the content you've provided:

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

Currently, the system prompts are scattered in the i18n files, making them difficult to manage and modify efficiently. The preset section lacks structure and issues with system prompt loading and command customization. The empty page lacks helpful guidance for users.

Issue Number

What is the new behavior?

  1. Reorganized all system prompts into a single English txt file for easier management and modification, rather than maintaining them in i18n
  2. Refactored the preset section to improve maintainability and make it easier to add new presets
  3. Implemented dynamic loading of system prompts
  4. Optimized commands that require custom user input
  5. Enhanced the empty page display with usage tips and suggestions
image

Does this PR introduce a breaking change?

  • Yes
  • No

Specific Instructions

This PR focuses on improving the organization and management of system prompts and presets. Please review the new file structure for system prompts and the refactored preset implementation.

Other information

This refactoring will make it easier to maintain and extend the system prompts and presets in the future, while also providing a better user experience with improved guidance.

@ysfscream ysfscream requested a review from Red-Asuka March 11, 2025 02:37
@ysfscream ysfscream self-assigned this Mar 11, 2025
@ysfscream ysfscream added enhancement New feature or request refactor Refactor code or architecture desktop MQTTX Desktop labels Mar 11, 2025
@ysfscream ysfscream added this to the v1.12.0 milestone Mar 11, 2025
@ysfscream ysfscream marked this pull request as ready for review March 11, 2025 02:37
@Red-Asuka Red-Asuka merged commit abd94cf into main Mar 11, 2025
4 checks passed
@Red-Asuka Red-Asuka deleted the ysf/desktop branch March 11, 2025 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop enhancement New feature or request refactor Refactor code or architecture
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants