Significant progress. Performing cleanup now

This commit is contained in:
Ryan Ward
2026-05-11 14:31:02 -05:00
parent fe105e0369
commit 140da74f99
37 changed files with 843 additions and 1220 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ const UNSUPPORTED_TMUX_VERSION_ERROR: &str =
"The tmux version available on the remote machine is below 3.0. Please install tmux 3.0 or greater using a different method and try again.";
const TMUX_FAILED_ERROR: &str =
"tmux failed to execute on the remote machine. Please re-install tmux and try again.";
const WARPIFY_TIMEOUT_ERROR: &str = "Warpifying the session hit a timeout.";
const WARPIFY_TIMEOUT_ERROR: &str = "Galaxifying the session hit a timeout.";
const UNSUPPORTED_SHELL_ERROR: &str =
"Unsupported shell. Please set bash, zsh, or fish as your default shell and try again.";
const TMUX_INSTALL_FAILED_ERROR: &str =
@@ -258,7 +258,7 @@ impl View for SshErrorBlock {
ButtonVariant::Accent,
self.warpify_without_tmux_button_mouse_state.clone(),
)
.with_centered_text_label("Warpify without TMUX".into())
.with_centered_text_label("Galaxify without TMUX".into())
.with_style(UiComponentStyles {
font_size: Some(appearance.monospace_font_size()),
..Default::default()
+1 -1
View File
@@ -67,7 +67,7 @@ impl Entity for SshWarpifyBlock {
impl SshWarpifyBlock {
fn render_title_ui(&self, theme: &WarpTheme, appearance: &Appearance) -> Box<dyn Element> {
let icon = Icon::new(UiIcon::Warp.into(), theme.active_ui_detail());
warpify::render::header_row("Warpifying SSH Session...", icon, theme, appearance)
warpify::render::header_row("Galaxifying SSH Session...", icon, theme, appearance)
}
}
@@ -97,8 +97,8 @@ impl WarpifyBannerState {
pub fn title(&self) -> &str {
match &self.mode {
WarpificationMode::Ssh { .. } => "Warpify SSH session",
WarpificationMode::Subshell { .. } => "Warpify subshell",
WarpificationMode::Ssh { .. } => "Galaxify SSH session",
WarpificationMode::Subshell { .. } => "Galaxify subshell",
}
}
+3 -31
View File
@@ -341,7 +341,7 @@ pub fn init(app: &mut AppContext) {
),
EditableBinding::new(
"terminal:warpify_subshell",
"Warpify subshell",
"Galaxify subshell",
TerminalAction::TriggerSubshellBootstrap,
)
.with_key_binding("ctrl-i")
@@ -350,7 +350,7 @@ pub fn init(app: &mut AppContext) {
),
EditableBinding::new(
"terminal:warpify_ssh_session",
"Warpify ssh session",
"Galaxify ssh session",
TerminalAction::WarpifySSHSession,
)
.with_key_binding("ctrl-i")
@@ -1073,35 +1073,7 @@ pub fn init(app: &mut AppContext) {
.with_enabled(|| FeatureFlag::Projects.is_enabled())
.with_context_predicate(id!("Workspace") & id!(flags::IS_ANY_AI_ENABLED))]);
// Register bindings for starting a new cloud agent conversation.
{
app.register_fixed_bindings([FixedBinding::new_per_platform(
PerPlatformKeystroke {
mac: "cmd-alt-enter",
linux_and_windows: "ctrl-alt-enter",
},
TerminalAction::EnterCloudAgentView,
id!("Terminal") & id!(flags::IS_ANY_AI_ENABLED),
)
.with_enabled(|| {
FeatureFlag::AgentView.is_enabled()
&& FeatureFlag::CloudMode.is_enabled()
&& FeatureFlag::CloudModeFromLocalSession.is_enabled()
})
.with_group(bindings::BindingGroup::WarpAi.as_str())]);
if cfg!(target_os = "macos") {
// On MacOS, if the user has the 'Option as meta' setting enabled, the cmd-alt-enter
// binding above will not match.
//
// TODO(zachbai): Consider if, for the purposes of fixed bindings, alt/meta should work
// fungibly regardless of underlying setting.
app.register_fixed_bindings([FixedBinding::new(
"cmd-meta-enter",
TerminalAction::EnterCloudAgentView,
id!("Terminal") & id!(flags::IS_ANY_AI_ENABLED),
)]);
}
}
}
/// Registers bindings related to input modes.
@@ -33,10 +33,10 @@ impl WarpifyFooterView {
let button_size = ButtonSize::XSmall;
let warpify_button = ctx.add_typed_action_view(|_ctx| {
ActionButton::new("Warpify subshell", AgentFooterButtonTheme::new(None))
ActionButton::new("Galaxify subshell", AgentFooterButtonTheme::new(None))
.with_icon(Icon::Warp)
.with_size(button_size)
.with_tooltip("Enable Warp shell integration in this session")
.with_tooltip("Enable Galaxy shell integration in this session")
.with_tooltip_alignment(TooltipAlignment::Left)
.on_click(|ctx| {
ctx.dispatch_typed_action(WarpifyFooterViewAction::Warpify);
@@ -48,7 +48,7 @@ impl WarpifyFooterView {
.with_icon(Icon::Oz)
.with_keybinding(KeystrokeSource::Fixed(USE_AGENT_KEYSTROKE.clone()), ctx)
.with_size(button_size)
.with_tooltip("Ask the Warp agent to assist")
.with_tooltip("Ask the Galaxy agent to assist")
.with_tooltip_alignment(TooltipAlignment::Left)
.on_click(|ctx| {
ctx.dispatch_typed_action(WarpifyFooterViewAction::UseAgent);
@@ -76,9 +76,9 @@ impl WarpifyFooterView {
pub fn set_mode(&mut self, mode: WarpificationMode, ctx: &mut ViewContext<Self>) {
let (label, binding_name) = match mode {
WarpificationMode::Ssh { .. } => {
("Warpify SSH session", "terminal:warpify_ssh_session")
("Galaxify SSH session", "terminal:warpify_ssh_session")
}
WarpificationMode::Subshell { .. } => ("Warpify subshell", "terminal:warpify_subshell"),
WarpificationMode::Subshell { .. } => ("Galaxify subshell", "terminal:warpify_subshell"),
};
self.warpify_button.update(ctx, |button, ctx| {
button.set_label(label, ctx);
-16
View File
@@ -19,7 +19,6 @@ use galaxyui::{
use crate::{
ai::blocklist::agent_view::{
AgentViewController, AgentViewControllerEvent, ENTER_AGENT_VIEW_NEW_CONVERSATION_KEYSTROKE,
ENTER_CLOUD_AGENT_VIEW_NEW_CONVERSATION_KEYSTROKE,
},
appearance::Appearance,
settings::{AISettings, AISettingsChangedEvent, InputModeSettings},
@@ -199,21 +198,6 @@ impl View for TerminalViewZeroStateBlock {
)]),
app,
),
render_standard_message(
Message::new(vec![MessageItem::clickable(
vec![
MessageItem::keystroke(
ENTER_CLOUD_AGENT_VIEW_NEW_CONVERSATION_KEYSTROKE.clone(),
),
MessageItem::text("start a new cloud agent conversation"),
],
|ctx| {
ctx.dispatch_typed_action(TerminalAction::EnterCloudAgentView);
},
self.state_handles.start_cloud_conversation.clone(),
)]),
app,
),
render_standard_message(
Message::new(vec![MessageItem::clickable(
vec![