diff --git a/core/config/onboarding.ts b/core/config/onboarding.ts index d78709090..ca5628760 100644 --- a/core/config/onboarding.ts +++ b/core/config/onboarding.ts @@ -14,12 +14,6 @@ export function setupBestConfig( return { ...config, models: config.models.filter((model) => model.provider !== "free-trial"), - embeddingsProvider: { - provider: "free-trial", - }, - reranker: { - name: "free-trial", - }, }; } @@ -30,9 +24,9 @@ export function setupLocalConfig( ...config, models: [ { - title: "Llama 3", + title: "Llama 3.1 8B", provider: "ollama", - model: "llama3", + model: "llama3.1:8b", }, { title: ONBOARDING_LOCAL_MODEL_TITLE, @@ -50,7 +44,6 @@ export function setupLocalConfig( provider: "ollama", model: "nomic-embed-text", }, - reranker: undefined, }; } @@ -84,9 +77,9 @@ export function setupLocalConfigAfterFreeTrial( ...config, models: [ { - title: "Llama 3", + title: "Llama 3.1 8B", provider: "ollama", - model: "llama3", + model: "llama3.1:8b", }, { title: ONBOARDING_LOCAL_MODEL_TITLE, diff --git a/extensions/vscode/media/welcome.md b/extensions/vscode/media/welcome.md index 1887f4641..2c2753481 100644 --- a/extensions/vscode/media/welcome.md +++ b/extensions/vscode/media/welcome.md @@ -1,21 +1,8 @@ -# 👋 Welcome to Continue - -## ❗️ Before you get started - -Continue is currently in the left sidebar, but we recommend moving it to the right. This way it won't cover your file explorer. - -You can move it back at any time. If you close the sidebar, it can be re-opened with Cmd/Ctrl + L. +# Move Continue to the right sidebar ![Move Continue to right sidebar](./sidebar.gif) -## 🔑 Most important shortcuts +Continue is currently in the left sidebar, but we recommend moving it to the right. +This way it won't cover your file explorer. -> If you'd prefer different keys, these shortcuts can be customized in VS Code settings. - -Cmd/Ctrl + L = Select code - -Cmd/Ctrl + Shift + L = Select code for follow-up - -Cmd/Ctrl + I = Quick edit - -Cmd/Ctrl + Shift + R = Automatically debug terminal +You can move it back at any time. If you close the sidebar, it can be re-opened with Cmd/Ctrl + L. diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 2f06d20f2..f17f465b4 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -28,6 +28,7 @@ import ProgressBar from "./loaders/ProgressBar"; import PostHogPageView from "./PosthogPageView"; import ProfileSwitcher from "./ProfileSwitcher"; import { isNewUserOnboarding } from "./OnboardingCard/utils"; +import useHistory from "../hooks/useHistory"; const FOOTER_HEIGHT = "1.8em"; @@ -108,6 +109,7 @@ const Layout = () => { const location = useLocation(); const dispatch = useDispatch(); const ideMessenger = useContext(IdeMessengerContext); + const { saveSession } = useHistory(dispatch); const dialogMessage = useSelector( (state: RootState) => state.uiState.dialogMessage, @@ -189,6 +191,10 @@ const Layout = () => { "openOnboardingCard", async () => { navigate("/"); + + // Used to clear the chat panel before showing onboarding card + saveSession(); + dispatch(setOnboardingCard({ show: true, activeTab: "Best" })); }, [], @@ -198,6 +204,10 @@ const Layout = () => { "setupLocalConfig", async () => { navigate("/"); + + // Used to clear the chat panel before showing onboarding card + saveSession(); + dispatch(setOnboardingCard({ show: true, activeTab: "Local" })); }, [navigate], @@ -208,6 +218,9 @@ const Layout = () => { isNewUserOnboarding() && (location.pathname === "/" || location.pathname === "/index.html") ) { + // Used to clear the chat panel before showing onboarding card + saveSession(); + dispatch(setOnboardingCard({ show: true, activeTab: "Quickstart" })); } }, [location]); diff --git a/gui/src/components/OnboardingCard/hooks/useSubmitOnboarding.ts b/gui/src/components/OnboardingCard/hooks/useSubmitOnboarding.ts index ab4bce61e..9045da2f9 100644 --- a/gui/src/components/OnboardingCard/hooks/useSubmitOnboarding.ts +++ b/gui/src/components/OnboardingCard/hooks/useSubmitOnboarding.ts @@ -14,7 +14,6 @@ export function useSubmitOnboarding(mode: OnboardingModes) { const { openTutorialCard } = useTutorialCard(); function submitOnboarding() { - debugger; const onboardingStatus = getLocalStorage("onboardingStatus"); // Always close the onboarding card and update config.json diff --git a/gui/src/pages/more.tsx b/gui/src/pages/more.tsx index ca8339ade..93a651734 100644 --- a/gui/src/pages/more.tsx +++ b/gui/src/pages/more.tsx @@ -10,6 +10,7 @@ import { useNavigationListener } from "../hooks/useNavigationListener"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { useDispatch } from "react-redux"; import { setOnboardingCard } from "../redux/slices/uiStateSlice"; +import useHistory from "../hooks/useHistory"; interface MoreActionRowProps { title: string; @@ -55,6 +56,7 @@ function MorePage() { const dispatch = useDispatch(); const navigate = useNavigate(); const ideMessenger = useContext(IdeMessengerContext); + const { saveSession } = useHistory(dispatch); const [indexingState, setIndexingState] = useState({ desc: "Loading indexing config", @@ -117,6 +119,8 @@ function MorePage() { buttonText="Open quickstart" onClick={() => { navigate("/"); + // Used to clear the chat panel before showing onboarding card + saveSession(); dispatch(setOnboardingCard({ show: true, activeTab: "Best" })); ideMessenger.post("showTutorial", undefined); }} diff --git a/gui/src/util/index.ts b/gui/src/util/index.ts index a4e96a194..2e0263102 100644 --- a/gui/src/util/index.ts +++ b/gui/src/util/index.ts @@ -60,7 +60,7 @@ export function getFontSize(): number { } export function isJetBrains() { - return getLocalStorage("ide") === "jetbrains"; + return getLocalStorage("ide") !== "jetbrains"; } export function isWebEnvironment(): boolean {