{"record":{"id":"b9d77edda878a500","repo":"chenhg5/cc-connect","slug":"s-invalid-progress-style-q-want-legacy-compac","errorCode":null,"errorMessage":"%s: invalid progress_style %q (want legacy, compact, or card)","messagePattern":"(.+?): invalid progress_style %q \\(want legacy, compact, or card\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"platform/feishu/feishu.go","lineNumber":410,"sourceCode":"\t\tif mm, ok := mentionMapRaw.(map[string]any); ok {\n\t\t\tmentionMap = make(map[string]string, len(mm))\n\t\t\tfor name, id := range mm {\n\t\t\t\tif idStr, ok := id.(string); ok && idStr != \"\" {\n\t\t\t\t\tmentionMap[name] = idStr\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprogressStyle := \"legacy\"\n\tif v, ok := opts[\"progress_style\"].(string); ok {\n\t\tswitch strings.ToLower(strings.TrimSpace(v)) {\n\t\tcase \"\", \"legacy\":\n\t\t\tprogressStyle = \"legacy\"\n\t\tcase \"compact\", \"card\":\n\t\t\tprogressStyle = strings.ToLower(strings.TrimSpace(v))\n\t\tdefault:\n\t\t\treturn nil, fmt.Errorf(\"%s: invalid progress_style %q (want legacy, compact, or card)\", name, v)\n\t\t}\n\t}\n\tuseInteractiveCard := true\n\tif v, ok := opts[\"enable_feishu_card\"].(bool); ok {\n\t\tuseInteractiveCard = v\n\t}\n\n\timageBatchWindow := defaultImageBatchWindow\n\tif raw, ok := opts[\"image_batch_window_ms\"]; ok {\n\t\tms, err := coerceMilliseconds(raw)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"%s: invalid image_batch_window_ms %v: %w\", name, raw, err)\n\t\t}\n\t\tif ms < 0 {\n\t\t\treturn nil, fmt.Errorf(\"%s: image_batch_window_ms must be >= 0, got %d\", name, ms)\n\t\t}\n\t\timageBatchWindow = time.Duration(ms) * time.Millisecond\n\t}","sourceCodeStart":392,"sourceCodeEnd":428,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/platform/feishu/feishu.go#L392-L428","documentation":"The optional progress_style option is an enum restricted to \"legacy\", \"compact\", or \"card\" (case/space-insensitive). Any other value makes newPlatform fail fast rather than silently falling back. Empty string maps to legacy.","triggerScenarios":"progress_style = \"fancy\" or \"COMPACT CARD\" or \"progressbar\" in the feishu platform options.","commonSituations":"Users guessing style names from screenshots; older configs using names removed when the option was introduced; typo like \"compct\".","solutions":["Set progress_style to one of: legacy, compact, or card.","Remove the progress_style option to get the default (legacy).","Check spelling/extra words; only single-token values are accepted."],"exampleFix":"// before (config.toml)\nprogress_style = \"progressbar\"\n// after\nprogress_style = \"compact\"","handlingStrategy":"validation","validationCode":"allowed := map[string]bool{\"\": true, \"legacy\": true, \"compact\": true, \"card\": true}\nif !allowed[strings.ToLower(strings.TrimSpace(cfg.ProgressStyle))] {\n    log.Fatalf(\"invalid progress_style %q\", cfg.ProgressStyle)\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Copy enum values only from documented examples.","Omit the option to accept the default.","Keep enum values lowercase single tokens."],"tags":["feishu","config","enum"],"backgroundTag":"invalid-enum-value","analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}