Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner

This commit is contained in:
2026-07-02 14:54:15 -05:00
parent 4770ac06b5
commit 3769646ca6
1194 changed files with 5312 additions and 8032 deletions
+3 -3
View File
@@ -5,9 +5,6 @@ use std::sync::Arc;
use enum_iterator::{all, Sequence};
use fuzzy_match::match_indices_case_insensitive;
use itertools::Itertools;
use lazy_static::lazy_static;
use regex::Regex;
use galaxyui::actions::StandardAction;
use galaxyui::keymap::{
BindingDescription, BindingId, BindingLens, CustomTag, DescriptionContext, EditableBindingLens,
@@ -15,6 +12,9 @@ use galaxyui::keymap::{
};
use galaxyui::platform::OperatingSystem;
use galaxyui::{Action, AppContext, SingletonEntity};
use itertools::Itertools;
use lazy_static::lazy_static;
use regex::Regex;
use crate::keyboard::{remove_custom_keybinding, write_custom_keybinding, UserDefinedKeybinding};
use crate::settings_view::keybindings::{KeybindingChangedEvent, KeybindingChangedNotifier};
+3 -3
View File
@@ -2,13 +2,13 @@ use std::fmt::Write;
use std::path::Path;
use command::r#async::Command;
use galaxy_core::channel::ChannelState;
use galaxy_core::AppId;
use galaxyui::ApplicationBundleInfo;
use instant::Instant;
use objc2::rc::{autoreleasepool, Retained};
use objc2_app_kit::NSWorkspace;
use objc2_foundation::{NSBundle, NSString, NSURL};
use galaxy_core::channel::ChannelState;
use galaxy_core::AppId;
use galaxyui::ApplicationBundleInfo;
use super::*;
@@ -303,7 +303,7 @@ fn test_editor_try_from_supported_editors() {
#[test]
fn test_editor_try_from_unsupported_editors() {
use super::Editor;
// Test unsupported terminal editors
assert!(Editor::try_from("vim").is_err());
assert!(Editor::try_from("emacs").is_err());
@@ -1,6 +1,6 @@
use serde::{Deserialize, Deserializer, Serialize};
use settings::macros::define_settings_group;
use settings::{RespectUserSyncSetting, SupportedPlatforms, SyncToCloud};
use settings::{RespectUserSyncSetting, Setting, SupportedPlatforms, SyncToCloud};
pub use crate::util::openable_file_type::EditorLayout;
+4 -3
View File
@@ -1,3 +1,7 @@
#[cfg(unix)]
use std::fs;
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
use std::path::Path;
use command::r#async::Command;
@@ -288,7 +292,6 @@ async fn committed_branch_files_excludes_uncommitted_and_untracked() {
#[cfg(unix)]
#[tokio::test]
async fn get_pr_for_branch_does_not_require_origin_remote() {
use super::PrInfo;
let (_dir, repo) = init_repo().await;
@@ -325,7 +328,6 @@ async fn get_pr_for_branch_does_not_require_origin_remote() {
#[cfg(unix)]
#[tokio::test]
async fn get_pr_for_branch_returns_none_when_gh_finds_no_pr() {
let (_dir, repo) = init_repo().await;
let fake_bin = tempfile::tempdir().expect("failed to create fake bin dir");
@@ -354,7 +356,6 @@ async fn get_pr_for_branch_returns_none_when_gh_finds_no_pr() {
#[cfg(unix)]
#[tokio::test]
async fn get_pr_for_branch_returns_none_when_gh_cannot_resolve_github_repo() {
let (_dir, repo) = init_repo().await;
let fake_bin = tempfile::tempdir().expect("failed to create fake bin dir");
+2 -1
View File
@@ -1,3 +1,5 @@
use image::{ImageBuffer, Rgba};
use super::*;
#[test]
@@ -14,7 +16,6 @@ fn test_is_supported_image_mime_type() {
/// Creates a small test PNG image and returns its bytes.
fn create_small_test_png() -> Vec<u8> {
use image::{ImageBuffer, Rgba};
// Create a small 10x10 red image
let img: ImageBuffer<Rgba<u8>, Vec<u8>> =
ImageBuffer::from_fn(10, 10, |_x, _y| Rgba([255u8, 0u8, 0u8, 255u8]));
+2 -3
View File
@@ -1,13 +1,12 @@
use galaxyui::elements::PartialClickableElement;
use std::collections::HashMap;
use std::ops::Range;
use string_offset::ByteOffset;
use urlocator::{UrlLocation, UrlLocator};
use galaxyui::elements::{MouseStateHandle, PartialClickableElement};
use galaxyui::platform::Cursor;
use galaxyui::text::char_slice;
use galaxyui::Action;
use string_offset::ByteOffset;
use urlocator::{UrlLocation, UrlLocator};
use crate::ai::agent::{AIAgentActionType, AIAgentOutput, AIAgentTextSection, ReadFilesRequest};
use crate::ai::blocklist::block::view_impl::output::LinkActionConstructors;
+2 -1
View File
@@ -1,3 +1,5 @@
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
use std::path::Path;
#[cfg(feature = "local_fs")]
@@ -202,7 +204,6 @@ fn test_is_supported_code_file() {
#[test]
#[cfg(unix)]
fn test_is_runnable_shell_script_executable_sh() {
use std::os::unix::fs::PermissionsExt;
let dir = tempfile::tempdir().unwrap();
let p = dir.path().join("hello.sh");
std::fs::write(&p, b"#!/bin/bash\necho hi\n").unwrap();
+1 -1
View File
@@ -10,10 +10,10 @@ use std::future::Future;
use futures::future::ready;
#[cfg(not(target_family = "wasm"))]
use futures::future::Either;
use galaxy_core::SessionId;
#[cfg(not(target_family = "wasm"))]
use repo_metadata::repositories::DetectedRepositories;
use repo_metadata::repositories::RepoDetectionSource;
use galaxy_core::SessionId;
use warp_util::local_or_remote_path::LocalOrRemotePath;
#[cfg(not(target_family = "wasm"))]
use warpui::SingletonEntity;
+5 -5
View File
@@ -11,12 +11,12 @@ pub mod windows;
mod linux_only {
pub(super) use std::sync::Arc;
pub(super) use pathfinder_color::ColorU;
pub(super) use pathfinder_geometry::vector::vec2f;
pub(super) use galaxyui::elements::{
Align, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius, Flex, Hoverable, Icon,
OffsetPositioning, ParentAnchor, ParentElement, ParentOffsetBounds, Radius, Rect, Stack,
};
pub(super) use pathfinder_color::ColorU;
pub(super) use pathfinder_geometry::vector::vec2f;
pub(super) use crate::workspace::TOTAL_TAB_BAR_HEIGHT;
}
@@ -26,13 +26,13 @@ use linux_only::*;
#[cfg(target_os = "windows")]
mod windows_only {
pub(super) use pathfinder_color::ColorU;
pub(super) use pathfinder_geometry::vector::vec2f;
pub(super) use galaxy_core::ui::theme;
pub(super) use galaxyui::elements::{
Align, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius, Hoverable,
OffsetPositioning, ParentAnchor, ParentOffsetBounds, Radius, Rect, Stack,
};
pub(super) use pathfinder_color::ColorU;
pub(super) use pathfinder_geometry::vector::vec2f;
pub(super) use crate::ui_components::icons::Icon as IconComponent;
pub(super) const WINDOWS_BRIGHT_RED: ColorU = ColorU {
@@ -54,7 +54,7 @@ use galaxyui::{AppContext, Element, WindowId};
#[cfg(target_os = "windows")]
use windows_only::*;
use crate::themes::theme::WarpTheme;
use crate::themes::theme::GalaxyTheme;
#[cfg(any(target_os = "windows", any(target_os = "linux", target_os = "freebsd")))]
const BUTTON_ICON_SIZE: f32 = 22.;
@@ -2,7 +2,6 @@
use std::sync::Arc;
use pathfinder_color::ColorU;
use galaxy_core::ui::theme::{Fill, WarpTheme};
use galaxyui::elements::{
Align, ConstrainedBox, Container, CrossAxisAlignment, Flex, Hoverable, MainAxisAlignment,
@@ -11,6 +10,7 @@ use galaxyui::elements::{
use galaxyui::fonts::FamilyId;
use galaxyui::platform::FullscreenState;
use galaxyui::{AppContext, Element, SingletonEntity};
use pathfinder_color::ColorU;
use crate::util::traffic_lights::windows::RendererState;
use crate::util::traffic_lights::windows_only::WINDOWS_BRIGHT_RED;