Local fork of continuedev/continue for auto-approve and full-access mode experiments
* fix(gemini): merge consecutive same-role messages to fix ordering errors Gemini API requires strict role alternation between "user" and "model". When multiple tool responses (mapped to "user" role) appear consecutively, or when consecutive assistant messages exist, the alternation breaks causing: - "function call turn comes immediately after a user turn or after a function response turn" - "number of function response parts is equal to the number of function call parts" Fix: merge consecutive messages with the same role by combining their parts arrays, applied as a post-processing step after message conversion in both the core Gemini LLM and the openai-adapters Gemini API. Fixes #11047, fixes #9562 * chore: remove verbose comments * refactor: deduplicate mergeConsecutiveGeminiMessages into openai-adapters Export from openai-adapters gemini-types and import in core, removing the duplicate private method from both Gemini classes. * fix: resolve TS2345 by removing explicit nullable type annotation on contents * fix: keep mergeConsecutiveGeminiMessages in each package's own gemini-types The core test suite mocks @continuedev/openai-adapters entirely, which replaces the imported function with a no-op returning undefined. Define the function in both packages' gemini-types to avoid this coupling. |
||
|---|---|---|
| .claude/skills/docs-style | ||
| .continue | ||
| .github | ||
| .husky | ||
| .idea | ||
| .vscode | ||
| actions | ||
| binary | ||
| core | ||
| docs | ||
| eval | ||
| extensions | ||
| gui | ||
| manual-testing-sandbox | ||
| media | ||
| packages | ||
| scripts | ||
| skills | ||
| sync | ||
| .continueignore | ||
| .eslintrc.shared.json | ||
| .gitignore | ||
| .node-version | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| CLA.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| SECURITY.md | ||
| tsconfig.json | ||
| worktree-config.yaml | ||
Continue
Getting started
Paste this into your coding agent of choice:
Help me write checks for this codebase: https://continue.dev/walkthrough
How it works
Continue runs agents on every pull request as GitHub status checks. Each agent is a markdown file in your repo at .continue/checks/. Green if the code looks good, red with a suggested diff if not. Here is an example that performs a security review:
---
name: Security Review
description: Review PR for basic security vulnerabilities
---
Review this PR and check that:
- No secrets or API keys are hardcoded
- All new API endpoints have input validation
- Error responses use the standard error format
Install CLI
AI checks are powered by the open-source Continue CLI (cn).
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iex
Or with npm (requires Node.js 20+):
npm i -g @continuedev/cli
Then run:
cn
Looking for the VS Code extension? See here.
Contributing
Read the contributing guide, and join the GitHub Discussions.
