continuedev / continuedev/continue

Autocomplete silently produces nothing when Ollama Modelfile `num_ctx` equals Continue's default `maxTokens` (4096) — `pruneLength` computes a negative prompt budget and prunes prefix/suffix to empty

Open
#13,038 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

This issue has no description.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the autocomplete path and locate the pruneLength calculation described in the issue. Reproduce it with an Ollama Modelfile whose num_ctx and Continue maxTokens are both 4096, then verify that autocomplete no longer silently produces an empty result when the prompt budget is negative.

Written by the indexing model from the issue text.

Assessment

Tech stack
ollama, typescript
Domain
ai
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.