Commit graph

729 commits

Author SHA1 Message Date
Dallin Romney
294ba934db
fix: redirect Winston logger to stderr to prevent IPC stream corruption + fix binary tests (#11914) 2026-03-27 14:03:06 -07:00
Matt Van Horn
ae32a1b865
feat: filter session history by workspace directory (#11813)
* 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>
2026-03-27 13:41:29 -07:00
Dallin Romney
fd7ade8f3f
fix: ensure config.yaml exists and is populated when accessed (#11915)
* fix: ensure config.yaml exists and is populated when accessed

- Opening a config profile (gear icon) now creates config.yaml with
  defaults if the file is missing, matching startup behavior
- Empty config.yaml files are detected and populated with default config
  instead of causing parse errors

* refactor: improve readability of config existence check
2026-03-26 18:19:54 -07:00
Aditya Mitra
6e0045e204
feat: support gemini through ai sdk (#10671)
* add support for gemini in ai sdk

* support thought signature conversion

* capture extra_content in assistasnt tool calls

* fix: update vercelStreamConverter tests for tool-call chunk emission

The tool-call case now returns a chunk (for Gemini thoughtSignature
support) instead of null, so tests need to expect the new behavior.

---------

Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 17:14:19 -07:00
Dallin Romney
93c437cb0b
Improve error handling UX and move stream retry to BaseLLM (#11773)
* Improve error handling UX and move stream retry to BaseLLM

- Remove issue reporting buttons (GitHub/Discussions) from stream error dialog
- Add error detection for invalid API keys, OpenAI org verification,
  insufficient balance (402), and failed secret templating
- Update out-of-credits copy to match current messaging
- Add sk- prefix validation for OpenAI/Anthropic keys in add model form
- Update OpenRouter API key URL to workspaces/default/keys
- Move overloaded/malformed JSON retry from GUI streamThunkWrapper to
  BaseLLM _retryableStream to avoid glitchy UI from GUI-level retries
- Add overloaded/malformed JSON detection to core retry infrastructure

* fix: simplify retry architecture and make sk- validation a warning

- Remove _retryableStream from BaseLLM; overloaded/malformed JSON retry
  belongs in withExponentialBackoff at the HTTP fetch level
- Revert defaultShouldRetry/calculateDelay exports (no longer needed externally)
- Keep OpenRouter API key URL unchanged
- Make sk- prefix validation a warning instead of blocking error

* Fix stale comment referencing removed retry decorator

* Improve 402 Insufficient Balance error message clarity

* fix: improve copy - rename "View key" to "Check API key", use warning styles, simplify secret error message

* fix: use ternary for className to avoid space stripping by prettier

* style: fix prettier formatting in OutOfCreditsDialog

---------

Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
2026-03-24 12:40:19 -07:00
Keita A.
af4383f6df
refactor: unify AbortError detection with isAbortError utility (#10551)
* refactor: unify AbortError detection with isAbortError utility

AbortError detection was scattered across 3+ patterns (string
comparison, .name check, .code check). Consolidates into a single
isAbortError() utility that handles all known patterns: "cancel"
string, DOMException, Error.name variants, ABORT_ERR code, and
plain objects. Updates call sites in core/llm/index.ts and
core/llm/utils/retry.ts.

* fix: use exact match for AbortError name, add null guard, improve tests

- Changed .includes("AbortError") to === "AbortError" to preserve
  original exact-match semantics at L505 and retry.ts call sites
- Added null/undefined early return to prevent TypeError on
  "name" in null
- Unified DOMException branch to use exact match consistently
- Tests: removed 4 redundant same-branch duplicates, added 12 new
  cases (case sensitivity, empty string, non-string name, partial
  name boundary, DOMException negative, plain object code asymmetry,
  boolean, frozen object, Error subclass, TypeError)
- Fixed DOMException test skip from expect(true).toBe(true) to
  it.skipIf

* fix: replace == null with === null || === undefined (eqeqeq)

---------

Co-authored-by: amabito <192487536+amabito@users.noreply.github.com>
Co-authored-by: amabito <amabito@local>
2026-03-13 16:10:05 -07:00
Dallin Romney
9759ad657d fix: detect embedded 429 errors from Gemini/VertexAI APIs
Gemini and VertexAI can return rate-limit errors where the HTTP status
is not 429 but the error code is embedded in the response body JSON
(e.g., "code":429). Add regex-based detection of these embedded errors
in both retry paths so they trigger exponential backoff correctly.
2026-02-20 00:30:46 -08:00
Aditya Mitra
4c8ab1cad5
Merge pull request #9524 from uinstinct/history-counter
feat: show message counter in history page
2026-02-02 12:13:43 -08:00
Dallin Romney
895632c0a5
fix: detect WSL remote for shell PATH resolution (#9934)
When Windows host connects to WSL remote, getEnvPathFromUserShell() was
returning undefined because it checked only process.platform === "win32".

Add remoteName parameter to getEnvPathFromUserShell() and use the
isWindowsHostWithWslRemote pattern (consistent with resolveCommandForPlatform)
to allow shell PATH detection for WSL remotes.

Fixes #9737

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 15:26:05 -08:00
Nate
f9feab110c Replace community Discord links with GitHub Discussions
Discord links across docs, READMEs, GUI components, and issue templates
now point to https://github.com/continuedev/continue/discussions.
The Discord context provider (product feature) is left untouched.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 17:19:56 -08:00
shanevcantwell
939b44b39f fix: detect WSL remote for shell PATH resolution
When Windows host connects to WSL remote, getEnvPathFromUserShell() was
returning undefined because it checked only process.platform === "win32".

Add remoteName parameter to getEnvPathFromUserShell() and use the
isWindowsHostWithWslRemote pattern (consistent with resolveCommandForPlatform)
to allow shell PATH detection for WSL remotes.

Fixes #9737

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 18:51:11 -07:00
Dallin Romney
1a848432b9
Merge pull request #9576 from uinstinct/remove-rule-button
feat: add remove rule button
2026-01-22 14:49:34 -08:00
uinstinct
e08aa8533a search through conversation history
- instead of using toolcallstates
2026-01-19 19:34:20 +05:30
uinstinct
0318855b9b add provision to remove a file from ide 2026-01-16 15:42:30 +05:30
uinstinct
c000943d3b push tool cancelled messages for cancelled tool calls 2026-01-16 11:41:12 +05:30
uinstinct
cf14372b38 Merge branch 'main' into compact-conversation-toolcall 2026-01-16 10:26:39 +05:30
uinstinct
2ecccb0fa5 Merge branch 'main' into agent-skills 2026-01-15 11:39:22 +05:30
uinstinct
b33b8a4dad fix: compact conversation with dangling tool calls 2026-01-09 18:02:27 +05:30
uinstinct
b6eddec2f4 add read skill tool 2025-12-30 12:51:16 +05:30
uinstinct
0792b949bd fix(cli): compaction for missing tool results 2025-12-11 21:18:13 +05:30
Nate
454da90e15 fix: save session 2025-12-05 15:28:04 -08:00
Aditya Mitra
a20e11227f
Merge pull request #8830 from uinstinct/ripgrep-regex
fix: regular expressions in ripgrep
2025-11-27 01:43:17 -08:00
dcs-soni
1c7668c3fd run prettier 2025-11-21 13:14:31 +05:30
Divyanshu Soni
b4526bf4fb fix: move url utils from core to openai adapters 2025-11-21 06:29:14 +00:00
Dallin Romney
b2f565e5e3 fix: followup on persisted chat model pr 2025-11-18 16:17:13 -08:00
ferenci84
a3b5ee840f persist session-specific mode and chat model selection across tab switches and session loads 2025-11-09 12:23:18 +01:00
Patrick Erichsen
67033627b3
feat: impl Responses API in oai-adapters (#8417)
* feat: add GPT-5 Codex model support

- Add GPT-5 Codex to llm-info package with 500k context and 150k max tokens
- Add model definition to models.ts for UI configuration
- Include GPT-5 Codex in OpenAI provider packages list
- Model supports chat and edit roles with tool_use capability

* feat: impl Responses API in oai-adapters

* fix chat describer

* Update openai.ts

* fix llm-info

* address dallin's feedback
2025-10-29 13:17:32 -07:00
Dallin Romney
1d15c7c3df
Merge pull request #8298 from continuedev/pe/read-file-errs
feat: allow file reads outside IDE workspace (w/ permission)
2025-10-20 10:50:38 -07:00
Patrick Erichsen
a9f7015b8f remove unneeded normalize-path 2025-10-17 14:42:24 -07:00
Patrick Erichsen
c38a5bbd9d use libs for path resolution 2025-10-17 14:29:50 -07:00
Tomasz Stefaniak
4d05022c65 Merge branch 'main' into tomasz/con-4212 2025-10-17 12:36:02 -07:00
Tomasz Stefaniak
0e9dc1375f fix: repo edge case 2025-10-17 11:43:50 -07:00
Tomasz Stefaniak
aeaee5961d improv: validation 2025-10-17 11:20:49 -07:00
Tomasz Stefaniak
27c559d1b9 improv: tests 2025-10-17 11:14:27 -07:00
Tomasz Stefaniak
9c35910b6f fix: normalization 2025-10-17 11:03:43 -07:00
Patrick Erichsen
b687ce2795 Update pathResolver.test.ts 2025-10-17 11:00:39 -07:00
Tomasz Stefaniak
47b1e150c2 improv: add tests 2025-10-17 10:36:36 -07:00
Tomasz Stefaniak
2d4f49f5f5 improv: clean up code 2025-10-17 10:24:58 -07:00
Patrick Erichsen
71f97dba8f prettier 2025-10-16 19:08:31 -07:00
Patrick Erichsen
ecbb4e272d dallin's feedback 2025-10-16 18:46:55 -07:00
Patrick Erichsen
ad2fd48124 Merge main branch and resolve conflicts
- Combined resolveInputPath approach with new ContinueError system
- Updated error handling to use ContinueError with appropriate error reasons
- Maintained improved error messages from pe/read-file-errs branch
2025-10-16 16:00:29 -07:00
Patrick Erichsen
4903f3ab94 add tool call policy evaluation 2025-10-16 15:56:31 -07:00
Ting-Wai
2041336eaf
Merge pull request #8256 from uinstinct/config-0600-perm
fix: use 0600 permissions on config.yaml
2025-10-15 17:55:43 -07:00
Ting-Wai
1e42198543
Merge pull request #8239 from Ayyanaruto/fix/autodetect-title-think-blocks
Fix: Remove <think> blocks from chat title generation
2025-10-15 10:41:41 -07:00
uinstinct
2a6a0e91a4 set file permissions using chmod 2025-10-15 18:05:24 +05:30
uinstinct
413c0bb26c fix: use 0600 permissions on config.yaml 2025-10-15 13:29:49 +05:30
Patrick Erichsen
77a8db7f63 use specific ConitnueError for tool calls 2025-10-14 14:55:00 -07:00
Ayyan Shaikh
535c9bf2bb fix: remove <think> blocks from chat title generation
- Update removeCodeBlocksAndTrim to handle <think> blocks from models like qwen3
- Add comprehensive test coverage for think block removal
- Fixes issue where chat titles showed thinking process instead of content

Fixes #5689
2025-10-14 09:38:54 +00:00
Nate Sesti
9cb27661b1
fix: multiple cn nitpicks (#8049)
* fix: refresh ui on model change

* feat: handle cmd+backspace as only single line

* fix: model selection persistence

* fx: test

* fix: tests

* fix: tests
2025-10-01 00:06:15 -07:00
Dallin Romney
fac7f5c449
feat: tool call args preprocessing (#7992)
* feat: preprocess tool call args

* fix: broken multi edit impl

* fix: preprocess test failures

* fix: preprocessing tests

* fix: tool calls test progress

* fix: tests using mock store

* fix: thunk tests working

* fix: mock ide messenger tests
2025-09-30 18:49:29 -07:00