Skip to content

Conversation

Copy link

Copilot AI commented Sep 2, 2025

The transform option was missing from the YAML autocomplete configuration schema, preventing users from disabling autocomplete output trimming even though the underlying system supported it.

Problem

Users reported that they couldn't set transform: false in their YAML autocomplete configuration to disable trimming of multiline completions. This was particularly problematic for models like Mamba-Codestral-7B served via vLLM, which generate better multiline completions when transformations are disabled.

The issue occurred because while the transform option existed in TabAutocompleteOptions and was respected by the autocomplete pipeline (defaulting to true), it was missing from the autocompleteOptionsSchema in the config-yaml package.

Solution

  • Added transform: z.boolean().optional() to the autocompleteOptionsSchema in packages/config-yaml/src/schemas/models.ts
  • Added documentation for the transform option in the config.yaml reference with usage examples

Example Usage

Users can now disable autocomplete transformations in their YAML config:

models:
  - name: mistralai/Mamba-Codestral-7B-v0.1
    provider: openai
    model: mistralai/Mamba-Codestral-7B-v0.1
    roles:
      - autocomplete
    autocompleteOptions:
      transform: false  # Disables trimming of multiline completions
      debounceDelay: 100
      template: "[SUFFIX]{{{suffix}}}[PREFIX]{{{prefix}}}"

Changes

  • Added transform: z.boolean().optional() to autocompleteOptionsSchema
  • Added comprehensive unit tests to verify the schema validation
  • Added documentation to config.yaml reference explaining the transform option and its usage
  • Added example showing transform: false in autocomplete configuration
  • No breaking changes - the option is optional and backwards compatible

Testing

  • All existing tests continue to pass
  • New tests verify the schema accepts transform: true, transform: false, and configs without the transform option
  • Manual verification confirms the fix resolves the original issue

Fixes #1.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Author

Copilot AI commented Sep 2, 2025

@shloimy-wiesel 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

- Added `transform: z.boolean().optional()` to autocompleteOptionsSchema in packages/config-yaml/src/schemas/models.ts
- Added comprehensive unit tests to verify the schema validates transform option correctly
- Fixed issue where users could not set `transform: false` in YAML autocomplete configuration
- Transform option controls whether stream transformations (trimming) are applied to autocomplete outputs

Co-authored-by: shloimy-wiesel <144027408+shloimy-wiesel@users.noreply.github.com>
Copilot AI changed the title [WIP] Missing "transform" option in YAML config — always trims autocomplete output Add missing transform option to YAML autocomplete configuration Sep 2, 2025
Copilot AI requested a review from shloimy-wiesel September 2, 2025 06:44
@shloimy-wiesel
Copy link
Owner

@copilot can you add this to the docs? in the config.yaml reference

- Added transform option to autocompleteOptions section in docs/reference.mdx
- Added example usage showing transform: false in autocomplete configuration
- Documents that transform controls trimming of multiline completions

Co-authored-by: shloimy-wiesel <144027408+shloimy-wiesel@users.noreply.github.com>
Copy link
Author

Copilot AI commented Sep 9, 2025

@copilot can you add this to the docs? in the config.yaml reference

I've added the transform option to the config.yaml reference documentation. The option is now documented in the autocompleteOptions section with a description explaining that it controls trimming of multiline completions, and I've included an example showing transform: false in the autocomplete configuration.

Changes are in commit 537fd7d.

Copilot AI changed the title Add missing transform option to YAML autocomplete configuration Add missing transform option to YAML autocomplete configuration and documentation Sep 9, 2025
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.

Missing "transform" option in YAML config — always trims autocomplete output

2 participants