* fix(gui): remove awkward inner scroll on onboarding API-key card
In the empty chat state, `main` is a fixed-height (100vh) flex scroll
container. Its children (the StepsDiv banner area and the input/onboarding
section) were allowed to flex-shrink, and StepsDiv's always-on
`overflow-y-scroll` turned into a cramped nested scrollbox. This trapped
the onboarding API-key card in a small inner scroll area instead of
letting it lay out naturally.
Only enable StepsDiv's overflow scroll when there is chat history (when it
is `flex-1`), and mark both the empty-state StepsDiv and the input section
`shrink-0` so the onboarding card keeps its natural height and the panel
scrolls as one. Chat layout (history present) is unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(gui): remove empty onboarding route scroll trap
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(cli): use explicit model definitions in default config instead of Hub slugs
The CLI onboarding wrote a default ~/.continue/config.yaml using slug-based
blocks (`uses: anthropic/claude-sonnet-4-6` with `with: { ANTHROPIC_API_KEY }`).
Slug/Hub resolution has been removed, so the CLI errored at runtime with
"Failed to unroll block ... Slug-based package resolution is not supported".
Replace the slug block with explicit Anthropic model definitions (Claude Sonnet
4.6 + Claude Opus 4.6), mirroring core/config/onboarding.ts. Legacy slug-based
anthropic blocks in an existing config are now migrated to explicit defs.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(cli): update headless e2e for explicit default model
With the default config now creating an explicit Anthropic model (instead of
an unresolvable slug), the headless run reaches the provider and fails on the
invalid API key rather than failing earlier with "no model specified".
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(cli): isolate GlobalContext to fix flaky model-persistence tests
The model-persistence test files set process.env.CONTINUE_GLOBAL_DIR in
beforeEach to isolate their GlobalContext store, but core/util/paths.ts
resolves CONTINUE_GLOBAL_DIR into a module-level constant at import time,
so those per-test reassignments had no effect. As a result every test file
(across parallel Vitest worker processes) read/wrote the same
globalContext.json on disk, racing each other and intermittently failing
"should clear model selection when set to null".
Add a dedicated first setup file (vitest.global-dir-setup.ts) that creates
a unique temp dir via fs.mkdtemp and sets CONTINUE_GLOBAL_DIR before any
module imports paths.ts, giving each worker process its own isolated
GlobalContext. Wire it in as the first entry in setupFiles and stop
hardcoding the shared /tmp/continue-test dir in vitest.setup.ts.
Co-authored-by: Cursor <cursoragent@cursor.com>
* style(cli): remove blank line in array to fix prettier-check
Pre-existing prettier-check failure on main: a blank line inside the
`screens` array literal in NavigationContext.test.tsx is removed by the
Prettier version CI runs. Drop the blank line so the file is formatted.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore: retrigger CI
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
The docs site is served from the /continue/ subpath on GitHub Pages but
next.config.js set no basePath, so /_next CSS/JS, the search index, and
images were requested from the domain root and 404'd (unstyled site).
- Add basePath/assetPrefix of /continue, gated on GITHUB_ACTIONS so local
dev still serves from root
- Expose NEXT_PUBLIC_BASE_PATH and add a withBasePath helper for raw
absolute asset paths that Next doesn't prefix automatically
- Prefix the search-index fetch, logo, and MDX doc images
- Guard against double /images/docs/ rewrite in the MDX img component
Co-authored-by: Cursor <cursoragent@cursor.com>
Hub/WorkOS authentication was already stubbed out so the CLI runs fully
unauthenticated using local config.yaml / API keys / env vars. This removes
the now-dead login code paths that remained:
- Delete unused `login`/`logout` command modules (no longer registered in
the CLI and not imported anywhere).
- Remove the unreachable "Login Required" TUI screen and its token-prompt
handlers (handleLoginPrompt / handleLoginTokenSubmit / useLoginHandlers),
which were never triggered now that login is impossible.
- Drop the dead "login" navigation screen and update NavigationContext tests
to use other screens.
No auth gating remains on startup, headless, TUI, or standard mode.
Co-authored-by: Cursor <cursoragent@cursor.com>
Change the no-match fallback in DocsShell findActiveTab to return the
first nav tab (IDE Extensions) instead of the last (CLI), so the docs
root defaults to IDE Extensions. Add app/favicon.ico so /favicon.ico
requests resolve via App Router metadata instead of falling through the
optional catch-all route.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Regenerate extensions/vscode/package-lock.json so `npm ci` is in sync
(fixes vscode-checks, vscode-get-test-file-matrix,
vscode-package-extension-linux, build-and-upload-vsix, jetbrains-tests)
- Replace deprecated fs.rmdirSync(..., {recursive}) with fs.rmSync in core
test global setup (fixes core-checks tsc TS2554)
- Apply prettier formatting to README.md and core test setup files
(fixes prettier-check)
Co-authored-by: Cursor <cursoragent@cursor.com>
- Remove the 'Checks' section from README (continuedev/checks); the
docs/checks pages and nav were already removed in this branch.
- Drop Continue Hub references from docs:
- customize/model-roles/edit.mdx: remove 'explore models in the hub' link
- cli/quickstart.mdx: reword --rule/--mcp/--model/--agent flag docs to
not reference the hub
Verified docs-site builds (341 static pages) and all nav slugs resolve.
Co-authored-by: Cursor <cursoragent@cursor.com>
Register mercury-2 (128k context, tool-calling) and mercury-edit-2 in
llm-info, add Inception Labs provider to the GUI Add Chat Model form,
and flag mercury-2 as tool-capable in PROVIDER_TOOL_SUPPORT.
- Replace X-Title with X-OpenRouter-Title (the newer official header)
- Add X-OpenRouter-Categories: ide-extension for marketplace attribution
- Use "Continue" as the title (the product name)
Adds the same HTTP-Referer and X-Title headers from the openai-adapters
OpenRouter class (#11857) to the core/llm OpenRouter class, ensuring all
OpenRouter requests are identified as coming from Continue.dev.
Also updates X-Title from "Continue" to "Continue.dev" in both the
openai-adapters and core/llm OpenRouter classes.
User-configured requestOptions.headers take precedence over the defaults.
The version is bumped manually prior to release, so the automated
version bump and PR creation in the publish job is unnecessary and
was causing the workflow to report as failed despite successful publishing.
* feat: filter session history by workspace directory
Add optional workspaceDirectory field to ListHistoryOptions so callers
can scope session lists to a specific workspace. Filtering is
case-insensitive and applied before pagination. Omitting the field
preserves the existing behavior of returning all sessions.
Fixes#9936
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address bot review - typeof guard and test coverage
- Use typeof check instead of truthiness for workspaceDirectory to
handle malformed session metadata safely
- Rename test to match actual coverage (limit only)
- Add separate test for combined limit+offset with workspace filter
---------
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>