Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 7, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

markijbema and others added 30 commits January 6, 2026 17:55
- Add supportsFim(), completeFim(), and streamFim() methods to MistralHandler
- FIM support is only enabled for codestral models (codestral-latest, codestral-2405, etc.)
- Uses Mistral's v1/fim/completions endpoint with proper base URL routing
- Supports both streaming and non-streaming FIM completions
- Add comprehensive test coverage with 10 test cases
- Update continuedev Mistral LLM to accurately check model support
- Implementation follows the same pattern as KiloCode OpenRouter handler

Closes: FIM functionality now works for Mistral's codestral models
Prevent React StrictMode cleanup from interrupting paste operations.
Remove completePaste() and clearBuffers() from useEffect cleanup.
Paste buffer refs now persist across React re-mounts and flush properly
when paste end marker is received.

Fixes #4830

Co-authored-by: Jérémy Beutin <[email protected]>
Co-authored-by: marius-kilocode <[email protected]>
- Add FimCapableHandler interface for duck typing
- Add isFimCapable() type guard function
- Update supportsFim() and generateFimResponse() to use duck typing
- Any handler implementing supportsFim() and streamFim() now works with FIM
- Enables MistralHandler FIM support without explicit class checks
Address review comment about signature mismatch with IFimProvider interface.
The streamFim method now accepts optional taskId and onUsage parameters,
and calls onUsage when usage data is available in the stream response.
Add support for Cmd+V to paste images from clipboard in VSCode terminal
on macOS, matching the behavior of Ctrl+V.

Changes:
- Detect empty bracketed paste and check clipboard for image
- Prioritize image over text when clipboard has both (e.g., copying
  image file from Finder sends filename as text but clipboard has image)
- Add triggerClipboardImagePasteAtom with fallback text support
- Support Cmd+V (meta key) in handleGlobalHotkeys

Co-authored-by: Jérémy Beutin <[email protected]>
Add detection for suggestions where the tail is repeating itself - a common
LLM failure mode. For example, when a model gets stuck in a loop and suggests
'the beginning. We are going to start from the beginning. We are going to
start from the beginning...' repeated many times.

The new containsRepetitivePhraseFromPrefix function looks for phrases
(20-80 chars) from the end of the suggestion that appear 3+ times in the
suggestion text, indicating the model got stuck in a repetition loop.
…suggestions

feat(ghost): filter repetitive phrase suggestions in autocomplete
- Remove completeFim from IFimProvider interface
- Remove completeFim implementation from MistralHandler
- Remove completeFim implementation from KilocodeOpenrouterHandler
- Remove completeFim tests from both test files

The method was only used in tests and not in production code.
streamFim is the only FIM method needed.
add new file marker to hopefully prevent further markers
feat(mistral): add FIM support for codestral models
…red-filter

refactor: use shared postprocessGhostSuggestion filter in ChatTextAreaAutocomplete
Disable structured outputs for Anthropic models, because the tool schema doesn't yet support it
@pull pull bot locked and limited conversation to collaborators Jan 7, 2026
@pull pull bot added the ⤵️ pull label Jan 7, 2026
@pull pull bot merged commit 4c30330 into zimushui:main Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants