Local fork of continuedev/continue for auto-approve and full-access mode experiments
Fix MaxListenersExceededWarning that occurred during test runs when multiple test files added 'modeChanged' listeners to the ModeService singleton, causing the total to exceed the default limit of 10. Root cause: - ModeService is a singleton shared across all tests and UI components - Multiple test files (ModeService.test.ts, ModeIndicator.test.tsx) and UI components add event listeners to the same instance - Tests running in parallel/sequence accumulate listeners beyond default limit Solution: - Increase maxListeners from 10 to 100 in ModeService constructor - This accommodates legitimate multiple subscribers while still catching actual memory leaks (>100 listeners would indicate a real problem) Impact: - Memory cost: ~800 bytes maximum (8 bytes per listener * 100) - Performance cost: Negligible (no impact until listeners are actually added) - Real-world usage: Typically 5-15 listeners in production - Test scenarios: Can reach 50+ due to parallel test execution Fixes test output warnings while maintaining leak detection capability. |
||
|---|---|---|
| .continue | ||
| .github/workflows | ||
| .vscode | ||
| media | ||
| spec | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| .npmignore | ||
| .nvmrc | ||
| .releaserc.json | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| demo.md | ||
| example-permissions.yaml | ||
| jest.config.mjs | ||
| jest.resolver.cjs | ||
| jest.resolver.js | ||
| jest.setup.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| REFACTOR_PLAN.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||
Continue CLI
The Continue CLI (cn) is a customizable command line coding agent.
Installation
npm i -g @continuedev/cli
Usage
cn
Headless Mode
cn -p "Generate a conventional commit name for the current git changes."
Session Management
The CLI automatically saves your chat history for each terminal session. You can resume where you left off:
# Resume the last session in this terminal
cn --resume
Command Line Options
-p: Run in headless mode (no TUI)--config <path>: Specify agent configuration path--resume: Resume the last session for this terminal<prompt>: Optional prompt to start with
