first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+27 -8
View File
@@ -1,16 +1,18 @@
use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::Arc;
use onboarding::{ProjectOnboardingSettings, SelectedSettings};
use galaxy_core::execution_mode::AppExecutionMode;
use warpui::{SingletonEntity as _, ViewContext};
use crate::pane_group::{NewTerminalOptions, PanesLayout};
use crate::settings::AISettings;
use crate::terminal;
use crate::terminal::view::{
AgentOnboardingVersion, OnboardingIntention, OnboardingVersion, TerminalAction,
};
use crate::workspace::Workspace;
use crate::FeatureFlag;
use galaxyui::{SingletonEntity as _, ViewContext};
use onboarding::{ProjectOnboardingSettings, SelectedSettings};
use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::Arc;
use crate::{terminal, FeatureFlag};
/// Configuration for starting the agent onboarding tutorial.
#[derive(Debug, Clone)]
@@ -87,6 +89,12 @@ impl Workspace {
tutorial: OnboardingTutorial,
ctx: &mut ViewContext<Self>,
) {
// Onboarding requires a real user to interact with it; skip when running
// in a headless mode like the SDK/CLI.
if !AppExecutionMode::as_ref(ctx).can_show_onboarding() {
return;
}
match tutorial {
OnboardingTutorial::InitProject {
ref path,
@@ -143,6 +151,12 @@ impl Workspace {
intention: OnboardingIntention,
ctx: &mut ViewContext<Self>,
) {
// Onboarding requires a real user to interact with it; skip when running
// in a headless mode like the SDK/CLI.
if !AppExecutionMode::as_ref(ctx).can_show_onboarding() {
return;
}
// With new onboarding, skip the guided tour when AI is not enabled
// (e.g. terminal-intent users or users who disabled AI).
if FeatureFlag::OpenWarpNewSettingsModes.is_enabled()
@@ -237,7 +251,12 @@ impl Workspace {
);
}
pub(crate) fn should_show_agent_onboarding(&self, _ctx: &mut ViewContext<Self>) -> bool {
pub(crate) fn should_show_agent_onboarding(&self, ctx: &mut ViewContext<Self>) -> bool {
// Onboarding requires a real user to interact with it; suppress when
// running in a headless mode like the SDK/CLI.
if !AppExecutionMode::as_ref(ctx).can_show_onboarding() {
return false;
}
FeatureFlag::AgentOnboarding.is_enabled()
}
}