Local fork of continuedev/continue for auto-approve and full-access mode experiments
Find a file
continue[bot] 6e656f9a2e fix(openai-adapters): Remove token count validation in finish event handler
Removed the check that required tokens > 0 before emitting usage from
finish event. The finish event should always emit usage if part.usage
exists, even if tokens are legitimately 0.

The fallback to stream.usage Promise now only triggers if:
- No finish event is emitted, OR
- Finish event exists but part.usage is undefined

This fixes cases where finish event has valid 0 token counts.

Co-authored-by: nate <nate@continue.dev>
Generated with [Continue](https://continue.dev)
2025-12-10 19:51:19 +00:00
.continue fix: 🔥 Additional fixes based on commnets 2025-11-18 19:45:34 -08:00
.github Rename workflow from 'cn-test' to 'cn' 2025-12-09 12:06:22 -08:00
.husky feat: .continue/environment.json (#7983) 2025-09-25 16:30:56 -07:00
.idea fix: migrate to built-in inline completion API from 2024.1 (#6947) 2025-08-20 09:54:40 -07:00
.vscode vercel ai sdk, feature-flagged by env var 2025-12-10 00:46:22 +00:00
actions fix: allow external repos to grab review scripts from continue repo 2025-10-22 15:26:13 -07:00
binary feat: simplify onboarding card 2025-12-04 10:10:40 -08:00
core Merge pull request #9012 from Cozmopolit/fix/azure-anthropic-support 2025-12-08 10:38:31 -08:00
docs ship it 2025-12-05 16:36:25 -08:00
eval Preview (#1750) 2024-07-28 23:16:18 -07:00
extensions vercel ai sdk, feature-flagged by env var 2025-12-10 00:46:22 +00:00
gui Update gui/package-lock.json for @tiptap/extension-history upgrade 2025-12-06 07:21:29 +00:00
manual-testing-sandbox chore(deps): bump django from 4.2.22 to 4.2.27 in /manual-testing-sandbox (#8992) 2025-12-03 09:49:19 -08:00
media delete old gifs 2025-08-06 16:53:57 -07:00
packages fix(openai-adapters): Remove token count validation in finish event handler 2025-12-10 19:51:19 +00:00
scripts Add script to analyze file hotspots from git history (#8591) 2025-11-04 11:55:36 -08:00
sync merkel 2024-10-23 10:29:15 +02:00
.continueignore ignore .continue folder 2025-03-08 16:18:51 -08:00
.eslintrc.shared.json add no misused promises rule 2025-06-13 22:09:32 +05:30
.gitignore fix: gitignore (#7949) 2025-09-24 12:18:31 -07:00
.node-version Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
.nvmrc Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
.prettierignore feat: husky for prettier (#7979) 2025-09-25 16:13:08 -07:00
.prettierrc remove border above input box 2024-11-05 08:18:31 -08:00
CLA.md fix: Return the CLA (#6585) 2025-07-16 02:01:42 -07:00
CODE_OF_CONDUCT.md npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path . 2025-05-25 18:41:32 -07:00
CONTRIBUTING.md docs: update link (#7954) 2025-09-24 14:52:36 -07:00
LICENSE Create LICENSE 2023-06-03 09:29:19 +02:00
package-lock.json fix: Constrain root eslint to v8 to match core dependency 2025-12-05 17:15:29 -08:00
package.json fix: Constrain root eslint to v8 to match core dependency 2025-12-05 17:15:29 -08:00
README.md docs: add CLI quick install section to README for v1.2 2025-12-05 23:09:03 +00:00
SECURITY.md Create SECURITY.md 2025-02-01 01:01:08 -08:00
tsconfig.json .continuerules 2024-12-15 09:30:56 -08:00

Continue logo

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

Cloud Agents

CLI Agents

Watch workflows execute in real-time and approve decisions step-by-step from your terminal

CLI Agents

IDE Agents

Trigger workflows from VS Code or JetBrains—let agents handle the refactoring while you keep coding

IDE Agents

Contributing

Read the contributing guide, and join #contribute on Discord.

License

Apache 2.0 © 2023-2024 Continue Dev, Inc.