feat: inject global rules into AI system prompt and fix Rules UI seeding
- Load global rules (AIFact/AIMemory) from local CloudModel and inject them into the Bedrock/OpenAI system prompt as a '## Global Rules' section when memory is enabled. - Fix rule seeding: always re-seed predefined rules when the CloudModel has none, regardless of the has_seeded_predefined_rules flag (handles case where flag was set but rules never persisted due to prior missing owner). - Rename /context slash command to /copy-context: dumps the full context window (global rules, progressive summary, message history) to the clipboard for debugging.
This commit is contained in:
@@ -1890,7 +1890,7 @@ async fn test_full_proto_round_trip_with_tool_history() {
|
||||
);
|
||||
|
||||
let messages = super::request_translator::extract_messages_from_request(&request);
|
||||
let system_prompt = super::request_translator::extract_system_prompt(&request);
|
||||
let system_prompt = super::request_translator::extract_system_prompt(&request, &[]);
|
||||
let tools = super::request_translator::extract_tools(&request);
|
||||
|
||||
println!("\n=== FULL PROTO ROUND-TRIP TEST ===");
|
||||
|
||||
Reference in New Issue
Block a user