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
@@ -18,15 +18,15 @@ use crate::{
|
||||
cloud_object::model::persistence::CloudModel, workspaces::user_workspaces::UserWorkspaces,
|
||||
};
|
||||
use crate::{editor::Event as EditorEvent, send_telemetry_from_ctx};
|
||||
use crate::{server::telemetry::TelemetryEvent, user_config::WarpConfig};
|
||||
use crate::{server::telemetry::TelemetryEvent, user_config::GalaxyConfig};
|
||||
use crate::{
|
||||
themes::theme::{self, Blend, WarpTheme},
|
||||
user_config::WarpConfigUpdateEvent,
|
||||
themes::theme::{self, Blend, GalaxyTheme},
|
||||
user_config::GalaxyConfigUpdateEvent,
|
||||
};
|
||||
use fuzzy_match::{match_indices_case_insensitive, FuzzyMatchResult};
|
||||
use galaxy_core::ui::builder::UiBuilder;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxyui::accessibility::{AccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::color::ColorU;
|
||||
use galaxyui::elements::{
|
||||
Align, CrossAxisAlignment, EventHandler, Highlight, Hoverable, MainAxisSize, MouseStateHandle,
|
||||
@@ -174,7 +174,7 @@ impl WorkflowViewType {
|
||||
WorkflowViewType::Team => "Showing team workflows".into(),
|
||||
};
|
||||
|
||||
AccessibilityContent::new_without_help(a11y_content, WarpA11yRole::UserAction)
|
||||
AccessibilityContent::new_without_help(a11y_content, GalaxyA11yRole::UserAction)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ impl SelectionState {
|
||||
}
|
||||
}
|
||||
|
||||
fn background_color(&self, theme: &WarpTheme) -> theme::Fill {
|
||||
fn background_color(&self, theme: &GalaxyTheme) -> theme::Fill {
|
||||
match self {
|
||||
SelectionState::Unselected => theme.surface_2(),
|
||||
SelectionState::Selected => theme.surface_2().blend(&theme.accent_overlay()),
|
||||
@@ -406,8 +406,8 @@ impl CategoriesView {
|
||||
ctx.notify();
|
||||
});
|
||||
|
||||
ctx.subscribe_to_model(&WarpConfig::handle(ctx), |me, _, event, ctx| {
|
||||
if let WarpConfigUpdateEvent::LocalUserWorkflows = event {
|
||||
ctx.subscribe_to_model(&GalaxyConfig::handle(ctx), |me, _, event, ctx| {
|
||||
if let GalaxyConfigUpdateEvent::LocalUserWorkflows = event {
|
||||
me.update_workflows(ctx);
|
||||
}
|
||||
});
|
||||
@@ -722,7 +722,7 @@ impl CategoriesView {
|
||||
);
|
||||
ctx.emit_a11y_content(AccessibilityContent::new_without_help(
|
||||
a11y_content_text,
|
||||
WarpA11yRole::MenuItemRole,
|
||||
GalaxyA11yRole::MenuItemRole,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -1156,7 +1156,7 @@ impl CategoriesView {
|
||||
}
|
||||
|
||||
fn update_workflows(&mut self, ctx: &mut ViewContext<Self>) {
|
||||
let workflows = WarpConfig::as_ref(ctx)
|
||||
let workflows = GalaxyConfig::as_ref(ctx)
|
||||
.local_user_workflows()
|
||||
.iter()
|
||||
.map(Clone::clone)
|
||||
@@ -1212,7 +1212,7 @@ impl View for CategoriesView {
|
||||
Some(AccessibilityContent::new(
|
||||
"Workflows",
|
||||
"Search or use arrow up and arrow down keys to navigate and find a workflow. Use enter to confirm the workflow and esc to quit.",
|
||||
WarpA11yRole::MenuRole,
|
||||
GalaxyA11yRole::MenuRole,
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ use warp_workflows::workflows as global_workflows;
|
||||
|
||||
#[cfg(feature = "local_fs")]
|
||||
use crate::user_config::load_workflows;
|
||||
use crate::{terminal::model::session::Session, user_config::WarpConfig};
|
||||
use crate::{terminal::model::session::Session, user_config::GalaxyConfig};
|
||||
|
||||
use super::{workflow::Workflow, WorkflowSource};
|
||||
|
||||
@@ -136,7 +136,7 @@ impl LocalWorkflows {
|
||||
.map(|workflow| (WorkflowSource::Project, workflow)),
|
||||
)
|
||||
.chain(
|
||||
WarpConfig::as_ref(ctx)
|
||||
GalaxyConfig::as_ref(ctx)
|
||||
.local_user_workflows()
|
||||
.iter()
|
||||
.map(|workflow| (WorkflowSource::Local, workflow)),
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::sync::Arc;
|
||||
use super::*;
|
||||
|
||||
fn initialize_app(app: &App) {
|
||||
app.add_singleton_model(WarpConfig::mock);
|
||||
app.add_singleton_model(GalaxyConfig::mock);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use super::{workflow::Workflow, CloudWorkflowModel};
|
||||
use crate::{
|
||||
cloud_object::{model::persistence::CloudModel, GenericCloudObject, Owner},
|
||||
drive::OpenWarpDriveObjectSettings,
|
||||
drive::OpenGalaxyDriveObjectSettings,
|
||||
pane_group::{PaneContent, WorkflowPane},
|
||||
safe_warn,
|
||||
server::{
|
||||
@@ -67,7 +67,7 @@ impl WorkflowManager {
|
||||
pub fn create_pane(
|
||||
&mut self,
|
||||
source: &WorkflowOpenSource,
|
||||
settings: &OpenWarpDriveObjectSettings,
|
||||
settings: &OpenGalaxyDriveObjectSettings,
|
||||
mode: WorkflowViewMode,
|
||||
window_id: WindowId,
|
||||
ctx: &mut ModelContext<Self>,
|
||||
@@ -122,7 +122,7 @@ impl WorkflowManager {
|
||||
*initial_folder_id,
|
||||
ClientId::default(),
|
||||
),
|
||||
&OpenWarpDriveObjectSettings::default(),
|
||||
&OpenGalaxyDriveObjectSettings::default(),
|
||||
mode,
|
||||
ctx,
|
||||
);
|
||||
|
||||
@@ -36,7 +36,7 @@ use crate::{
|
||||
workflow_arg_selector::{WorkflowArgSelector, WorkflowArgSelectorEvent},
|
||||
workflow_arg_type_helpers::{self, ArgumentEditorRowIndex},
|
||||
},
|
||||
CloudObjectTypeAndId, DriveObjectType, OpenWarpDriveObjectSettings,
|
||||
CloudObjectTypeAndId, DriveObjectType, OpenGalaxyDriveObjectSettings,
|
||||
},
|
||||
editor::{
|
||||
EditorOptions, EditorView, EnterAction, EnterSettings, Event as EditorEvent,
|
||||
@@ -591,7 +591,7 @@ impl WorkflowView {
|
||||
{
|
||||
self.load(
|
||||
workflow.clone(),
|
||||
&OpenWarpDriveObjectSettings::default(),
|
||||
&OpenGalaxyDriveObjectSettings::default(),
|
||||
self.workflow_view_mode,
|
||||
ctx,
|
||||
);
|
||||
@@ -611,7 +611,7 @@ impl WorkflowView {
|
||||
{
|
||||
self.load(
|
||||
workflow,
|
||||
&OpenWarpDriveObjectSettings::default(),
|
||||
&OpenGalaxyDriveObjectSettings::default(),
|
||||
self.workflow_view_mode,
|
||||
ctx,
|
||||
);
|
||||
@@ -629,7 +629,7 @@ impl WorkflowView {
|
||||
if let Some(workflow) = cloud_workflow {
|
||||
self.load(
|
||||
workflow,
|
||||
&OpenWarpDriveObjectSettings::default(),
|
||||
&OpenGalaxyDriveObjectSettings::default(),
|
||||
self.workflow_view_mode,
|
||||
ctx,
|
||||
);
|
||||
@@ -639,7 +639,7 @@ impl WorkflowView {
|
||||
pub fn wait_for_initial_load_then_load(
|
||||
&mut self,
|
||||
workflow_id: SyncId,
|
||||
settings: &OpenWarpDriveObjectSettings,
|
||||
settings: &OpenGalaxyDriveObjectSettings,
|
||||
mode: WorkflowViewMode,
|
||||
window_id: WindowId,
|
||||
ctx: &mut ViewContext<Self>,
|
||||
@@ -680,7 +680,7 @@ impl WorkflowView {
|
||||
fn fetch_and_load_workflow(
|
||||
&mut self,
|
||||
workflow_id: ServerId,
|
||||
settings: &OpenWarpDriveObjectSettings,
|
||||
settings: &OpenGalaxyDriveObjectSettings,
|
||||
mode: WorkflowViewMode,
|
||||
window_id: WindowId,
|
||||
ctx: &mut ViewContext<Self>,
|
||||
@@ -718,7 +718,7 @@ impl WorkflowView {
|
||||
pub fn load(
|
||||
&mut self,
|
||||
workflow: CloudWorkflow,
|
||||
settings: &OpenWarpDriveObjectSettings,
|
||||
settings: &OpenGalaxyDriveObjectSettings,
|
||||
mode: WorkflowViewMode,
|
||||
ctx: &mut ViewContext<Self>,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user