Skip to content

4.3.26: dev > main - #592

Merged
rjmacarthy merged 3 commits into
mainfrom
dev
Nov 30, 2026
Merged

rjmacarthy merged 3 commits into
mainfrom
dev

Conversation

@m1ab0t

@m1ab0t m1ab0t commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes to autocomplete, and dependency updates.

  • Closing brackets a suggestion needs are kept. foo(|) completed with bar(x) lost its last bracket, because the same one follows the cursor. Closing punctuation is now kept if dropping it would leave a bracket the suggestion opened unclosed. Closers the suggestion did not open are still dropped, as are longer repeats.
  • Ollama gets prompts that already have fill-in-the-middle markers with raw: true. StarCoder2's Ollama template was adding tokens round twinny's finished prompt. Prompts without markers are unchanged, because a custom template may rely on the model's own. That includes StarCoder2 at the end of a file. This corrects the request; in a small benchmark, raw alone did not make a clear difference to StarCoder2's poor results. Open WebUI and P2P requests use the same code.
  • DeepSeek and Mistral get the text after the cursor as suffix (already on dev). This is the likely cause of Auto-complete not working in the middle of text #588, so I've left the issue open until it's confirmed.
  • Dependencies (already on dev): handlebars 4.7.10, with overrides for fast-xml-parser 4.5.7 and form-data 4.0.6.

Testing

  • The two new tests failed before the fixes (899 others passed). All 901 tests pass now, with 4 pending. The standalone tests and packaging pass too.
  • In 102 fill-in-the-middle test cases, the old cleanup broke the correct answer in 9. With this branch, it breaks none.
  • The new raw rule is covered by unit tests. It hasn't been tested against a live Open WebUI or P2P server.

Merging this publishes 4.3.26 to the VS Code Marketplace and Open VSX, and builds the Docker image.

… cursor as suffix (#588)

Their hosted FIM endpoints take the two sides of the hole as prompt and
suffix. Both were sent in one prompt inside the model's FIM markers, the
likely cause of empty completions anywhere but the end of a file.

The markers are taken off in the HTTP adapter, so requests that reach
either API through a gateway are covered without a protocol change, and
the header and neighbouring files stay in the prompt. Prompts whose
context is laid out with other special tokens, such as repository-level
ones, send only the text either side of the cursor. Unmarked prompts,
chat turns and other providers are unchanged.
…Ollama raw

The formatter dropped any end of a completion that repeats what follows
the cursor, so `foo(|)` completed with `bar(x)` lost its last bracket.
Closing punctuation now stays when dropping it would leave a bracket the
completion opened unclosed. Longer repeats and closers the completion
did not open are dropped as before.

Ollama put its template round a prompt that already had the model's FIM
markers. StarCoder2's adds tokens on both sides. Such a prompt now goes
with raw: true, as chat-only FIM models' prompts already do. Prompts
without markers are unchanged: a custom template may need the model's.
The check for markers is the one the DeepSeek and Mistral suffix uses.
@rjmacarthy
rjmacarthy merged commit 848b9e2 into main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants