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:
@@ -4,9 +4,8 @@ use std::time::Duration;
|
||||
|
||||
use ai::agent::action::{AskUserQuestionItem, AskUserQuestionOption, AskUserQuestionType};
|
||||
use ai::agent::action_result::{AskUserQuestionAnswerItem, AskUserQuestionResult};
|
||||
use itertools::Itertools;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxy_core::ui::theme::WarpTheme;
|
||||
use galaxy_core::ui::theme::{GalaxyTheme, WarpTheme};
|
||||
use galaxyui::elements::new_scrollable::SingleAxisConfig;
|
||||
use galaxyui::elements::{
|
||||
Border, ChildView, Clipped, ClippedScrollStateHandle, ConstrainedBox, Container, CornerRadius,
|
||||
@@ -24,6 +23,7 @@ use galaxyui::{
|
||||
LayoutContext, ModelHandle, PaintContext, SingletonEntity, SizeConstraint, TypedActionView,
|
||||
View, ViewContext, ViewHandle,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::ai::agent::conversation::AIConversationId;
|
||||
use crate::ai::agent::icons::yellow_stop_icon;
|
||||
|
||||
@@ -10,11 +10,6 @@ use ai::diff_validation::{
|
||||
SearchAndReplace, V4AHunk,
|
||||
};
|
||||
use anyhow::Result;
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use rand::distributions::Alphanumeric;
|
||||
use rand::{thread_rng, Rng as _};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::platform::SessionPlatform;
|
||||
use galaxy_core::settings::ToggleableSetting;
|
||||
@@ -46,14 +41,11 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, FocusContext, ModelHandle, SingletonEntity, TypedActionView, View,
|
||||
ViewContext, ViewHandle,
|
||||
};
|
||||
use rand::{distributions::Alphanumeric, thread_rng, Rng as _};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
path::{Path, PathBuf},
|
||||
rc::Rc,
|
||||
sync::Arc,
|
||||
time::Duration,
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use rand::distributions::Alphanumeric;
|
||||
use rand::{thread_rng, Rng as _};
|
||||
|
||||
use super::malformed_line_heuristics::has_malformed_terminal_correction_signal;
|
||||
use crate::ai::agent::icons::{self, yellow_stop_icon};
|
||||
|
||||
@@ -327,10 +327,8 @@ impl HostPicker {
|
||||
match event {
|
||||
EditorEvent::Enter => self.commit_custom(ctx),
|
||||
EditorEvent::Escape => self.cancel_custom(ctx),
|
||||
EditorEvent::Blurred => {
|
||||
if self.is_custom_mode {
|
||||
self.commit_custom(ctx);
|
||||
}
|
||||
EditorEvent::Blurred if self.is_custom_mode => {
|
||||
self.commit_custom(ctx);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use std::borrow::Cow;
|
||||
use std::rc::Rc;
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use pathfinder_color::ColorU;
|
||||
use warpui::elements::{
|
||||
Border, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, DispatchEventResult,
|
||||
EventHandler, Expanded, Flex, FormattedTextElement, Hoverable, MainAxisAlignment, MainAxisSize,
|
||||
|
||||
@@ -10,11 +10,11 @@ use std::collections::HashMap;
|
||||
|
||||
use ai::agent::action::RunAgentsExecutionMode;
|
||||
use ai::agent::orchestration_config::{OrchestrationConfig, OrchestrationExecutionMode};
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use settings::Setting;
|
||||
use warp_cli::agent::Harness;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use warpui::elements::{
|
||||
Border, ChildView, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, Empty,
|
||||
Expanded, Flex, Hoverable, MainAxisAlignment, MainAxisSize, MouseStateHandle, ParentElement,
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::color::internal_colors::neutral_2;
|
||||
use galaxyui::elements::{
|
||||
@@ -23,6 +20,9 @@ use galaxyui::elements::{
|
||||
use galaxyui::fonts::FamilyId;
|
||||
use galaxyui::keymap::Keystroke;
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
use super::inline_action_header::HeaderConfig;
|
||||
use crate::ai::blocklist::block::view_impl::WithContentItemSpacing;
|
||||
|
||||
@@ -4,10 +4,6 @@ use std::collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
use std::sync::Arc;
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
use parking_lot::FairMutex;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use settings::Setting as _;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::Icon;
|
||||
use galaxy_editor::render::element::VerticalExpansionBehavior;
|
||||
@@ -22,6 +18,10 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, EntityId, EventContext, ModelHandle, SingletonEntity,
|
||||
TypedActionView, UpdateView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
use parking_lot::FairMutex;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use settings::Setting as _;
|
||||
|
||||
use super::inline_action_icons::{self, icon_size};
|
||||
use crate::ai::agent::conversation::ConversationStatus;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Module to attribute AI-generated requested commands
|
||||
//! to known documents (e.g. Warp Drive objects).
|
||||
|
||||
use markdown_parser::{parse_markdown, FormattedTextLine};
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
use markdown_parser::{parse_markdown, FormattedTextLine};
|
||||
|
||||
use crate::ai::agent::AIAgentCitation;
|
||||
use crate::cloud_object::model::persistence::CloudModel;
|
||||
|
||||
@@ -10,8 +10,8 @@ use ai::agent::action::{RunAgentsAgentRunConfig, RunAgentsExecutionMode, RunAgen
|
||||
use ai::agent::action_result::{RunAgentsAgentOutcomeKind, RunAgentsResult};
|
||||
use ai::agent::orchestration_config::{OrchestrationConfig, OrchestrationConfigStatus};
|
||||
use ai::skills::SkillReference;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::send_telemetry_from_ctx;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use warpui::elements::{
|
||||
Border, ChildAnchor, ChildView, Container, CornerRadius, CrossAxisAlignment, Empty, Flex,
|
||||
OffsetPositioning, ParentAnchor, ParentElement, ParentOffsetBounds, Radius, Stack, Text, Wrap,
|
||||
|
||||
@@ -373,9 +373,11 @@ mod format_terminal_state_tests {
|
||||
}
|
||||
|
||||
mod override_from_approved_config_tests {
|
||||
use ai::agent::action::RunAgentsExecutionMode;
|
||||
use ai::agent::orchestration_config::{OrchestrationConfig, OrchestrationExecutionMode};
|
||||
|
||||
use super::super::RunAgentsEditState;
|
||||
use super::*;
|
||||
|
||||
fn local_config(model: &str, harness: &str) -> OrchestrationConfig {
|
||||
OrchestrationConfig {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use rand::distributions::Alphanumeric;
|
||||
use rand::{thread_rng, Rng as _};
|
||||
use galaxy_core::settings::ToggleableSetting;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxyui::elements::{
|
||||
@@ -15,7 +12,9 @@ use galaxyui::ui_components::components::{Coords, UiComponent, UiComponentStyles
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, FocusContext, SingletonEntity, TypedActionView, View, ViewContext,
|
||||
};
|
||||
use rand::{distributions::Alphanumeric, thread_rng, Rng as _};
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use rand::distributions::Alphanumeric;
|
||||
use rand::{thread_rng, Rng as _};
|
||||
|
||||
use crate::ai::agent::{AIAgentActionId, AIIdentifiers};
|
||||
use crate::ai::predict::prompt_suggestions::{
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
use std::time::Duration;
|
||||
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxyui::elements::shimmering_text::{
|
||||
ShimmerConfig, ShimmeringTextElement, ShimmeringTextStateHandle,
|
||||
@@ -9,7 +11,6 @@ use galaxyui::elements::{
|
||||
use galaxyui::r#async::{SpawnedFutureHandle, Timer};
|
||||
use galaxyui::{AppContext, Entity, SingletonEntity, View, ViewContext};
|
||||
use instant::Instant;
|
||||
use std::time::Duration;
|
||||
|
||||
use super::inline_action_header::{
|
||||
INLINE_ACTION_HEADER_VERTICAL_PADDING, INLINE_ACTION_HORIZONTAL_PADDING,
|
||||
|
||||
Reference in New Issue
Block a user