ZIm/crates/assistant_slash_commands/src
Michael Sloan 502a0f6535
agent: Use default prompts from prompt library in system prompt (#28915)
Related to #28490.

- Default prompts from the prompt library are now included as "user
rules" in the system prompt.
- Presence of these user rules is shown at the beginning of the thread
in the UI.
_ Now uses an `Entity<PromptStore>` instead of an `Arc<PromptStore>`.
Motivation for this is emitting a `PromptsUpdatedEvent`.
- Now disallows concurrent reloading of the system prompt. Before this
change it was possible for reloads to race.

Release Notes:

- agent: Added support for including default prompts from the Prompt
Library as "user rules" in the system prompt.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
2025-04-18 09:32:35 -06:00
..
assistant_slash_commands.rs assistant: Remove /search (#27661) 2025-03-28 13:40:31 +00:00
cargo_workspace_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
context_server_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
default_command.rs agent: Use default prompts from prompt library in system prompt (#28915) 2025-04-18 09:32:35 -06:00
delta_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
diagnostics_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
docs_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
fetch_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
file_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
now_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
prompt_command.rs agent: Use default prompts from prompt library in system prompt (#28915) 2025-04-18 09:32:35 -06:00
selection_command.rs agent: Support adding selection as context (#28964) 2025-04-17 16:55:15 +02:00
streaming_example_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
symbols_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
tab_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
terminal_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00