v1.4.0: Auto-compact streaming, Bedrock summarization support, subagent orchestration, and Galaxy rebrand continuation
Major features: - Auto-compact: triggers conversation summarization when context window >= 85%, compacts Bedrock message history to a summary pair, and tracks live context tokens - Bedrock summarization: plumbs `is_summarization` flag through translator/client/response pipeline, handles SummarizeConversation input type, and marks `summarized` in metadata - Session restore: rebuilds bedrock_message_history from persisted task messages via newly-public `convert_proto_message`, preventing empty history on reconnect - Subagent orchestration: adds SubagentQuestion/Answer/CompletionSummary event types, parent-child question routing with depth limits, retry counting, and drain methods - Summarization UI: inline SummarizationView in AI blocks with progress/finished states Refactors: - Rename WarpTheme → GalaxyTheme across ~100 files (rebrand continuation) - Rename warp_home_config_dir → galaxy_home_config_dir and related path functions - Predefined rules: replace "System Defined Rule #N" with descriptive names (e.g. "Correctness Over Speed", "Never Guess") and add lookup helpers - Usage view: replace cumulative input/output token display with live context tokens, cache hit rate calculation, and separate cache read/write stats - Telemetry: remove verbose doc comments, simplify trait definitions - Facts view: simplify delete permission check (always allow local deletion) - Remove warp_managed_paths_watcher.rs (dead code) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
eaa2ddc75e
commit
6f54e2cb30
+14
-14
@@ -254,7 +254,7 @@ impl InMemoryThemeOptions {
|
||||
self.path = path;
|
||||
}
|
||||
|
||||
pub fn theme(&self) -> WarpTheme {
|
||||
pub fn theme(&self) -> GalaxyTheme {
|
||||
let bg_color = self.chosen_bg_color();
|
||||
let fg_color = pick_foreground_color(bg_color);
|
||||
let possible_accent_colors: Vec<ColorU> = self
|
||||
@@ -273,7 +273,7 @@ impl InMemoryThemeOptions {
|
||||
(Details::Lighter, light_mode_colors())
|
||||
};
|
||||
|
||||
WarpTheme::new(
|
||||
GalaxyTheme::new(
|
||||
bg_color.into(),
|
||||
fg_color,
|
||||
accent_color.into(),
|
||||
@@ -293,14 +293,14 @@ impl InMemoryThemeOptions {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct WarpThemeConfig {
|
||||
theme_map: HashMap<ThemeKind, WarpTheme>,
|
||||
pub struct GalaxyThemeConfig {
|
||||
theme_map: HashMap<ThemeKind, GalaxyTheme>,
|
||||
}
|
||||
|
||||
impl WarpThemeConfig {
|
||||
impl GalaxyThemeConfig {
|
||||
pub fn new() -> Self {
|
||||
// preload with built-in themes
|
||||
let theme_map: HashMap<ThemeKind, WarpTheme> = HashMap::from_iter([
|
||||
let theme_map: HashMap<ThemeKind, GalaxyTheme> = HashMap::from_iter([
|
||||
(ThemeKind::SentReferralReward, sent_referral_reward()),
|
||||
(
|
||||
ThemeKind::ReceivedReferralReward,
|
||||
@@ -330,10 +330,10 @@ impl WarpThemeConfig {
|
||||
(ThemeKind::SamsungDark, samsung_dark()),
|
||||
(ThemeKind::SamsungLight, samsung_light()),
|
||||
]);
|
||||
WarpThemeConfig { theme_map }
|
||||
GalaxyThemeConfig { theme_map }
|
||||
}
|
||||
|
||||
pub fn add_new_theme(&mut self, theme_name: ThemeKind, theme: WarpTheme) {
|
||||
pub fn add_new_theme(&mut self, theme_name: ThemeKind, theme: GalaxyTheme) {
|
||||
self.theme_map.insert(theme_name, theme);
|
||||
}
|
||||
|
||||
@@ -341,16 +341,16 @@ impl WarpThemeConfig {
|
||||
CustomTheme::new(name, path).into()
|
||||
}
|
||||
|
||||
pub fn theme_items(&self) -> impl Iterator<Item = (&ThemeKind, &WarpTheme)> {
|
||||
pub fn theme_items(&self) -> impl Iterator<Item = (&ThemeKind, &GalaxyTheme)> {
|
||||
self.theme_map.iter()
|
||||
}
|
||||
|
||||
pub fn theme(&self, name: &ThemeKind) -> WarpTheme {
|
||||
pub fn theme(&self, name: &ThemeKind) -> GalaxyTheme {
|
||||
self.theme_map.get(name).cloned().unwrap_or_else(dark_theme)
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for WarpThemeConfig {
|
||||
impl Default for GalaxyThemeConfig {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
@@ -419,8 +419,8 @@ pub struct PromptColors {
|
||||
pub input_prompt_ssh: ColorU,
|
||||
}
|
||||
|
||||
impl From<WarpTheme> for PromptColors {
|
||||
fn from(theme: WarpTheme) -> Self {
|
||||
impl From<GalaxyTheme> for PromptColors {
|
||||
fn from(theme: GalaxyTheme) -> Self {
|
||||
PromptColors {
|
||||
input_prompt_conversation_management: theme.terminal_colors().normal.white.into(),
|
||||
input_prompt_pwd: theme.terminal_colors().normal.magenta.into(),
|
||||
@@ -443,7 +443,7 @@ impl From<WarpTheme> for PromptColors {
|
||||
}
|
||||
|
||||
pub fn render_preview(
|
||||
theme: &WarpTheme,
|
||||
theme: &GalaxyTheme,
|
||||
font_family: FamilyId,
|
||||
form_factor: Option<f32>,
|
||||
) -> Box<dyn Element> {
|
||||
|
||||
Reference in New Issue
Block a user