Skip to content

Global configuration is being overridden with built-in default #172

@qwadrox

Description

@qwadrox

I have a global config:

{
  "$schema": "https://btca.dev/btca.schema.json",
  "providerTimeoutMs": 300000,
  "resources": [
    {
      "type": "git",
      "name": "svelte",
      "url": "https://github.com/sveltejs/svelte.dev",
      "branch": "main",
      "searchPath": "apps/svelte.dev",
      "specialNotes": "This is the svelte docs website repo, not the actual svelte repo. Focus on the content directory, it has all the markdown files for the docs."
    },
    {
      "type": "git",
      "name": "tailwindcss",
      "url": "https://github.com/tailwindlabs/tailwindcss.com",
      "branch": "main",
      "searchPath": "src/docs",
      "specialNotes": "This is the tailwindcss docs website repo, not the actual tailwindcss repo. Use the docs to answer questions about tailwindcss."
    },
    {
      "type": "git",
      "name": "nextjs",
      "url": "https://github.com/vercel/next.js",
      "branch": "canary",
      "searchPath": "docs",
      "specialNotes": "These are the docs for the next.js framework, not the actual next.js repo. Use the docs to answer questions about next.js."
    }
  ],
  "model": "kimi-k2.5-free",
  "provider": "opencode"
}

project level:

{
  "$schema": "https://btca.dev/btca.schema.json",
  "resources": [
    {
      "type": "git",
      "name": "nx",
      "url": "https://github.com/nrwl/nx",
      "branch": "master",
      "searchPath": "docs",
      "specialNotes": "Nx documentation and guides."
    },
    {
      "type": "git",
      "name": "primeng",
      "url": "https://github.com/primefaces/primeng",
      "branch": "master",
      "specialNotes": "PrimeNG component source and documentation."
    },
   // many more resource...
  ]
}

at project level, enter btca

The default model is haiku, whereas it should be 'kimi-k2.5-free' defined in global

Image

What I expect is a configuration that works like any other AI tool. Global configuration for generalized config, project level is to override, specialize it, or extend it.

The workaround is to set model and provider, as well as all the other settings, at the project level.

I expect my global configuration never to be overridden by the built-in default in any situation. It should rather throw an error, rather than silently falling back to something I'm not aware of.

Another problem is that there is zero error or information that the model is not working:
it just prints AI.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions