Local fork of continuedev/continue for auto-approve and full-access mode experiments
* fix: chunk large JCEF messages to prevent JetBrains sidebar freezes When session data exceeds ~1MB (e.g. long conversations with many context items), sendToWebview embeds the entire JSON payload in a single executeJavaScript call. JCEF's JS parser/compiler cannot handle source strings that large and freezes the IDE. This adds a chunked sending path: payloads over 1MB are base64-encoded, split into 512KB chunks sent as individual executeJavaScript calls that each append to a buffer variable, then a final call decodes and dispatches the reassembled message via window.postMessage. Each individual call is trivial for JCEF to parse, and V8 handles the string concatenation and final JSON.parse without issue. Messages under 1MB (the vast majority) take the existing fast path unchanged. * chore: trim verbose comments * fix: clean up partial chunk buffer on failure * fix: use array join instead of string concat for JCEF chunk reassembly Replaces O(n²) string concatenation (+=) with O(n) array push + join for JS-side chunk buffering. Extracts script generation into testable buildChunkScripts() and adds unit tests for chunking logic. * perf: increase chunk size from 512KB to 2MB Reduces IPC round-trips by 4x (e.g. 7 calls instead of 26 for 10MB). Safe because chunks are trivial JS with pure Base64 string literals. * fix: decode chunked messages as UTF-8 to prevent mojibake atob() returns Latin-1, so multi-byte UTF-8 characters (em dashes, accented letters, CJK, emoji) were mangled. Use TextDecoder to properly decode UTF-8 bytes after base64 decoding. |
||
|---|---|---|
| .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.
