Fix tool results visibility, dynamic system prompt, rebrand Galaxy AI to Galaxy
- Rewrite extract_system_prompt to dynamically include CWD, OS, shell, git, project rules, and tool usage guidance from request context - Fix extract_tool_result_content and format_tool_call_result to properly handle Grep, FileGlobV2, and ApplyFileDiffs results (were returning empty 'Tool completed successfully' strings - model never saw file lists) - Rename all 'Galaxy AI' references to just 'Galaxy' (menu, window title, bundle names, plist, welcome text, about) - Update smoke test with file visibility test prompt - Suppress dead_code warnings on unused smoke test functions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//! AI Assistant has since been renamed to "Galaxy AI" in the product.
|
||||
//! AI Assistant has since been renamed to "Galaxy" in the product.
|
||||
use std::{collections::HashSet, sync::Arc};
|
||||
|
||||
use crate::{
|
||||
@@ -34,8 +34,8 @@ mod test_util;
|
||||
/// This is also roughly the limit at which the editor starts degrading.
|
||||
pub const PROMPT_CHARACTER_LIMIT: usize = 1000;
|
||||
|
||||
pub const AI_ASSISTANT_FEATURE_NAME: &str = "Galaxy AI";
|
||||
pub const ASK_AI_ASSISTANT_TEXT: &str = "Ask Galaxy AI";
|
||||
pub const AI_ASSISTANT_FEATURE_NAME: &str = "Galaxy";
|
||||
pub const ASK_AI_ASSISTANT_TEXT: &str = "Ask Galaxy";
|
||||
|
||||
pub const AI_ASSISTANT_SVG_PATH: &str = "bundled/svg/ai-assistant.svg";
|
||||
|
||||
|
||||
@@ -165,14 +165,14 @@ pub fn init(app: &mut AppContext) {
|
||||
.with_key_binding(cmd_or_ctrl_shift("l")),
|
||||
EditableBinding::new(
|
||||
"ai_assistant_panel:reset_context",
|
||||
"Restart Galaxy AI",
|
||||
"Restart Galaxy",
|
||||
AIAssistantAction::ResetContext,
|
||||
)
|
||||
.with_context_predicate(id!("AIAssistantPanel"))
|
||||
.with_key_binding("ctrl-l"),
|
||||
EditableBinding::new(
|
||||
"ai_assistant_panel:reset_context",
|
||||
"Restart Galaxy AI",
|
||||
"Restart Galaxy",
|
||||
AIAssistantAction::ResetContext,
|
||||
)
|
||||
.with_context_predicate(id!("AIAssistantPanel"))
|
||||
|
||||
Reference in New Issue
Block a user