Skip to content

How to update and send custom fields to devdata from config yaml? #7455

@sridattasp

Description

@sridattasp

Before submitting your bug report

Relevant environment info

- OS:Windows 11
- Continue version: 1.1.71
- IDE version:1.103.0
- Model:
- config:
  : Local Pilot
version: 1.0.0
schema: v1
models:
  - name: Assistant - mistralai/codestral-2501
    provider: openai
    apiBase: https://test.com/v
    model: mistralai/codestral-2501
    roles:
      - chat
      - edit
      - apply
    defaultCompletionOptions:
      contextLength: 16383
      temperature: 0.1
      maxTokens: 4096
      topP: 1
    requestOptions:
      headers:
        Cookie: session=8d680135-fe72-42fa-9f34-bb256f212587
  - name: codegemma
    provider: openai
    apiBase: https://test.com/v
    model: google/codegemma-2b
    roles:
      - autocomplete
    defaultCompletionOptions:
      temperature: 0.1
      maxTokens: 512
      topP: 1
      service_version: service_version
      task_name: task_name
    requestOptions:
      headers:
        Cookie: session=8da-9f34-bb256f212587
  
  OR link to agent in Continue hub:

Description

There are two queries:

  1. As seen below, I see userId field is empty in autocomplete.json when auto-completion is triggered from vscode editor.

{"timestamp":"2025-08-28T09:22:04.150Z","userId":"","userAgent":"Visual Studio Code/1.103.0 (Continue/1.1.71)","selectedProfileId":"local","eventName":"autocomplete","schema":"0.2.0","disable":false,"maxPromptTokens":1024,"debounceDelay":350,"maxSuffixPercentage":0.2,"prefixPercentage":0.3,"transform":true,"multilineCompletions":"auto","slidingWindowPrefixPercentage":0.75,"slidingWindowSize":500,"useCache":true,"onlyMyCode":true,"useRecentlyEdited":true,"useImports":true,"accepted":true,"time":5035,"prefix":"# Path: api/test.py\n# print('good nig')\n# api/test.py\n#add two\r\nprint('good morning')\r\nprint('good evening')\r\nprint('gooada night')\r\nprint('good nig","suffix":"')","prompt":"<|fim_prefix|># Path: api/test.py\n# print('good nig')\n# api/test.py\n#add two\r\nprint('good morning')\r\nprint('good evening')\r\nprint('gooada night')\r\nprint('good nig<|fim_suffix|>')<|fim_middle|>","completion":"ht","modelProvider":"openai","modelName":"google/codegemma-2b","cacheHit":false,"filepath":"test.py","gitRepo":"0a082ebb-1172-818b-6b4ccbdf4f0f","completionId":"001a3113-2182-30-ab3f-4f2a2fe31725","uniqueId":"b731ba374532817d0dba1300aeedcf90398da9dd9fb4b1c5f05d3e8ac"}

  1. How to update and send custom fields of config.yaml to devdata on autocomplete action trigger?

In the config.yaml file shown above, I want to pass service_version, task_name fields with values to autocomplete.json on every auto-completion request triggered from editor.

To reproduce

No response

Log output

Metadata

Metadata

Assignees

Labels

area:autocompleteRelates to the auto complete featurearea:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:questionIndicates a questionos:windowsHappening specifically on Windowsstale

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions