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:
Ryan Ward
2026-05-21 11:59:37 -05:00
co-authored by Claude Opus 4.6
parent eaa2ddc75e
commit 6f54e2cb30
229 changed files with 2506 additions and 2634 deletions
+2 -2
View File
@@ -599,12 +599,12 @@ impl Input {
}
pub mod styles {
use galaxy_core::ui::theme::WarpTheme;
use galaxy_core::ui::theme::GalaxyTheme;
use pathfinder_color::ColorU;
use crate::ui_components::blended_colors;
pub fn default_border_color(theme: &WarpTheme) -> ColorU {
pub fn default_border_color(theme: &GalaxyTheme) -> ColorU {
blended_colors::neutral_2(theme)
}
}
+4 -4
View File
@@ -5,7 +5,7 @@
//! visual design matching the Figma specifications.
use galaxy_core::ui::appearance::Appearance;
use galaxy_core::ui::color::blend::Blend;
use galaxy_core::ui::theme::{Fill, WarpTheme};
use galaxy_core::ui::theme::{Fill, GalaxyTheme};
use galaxyui::color::ColorU;
use galaxyui::{AppContext, SingletonEntity};
@@ -46,15 +46,15 @@ pub fn item_background(
}
}
pub fn primary_text_color(theme: &WarpTheme, background: Fill) -> Fill {
pub fn primary_text_color(theme: &GalaxyTheme, background: Fill) -> Fill {
theme.main_text_color(background)
}
pub fn secondary_text_color(theme: &WarpTheme, background: Fill) -> Fill {
pub fn secondary_text_color(theme: &GalaxyTheme, background: Fill) -> Fill {
theme.sub_text_color(background)
}
pub fn disabled_text_color(theme: &WarpTheme, background: Fill) -> Fill {
pub fn disabled_text_color(theme: &GalaxyTheme, background: Fill) -> Fill {
theme.disabled_text_color(background)
}
@@ -25,7 +25,7 @@ use crate::terminal::cli_agent_sessions::{
CLIAgentInputState, CLIAgentSessionsModel, CLIAgentSessionsModelEvent,
};
use crate::terminal::model::session::SessionType;
use galaxy_core::ui::Icon as WarpIcon;
use galaxy_core::ui::Icon as GalaxyIcon;
use super::AcceptSlashCommandOrSavedPrompt;
use crate::{
@@ -440,13 +440,13 @@ impl InlineItem {
override_icon
} else {
match skill.provider {
SkillProvider::Warp => WarpIcon::Warp,
SkillProvider::Claude => WarpIcon::ClaudeLogo,
SkillProvider::Codex => WarpIcon::OpenAILogo,
SkillProvider::Gemini => WarpIcon::GeminiLogo,
SkillProvider::Droid => WarpIcon::DroidLogo,
SkillProvider::OpenCode => WarpIcon::OpenCodeLogo,
_ => WarpIcon::Warp,
SkillProvider::Warp => GalaxyIcon::Warp,
SkillProvider::Claude => GalaxyIcon::ClaudeLogo,
SkillProvider::Codex => GalaxyIcon::OpenAILogo,
SkillProvider::Gemini => GalaxyIcon::GeminiLogo,
SkillProvider::Droid => GalaxyIcon::DroidLogo,
SkillProvider::OpenCode => GalaxyIcon::OpenCodeLogo,
_ => GalaxyIcon::Warp,
}
};
@@ -18,7 +18,7 @@ use crate::input_suggestions::{
DETAILS_PANEL_MARGIN, DETAILS_PANEL_PADDING, HISTORY_DETAILS_PANEL_WIDTH,
LABEL_PADDING as InputSuggestionsLabelPadding,
};
use crate::themes::theme::WarpTheme;
use crate::themes::theme::GalaxyTheme;
use galaxyui::elements::{
Align, Border, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, DragBarSide,
DropShadow, Element, Empty, Flex, ParentElement, Radius, Resizable, Shrinkable,
@@ -187,7 +187,7 @@ impl Input {
&self,
margin: f32,
corner_radius: CornerRadius,
theme: &WarpTheme,
theme: &GalaxyTheme,
resize_config: SuggestionsResizeConfig,
menu_positioning: MenuPositioning,
content: Box<dyn Element>,
+2 -2
View File
@@ -298,10 +298,10 @@ impl Input {
}
pub mod styles {
use galaxy_core::ui::theme::WarpTheme;
use galaxy_core::ui::theme::GalaxyTheme;
use pathfinder_color::ColorU;
pub fn default_border_color(theme: &WarpTheme) -> ColorU {
pub fn default_border_color(theme: &GalaxyTheme) -> ColorU {
theme.outline().into()
}
}
@@ -1,6 +1,6 @@
use std::sync::Arc;
use galaxy_core::ui::theme::WarpTheme;
use galaxy_core::ui::theme::GalaxyTheme;
use galaxyui::elements::{Container, Element};
use galaxyui::keymap::Keystroke;
use galaxyui::{AppContext, Entity, ModelHandle, SingletonEntity, View, ViewContext};
@@ -460,7 +460,7 @@ impl MessageTransformer<TerminalMessageArgs<'_>> for AttachedTextSelectionMessag
}
}
fn message_magenta(theme: &WarpTheme) -> ColorU {
fn message_magenta(theme: &GalaxyTheme) -> ColorU {
let mut color = theme.ansi_fg_magenta();
color.a = (255. * 0.65) as u8;
color