Compare commits

...

1 Commits

Author SHA1 Message Date
Oleksiy Syvokon
9ca4d3c33d Add reminders to sync prompts with the backend 2025-05-30 11:07:35 +03:00
6 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
{{!----------------------------------------------------------------------------------
NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
------------------------------------------------------------------------------------}}
{{#if language_name}}
Here's a file of {{language_name}} that I'm going to ask you to make an edit to.
{{else}}

View File

@@ -1,3 +1,6 @@
{{!----------------------------------------------------------------------------------
NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
------------------------------------------------------------------------------------}}
You are an expert terminal user.
You will be given a description of a command and you need to respond with a command that matches the description.
Do not include markdown blocks or any other text formatting in your response, always respond with a single command that can be executed in the given shell.

View File

@@ -1428,6 +1428,7 @@ impl Thread {
messages: &mut Vec<LanguageModelRequestMessage>,
cx: &App,
) {
// NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
const STALE_FILES_HEADER: &str = "These files changed since last read:";
let mut stale_message = String::new();
@@ -1854,6 +1855,7 @@ impl Thread {
return;
}
// NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
let added_user_message = "Generate a concise 3-7 word title for this conversation, omitting punctuation. \
Go straight to the title, without any preamble and prefix like `Here's a concise suggestion:...` or `Title:`. \
If the conversation is about a specific subject, include it in the title. \
@@ -1958,6 +1960,7 @@ impl Thread {
return;
}
// NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
let added_user_message = "Generate a detailed summary of this conversation. Include:\n\
1. A brief overview of what was discussed\n\
2. Key facts or information discovered\n\

View File

@@ -1,3 +1,6 @@
{{!----------------------------------------------------------------------------------
NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
------------------------------------------------------------------------------------}}
You are an expert engineer and your task is to write a new file from scratch.
You MUST respond with the file's content wrapped in triple backticks (```).

View File

@@ -1,3 +1,6 @@
{{!----------------------------------------------------------------------------------
NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
------------------------------------------------------------------------------------}}
You MUST respond with a series of edits to a file, using the following format:
```

View File

@@ -1761,6 +1761,7 @@ impl GitPanel {
format!("{PROMPT}\nHere is the user's subject line:\n{subject}\nHere are the changes in this commit:\n{diff_text}\n")
};
// NOTE: Changes to this prompt require a symmetric update in monorepo/request_kind.rs
const PROMPT: &str = include_str!("commit_message_prompt.txt");
let request = LanguageModelRequest {