fix(schema): fix schema descriptions being cut off

Kieran Klukas created

Change summary

internal/config/config.go | 4 ++--
schema.json               | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

internal/config/config.go 🔗

@@ -124,7 +124,7 @@ type ProviderConfig struct {
 	// driven value at request time, put it in extra_headers, or in
 	// the provider's top-level api_key / base_url, all of which do
 	// expand. See PLAN.md Phase 2 design decision #16.
-	ExtraBody map[string]any `json:"extra_body,omitempty" jsonschema:"description=Additional fields to include in request bodies, only works with openai-compatible providers"`
+	ExtraBody map[string]any `json:"extra_body,omitempty" jsonschema:"description=Additional fields to include in request bodies\\, only works with openai-compatible providers"`
 
 	ProviderOptions map[string]any `json:"provider_options,omitempty" jsonschema:"description=Additional provider-specific options for this provider"`
 
@@ -268,7 +268,7 @@ type Options struct {
 	DataDirectory             string       `json:"data_directory,omitempty" jsonschema:"description=Directory for storing application data (relative to working directory),default=.crush,example=.crush"` // Relative to the cwd
 	DisabledTools             []string     `json:"disabled_tools,omitempty" jsonschema:"description=List of built-in tools to disable and hide from the agent,example=bash,example=sourcegraph"`
 	DisableProviderAutoUpdate bool         `json:"disable_provider_auto_update,omitempty" jsonschema:"description=Disable providers auto-update,default=false"`
-	DisableDefaultProviders   bool         `json:"disable_default_providers,omitempty" jsonschema:"description=Ignore all default/embedded providers. When enabled, providers must be fully specified in the config file with base_url, models, and api_key - no merging with defaults occurs,default=false"`
+	DisableDefaultProviders   bool         `json:"disable_default_providers,omitempty" jsonschema:"description=Ignore all default/embedded providers. When enabled\\, providers must be fully specified in the config file with base_url\\, models\\, and api_key - no merging with defaults occurs,default=false"`
 	Attribution               *Attribution `json:"attribution,omitempty" jsonschema:"description=Attribution settings for generated content"`
 	DisableMetrics            bool         `json:"disable_metrics,omitempty" jsonschema:"description=Disable sending metrics,default=false"`
 	InitializeAs              string       `json:"initialize_as,omitempty" jsonschema:"description=Name of the context file to create/update during project initialization,default=AGENTS.md,example=AGENTS.md,example=CRUSH.md,example=CLAUDE.md,example=docs/LLMs.md"`

schema.json 🔗

@@ -447,7 +447,7 @@
         },
         "disable_default_providers": {
           "type": "boolean",
-          "description": "Ignore all default/embedded providers. When enabled",
+          "description": "Ignore all default/embedded providers. When enabled, providers must be fully specified in the config file with base_url, models, and api_key - no merging with defaults occurs",
           "default": false
         },
         "attribution": {
@@ -582,7 +582,7 @@
         },
         "extra_body": {
           "type": "object",
-          "description": "Additional fields to include in request bodies"
+          "description": "Additional fields to include in request bodies, only works with openai-compatible providers"
         },
         "provider_options": {
           "type": "object",