Local fork of continuedev/continue for auto-approve and full-access mode experiments
Vercel AI SDK's fullStream may emit a finish event with zero/invalid usage data in real API calls, even though tests show it working. This implements a hybrid approach: 1. convertVercelStream emits usage from finish event if valid (>0 tokens) 2. Track whether usage was emitted during stream consumption 3. If no usage emitted, fall back to awaiting stream.usage Promise This ensures tests pass (which have valid finish events) while also handling real API scenarios where finish events may have incomplete data. Changes: - vercelStreamConverter: Only emit usage if tokens > 0 - OpenAI.ts: Add hasEmittedUsage tracking + fallback - Anthropic.ts: Same approach with cache token support Co-authored-by: nate <nate@continue.dev> Generated with [Continue](https://continue.dev) |
||
|---|---|---|
| .continue | ||
| .github | ||
| .husky | ||
| .idea | ||
| .vscode | ||
| actions | ||
| binary | ||
| core | ||
| docs | ||
| eval | ||
| extensions | ||
| gui | ||
| manual-testing-sandbox | ||
| media | ||
| packages | ||
| scripts | ||
| 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 | ||
Continue
Ship faster with Continuous AI
The future of coding isn't writing more code. It's delegating the boring parts, so you can build the interesting stuff
Get started in Mission Control, CLI (Headless Mode), or CLI (TUI mode)
Quick Install
npm i -g @continuedev/cli
cn
Cloud Agents
Set workflows to run automatically on PR opens, schedules, or any event trigger
CLI Agents
Watch workflows execute in real-time and approve decisions step-by-step from your terminal
IDE Agents
Trigger workflows from VS Code or JetBrains—let agents handle the refactoring while you keep coding
Contributing
Read the contributing guide, and join #contribute on Discord.



