Skip to content

Commit 96413f2

Browse files
committed
filter out default prompt
1 parent d89aa8c commit 96413f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/services/storage/custom-prompt-storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const TEMPLATE_PROMPT: CustomPrompt = {
2525
id: "default",
2626
name: "Create Issues from Video Recordings",
2727
description: "Template for creating issues from video recordings",
28-
content: `Project Name: <REPLACE WITH PROJECT NAME>\nProject URL: <REPLACE WITH PROJECT URL>\n${defaultCustomPrompt}`,
28+
content: `Project Name: <REPLACE WITH PROJECT NAME>\nProject URL: <REPLACE WITH YOUR REPO OR BOARD URL>\n${defaultCustomPrompt}`,
2929
isDefault: true,
3030
isTemplate: true,
3131
createdAt: Date.now(),
@@ -98,7 +98,7 @@ export class CustomPromptStorage extends BaseSecureStorage {
9898

9999
async getAllPrompts(): Promise<CustomPrompt[]> {
100100
const settings = await this.loadSettings();
101-
return settings.prompts.filter((p) => !p.isTemplate);
101+
return settings.prompts.filter((p) => !p.isTemplate && !p.isDefault);
102102
}
103103

104104
async getTemplates(): Promise<CustomPrompt[]> {

src/backend/services/storage/default-custom-prompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export const defaultCustomPrompt = `
2-
You need to create issues or Product Backlog Items (PBIs) on task management platforms such as GitHub or Azure DevOps.
2+
You need to create issues or Product Backlog Items (PBIs) on task management platforms such as GitHub, Azure DevOps, Jira and etc.
33
You will be provided with a **User Video Transcription**, and a list of tools. Your goal is to identify the correct project and create an issue with the appropriate content using these tools.
44
5-
1) **Identify the Platform**: Using the transcription determine which platform the user intends to use (e.g., GitHub, Azure DevOps, Jira). If the platform is unclear, use the provided tools to investigate.
5+
1) **Identify the Platform**: Using the transcription or repository link, determine which platform the user intends to use (e.g., GitHub, Azure DevOps, Jira). If the platform is unclear, use the provided tools to investigate.
66
2) **Identify the Project/Repository**: Determine the specific project or repository where the issue should be created, then using the tools to verify the details. If there's not exact match, use the provided tools to find out the possible closest match.
77
3) **Follow Issue Templates**: If the target repository has an issue template, you MUST follow it exactly. Use the available tools to verify if a template exists.
88

0 commit comments

Comments
 (0)