{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::create_anthropic_sse_stream_from_responses_raw (cyclomatic 280): cc_switch::proxy::providers::streaming_responses::create_anthropic_sse_stream_from_responses_raw has cyclomatic complexity 280 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6533350633d31202d9f967cc846cb30744274009802e3a6ec51db9b47a67deb4"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedSkillsPanel.UnifiedSkillsPanel (cyclomatic 220): UnifiedSkillsPanel.UnifiedSkillsPanel has cyclomatic complexity 220 (threshold 15). Of this number, 58 points are the body\u0027s own statements and 162 belong to 53 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc4ae7f33f4403fc02d44fd83d5bfb4644926b319b3a392c9ef2e7534f77e5a"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexFormFields.CodexFormFields (cyclomatic 219): CodexFormFields.CodexFormFields has cyclomatic complexity 219 (threshold 15). Of this number, 127 points are the body\u0027s own statements and 92 belong to 36 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d59b86e253f5ff53f79b3186d55ce7231d447b717a7ae135023eb5201431bfc"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestForwarder::forward (cyclomatic 217): RequestForwarder::forward has cyclomatic complexity 217 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee97f0abb46e7744fea9c800c65d4f18d66a8829ff1a8204d795d79041361606"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderForm.ProviderFormFull (cyclomatic 173): ProviderForm.ProviderFormFull has cyclomatic complexity 173 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull::handleSubmit, ProviderForm.ProviderFormFull::performSubmit, ProviderForm.ProviderFormFull::handlePresetChange) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa02480014ca0eb37dc40ec6b72c0a6bd0362ea9dc1f922092cd15401d480e6"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManagerPage.SessionManagerPage (cyclomatic 153): SessionManagerPage.SessionManagerPage has cyclomatic complexity 153 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 108 belong to 51 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5bc8b74a95a0dc75a095093b9410fc0c629aef699129ef690bf150300d1c09"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderForm.ProviderFormFull::performSubmit (cyclomatic 146): ProviderForm.ProviderFormFull::performSubmit has cyclomatic complexity 146 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull, ProviderForm.ProviderFormFull::handleSubmit, ProviderForm.ProviderFormFull::handlePresetChange) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa31181a99151c98d4dbffa7a36e83b1d1c3a8b0749e16ff009c8c8a2aa5e4f0"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeFormFields.ClaudeFormFields (cyclomatic 136): ClaudeFormFields.ClaudeFormFields has cyclomatic complexity 136 (threshold 15). Of this number, 95 points are the body\u0027s own statements and 41 belong to 22 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb68e3f471ae77f77f43c639e27d5838f21d90fc330c5826af40b4223393fa4"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedMcpPanel.UnifiedMcpPanel (cyclomatic 133): UnifiedMcpPanel.UnifiedMcpPanel has cyclomatic complexity 133 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 91 belong to 27 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7baa2d145297ba304ceb322990351ebf960bd871919f85262fe1cd22f6c8ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::run (cyclomatic 132): cc_switch::run has cyclomatic complexity 132 (threshold 15). Of this number, 125 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"18554417d317919e9461edcb5101d6a087f9af98ee4d2a5dd1becea848610439"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderCard.ProviderCard (cyclomatic 126): ProviderCard.ProviderCard has cyclomatic complexity 126 (threshold 15). Of this number, 119 points are the body\u0027s own statements and 7 belong to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0360966bbfc23b9d70084167ebaf900ed630242f68bece7527460926978a6030"}},{"ruleId":"D1","level":"warning","message":{"text":"AddProviderDialog.AddProviderDialog (cyclomatic 124): AddProviderDialog.AddProviderDialog has cyclomatic complexity 124 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 91 belong to 13 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e49e6218664c1ac7c01f57b1b3227b74cb61983774bd16de3488863a4c6d07"}},{"ruleId":"D1","level":"warning","message":{"text":"WebdavSyncSection.WebdavSyncSection (cyclomatic 124): WebdavSyncSection.WebdavSyncSection has cyclomatic complexity 124 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 78 belong to 34 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2576b95736119973e4c66c6e537ae617a20ec7f5562121b7738c4e542f77da3"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderList.ProviderList (cyclomatic 116): ProviderList.ProviderList has cyclomatic complexity 116 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 63 belong to 17 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2740eeab96bbb7c1e093248a677b218793b15b026a52241ee6308ca7e25ead4"}},{"ruleId":"D1","level":"warning","message":{"text":"TrayPanel.TrayPanel (cyclomatic 111): TrayPanel.TrayPanel has cyclomatic complexity 111 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 95 belong to 23 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"675e231696cd728d17bad3ac02287e1e469e52612d273afde718d22c753e15e3"}},{"ruleId":"D1","level":"warning","message":{"text":"McpFormModal.McpFormModal (cyclomatic 109): McpFormModal.McpFormModal has cyclomatic complexity 109 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 67 belong to 24 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8010143b6552b3d12c638dad4ba8ef72a387f23e25295793ab34638665e0c8a"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotProviderForm.CopilotProviderForm (cyclomatic 103): CopilotProviderForm.CopilotProviderForm has cyclomatic complexity 103 (threshold 15). Of this number, 50 points are the body\u0027s own statements and 53 belong to 22 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"64baa2f779766565a2ed0ccab2bb37e178094edbc178b42f0c6aff197fef7b86"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionReader.SessionReader (cyclomatic 101): SessionReader.SessionReader has cyclomatic complexity 101 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 61 belong to 25 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"04563e891fce46211a9abff6fb8b8d24a63702ac5e86de88955d67d1e21edbb0"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptPanel.StandardPromptPanel (cyclomatic 93): PromptPanel.StandardPromptPanel has cyclomatic complexity 93 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 67 belong to 24 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"347295f0abd8cd4ea9e723e103a1e8ceea5eb7540851d46827eb9f773cd7d0da"}},{"ruleId":"D1","level":"warning","message":{"text":"KimiProviderForm.KimiProviderForm (cyclomatic 89): KimiProviderForm.KimiProviderForm has cyclomatic complexity 89 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 47 belong to 23 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e0238d3130475f2b45d16f0995351590e92f4c3777b3b193d91013607c012f"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderForm.ProviderFormFull::handleSubmit (cyclomatic 88): ProviderForm.ProviderFormFull::handleSubmit has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull, ProviderForm.ProviderFormFull::performSubmit, ProviderForm.ProviderFormFull::handlePresetChange) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b929fc8e667d0b5abe01cd61738feb6148ec7ca4c8fc9eaf50482134746e2211"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepLinkImportDialog.DeepLinkImportDialog (cyclomatic 87): DeepLinkImportDialog.DeepLinkImportDialog has cyclomatic complexity 87 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (DeepLinkImportDialog.DeepLinkImportDialog::handleImport) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18d8d072b147762955dbb5bb123316ab81db5dad52d2c73d1080ac2d27848bf"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming::create_anthropic_sse_stream (cyclomatic 82): cc_switch::proxy::providers::streaming::create_anthropic_sse_stream has cyclomatic complexity 82 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fd335e546b4ad1e6c866c6e27ca525b33ed8564880cf0eb59c684bf35b6e2a"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsPage.SkillsPage (cyclomatic 78): SkillsPage.SkillsPage has cyclomatic complexity 78 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 47 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95e6ba534e3ad1aa682622e28bd8946de6cbd6df052aaa2c7f3356d1ca7046c"}},{"ruleId":"D1","level":"warning","message":{"text":"PiPromptPanel.PiPromptPanel (cyclomatic 77): PiPromptPanel.PiPromptPanel has cyclomatic complexity 77 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 36 belong to 19 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"98232d61c1cfac86983339d9fa3e3679085aabbbd19181304af46e4c54bb4a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkBuddyProviderForm.WorkBuddyProviderForm (cyclomatic 77): WorkBuddyProviderForm.WorkBuddyProviderForm has cyclomatic complexity 77 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 41 belong to 21 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c06acdf8cd8f3d327188dee939242ebb99c95b0160daecec5e79023e81c814"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageScriptModal.UsageScriptModal (cyclomatic 75): UsageScriptModal.UsageScriptModal has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (UsageScriptModal.UsageScriptModal::handleTest, UsageScriptModal.UsageScriptModal::handleUsePreset) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63628db51d0da012e49ac58f917bd17de84c1d3c8328a5847fa05e00503c0f1"}},{"ruleId":"D1","level":"warning","message":{"text":"SwitchModePanel.SwitchModePanel (cyclomatic 74): SwitchModePanel.SwitchModePanel has cyclomatic complexity 74 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 22 belong to 14 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0fa6f57188e42e5267e60cb37c65b1b7490043c53882bf2f1ea90246e0b7f8"}},{"ruleId":"D1","level":"warning","message":{"text":"UniversalProviderFormModal.UniversalProviderFormModal (cyclomatic 74): UniversalProviderFormModal.UniversalProviderFormModal has cyclomatic complexity 74 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 45 belong to 11 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5201a942fbb9fab192d26433312c3340c7d3ba15362882923346f9817741d5c"}},{"ruleId":"D1","level":"warning","message":{"text":"deplink.html.parseDeepLink (cyclomatic 66): deplink.html.parseDeepLink has cyclomatic complexity 66 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 19 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa14129ce07cfa30ee1745d51654856569c1c8a96ef805426747d05ff6a34f3"}},{"ruleId":"D1","level":"warning","message":{"text":"EditProviderDialog.EditProviderDialog (cyclomatic 66): EditProviderDialog.EditProviderDialog has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 15 of the 66 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 139, 292, 103, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e18c2193eb00c40fcd506831a319817780b26cfd0b2b7842f73f0f1013ef66"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexOAuthSection.CodexOAuthSection (cyclomatic 66): CodexOAuthSection.CodexOAuthSection has cyclomatic complexity 66 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 13 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb82c01f49925c6ae8d63c1c8e9287d184a9567b25805b1b6f891251a8cf0f8a"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeFormFields.OpenCodeFormFields (cyclomatic 65): OpenCodeFormFields.OpenCodeFormFields has cyclomatic complexity 65 (threshold 15). Most of this is not in the body itself: 4 of the 65 points are its own statements and the rest belongs to 20 function items inside it that branch (a function literal at line 907, handleModelExtraFieldKeyChange, handleExtraOptionKeyChange, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a43e5e7a84bbb7a978c60ea6a3ee1ec4e379023d7b992fecd66eadd8d17c61c"}},{"ruleId":"D1","level":"warning","message":{"text":"deplink.html.generateLink (cyclomatic 60): deplink.html.generateLink has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07dfec6a154f0d0eb908cbeabdefcfccf4dbb0ee459c7d6f4854adb6fbbee1b"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::parse_codex_file_with_index (cyclomatic 59): cc_switch::services::session_usage_codex::parse_codex_file_with_index has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c733fdb792faa78d0266d3124935bf5ea13e0d4c22435299bd6d11d05070b5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsPage.ToolRow (cyclomatic 58): AppsPage.ToolRow has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a484a3d6d0440571f5679aa62fd811291c33d0cf541eb54f49e6d912967d009"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.buildAdditiveSections (cyclomatic 56): presentation.buildAdditiveSections has cyclomatic complexity 56 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcb1166b57d108acee45196d9e0fe98cd51e31267ef916e29c1003c32804348"}},{"ruleId":"D1","level":"warning","message":{"text":"McodeProviderForm.McodeProviderForm (cyclomatic 54): McodeProviderForm.McodeProviderForm has cyclomatic complexity 54 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 13 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"10211d73ae6816f8d8d9383ff4b0a62c2b58b91af3e573d4fdd54d29a2cf2e81"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::blocks::normalize_tool (cyclomatic 53): cc_switch::session_manager::providers::blocks::normalize_tool has cyclomatic complexity 53 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/blocks.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fb49cdedd9ce48dd98838553460e3457a5b492ac7d3c913032c59ab17013b1"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionItem.SessionItem (cyclomatic 53): SessionItem.SessionItem has cyclomatic complexity 53 (threshold 15). Of this number, 51 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionItem.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"68affb06dadbdcbe2fc793389607b605666f61f837a6b9d3c323f67dc2dd5095"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageDashboard.UsageDashboard (cyclomatic 52): UsageDashboard.UsageDashboard has cyclomatic complexity 52 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 26 belong to 13 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7333f626a53692269ccce5d64f09d71f1549a5199b74ab01042e935ff299c8"}},{"ruleId":"D1","level":"warning","message":{"text":"turns.buildTurn (cyclomatic 49): turns.buildTurn has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 10 of the 49 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 368, a function literal at line 344, blocksOf, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9d02433dc3af4f754a34354e09ac67a8d158e8fca2e46e2dce3932534e8357"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::mcp::codex::import_from_codex (cyclomatic 48): cc_switch::mcp::codex::import_from_codex has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b8eb86bd2aa8d1dc1169ea35a37ce1f273262e850f93c2361f358b671f65c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedAccountsGroup.ManagedAccountsGroup (cyclomatic 48): ManagedAccountsGroup.ManagedAccountsGroup has cyclomatic complexity 48 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 14 belong to 8 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ac245aa0234fa15da1e378f207e40d12057ba9f0a27bfff30b7133eb07b301"}},{"ruleId":"D1","level":"warning","message":{"text":"Database::apply_schema_migrations_on_conn (cyclomatic 47): Database::apply_schema_migrations_on_conn has cyclomatic complexity 47 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7e913d17a3c0220abd44114164ec59cb7cddd703e51148d2e1b8abc4baeeac"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value (cyclomatic 47): cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f37ad192155e5599c2bb1670f3120958405488d235b5b33908237f3dac3806f"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestForwarder::forward_with_retry_inner (cyclomatic 45): RequestForwarder::forward_with_retry_inner has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"022e0147a763d84a480b5b207f07b1b7683cbc470f4be91ccf0a70898284e8af"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLogTable.RequestLogTable::renderRow (cyclomatic 45): RequestLogTable.RequestLogTable::renderRow has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9425aa64f0978bc97f625430ae51d875e40e5a397bc06efa0d1ca62005c4dfe"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::responses_request_to_anthropic (cyclomatic 44): cc_switch::proxy::providers::transform_codex_anthropic::responses_request_to_anthropic has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a31313886535177616006b8981457dd6317b74165636ce5381ccc4d74f317a"}},{"ruleId":"D1","level":"warning","message":{"text":"AppsPage.AppsPage (cyclomatic 44): AppsPage.AppsPage has cyclomatic complexity 44 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 28 belong to 10 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc5d065efc3a209e5ef51c75393de6e3df2c5022e6cdd6ebe53d6c5590599b"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyMemoryPanel.DailyMemoryPanel (cyclomatic 44): DailyMemoryPanel.DailyMemoryPanel has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 12 of the 44 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 153, 258, 210, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8f4a3f2a49178113cd9fc0c2227be3c234d96ebb55e26e0966d91d65d57a30"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::sync_single_codex_file (cyclomatic 43): cc_switch::services::session_usage_codex::sync_single_codex_file has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc23ec9bfdf747546c0865d7a34d883aad920d24da18520b55b4d59af5e454"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotAuthSection.CopilotAuthSection (cyclomatic 43): CopilotAuthSection.CopilotAuthSection has cyclomatic complexity 43 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 17 belong to 8 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a214df5080426a887b319f3e3ec9064baa5a17ded2540599174b7bdddd138f2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionMarkdown.renderNode (cyclomatic 43): SessionMarkdown.renderNode has cyclomatic complexity 43 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca449c06cc7265b80fe08151931dd894f6348a05e3d05f9a6620a401830fc50"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageDateRangePicker.UsageDateRangePicker (cyclomatic 43): UsageDateRangePicker.UsageDateRangePicker has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 5 of the 43 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 495, renderField, handleDatePick, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDateRangePicker.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bbd2f6e5e668b41d3c90970a8f5eec1411e6290f8f8048d029ca2c0efade74"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.buildSwitchSectionsByView (cyclomatic 42): presentation.buildSwitchSectionsByView has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 14 of the 42 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 369, a function literal at line 261, a function literal at line 485, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6feb994f29fb03d6eb6372eb2fc3dd53f1e1c06cfa511d6db366d742db48c74b"}},{"ruleId":"D1","level":"warning","message":{"text":"XaiOAuthSection.XaiOAuthSection (cyclomatic 42): XaiOAuthSection.XaiOAuthSection has cyclomatic complexity 42 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 11 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e731a12471b2163c62bc99b08d1437b0f5096a351eb14e00c04b7464ce663678"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeDesktopProviderForm.ClaudeDesktopProviderForm (cyclomatic 42): ClaudeDesktopProviderForm.ClaudeDesktopProviderForm has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 2 other methods here (ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels, ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa1b2212d0ca222b5c5cd8b62bf21793eb4a204b201054cda32cd3be2d638a2"}},{"ruleId":"D1","level":"warning","message":{"text":"PiProviderForm.PiProviderForm (cyclomatic 42): PiProviderForm.PiProviderForm has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (PiProviderForm.PiProviderForm::submit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"6808cc490e57f4e2629d6c70be8d7a743d1188bd24fc8660d0f6f203e1918fbf"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPage.SettingsPage (cyclomatic 42): SettingsPage.SettingsPage has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 4 of the 42 points are its own statements and the rest belongs to 14 function items inside it that branch (renderSection, a function literal at line 146, a function literal at line 189, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5c51397bcd94ea4542ac6f5cc9d1edf18311680259e37ab233deaf5e5b07c1"}},{"ruleId":"D1","level":"warning","message":{"text":"RoutingSection.RoutingSection (cyclomatic 42): RoutingSection.RoutingSection has cyclomatic complexity 42 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 22 belong to 8 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a91d6b516a19490290851e2be839a10e0a3b0f55092e5eefb2e44a49e232ee3"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsDevAutoSyncPanel.AutoSyncDialog (cyclomatic 42): ModelsDevAutoSyncPanel.AutoSyncDialog has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 10 of the 42 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 123, a function literal at line 336, a function literal at line 92, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2b235b1278c68a412ae0058faf5644836b4f4bceabbb4b7d0e3c374bb54544"}},{"ruleId":"D1","level":"warning","message":{"text":"deepLinkConfigPreview.parseDeepLinkConfigPreview (cyclomatic 42): deepLinkConfigPreview.parseDeepLinkConfigPreview has cyclomatic complexity 42 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deepLinkConfigPreview.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a4e5abb0abafa0b347ea7fd67252f9448d4ec267b591650a21e9ed34f51b02"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::update (cyclomatic 41): ProviderService::update has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4036a1736cacdaf9bc9883c25baebdef47c82d1ae12965be1e40a608a20be9"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::handlers::chat_sse_to_response_value (cyclomatic 41): cc_switch::proxy::handlers::chat_sse_to_response_value has cyclomatic complexity 41 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":3023}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8052a7c4eb6ab253f414bc1895cee7b377e153c1c0c339169f78e7817b1f40"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageDisplaySection.UsageDisplaySection (cyclomatic 41): UsageDisplaySection.UsageDisplaySection has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 14 of the 41 points are its own statements and the rest belongs to 13 function items inside it that branch (refreshRates, changeRateSource, changeCurrency, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6266afbe847a7f490e481c3254768db2b1ee1b3a234e75487f5b5c95a738a6df"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit (cyclomatic 40): ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (ClaudeDesktopProviderForm.ClaudeDesktopProviderForm, ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f43dc2150267bb060e1465be187ac276a8df8b790aefb15beb302a6c21e8e1a"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::anthropic_to_responses (cyclomatic 39): cc_switch::proxy::providers::transform_responses::anthropic_to_responses has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"669738152d298aaa1fa78e9e3929f4e3191f9e3dfa07dbc96662b3be54a8daa4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentsDefaultsPanel.AgentsDefaultsPanel (cyclomatic 39): AgentsDefaultsPanel.AgentsDefaultsPanel has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 13 of the 39 points are its own statements and the rest belongs to 9 function items inside it that branch (handleSave, getFallbackOptions, a function literal at line 45, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8248e1a4438a3f7b016711ff8385fa6d26650124e7aed934154317ae9a0e453"}},{"ruleId":"D1","level":"warning","message":{"text":"useManagedAuth.useManagedAuth (cyclomatic 39): useManagedAuth.useManagedAuth has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 4 of the 39 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 182, 145, 329, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3830449c76ad10795305199c2e6a82e0edad9f9fda2420e036890fde33d3557a"}},{"ruleId":"D1","level":"warning","message":{"text":"useOmoModelSource.useOmoModelSource.omoModelBuild (cyclomatic 39): useOmoModelSource.useOmoModelSource.omoModelBuild has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOmoModelSource.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"240b2316126344d18621116df61219f9b19100aaca913b165bdbf4b025741dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"RolloutParser::finish_call (cyclomatic 38): RolloutParser::finish_call has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e28202ba8de8697cab6d8ab489f29b8553700d3aec601ce15b51bb030d21cd"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::responses_to_anthropic_with_web_search_options (cyclomatic 38): cc_switch::proxy::providers::transform_responses::responses_to_anthropic_with_web_search_options has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2557}}}],"partialFingerprints":{"codehealthFindingId/v1":"a705d865fbfd9c3c759166569f7a61f34f68e69a06d2c5a0fad81bfd9363442d"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageScriptModal.UsageScriptModal::handleTest (cyclomatic 38): UsageScriptModal.UsageScriptModal::handleTest has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (UsageScriptModal.UsageScriptModal, UsageScriptModal.UsageScriptModal::handleUsePreset) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad5b55f5ef2c80fe1bb3a90117ff6a48cee1aec8a71bf738ebcb62f77153c0b"}},{"ruleId":"D1","level":"warning","message":{"text":"useToolManagement.useToolManagement.executeRun (cyclomatic 38): useToolManagement.useToolManagement.executeRun has cyclomatic complexity 38 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 21 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a1943ec5068997e59e94e0506d803136b37df52541ea4fda57fe988d3999ed"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptFormPanel.PromptFormPanel (cyclomatic 38): PromptFormPanel.PromptFormPanel has cyclomatic complexity 38 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 16 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3f81f94d1e6819dd8d3aa2d1961559e9d947c9cdc237f2fc95d782fa171d77"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform::openai_to_anthropic (cyclomatic 36): cc_switch::proxy::providers::transform::openai_to_anthropic has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a45aacd5bb2715f7462ef727b2918f446e174853f3d01de08bf803540a577f0"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStepDetails.BlockText (cyclomatic 36): SessionStepDetails.BlockText has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c509cb301fa6390077c2a9fd89b3e9ec5f06eed632abb11845790e0513d48f"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::misc::build_tool_search_paths (cyclomatic 35): cc_switch::commands::misc::build_tool_search_paths has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2696}}}],"partialFingerprints":{"codehealthFindingId/v1":"121b059d864f6ba09efb3cd755b3d4e5ec7dbfd8c84b56211eed5775b400965f"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::omp_config::edit_provider (cyclomatic 35): cc_switch::omp_config::edit_provider has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"e775a1269cb9116dc0b8b34fe034075d58df5572a27e445300ec462f7a4d81ab"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseUpgrade.DatabaseUpgrade (cyclomatic 35): DatabaseUpgrade.DatabaseUpgrade has cyclomatic complexity 35 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DatabaseUpgrade.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90e2ef3e0a1a9936e543f33ae09e4663d120551fc327a7ff067d81b5eb0817b"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonEditor.JsonEditor (cyclomatic 35): JsonEditor.JsonEditor has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 9 of the 35 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 113, a function literal at line 150, handleFormat, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"77762c6c8798e469967950dce62b181ef7fb13235bbd7f009f3b0ed43c0194c2"}},{"ruleId":"D1","level":"warning","message":{"text":"AboutSection.AboutSection (cyclomatic 35): AboutSection.AboutSection has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 134, 71, 96, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2dc4d7478dd24c093a60909a019672eebe2a890ef98ea358219c0ff0a8e5a2"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_gemini::create_anthropic_sse_stream_from_gemini (cyclomatic 34): cc_switch::proxy::providers::streaming_gemini::create_anthropic_sse_stream_from_gemini has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cdd6b4cdba5137e772c3a326222d3af9110385eb0029b0726d74fc92d13573"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage::sync_single_file (cyclomatic 34): cc_switch::services::session_usage::sync_single_file has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5b40656eab2a68e365822b7482078e1a5eb287c001f3fa132dde701663387e"}},{"ruleId":"D1","level":"warning","message":{"text":"CommonConfigEditor.CommonConfigEditor (cyclomatic 34): CommonConfigEditor.CommonConfigEditor has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 120, 87, 194, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CommonConfigEditor.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e065684d7398de18cec9c600dd76ba5e676b9fc9a0f9f475305379b54ca193dc"}},{"ruleId":"D1","level":"warning","message":{"text":"ModeDialog.EnterBody (cyclomatic 34): ModeDialog.EnterBody has cyclomatic complexity 34 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0057bf30f22a416c451c570df829a00ab8834930c56370577687d464216d19"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::add (cyclomatic 33): ProviderService::add has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":5789}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f32229a0968bc04e19b5f6c62a3f4518b0e7ba76d11c8e20946a12f7becb56d"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::get_app_skills_dir (cyclomatic 33): SkillService::get_app_skills_dir has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81b7ff3040ce4c6e53174e0630fbafae7a8b60f079501ffb4c59f803ac88775"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::convert_input_to_messages (cyclomatic 33): cc_switch::proxy::providers::transform_codex_anthropic::convert_input_to_messages has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"6979e32b76f5f9e379652b8a9766ecf2afe0d5a26b837a68c951e431c6a66bdc"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::codex_direct::plan (cyclomatic 33): cc_switch::services::provider::codex_direct::plan has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e352006c2c829c6ca85d562e1f2579d17ae110aa67412e06ff2075fb20447e"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 33): App.App has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 3 other methods here (App.App::handleDuplicateProvider, App.App::renderAppPageHeader, App.App::renderProviderList) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b4586d6a00df7464757e105ec870bf7d116d7c7bddbf011c2d896c260943c4"}},{"ruleId":"D1","level":"warning","message":{"text":"useProviderCategory.useProviderCategory (cyclomatic 33): useProviderCategory.useProviderCategory has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 33). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useProviderCategory.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5171103ab2be99c2a9a5f0d45b0664db98ee15231d35210571009c986ed1b7ea"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionDiff.parseDiff (cyclomatic 33): SessionDiff.parseDiff has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 4 of the 33 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 41, pushFile). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionDiff.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"456df0058cef435e5f4c540c19513dfa58eed064efd8d088e2bd12f9980a4a37"}},{"ruleId":"D1","level":"warning","message":{"text":"errorUtils.translateMcpBackendError (cyclomatic 33): errorUtils.translateMcpBackendError has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorUtils.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6f6439e50e6a016967a9f817c7520d4c7b52a0be949d6dd3854acaa7c60e9f"}},{"ruleId":"D1","level":"warning","message":{"text":"mutations.useAddProviderMutation (cyclomatic 33): mutations.useAddProviderMutation has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 29, 157, 112, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"079dc7315e466db12ca318747d50287bdb943bcb3344ee733f9275cdc9b17686"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::validate_provider_settings (cyclomatic 32): ProviderService::validate_provider_settings has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":8265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa95c8535ebc0cb53c876d7c711d1b4c361153b833099a6954ddbd4779cf368"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenTerminalDialog.OpenTerminalDialog (cyclomatic 32): OpenTerminalDialog.OpenTerminalDialog has cyclomatic complexity 32 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 13 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efd15c012b10461dc2a8b2ee82a8b6337e508fae487b64e2712f19d177d6328"}},{"ruleId":"D1","level":"warning","message":{"text":"PiProviderForm.PiProviderForm::submit (cyclomatic 32): PiProviderForm.PiProviderForm::submit has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (PiProviderForm.PiProviderForm) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f040d1505ae002d578137ddfb4b4c719f7ee18d4031ccaf272b7f704ea67808"}},{"ruleId":"D1","level":"warning","message":{"text":"BackupListSection.BackupListSection (cyclomatic 32): BackupListSection.BackupListSection has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 7 of the 32 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 310, handleRestore, handleConfirmRename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d3b632ae2a86aa0d94a2cdc4bd401e62b291370597babc985bb11ee4def380"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message (cyclomatic 31): cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"791705a069f03037a73a40404d74e3b480724fcfc2f4799e046fea01eb06a9d4"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_namespace::flatten_request_namespaces (cyclomatic 31): cc_switch::proxy::providers::transform_codex_responses_namespace::flatten_request_namespaces has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5773b1b7794facb61ca2bb49c00447f6fba4f78a84e5b4ff2cf1d42a10163867"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::convert_messages_to_input (cyclomatic 31): cc_switch::proxy::providers::transform_responses::convert_messages_to_input has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1084c7dde33176fc436da8dd658a5e26b5aeef0c9fd12d96c4d53d36c64dd5"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App::handleDuplicateProvider (cyclomatic 30): App.App::handleDuplicateProvider has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (App.App, App.App::renderAppPageHeader, App.App::renderProviderList) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc6d0b4bd8c1adf2e797dba2870edea0a07024932b05b740d57ff2d7cf801c1"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkBuddyAccountSection.WorkBuddyAccountSection (cyclomatic 30): WorkBuddyAccountSection.WorkBuddyAccountSection has cyclomatic complexity 30 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 14 belong to 7 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/WorkBuddyAccountSection.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d832bc9f8dd68086a8ddf09fdf858cc7bafb810ad7d6f83bde196688ba62fe6d"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsDevPickerDialog.ModelsDevPickerDialog (cyclomatic 30): ModelsDevPickerDialog.ModelsDevPickerDialog has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 92, a function literal at line 246, a function literal at line 75, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevPickerDialog.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff858f2af917dd9139a23fe2c8199b9d9779b6c7db1111801d445df1126b2514"}},{"ruleId":"D1","level":"warning","message":{"text":"McpService::upsert_server (cyclomatic 29): McpService::upsert_server has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ece696a56ee6ae3a8f46a605108b6fb7ae7e50d5e254a821aa51f69b4c040c2"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::handlers::handle_claude_transform (cyclomatic 29): cc_switch::proxy::handlers::handle_claude_transform has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"45298b165304e7481497a2e170faf3a49dc54f7beef00486c8105606fb245b2d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::codex_terminal::build (cyclomatic 29): cc_switch::services::provider::codex_terminal::build has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_terminal.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2399d96765650cba408436a24ed7c797bd1db1af818bbf0dc160f444150228ff"}},{"ruleId":"D1","level":"warning","message":{"text":"IconPicker.IconPicker (cyclomatic 29): IconPicker.IconPicker has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 10 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (handleFileChange, handleNameConfirm, handleDeleteConfirm, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IconPicker.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f672c4a80655c8632d408237e660064fcb057a6e1d9228e41030ef28963e48cf"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getInitialLanguage (cyclomatic 29): index.getInitialLanguage has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c95d14c31d90f77f7f671a5ba3ed61303cf854d334e455f82d8587011bafbe0"}},{"ruleId":"D1","level":"warning","message":{"text":"textNormalization.scanTomlQuotes (cyclomatic 29): textNormalization.scanTomlQuotes has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 13 of the 29 points are its own statements and the rest belongs to 2 function items inside it that branch (scan, scan::isCloser). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/textNormalization.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec65160806f5a4eac41ea6480f569635df6fbd3e056bb6324b7b13d4d4e7f26"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::delete (cyclomatic 28): ProviderService::delete has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6749}}}],"partialFingerprints":{"codehealthFindingId/v1":"3294d95a3d35e33cadc6a786b9b25c03628130f13c20218d3162d98b18ba3aa8"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_pi::parse_pi_file (cyclomatic 28): cc_switch::services::session_usage_pi::parse_pi_file has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"604fe69cb3b193e7d9644c8a2902336e4fc5777fd9c1c57793c374b6dcfc4a3d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::codex::parse_session_lines (cyclomatic 28): cc_switch::session_manager::providers::codex::parse_session_lines has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"5383cf7bec96071b4ead64fb4961251670dac6580df890a9f36e99d38bd2950e"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::import_from_apps (cyclomatic 27): SkillService::import_from_apps has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5fb8ae2df7f55c89335526029c9f9645c785940b8732e9a29a674bd78c2c4b"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform::convert_message_to_openai (cyclomatic 27): cc_switch::proxy::providers::transform::convert_message_to_openai has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a32982912f6bc2a7eb93dd3bfb258d3c7ed3f47bea015eafe439de45c5c701"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::convert_message_content_to_parts (cyclomatic 27): cc_switch::proxy::providers::transform_gemini::convert_message_content_to_parts has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3298578d99d2a0a100b669fe1522df13589c97cfe5fa0a5556ecf01faf539b"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::live::write_live_snapshot (cyclomatic 27): cc_switch::services::provider::live::write_live_snapshot has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3beec90825ace0182c5fe0e6eba5205bfec0ee0abfb94b190371a9603a4a66"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::claude::parse_session_lines (cyclomatic 27): cc_switch::session_manager::providers::claude::parse_session_lines has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b14ad25a0b9df87bcf03ba58ac9ba273fc96ea05057e96fde950a5f1a0e7f6"}},{"ruleId":"D1","level":"warning","message":{"text":"useBaseUrlState.useBaseUrlState (cyclomatic 27): useBaseUrlState.useBaseUrlState has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 69, 100, 88, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2e859f2f38b8cba9f52114c20b6c82fbea58d9cd92e05eb8819d2a56e3f5eb"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesFormFields.HermesFormFields (cyclomatic 27): HermesFormFields.HermesFormFields has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 210, 332, 498, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3e3f89aafea1c4d9178ba9c73fd393026dd63e2c116aea436dda21a91aad76"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.NavItem (cyclomatic 27): Sidebar.NavItem has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d444bb320c8499a45a73eb3401e9b65fffbc57fcd3fb6f79230335cacd5d3926"}},{"ruleId":"D1","level":"warning","message":{"text":"useSettings.useSettings.saveSettings (cyclomatic 27): useSettings.useSettings.saveSettings has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"92eeba7d4e09ab0914cb173d15a98542db3b19a6a0900744f49d0865629671ab"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexOAuthManager::adopt_account_refresh_token_under_lock (cyclomatic 26): CodexOAuthManager::adopt_account_refresh_token_under_lock has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac272d7ef5fadbd77aa7527a0c6b94e45040f15f00fa245bc7058ab095de1512"}},{"ruleId":"D1","level":"warning","message":{"text":"BufferedCitationTextState::render_message_part (cyclomatic 26): BufferedCitationTextState::render_message_part has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6cbc1e04069a1d0b500fd69d928b441a3a3afd77e71fd70d4f8eef624f02e1"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenUsage::from_claude_stream_events (cyclomatic 26): TokenUsage::from_claude_stream_events has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/usage/parser.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfd39a2ede887262953e34f8dd89e75bfaa197552c473dfb68ef99d86eea0b3"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::switch_normal (cyclomatic 26): ProviderService::switch_normal has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7227}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c649cfcc3aa6edec184e1f9a650902f9c311647a28bf49338d0016e783cf69"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::cache_injector::inject (cyclomatic 26): cc_switch::proxy::cache_injector::inject has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/cache_injector.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a6d017e91e049491260e9b5c39e45106c7b8152109f9f3419765a2e4e99a7f"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::markdown_code_scan (cyclomatic 26): cc_switch::proxy::providers::transform_responses::markdown_code_scan has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9984c0ec62d0e6b40d37c319692faad5d229804ba270f3c87d2d0ed618581a9"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_agy::import_records_with_cursor (cyclomatic 26): cc_switch::services::session_usage_agy::import_records_with_cursor has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_agy.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32e5f51b916ef17a37e85550aed4c524c403ca058907a1b9cb4b0f5b5942ef7"}},{"ruleId":"D1","level":"warning","message":{"text":"FetchedModelPicker.FetchedModelPickerBody (cyclomatic 26): FetchedModelPicker.FetchedModelPickerBody has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 174, matches, renderRow, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/FetchedModelPicker.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1183e851d98fe406219d8f042655a8faa0d224336c92318af10f629892afa04b"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaLines.QuotaLines (cyclomatic 26): QuotaLines.QuotaLines has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"067e52ca39ea8e5971f471ac06071f5319c5aa689b267bb32d998697438f8953"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestDetailPanel.useDetailSections (cyclomatic 26): RequestDetailPanel.useDetailSections has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestDetailPanel.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde257eb241e85114118edfac9d54e53650e75f56d19b8c75a2bcd965d574b89"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyError::into_response (cyclomatic 25): ProxyError::into_response has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/error.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9f803aabfdf51e58382c41d48fccb3babfec96e99aa482d8db4267aad3a8b6"}},{"ruleId":"D1","level":"warning","message":{"text":"SecretDetector::detect_with_active (cyclomatic 25): SecretDetector::detect_with_active has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/privacy_filter/secrets.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"338624f8a44bb505cfc76402a37115ff02051b91c754d7c6488cbae0ab941cae"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::remove_from_live_config (cyclomatic 25): ProviderService::remove_from_live_config has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6924}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa947fe928dfb5bc6a692c9b9204e2422705fa87df43d9d51f954045d1ccd00d"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::migrate_storage (cyclomatic 25): SkillService::migrate_storage has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb4a1b106315844a37067dd4061997fa826f3fb20e7dd9f6cfa70c73ecbcf4a"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::live::import_default_config (cyclomatic 25): cc_switch::services::provider::live::import_default_config has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6ea54d5272c32c82b1d9a5f7f73b141a67378a53eee7372eb9066941af9078"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_grokbuild::sync_single_grok_file (cyclomatic 25): cc_switch::services::session_usage_grokbuild::sync_single_grok_file has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2aa79d77caf29f21a3542d334d11494b3fde65e63e5c15e4a90b5b8e737d32b"}},{"ruleId":"D1","level":"warning","message":{"text":"PiNativePromptResources.PiPromptTemplateEditor (cyclomatic 25): PiNativePromptResources.PiPromptTemplateEditor has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"34385403889dc26e668fb88c040b963bb38ff7a4229c375206ab03d2d302e47e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderForm.ProviderFormFull::handlePresetChange (cyclomatic 25): ProviderForm.ProviderFormFull::handlePresetChange has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull, ProviderForm.ProviderFormFull::handleSubmit, ProviderForm.ProviderFormFull::performSubmit) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":2298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fe13a2117f474a03a6f38bfed52b754d96dcf6ebf846cc2ee82a1c15c7ea5c"}},{"ruleId":"D1","level":"warning","message":{"text":"deeplinkRisk.classifyEndpoint (cyclomatic 25): deeplinkRisk.classifyEndpoint has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deeplinkRisk.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cc9309f99826a6a76bee067601f4cc2b5ee8723d20236d02d252fef7b8d649"}},{"ruleId":"D1","level":"warning","message":{"text":"routingReason.getRoutingReason (cyclomatic 25): routingReason.getRoutingReason has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/routingReason.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda5277c408fad592bc1d37d66c49849a5bc7f4b413dda1c895e1961f091e880"}},{"ruleId":"D1","level":"warning","message":{"text":"tomlUtils.normalizeServerConfig (cyclomatic 25): tomlUtils.normalizeServerConfig has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c84b800886c9393b12731b2de47dace53114fc03aa7d7a1cd4400975aa54457"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexConfigPatch::write_route (cyclomatic 24): CodexConfigPatch::write_route has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"067b2980a80939dcf23af15a9fa58df5f89032516af143c87be7f813f95464d7"}},{"ruleId":"D1","level":"warning","message":{"text":"BufferedCitationTextState::merge_part_indices (cyclomatic 24): BufferedCitationTextState::merge_part_indices has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"2168abc5f6976ebc8d86de3057507c6adab9f277cca7e4392fabcfd7d32ac132"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileService::apply (cyclomatic 24): ProfileService::apply has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/profile.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c6e13c0bd4b4d6062dababe34b5bfb8fc2728d152ab72e0ce26773ae6ecb64"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::omp_config::validate_provider (cyclomatic 24): cc_switch::omp_config::validate_provider has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3650280ac0e84093e59de36b76d1d256ebc56299b59bd9e2ffbcb21437f8b302"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_codex_anthropic::create_responses_sse_stream_from_anthropic_with_context (cyclomatic 24): cc_switch::proxy::providers::streaming_codex_anthropic::create_responses_sse_stream_from_anthropic_with_context has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"2920b76abbd19cb7b3e3d767af78f5e46007588dd79d375463b80201b4869c5a"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform::anthropic_to_openai_with_reasoning_content (cyclomatic 24): cc_switch::proxy::providers::transform::anthropic_to_openai_with_reasoning_content has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"1960c3f71ade0d0c5764a99edebef6eaf099df7e4a0ae9a49403002e040e7d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::response_processor::create_logged_passthrough_stream (cyclomatic 24): cc_switch::proxy::response_processor::create_logged_passthrough_stream has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/response_processor.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df43400f6f2e3107e220a865594d675b47e004af60e15dd3c64bdb562eeed0"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::live::read_live_settings (cyclomatic 24): cc_switch::services::provider::live::read_live_settings has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"506829ea4795a30c28509ed6d7c6067771e4a3629eb2fd49bddfe42cfc75f704"}},{"ruleId":"D1","level":"warning","message":{"text":"McpConfirmation.McpConfirmation (cyclomatic 24): McpConfirmation.McpConfirmation has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 8 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 37, a function literal at line 21, Row, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/McpConfirmation.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e2bcc494bea04ebf6e7401bbb804332c2440c281f755d3f36842a5749e4058"}},{"ruleId":"D1","level":"warning","message":{"text":"KimiAccountLogin.KimiAccountLogin (cyclomatic 24): KimiAccountLogin.KimiAccountLogin has cyclomatic complexity 24 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 11 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/KimiAccountLogin.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37488a6fb9106184dc24005aa3b4602f8ed86435645ac964d8ccc9bfa091e95"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderPresetSelector.PresetPicker (cyclomatic 24): ProviderPresetSelector.PresetPicker has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 10 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4be8d6e1552031f81bc308038e143fec29927f19f2d02830f489bad967aaba9"}},{"ruleId":"D1","level":"warning","message":{"text":"useCodexConfigState.mapCodexCatalogModelForForm (cyclomatic 24): useCodexConfigState.mapCodexCatalogModelForForm has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc34c9b3d5f11451d5aa1d210050c0583124dfdc616ed738d6dc252f5fd0c9e"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenClawFormFields.OpenClawFormFields (cyclomatic 24): OpenClawFormFields.OpenClawFormFields has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 196, a function literal at line 355, a function literal at line 83, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe39560e2c106b8f0d4bcfb61824d6d94d3012f9b2d163edd08ee5ab86daf8d"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkBuddyOfficialSection.WorkBuddyOfficialSection (cyclomatic 24): WorkBuddyOfficialSection.WorkBuddyOfficialSection has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 7 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyOfficialSection.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2376ae66b3d3877be92edaa8fa92e3d8dde70da24523e44e4b8d5576185473"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionMarkdown.collectVisibleTextPieces (cyclomatic 24): SessionMarkdown.collectVisibleTextPieces has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"40885a2bd39593321595322897ddbec1f92d37280f87c0ef54ea3846895401f2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStepDetails.SessionStepDetails (cyclomatic 24): SessionStepDetails.SessionStepDetails has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc160bca249768e774e25857fca148efb85beacc71cf3157c344b8b21a3b8e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedAccountsGroup.AccountRow (cyclomatic 24): ManagedAccountsGroup.AccountRow has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"31669e9535f624f9fe4dc3bd390fa63d5a89b62aa360bd138b4065d68816dbfe"}},{"ruleId":"D1","level":"warning","message":{"text":"frontendLogger.normalizeForSerialization (cyclomatic 24): frontendLogger.normalizeForSerialization has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/frontendLogger.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e823fd2c61c0e6e9da8ea872062453c51bae33b1aac0fdfead33b997126b29e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderType::from_app_type_and_config (cyclomatic 23): ProviderType::from_app_type_and_config has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7092e5516cbedf5c7def2d3783a98a32fdc1a83ea5ce3e87b1b1e187e2d422b7"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::misc::tool_action_shell_command_for_shell (cyclomatic 23): cc_switch::commands::misc::tool_action_shell_command_for_shell has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bbaa89a41e669e3386d6039a92e9a4dcd05657a3e1d4866833c479a42f1f7e"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::copilot_config::validate_document (cyclomatic 23): cc_switch::copilot_config::validate_document has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65af89afaf6f915cf0936c9f202c18339926baf10a550120db26ae7430e6f16"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::mcp::codex::json_server_to_toml_table (cyclomatic 23): cc_switch::mcp::codex::json_server_to_toml_table has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a89f0d15cc53ef04785be673ce4282422f782863bbe40ab039331daa919ff3"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::text_with_url_citations (cyclomatic 23): cc_switch::proxy::providers::transform_responses::text_with_url_citations has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd31bfc88212df194f7a191dfcf1cb32e6079abd2c79e5adaaa88f4811b55be1"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::codex_direct::run_with_edits (cyclomatic 23): cc_switch::services::provider::codex_direct::run_with_edits has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff33740f97705941bfb301c6732714b4910c0d1737326ad0ff854321cb38dbcc"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::subscription::parse_claude_quota (cyclomatic 23): cc_switch::services::subscription::parse_claude_quota has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55b2411ad228e27fb2ff6f4d9c414c4324eaa5d8ee37f915525e84a81e8ec91"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderIcon.ProviderIcon (cyclomatic 23): ProviderIcon.ProviderIcon has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 94, 54, 66, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ProviderIcon.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba370d9f7153cd3d1f75fab4edab9693fd7b12a2a2b6c5c27410cf3d16081d91"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsStorageSheet.SkillsStorageSheet (cyclomatic 23): SkillsStorageSheet.SkillsStorageSheet has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 6 function items inside it that branch (doMigrate, handleMove, handleOpenFolder, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsStorageSheet.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"64230090c5901adff80493e6a35b13968b075d014497911b0e59da16e350497f"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageTrendChart.UsageTrendChart (cyclomatic 23): UsageTrendChart.UsageTrendChart has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 11 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e6c719513109d925cae19a8e1da81e1804a9d3fa209a795991aaaa25498f44"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageHeatmap.UsageHeatmap (cyclomatic 23): UsageHeatmap.UsageHeatmap has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 10 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4889d2a319c41deb5028c7cf46b3f516141650ec15c691a3cf11285f5308f04"}},{"ruleId":"D1","level":"warning","message":{"text":"useDirectorySettings.useDirectorySettings (cyclomatic 23): useDirectorySettings.useDirectorySettings has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 193, 300, 330, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc610ec64313bf6b50b69ee8700f61fb70888bb76d9a045f551992f1d66f7cf"}},{"ruleId":"D1","level":"warning","message":{"text":"useProviderActions.useProviderActions.switchProvider (cyclomatic 23): useProviderActions.useProviderActions.switchProvider has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProviderActions.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dac6b75fc41d3b6f5b764e176f5c38945eed538652a0341094a247f513ac443"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamedTextState::missing_suffix (cyclomatic 22): StreamedTextState::missing_suffix has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb268bb842cdcadb8db799fd2e8b179ac53111a9aa4618397dead207b795df2"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::codex_config::build_simplified_catalog_from_texts (cyclomatic 22): cc_switch::codex_config::build_simplified_catalog_from_texts has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8342362c538a05395e3f35a4c2377d9481b2f72f2d81a93cd45aa2585c01c68"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::settings::save_settings (cyclomatic 22): cc_switch::commands::settings::save_settings has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/settings.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380ada3598e56bc0f2ffe5509e21eb537ec0260271d5a1b59d24c38b4672ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_codex_chat::create_responses_sse_stream_from_chat_with_context (cyclomatic 22): cc_switch::proxy::providers::streaming_codex_chat::create_responses_sse_stream_from_chat_with_context has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b60f01ab102210aaa8b8978ed5c7acace521239dc646bbc81cb1346a9990121"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::responses_to_chat_completions_with_reasoning (cyclomatic 22): cc_switch::proxy::providers::transform_codex_chat::responses_to_chat_completions_with_reasoning has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2c384bdec6067559e626fb80803330b03b46bcd037a6cc373e7c32425f627e"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::thinking_rectifier::should_rectify_thinking_signature (cyclomatic 22): cc_switch::proxy::thinking_rectifier::should_rectify_thinking_signature has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/thinking_rectifier.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c999781e9742b176e9d0cca166ec4d21abb66e996574eb03e5c5be47d4aaef"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::copilot::load_messages (cyclomatic 22): cc_switch::session_manager::providers::copilot::load_messages has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/copilot.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6111a2fb10c25e62e7d782efa5c8745b3cac0f1e6d0377e6111be0db0ae2d3"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::opencode_blocks::push_tool_blocks (cyclomatic 22): cc_switch::session_manager::providers::opencode_blocks::push_tool_blocks has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode_blocks.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"624c0a7ea36a214bc5c25484d4b611a2fcd1274cc4aa0a7e445059102831c8a6"}},{"ruleId":"D1","level":"warning","message":{"text":"FullScreenPanel.FullScreenPanel (cyclomatic 22): FullScreenPanel.FullScreenPanel has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/FullScreenPanel.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8bac2f1aada31205e49e18d0116b4c2ad5ea2a0a0792f5f64932eeed769ff5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppMatrix.MatrixColumnHeader (cyclomatic 22): AppMatrix.MatrixColumnHeader has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/AppMatrix.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4730bb05d5e2ffb9dab2f2b9d4d8bf7122d03ec7ec4a5392c389bfb1e9fc164c"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeOfficialSection.ClaudeOfficialSection (cyclomatic 22): ClaudeOfficialSection.ClaudeOfficialSection has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 191, confirmRemove). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f2eb68178155858e0901cf2f52cc8f9a392856dfd662de4528bf61d6b9dce1"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionOutline.SessionOutline (cyclomatic 22): SessionOutline.SessionOutline has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 108, 78, 61, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionOutline.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a84e92ebe02a89ab4f84348329e16d20e6f74f9d73fc2020476da9ccb81f5e6"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionReaderHeader.SessionReaderHeader (cyclomatic 22): SessionReaderHeader.SessionReaderHeader has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"405860d8f103592622681c630668c6d32c10183f7916752029349c178f841db7"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionReaderHeader.SessionReaderToolbar (cyclomatic 22): SessionReaderHeader.SessionReaderToolbar has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d2eaf01f418b7ab1828acd14ec62e20385498be4d6250e44d8c442b82492fc"}},{"ruleId":"D1","level":"warning","message":{"text":"providerConfigUtils.setCodexBaseUrl (cyclomatic 22): providerConfigUtils.setCodexBaseUrl has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"989eccbfa93491e3f3b46876109851ed2156bf820d76602cd1a22b6d0b43b8aa"}},{"ruleId":"D1","level":"warning","message":{"text":"Database::get_daily_trends (cyclomatic 21): Database::get_daily_trends has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"0034844166e0244cb6bb87e9ad9d41678cb733631e2e9485972c41fa36caf749"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::update_skill (cyclomatic 21): SkillService::update_skill has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7a364d75ca6f8fee1807c9d9864e9314f64475909962c6ded5df7b764486d1"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::misc::anchored_command_from_paths (cyclomatic 21): cc_switch::commands::misc::anchored_command_from_paths has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":4219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8e12bdf83b84ab066c10b6a476436c1bc43d66e1ddfe17ef1d9a8da0ef62e8"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::mcp::codex::json_value_to_toml_item (cyclomatic 21): cc_switch::mcp::codex::json_value_to_toml_item has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"906db356d1cc03818d01d461de09934dd28420d4f13146fffd91a702f88cff61"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::map_reasoning_effort (cyclomatic 21): cc_switch::proxy::providers::transform_codex_chat::map_reasoning_effort has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3784a9566cb767cd1d63a3977d0c0a3a880c46e14aaf836e21679c2d316eaa3"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::rectify_tool_call_args (cyclomatic 21): cc_switch::proxy::providers::transform_gemini::rectify_tool_call_args has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7567be0f7fc0ed741a233d3543477d1d7dc501609743a24c6a387de0cb2a01"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::provider::codex_login::plan (cyclomatic 21): cc_switch::services::provider::codex_login::plan has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_login.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"714488d388538c349a9f93e6f969c0c6f117218ebfb3fccc5123e8adb18529cd"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::subscription::query_gemini_quota (cyclomatic 21): cc_switch::services::subscription::query_gemini_quota has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91368a096c38c9299a0ccc532915d752ce8dafae161b9e8f513a9525da32491"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::cache::build_turns (cyclomatic 21): cc_switch::session_manager::cache::build_turns has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/cache.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"830c6c67657ad6bb3379261107fe42cfa0a41ceef7152a57e52c2ec533be25df"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionFinalReply.SessionFinalReply (cyclomatic 21): SessionFinalReply.SessionFinalReply has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionFinalReply.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"925a9a3c164db9bef2ae77be7d033f8e7f4ea0e2d54be617406762d5875e2370"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.MainDirectory (cyclomatic 21): Sidebar.MainDirectory has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (todayValue, isGlobalSelected, a function literal at line 312). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b995f086ea64ff2e78a1b5b6ad51072f0ba98f433126f46c4942b6e259a1e221"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageTab.UsageTab (cyclomatic 21): UsageTab.UsageTab has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 belong to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0740d58a8d6de87ee30578c59bd5415c0b408b2f8ad79c1db2e4c06e1c8cf7b9"}},{"ruleId":"D1","level":"warning","message":{"text":"providerConfigUtils.extractProviderBaseUrl (cyclomatic 21): providerConfigUtils.extractProviderBaseUrl has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ccb543babfae4291f183b128c10c98cb2d6ab820e1a5a69eac28bc1d5115bb"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonPatch::apply_to (cyclomatic 20): JsonPatch::apply_to has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/json.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42994c5819e2f51bf2588da60bf32128f7d1a579498d2f9eaab6926005708e2"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::dsh_config::initialize_profiles_and_commit (cyclomatic 20): cc_switch::dsh_config::initialize_profiles_and_commit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"089ea8abe525879b37397decc21939bd3897203b5fa3c95271605354d18ee24a"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents (cyclomatic 20): cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c758c67205da8c430ddb9da46bb38aa353a1739970df7804641b8cef1abafa5"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::verified_bounded_fork (cyclomatic 20): cc_switch::services::session_usage_codex::verified_bounded_fork has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34677cb23e07d509562d8f5b65912d87cd30b2eb11f73970ae06b047327d9e8"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::dsh::parse_messages (cyclomatic 20): cc_switch::session_manager::providers::dsh::parse_messages has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/dsh.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"034901a9635054189c4a8042fe2b1238fc53c2cdcd921061923f68b13aacc33a"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::hermes::parse_jsonl_session_with_status (cyclomatic 20): cc_switch::session_manager::providers::hermes::parse_jsonl_session_with_status has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e5c487d9e36e75b88f44b7241c8aaf4b69e0ba7ae966e9795d971231e87281"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App::renderAppPageHeader (cyclomatic 20): App.App::renderAppPageHeader has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 3 other methods here (App.App, App.App::handleDuplicateProvider, App.App::renderProviderList) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2d346e3a78c3118c2b2f7eebbc7e81804b9d694089cd1ecdeb093acb78a770"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolUninstallConfirmDialog.ToolUninstallConfirmDialog (cyclomatic 20): ToolUninstallConfirmDialog.ToolUninstallConfirmDialog has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ToolUninstallConfirmDialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450ee3f7bd963feb0b5a692315eb2d48c678f35644711bc03e19ee76d811144"}},{"ruleId":"D1","level":"warning","message":{"text":"ManualUninstallDialog.ManualUninstallDialog (cyclomatic 20): ManualUninstallDialog.ManualUninstallDialog has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 167, environmentForTool, environmentLabelForTool, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ManualUninstallDialog.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ad48c02870b20da6c0124d9f3089b7a2f2b0771f67ed30629651d4e5361a24"}},{"ruleId":"D1","level":"warning","message":{"text":"PiNativePromptResources.PiPromptTemplates (cyclomatic 20): PiNativePromptResources.PiPromptTemplates has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 902, 834, 818, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b08b01156630ee9b3ec273642c58ac9c4ecb10c490d5ca7029ce47f5ceba40d"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderEmptyState.ProviderEmptyState (cyclomatic 20): ProviderEmptyState.ProviderEmptyState has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderEmptyState.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"793a7672850e53a4a9af92de7295015bb7185c30a3e8502abb9f44126b7b6bc7"}},{"ruleId":"D1","level":"warning","message":{"text":"OmoFormFields.OmoFormFields::renderCustomModelRow (cyclomatic 20): OmoFormFields.OmoFormFields::renderCustomModelRow has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (OmoFormFields.OmoFormFields::handleFillAllRecommended) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"96109452bc7be2e482b0680d49affc8aa7e0c8b070421ce7445ecb16ab6e7a60"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedSkillsPanel.InstalledRow (cyclomatic 20): UnifiedSkillsPanel.InstalledRow has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"972332060797e3b911fe8dc53bbca567b5c51c9452cb0f955fca25ef1695ed20"}},{"ruleId":"D1","level":"warning","message":{"text":"useDragSort.useDragSort.sortedProviders (cyclomatic 20): useDragSort.useDragSort.sortedProviders has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDragSort.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f3508eedc91bb339e8afab35f4949da0597720c49e37c849aec795f30b7230"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexConfigPatch::apply_to (cyclomatic 19): CodexConfigPatch::apply_to has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d538185ec3961f9b1d899593d7538f28f88c5de0fee94731ee2a125f4ebbafa"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexChatHistoryStore::enrich_request (cyclomatic 19): CodexChatHistoryStore::enrich_request has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_history.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"434a43d1226b0319e02c4b262153e1603e27788289d65b15a5d239f587161936"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexOAuthManager::add_account_internal (cyclomatic 19): CodexOAuthManager::add_account_internal has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49816e055794dfddbe0bef09a6be6359e5c0a8cf679fefdaa64922b12679eea"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::uninstall (cyclomatic 19): SkillService::uninstall has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b52ad04c6193d8ff0eb095aea94d86f8d039ecf317b334fc0e3f19088221673"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::update_managed_skill_files (cyclomatic 19): SkillService::update_managed_skill_files has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1f72e3ad357c12c72a61e253a83f4ff8f042e1b8ebda6382232daee3d15df0"}},{"ruleId":"D1","level":"warning","message":{"text":"RolloutParser::response_item (cyclomatic 19): RolloutParser::response_item has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce60076e1adb82c5a46d872c570cd96d24c86350e582760b15ede2bab4ec873"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::deeplink::provider::import_provider_from_deeplink (cyclomatic 19): cc_switch::deeplink::provider::import_provider_from_deeplink has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: ApiFormat::native_value (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3336f7b8fa3e511217c096ad2f4d106dcc84a84285372b72ac26f84d254f0a06"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::kimi_config::apply_provider_unchecked (cyclomatic 19): cc_switch::kimi_config::apply_provider_unchecked has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a865db40afc7eb5074193157acc335386ad71a4e0cd2b3b4beabc7b269eb4eb"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::privacy_filter::redact_body (cyclomatic 19): cc_switch::proxy::privacy_filter::redact_body has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/privacy_filter/mod.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd0ba056947cd7a77f4c0feb34cbb754691194124d12b6661225b1cb3d70ad3"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::responses_content_to_chat_content (cyclomatic 19): cc_switch::proxy::providers::transform_codex_chat::responses_content_to_chat_content has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"241cf5cff260ad2f3dd4c9afa8c263170a1ea057d729d7f99555149a83a4bd9d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::normalize_xai_function_tool_parameters (cyclomatic 19): cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::normalize_xai_function_tool_parameters has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dc4b9c3bd633e12bf3d1ad3bf8b915acaeae98688d87c8fd4ecddc1cbec687"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::anthropic_tool_result_to_responses_output (cyclomatic 19): cc_switch::proxy::providers::transform_responses::anthropic_tool_result_to_responses_output has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8542ad94425119f54151f94220479c8d26469c3746e99a22657d85e4318c5396"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::build_anthropic_usage_from_responses (cyclomatic 19): cc_switch::proxy::providers::transform_responses::build_anthropic_usage_from_responses has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1604b618087414a2578d874172d9c96adb6c74ec74730ba05a95c82800e7c63d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_dsh::scan_zstd_frames (cyclomatic 19): cc_switch::services::session_usage_dsh::scan_zstd_frames has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_dsh.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a407eaf5c24616f20f393e7dd30b80a08ffb28277f74adc84bbd79631807f18"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_kimi::sync_file (cyclomatic 19): cc_switch::services::session_usage_kimi::sync_file has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_kimi.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d905e6cc2adc488b243a9d2e672d9117cecec27e7027b67533f85950f4fcf8"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::skill::migrate_skills_to_ssot (cyclomatic 19): cc_switch::services::skill::migrate_skills_to_ssot has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":5183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1225c7b32fddf92ec40d08f6b6a9547298d3177b2f575026c9ba6c8aebdee6d2"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::kimi::load_messages (cyclomatic 19): cc_switch::session_manager::providers::kimi::load_messages has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/kimi.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb430f139026afddc8b266b6f36477c0d3bb1742f7897f16e715eb404c7f565"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::openclaw::parse_session_with_status (cyclomatic 19): cc_switch::session_manager::providers::openclaw::parse_session_with_status has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/openclaw.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32b2fdde4d78786f70587ad12245c886b86289d93d1f11996230a14968b8256"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App::renderProviderList (cyclomatic 19): App.App::renderProviderList has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 3 other methods here (App.App, App.App::handleDuplicateProvider, App.App::renderAppPageHeader) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"783dbf4e051f65e84374e150e52eeb52b4a36ab0c37720439b53f5e696db337c"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageScriptModal.isOfficialSubscriptionProvider (cyclomatic 19): UsageScriptModal.isOfficialSubscriptionProvider has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"078b4a25bad52dee8d465a95f27dd3cbf895e98dde341aceaa53ac3832a977db"}},{"ruleId":"D1","level":"warning","message":{"text":"PiNativePromptResources.PiSystemPromptFiles (cyclomatic 19): PiNativePromptResources.PiSystemPromptFiles has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 402, 360). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aa34f8abb304e1b5e149d84232966fd135b3d086e4793cb50f35924307c806"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderCard.isOfficialProvider (cyclomatic 19): ProviderCard.isOfficialProvider has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a537ea72e14e59dfe3caaff5af80b1f933c98e9cb19fd39e68eeda5535a28f78"}},{"ruleId":"D1","level":"warning","message":{"text":"useGeminiConfigState.useGeminiConfigState (cyclomatic 19): useGeminiConfigState.useGeminiConfigState has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 106, 79). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useGeminiConfigState.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"20938262646775675342b93fddaef1abc2b28dbf07d94ccfce26c56a73e6e89f"}},{"ruleId":"D1","level":"warning","message":{"text":"useOmoModelSource.useOmoModelSource (cyclomatic 19): useOmoModelSource.useOmoModelSource has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 264, 302, 94, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOmoModelSource.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"161779a4caa057883bcc57e249e0e1f09cb1f28f1a59fd46e295628feceb5b94"}},{"ruleId":"D1","level":"warning","message":{"text":"StackSubagentFields.StackSubagentFields (cyclomatic 19): StackSubagentFields.StackSubagentFields has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSubagentFields.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c4d9519227bcbeb34fa84cac690a1519a2be9fabb5823f2066ce8c17961c58"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaLines.SplitQuotaColumn (cyclomatic 19): QuotaLines.SplitQuotaColumn has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 537, 505, 518). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d322c67352dc9a325b2139744e972d5c59c8e0a599975b888540139c6393f5"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthCenterPanel.AuthCenterPanel (cyclomatic 19): AuthCenterPanel.AuthCenterPanel has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 97, 141, 173). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AuthCenterPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a268a65142958c12539231c6eeeda3e3aa13c44e6bc56abf9685e3fc28e1f82b"}},{"ruleId":"D1","level":"warning","message":{"text":"BackupStorageSection.BackupStorageSection (cyclomatic 19): BackupStorageSection.BackupStorageSection has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (handleDelete, a function literal at line 108, handleReveal, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupStorageSection.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7b5353f74b9926d3285add6ef6f751b8a3c4e24fd8dcf92859706f7bde0eca"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalProxySettings.GlobalProxySettings (cyclomatic 19): GlobalProxySettings.GlobalProxySettings has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3045213292fdf899d6d7ca5f0c8a29a8f68abb38c1a25b571b9f2f54c143295e"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.AppNavItem (cyclomatic 19): Sidebar.AppNavItem has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feb151d1b46055915e507d528476d449e02e4dd3f4bcb40e05ba9e2731a571f"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillImportDialog.SkillImportDialog (cyclomatic 19): SkillImportDialog.SkillImportDialog has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 48, foundLabel, a function literal at line 89, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillImportDialog.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"525d5c44dd937e3786db03f36e76532692c9dbd74864bf9803e476428974b2dc"}},{"ruleId":"D1","level":"warning","message":{"text":"format.formatTokensShort (cyclomatic 19): format.formatTokensShort has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd13fc3b94a87959ce8af763b6bffeb5efcf2966018cb2c7cb79cc3e2369f617"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsDevAutoSyncPanel.ModelsDevAutoSyncPanel (cyclomatic 19): ModelsDevAutoSyncPanel.ModelsDevAutoSyncPanel has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f3c172c373e2a82a864d817142af676884f366e04c45765f8445ecc64b489f"}},{"ruleId":"D1","level":"warning","message":{"text":"windowActivity.initializeWindowActivity (cyclomatic 19): windowActivity.initializeWindowActivity has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 67, 111, 54, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/windowActivity.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef678ea574190a717986035222b7504e6ede24ac36a775a2b03ac5e3dbc6c04a"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestIndex::observe (cyclomatic 18): RequestIndex::observe has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_session.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e35167b5716419062dae4a6ee67753190dfb30e709d16c4aa8735a261926b67"}},{"ruleId":"D1","level":"warning","message":{"text":"DotenvPatch::apply (cyclomatic 18): DotenvPatch::apply has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/dotenv.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"409b7ae0c5f6bc89bd53af3f3c4c83aee718728e4a9fe8a3b0511929d6cbedd6"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider::resolve_usage_credentials (cyclomatic 18): Provider::resolve_usage_credentials has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a25eee13c4aa2831579c6cf272d1b62a3ceca6acbb287d235737aa96eec028d"}},{"ruleId":"D1","level":"warning","message":{"text":"BufferedCitationTextState::finish_unkeyed_text (cyclomatic 18): BufferedCitationTextState::finish_unkeyed_text has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b48df04a2b8181bd7e1e0a627166e6afce7a9b4190476e4b579e07fbffa2c80"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::scrub_leaked_gemini_common_config (cyclomatic 18): ProviderService::scrub_leaked_gemini_common_config has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7923}}}],"partialFingerprints":{"codehealthFindingId/v1":"5706d2a2bebb7e26ff5cea6d54a8734d19b1b92d5382739e8354c465cf2b6b17"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::provider::query_provider_usage_inner (cyclomatic 18): cc_switch::commands::provider::query_provider_usage_inner has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f1beb3a10e7d9dab7126f9495dfaa62d7db99f01452fe06e2720161dfc4a27"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::tool_node_requirement::comparator (cyclomatic 18): cc_switch::commands::tool_node_requirement::comparator has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/tool_node_requirement.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7089af70d5eba979dbadc4e535f68f7e7e4c2aa4dfe44ad3a80f1879724d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::mode::operation::run (cyclomatic 18): cc_switch::mode::operation::run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/operation.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d7b4e457bcdbf77c516a2c4010b334c1ea247a28112b11c32d34c525b90a4e"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::copilot_optimizer::merge_tool_results (cyclomatic 18): cc_switch::proxy::copilot_optimizer::merge_tool_results has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a85248c5185c0fb5298de84b527c600bbf601d9cee581f38c96889c30bca0e"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::handlers::responses_sse_to_response_value (cyclomatic 18): cc_switch::proxy::handlers::responses_sse_to_response_value has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":2788}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae12b0034f082e205fd4e82f2c1deab3ad37b034516ff4824e46360eeef2b29e"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::responses_json_to_anthropic_sse (cyclomatic 18): cc_switch::proxy::providers::streaming_responses::responses_json_to_anthropic_sse has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"377ef935741b916ac147a9c33f3bf8b5e92dd0609f630925b2697c565cdf165e"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::kimi_oauth::parse_models (cyclomatic 18): cc_switch::services::kimi_oauth::parse_models has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/mod.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e157d65207df7296be8bc4f0284cf908bcafd6032ee5324cd3b62203ac6776"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::model_fetch::build_models_url_candidates (cyclomatic 18): cc_switch::services::model_fetch::build_models_url_candidates has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/model_fetch.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6420ea3aad5aafc7dfc4c6c7a2fcf78e31917b8a36df21fd1839ad260ad058"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::subscription::get_subscription_quota (cyclomatic 18): cc_switch::services::subscription::get_subscription_quota has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"5748b69942ea46bbe458a8e2050f29a96e022d9510eeb938cf5e3ebda2fc6ee0"}},{"ruleId":"D1","level":"warning","message":{"text":"SubscriptionQuotaFooter.SubscriptionQuotaView (cyclomatic 18): SubscriptionQuotaFooter.SubscriptionQuotaView has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf21e0d562b45a6752bea892fc4e601b300554f253b31358ff3c8c991ce90df"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageFooter.UsageFooter (cyclomatic 18): UsageFooter.UsageFooter has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3ae32015d7d080e5065e25e5c72db626d8f6998e2527150aa4ff854956b5e3"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageScriptModal.UsageScriptModal::handleUsePreset (cyclomatic 18): UsageScriptModal.UsageScriptModal::handleUsePreset has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (UsageScriptModal.UsageScriptModal, UsageScriptModal.UsageScriptModal::handleTest) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcd3f4382d5a3872ed68a5e5b377c7c24ded0c4748ff914bd3adbb989117a8f"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptCopyDialog.PromptCopyDialog (cyclomatic 18): PromptCopyDialog.PromptCopyDialog has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 98, 55, 76, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptCopyDialog.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8e02d7325bda7047d6091d12569968ae3747efee25b57db7467e55b4bdb231"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedAccountRemoveDialog.ManagedAccountRemoveDialog (cyclomatic 18): ManagedAccountRemoveDialog.ManagedAccountRemoveDialog has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ManagedAccountRemoveDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd10a08e8ba75edf19509a6efda056a888cda0c3b664054a00328f17ba32f713"}},{"ruleId":"D1","level":"warning","message":{"text":"useModelState.parseModelsFromConfig (cyclomatic 18): useModelState.parseModelsFromConfig has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useModelState.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1621a3522959e1ed6c77e567befec7986c962b69fd5dcdb233cb09033d6acc69"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiFormFields.GeminiFormFields (cyclomatic 18): GeminiFormFields.GeminiFormFields has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiFormFields.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd34b87263a33d55f164ef346a7684b359d01b4a6f934dfb2ac206af8d0b7d35"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotProviderForm.fromNativeText (cyclomatic 18): CopilotProviderForm.fromNativeText has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fc146bc7eea26337a933e03d052164fe2f010385efcf80e7eecbb2d9f04c19"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingConfigPanel.PricingConfigPanel (cyclomatic 18): PricingConfigPanel.PricingConfigPanel has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e53a43da3b28521c0953890084fe026f431b3b9a24a84d519d68ae468098a0e"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageHero.UsageHero (cyclomatic 18): UsageHero.UsageHero has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHero.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e21e135d95c65907be4b4b8c01f5e412c8886a12747e6e50d37030c0dea395"}},{"ruleId":"D1","level":"warning","message":{"text":"usePromptActions.usePromptActions.toggleEnabled (cyclomatic 18): usePromptActions.usePromptActions.toggleEnabled has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/usePromptActions.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"140e83f959f39de5224ac540b3b205a5b7cc02d4524287bed302eca0fae522d1"}},{"ruleId":"D1","level":"warning","message":{"text":"useSettings.useSettings.autoSaveSettings (cyclomatic 18): useSettings.useSettings.autoSaveSettings has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b97d96217edf997dfd4f1deddbdd760995a5db126bfe719afff0d6d0d0806dd"}},{"ruleId":"D1","level":"warning","message":{"text":"providerCapabilities.providerNeedsRouting (cyclomatic 18): providerCapabilities.providerNeedsRouting has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79645d3363698408befbd79f2863bea23851c6e674c67ab24b7db91fced6143"}},{"ruleId":"D1","level":"warning","message":{"text":"providerConfigUtils.getTomlMultilineStringLines (cyclomatic 18): providerConfigUtils.getTomlMultilineStringLines has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 342). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"142cf44e863e36388a47c675deb0e7f7550baab7593ec74316ffe83a0ad7d115"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillService::check_updates_report (cyclomatic 17): SkillService::check_updates_report has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2fc93c132057e5d37b91dd7559560bb3ac5241e62f99eeae381ffebb835f47"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptBuilder::push_assistant (cyclomatic 17): TranscriptBuilder::push_assistant has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"215095e87514af7323120525cda69e6960ed948166bdb59170bd5914786e7bc4"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptBuilder::tool_result_block (cyclomatic 17): TranscriptBuilder::tool_result_block has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0fd9e10129b62e0d89c9da6e1268e516edcd4a576df215aef45a3f637bf635"}},{"ruleId":"D1","level":"warning","message":{"text":"RolloutParser::process_line (cyclomatic 17): RolloutParser::process_line has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb4d66c320c1cb89803ffd7e8621f2b40908fb815470edb9bbbb0519375401c"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::copilot_config::convert_legacy_settings (cyclomatic 17): cc_switch::copilot_config::convert_legacy_settings has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93a9abef12e56073190be72728e03b8200ea9e6e537ceee3ab78e8d3c5c3178"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::dsh_config::mcp_edit (cyclomatic 17): cc_switch::dsh_config::mcp_edit has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8e57a95f8dc828c925e88d176f468772f291c7922b7b55e9305345e99e20a8"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::kimi_config::validate_provider (cyclomatic 17): cc_switch::kimi_config::validate_provider has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b98d025ffe4a0dfa3bdcfa8bfd3de263ce473c480a538a4109d1162ee6f33d"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::omp_config::has_yaml_reference_tokens (cyclomatic 17): cc_switch::omp_config::has_yaml_reference_tokens has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"917cea1faacccd72053dda8e8c361f6213795a1408954c774d3faa68dd99d1ae"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::claude::get_claude_api_format (cyclomatic 17): cc_switch::proxy::providers::claude::get_claude_api_format has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fc26fc2ba134065d8276398380123b7fc16d709a2c9e4e1bcd47a3aede35ab"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::apply_reasoning_options (cyclomatic 17): cc_switch::proxy::providers::transform_codex_chat::apply_reasoning_options has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"929b42eefa3ee1367a10098dc07be7b425c73c24e0d1f67988498ba0b59f231b"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::tray::map_locale_to_tray_language (cyclomatic 17): cc_switch::tray::map_locale_to_tray_language has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba18bcaf30d3a006a274cb7c5446e7e9a44db778ec6073400558019668a64e82"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::usage_script::validate_single_usage (cyclomatic 17): cc_switch::usage_script::validate_single_usage has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/usage_script.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a3b1112c68255328a334f335069b1ee10ecfb8fe3239ecf5059484c10ab067"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeOfficialSection.ClaudeAccountSelect (cyclomatic 17): ClaudeOfficialSection.ClaudeAccountSelect has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21c64ae279bb39af4bb486492a8cec93cb6cd9d56e5bb58b08743da0d933aa5"}},{"ruleId":"D1","level":"warning","message":{"text":"OmoFormFields.OmoFormFields::handleFillAllRecommended (cyclomatic 17): OmoFormFields.OmoFormFields::handleFillAllRecommended has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (OmoFormFields.OmoFormFields::renderCustomModelRow) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"0989987bcf66bb7f5bc0839e291d7e80bb1394f662aa728c7fddef27d9439b71"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderForm.normalizeCodexCatalogModelsForSave (cyclomatic 17): ProviderForm.normalizeCodexCatalogModelsForSave has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e305d7373d587d89c4fd98a9373d68cd0e43742fd96f757cbabe8ed1acee6d14"}},{"ruleId":"D1","level":"warning","message":{"text":"toolSummary.formatStepTitle (cyclomatic 17): toolSummary.formatStepTitle has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/toolSummary.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9892ede4cb0af5f3ab8373d258b7f0c6b9e790242f369b661dd5811aa5dd22"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionEventRow.describeEvent (cyclomatic 17): SessionEventRow.describeEvent has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionEventRow.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8606f7dd624d8eb51520d98dca407d7511bab8e0f9eaf276cac3d06fd57ab53b"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-provider.ThemeProvider (cyclomatic 17): theme-provider.ThemeProvider has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function items inside it that branch (getInitialTheme, a function literal at line 79, a function literal at line 92, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/theme-provider.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af3ed5a79a8866452fbb43f9ac4fe198cb012dea1dd75c2d0fe1761cdc0f75"}},{"ruleId":"D1","level":"warning","message":{"text":"TablePagination.TablePagination (cyclomatic 17): TablePagination.TablePagination has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/TablePagination.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0685a606ffe3a5c619cd4b0aefc8664eb08ff77d879a60f3303d96037ac0052a"}},{"ruleId":"D1","level":"warning","message":{"text":"modelsDevPricing.flattenModels (cyclomatic 17): modelsDevPricing.flattenModels has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelsDevPricing.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b57f898f096998e8d3b4aeddb0cd64bc98d696ec6904bc9ad30595c9462c429"}},{"ruleId":"D1","level":"warning","message":{"text":"providerConfigUtils.extractCodexExperimentalBearerToken (cyclomatic 17): providerConfigUtils.extractCodexExperimentalBearerToken has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"660964d764f7de41ff94abbe5a70bc7c3e6d5ece1347500da3703353301da4c9"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiAppConfig::migrate_mcp_to_unified (cyclomatic 16): MultiAppConfig::migrate_mcp_to_unified has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: AppType::from_str (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"846ea05c6d943ec0cb2b07e30b493d517d1cade015bd94b2d70c399a8958597e"}},{"ruleId":"D1","level":"warning","message":{"text":"Database::dump_sql (cyclomatic 16): Database::dump_sql has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c14ff60129a99dd849e41856ff08181d48ef9b588eff83b87df2d06d3893e6"}},{"ruleId":"D1","level":"warning","message":{"text":"TomlPatch::apply_to (cyclomatic 16): TomlPatch::apply_to has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/toml.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f09523b0cdd5c187996e087875ef46b342f4cf55b2d667997bc0c0c9bf768a"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexOAuthManager::resolve_valid_cached_token_under_lock (cyclomatic 16): CodexOAuthManager::resolve_valid_cached_token_under_lock has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"a902ff5e1b5a943a003cce82bdc5e3f736094eec0fe5038dbb7f3768af8cfda4"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::list (cyclomatic 16): ProviderService::list has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":5528}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fb105fd579bc44faff04c8e3d78dc7e6082e3d53908ad2316744fa534aa76c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderService::switch_inner (cyclomatic 16): ProviderService::switch_inner has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57d1e0ca8b249c5d7b8eafc60aacfbcc346b8c2d7a531a1e257322fe34e9f2c"}},{"ruleId":"D1","level":"warning","message":{"text":"RolloutParser::event_msg (cyclomatic 16): RolloutParser::event_msg has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0df255f3c13e37e9ed86582681bcbc024a658d4ab5f5372e5a00ddaa94377d"}},{"ruleId":"D1","level":"warning","message":{"text":"RolloutParser::on_item (cyclomatic 16): RolloutParser::on_item has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31af6e4be66accb852c75cdc305a97960bfc0e7b2a8bce8338a0dcf60b17d54"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::claude_mcp::upsert_mcp_server (cyclomatic 16): cc_switch::claude_mcp::upsert_mcp_server has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6554890cb4080f2e749b96ef86639d513be8cf61897291bfb584c7d3a9af4753"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::commands::tool_uninstall::known_native_install (cyclomatic 16): cc_switch::commands::tool_uninstall::known_native_install has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/tool_uninstall.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98af0659977ade84cf487669293bab5e7627973aca17b4c29fa544327143c3c"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::dsh_config::splice_patch (cyclomatic 16): cc_switch::dsh_config::splice_patch has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f90d766afc53a68fc343fd253a4b9a36a0f8f6673ae7f50e9994ad91609bc8"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::dsh_config::validate_provider (cyclomatic 16): cc_switch::dsh_config::validate_provider has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f2ed0f7255b0838c2aceec950dbb55b9ba34a6549945b96ad7bbcb0fa82a27"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::missing_message_text_parts (cyclomatic 16): cc_switch::proxy::providers::streaming_responses::missing_message_text_parts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"b054e4c3a1ba764bd6f4b82eee1aff8d9924fa86966f73941d3f466c2e618d67"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::coding_plan::query_coding_plan (cyclomatic 16): cc_switch::services::coding_plan::query_coding_plan has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6e8de97977373b6a0dac422bb263ca9e548da72fab31368c9ff1d6ba59630c"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::services::session_usage_pi::parse_subagent_records (cyclomatic 16): cc_switch::services::session_usage_pi::parse_subagent_records has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"5865c8a9448a6a0dc6372f80114482d3153d1d1f80c2025d1d6e31a3b3ad29e6"}},{"ruleId":"D1","level":"warning","message":{"text":"cc_switch::session_manager::providers::workbuddy::load_messages (cyclomatic 16): cc_switch::session_manager::providers::workbuddy::load_messages has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/workbuddy.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"535ba62f87a2d2d617bf73e990b6c4d0e5337676a54c582b34512c9fe3075104"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepLinkImportDialog.DeepLinkImportDialog::handleImport (cyclomatic 16): DeepLinkImportDialog.DeepLinkImportDialog::handleImport has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (DeepLinkImportDialog.DeepLinkImportDialog) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52ab46fbb0c0cf0e964745b60659dc4d17e6f50e66e1078d89b774723b53641"}},{"ruleId":"D1","level":"warning","message":{"text":"WhatsNewDialog.WhatsNewNotice (cyclomatic 16): WhatsNewDialog.WhatsNewNotice has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/WhatsNewDialog.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e321c25bb70530d5958cdf327fc095ea69bcdb0bb8bc83e99e1f9b3eb79e1922"}},{"ruleId":"D1","level":"warning","message":{"text":"AppCountBar.AppCountBar (cyclomatic 16): AppCountBar.AppCountBar has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 43). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/AppCountBar.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c70c46aa12a2908ccb1e7230fae4d829021b44dd01b142e2aaa5e802bd61b0"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesMemoryPanel.MemoryTabPane (cyclomatic 16): HermesMemoryPanel.MemoryTabPane has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/hermes/HermesMemoryPanel.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"117704a706a06dfc83d9c58ba4ac6872734e689c56bde00dfa794cc0aae4febb"}},{"ruleId":"D1","level":"warning","message":{"text":"useOpencodeFormState.useOpencodeFormState (cyclomatic 16): useOpencodeFormState.useOpencodeFormState has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 77, 53, 63, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOpencodeFormState.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ee2da3454ec3df0c58d6b8e84cc961ad5abd797f26fbadf1de1e1d7f143805"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels (cyclomatic 16): ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (ClaudeDesktopProviderForm.ClaudeDesktopProviderForm, ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bd78a81ff66ced6fee7fa9e19a245cd902c90f056eaeeffe0821d6cf260c2d"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokBuildProviderForm.GrokBuildProviderForm::handleSubmit (cyclomatic 16): GrokBuildProviderForm.GrokBuildProviderForm::handleSubmit has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f8eaf50405e77daedd9f878b80fce4b26488cd632d901c4de135cb0da500f5"}},{"ruleId":"D1","level":"warning","message":{"text":"PiProviderForm.fillPiModelDraft (cyclomatic 16): PiProviderForm.fillPiModelDraft has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"1677d54c9a5dee21be6d913550aa8ae19bf4d6c35146bde2aadd8bce09c1f053"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.highlightTextRanges (cyclomatic 16): utils.highlightTextRanges has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 350, 361). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/utils.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"733e498a7118560a3049d996ec6db6f508db48de262b28ae85944044a65c7b42"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionDiff.SessionDiff (cyclomatic 16): SessionDiff.SessionDiff has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 217, 203). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionDiff.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a4611ad42d60f326a29bf7aaf7894317f085812002e5e481e839077d0bcc81"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoManagerPanel.RepoManagerPanel (cyclomatic 16): RepoManagerPanel.RepoManagerPanel has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 219, handleAdd, handleOpenRepo, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/RepoManagerPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce8c1fc867c01766b78825a48a17382d13f37d8432295615e5c3db0d49390e5"}},{"ruleId":"D1","level":"warning","message":{"text":"format.getLocaleFromLanguage (cyclomatic 16): format.getLocaleFromLanguage has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90813dc7c0dc800f0d44ddc45da64800c766e37293c708f195dceb7f4023b2f"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingEditModal.PricingEditModal (cyclomatic 16): PricingEditModal.PricingEditModal has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingEditModal.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1116a62c5fe357a3c481cfee1470c2a3600977ee0f9d0c2b91f9458e775cff88"}},{"ruleId":"D1","level":"warning","message":{"text":"copilotConfig.legacyByokConfig (cyclomatic 16): copilotConfig.legacyByokConfig has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/copilotConfig.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e9c4297ff4a509748c3f752cd30cbca072e666290011862eba7f52711fe967"}},{"ruleId":"D1","level":"warning","message":{"text":"kimiProviderPresets.toKimiModel (cyclomatic 16): kimiProviderPresets.toKimiModel has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/kimiProviderPresets.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ceff711e96379a68ce2a677d59b94de337bda764e6f8d0747de4a6ae655d53"}},{"ruleId":"D1","level":"warning","message":{"text":"useProxyStatus.useProxyStatus (cyclomatic 16): useProxyStatus.useProxyStatus has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 128, 168, 46, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProxyStatus.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd2a21f460195b35742adf96b798d1149d117862420939ef759916736d4eec2"}},{"ruleId":"D1","level":"warning","message":{"text":"model-fetch.showFetchModelsError (cyclomatic 16): model-fetch.showFetchModelsError has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api/model-fetch.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3468b1cfa10beb1f27cd64306ae656fa86574d9d10e6f720711272c14ed232"}},{"ruleId":"D1","level":"warning","message":{"text":"version.comparePre (cyclomatic 16): version.comparePre has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/version.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd98171b84eb076fa07ad72eafc59b79a8c4bb3e8be93bf518329b779d39948"}},{"ruleId":"D1","level":"warning","message":{"text":"TrayPanel.QuotaBlock (cyclomatic 16): TrayPanel.QuotaBlock has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f80944e87a51cb33b1dfcebff94d7e4915191d3a22b163e37b2dce3825ccae"}},{"ruleId":"D1","level":"warning","message":{"text":"providerCapabilities.resolveCodexOfficialIdentity (cyclomatic 16): providerCapabilities.resolveCodexOfficialIdentity has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20d832802bde155e6c26e0d145394b33fa3f1da2a6f3ee267a03060bdab53e7"}},{"ruleId":"D1","level":"warning","message":{"text":"providerConfigUtils.getApiKeyFromConfig (cyclomatic 16): providerConfigUtils.getApiKeyFromConfig has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29a74cacb5533f4b6fd8e5670ad10869ed3e6fdc2ce2e360a2d2177b6cd4323"}},{"ruleId":"D1","level":"warning","message":{"text":"providerConfigUtils.setApiKeyInConfig (cyclomatic 16): providerConfigUtils.setApiKeyInConfig has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d584f09b7422a52b474f826273c9c60826e0671c13af747f5e0885ed63d5bf"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::create_anthropic_sse_stream_from_responses_raw (cognitive 1436): cc_switch::proxy::providers::streaming_responses::create_anthropic_sse_stream_from_responses_raw has cognitive complexity 1436 (threshold 15). Drivers by points: if/else 216 (1174 pts), loops 35 (216 pts), match/switch 6 (24 pts), boolean chains 22 (nesting depth added 1157). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2399}}}],"partialFingerprints":{"codehealthFindingId/v1":"1720df138253565281f278ae87cb54e7ca40caf154ed14512d28dd5836b85ea6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming::create_anthropic_sse_stream (cognitive 619): cc_switch::proxy::providers::streaming::create_anthropic_sse_stream has cognitive complexity 619 (threshold 15). Drivers by points: if/else 59 (443 pts), loops 23 (169 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 531). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb069208b19704baa007b43d4238355152ccdc678e0ad3d5635ae6a2216f7c6"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestForwarder::forward (cognitive 404): RequestForwarder::forward has cognitive complexity 404 (threshold 15). Drivers by points: if/else 180 (297 pts), boolean chains 54, match/switch 14 (41 pts), loops 6 (12 pts) (nesting depth added 150). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cd6e402459460f3ea691b36979fed30fcc133cb6e26e76cf1860cf6d649a9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderCard.ProviderCard (cognitive 249): ProviderCard.ProviderCard has cognitive complexity 249 (threshold 15). Drivers by points: ternaries 54 (197 pts), boolean chains 48, if/else 4 (nesting depth added 143). Of this number, 241 points are the body\u0027s own statements and 8 belong to 5 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"116dcb70df02602edc97b553c583e4ba632f0a8d439c6f88b4f03fc4d79fb398"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexFormFields.CodexFormFields (cognitive 186): CodexFormFields.CodexFormFields has cognitive complexity 186 (threshold 15). Drivers by points: boolean chains 87, if/else 45 (56 pts), ternaries 30 (37 pts), loops 6 (nesting depth added 18). Of this number, 85 points are the body\u0027s own statements and 101 belong to 36 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6378997960abdbcd51443394235f3cdd22f55ab7e4907e4d769d01ff26ac2d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::run (cognitive 184): cc_switch::run has cognitive complexity 184 (threshold 15). Drivers by points: if/else 73 (116 pts), match/switch 32 (51 pts), loops 8 (11 pts), boolean chains 6 (nesting depth added 65). Of this number, 177 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"037020029fcaef125deb445a0230a0f617d968d6e7389548efff2f2e85131bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedMcpPanel.UnifiedMcpPanel (cognitive 180): UnifiedMcpPanel.UnifiedMcpPanel has cognitive complexity 180 (threshold 15). Drivers by points: ternaries 23 (69 pts), if/else 37 (47 pts), boolean chains 38, loops 11 (16 pts), error handling 8 (10 pts) (nesting depth added 63). Of this number, 31 points are the body\u0027s own statements and 149 belong to 27 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad564794d9e431fb2c109afb23e0b987a8cdcc380613612c641c8ff236b9846"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderForm.ProviderFormFull::performSubmit (cognitive 180): ProviderForm.ProviderFormFull::performSubmit has cognitive complexity 180 (threshold 15). Drivers by points: ternaries 38 (72 pts), if/else 37 (58 pts), boolean chains 46, error handling 2 (4 pts) (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull, ProviderForm.ProviderFormFull::handleSubmit, ProviderForm.ProviderFormFull::handlePresetChange) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3dd0a51bd6ef10eab45cd2b4e5d9f7b0ee313fa06b79d151a56365e26dadbd"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderForm.ProviderFormFull (cognitive 175): ProviderForm.ProviderFormFull has cognitive complexity 175 (threshold 15). Drivers by points: ternaries 95 (207 pts), if/else 135 (202 pts), boolean chains 198, error handling 8 (11 pts) (nesting depth added 182). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull::handleSubmit, ProviderForm.ProviderFormFull::performSubmit, ProviderForm.ProviderFormFull::handlePresetChange) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a9b4ac2c62aedd3c5fa79f8b65e6ca5a76607489f894893d358a61f4a3fd2b"}},{"ruleId":"D2","level":"warning","message":{"text":"AddProviderDialog.AddProviderDialog (cognitive 155): AddProviderDialog.AddProviderDialog has cognitive complexity 155 (threshold 15). Drivers by points: if/else 46 (99 pts), boolean chains 34, ternaries 18 (20 pts), error handling 2 (nesting depth added 55). Of this number, 23 points are the body\u0027s own statements and 132 belong to 13 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88c688f5fdd3edd814b8dd8c30b94425960e26fe7c05bcdb170cc32571c4a24"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestForwarder::forward_with_retry_inner (cognitive 145): RequestForwarder::forward_with_retry_inner has cognitive complexity 145 (threshold 15). Drivers by points: if/else 33 (108 pts), match/switch 7 (30 pts), boolean chains 6, loops 1 (nesting depth added 98). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf990e628d14753867092e67b896c2f07fbc8d544bd16b880920d4eedf880d6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::parse_codex_file_with_index (cognitive 144): cc_switch::services::session_usage_codex::parse_codex_file_with_index has cognitive complexity 144 (threshold 15). Drivers by points: if/else 41 (110 pts), match/switch 7 (22 pts), boolean chains 11, loops 1 (nesting depth added 84). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7988973d114050af9bf0158fb3b209d8c128eb4fd7f5fa7ccad08d5a805f355c"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.buildAdditiveSections (cognitive 133): presentation.buildAdditiveSections has cognitive complexity 133 (threshold 15). Drivers by points: ternaries 23 (67 pts), if/else 23 (54 pts), boolean chains 11, loops 1 (nesting depth added 75). Of this number, 125 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1870737cb1717b245e9fd014fc48f302c0a385503a2c44ed193cef4a062a06"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderForm.ProviderFormFull::handleSubmit (cognitive 123): ProviderForm.ProviderFormFull::handleSubmit has cognitive complexity 123 (threshold 15). Drivers by points: if/else 47 (81 pts), boolean chains 29, ternaries 4 (11 pts), error handling 1 (2 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull, ProviderForm.ProviderFormFull::performSubmit, ProviderForm.ProviderFormFull::handlePresetChange) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f63c7699938d6c80024214856d5ba7843beb4b95bb2126570ab3467e9441f2"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_gemini::create_anthropic_sse_stream_from_gemini (cognitive 120): cc_switch::proxy::providers::streaming_gemini::create_anthropic_sse_stream_from_gemini has cognitive complexity 120 (threshold 15). Drivers by points: if/else 30 (105 pts), loops 4 (9 pts), match/switch 2 (6 pts) (nesting depth added 84). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"0116b4ddbb4a7c02cebee2f561d235dd2d692e8ac0867f778ee99e83de839ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"WebdavSyncSection.WebdavSyncSection (cognitive 118): WebdavSyncSection.WebdavSyncSection has cognitive complexity 118 (threshold 15). Drivers by points: if/else 50 (51 pts), boolean chains 45, error handling 16, ternaries 6 (nesting depth added 1). Of this number, 37 points are the body\u0027s own statements and 81 belong to 34 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2233cef56c4ee7edc553017f374a3e1670d118575490690320330116d97d60"}},{"ruleId":"D2","level":"warning","message":{"text":"TrayPanel.TrayPanel (cognitive 118): TrayPanel.TrayPanel has cognitive complexity 118 (threshold 15). Drivers by points: if/else 47 (53 pts), ternaries 22 (33 pts), boolean chains 30, error handling 2 (nesting depth added 17). Most of this is not in the body itself: 12 of the 118 points are its own statements and the rest belongs to 23 function items inside it that branch (a function literal at line 686, a function literal at line 910, a function literal at line 607, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"6026ce1943cb736362642919a938e32cd0981de47c7c0b3e14eec9c3695b8ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"deplink.html.generateLink (cognitive 116): deplink.html.generateLink has cognitive complexity 116 (threshold 15). Drivers by points: if/else 48 (91 pts), error handling 6 (17 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff42d9e84bc90bdab0288c2afd2de3063f2c82a3d532f66dd5b26fab57861892"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::codex::import_from_codex (cognitive 115): cc_switch::mcp::codex::import_from_codex has cognitive complexity 115 (threshold 15). Drivers by points: if/else 31 (89 pts), loops 5 (15 pts), match/switch 4 (11 pts) (nesting depth added 75). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b18ab700c8e1625db5fabcb409fd5794044d32e8f7f4576bc779e27ce762d9b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsPage.SkillsPage (cognitive 112): SkillsPage.SkillsPage has cognitive complexity 112 (threshold 15). Drivers by points: ternaries 24 (61 pts), boolean chains 26, if/else 19 (22 pts), loops 2, error handling 1 (nesting depth added 40). Of this number, 27 points are the body\u0027s own statements and 85 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5aa3f28d4632eaf0a076b27e01d0f270127fcfe309f207e21e74d68896c99e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderList.ProviderList (cognitive 107): ProviderList.ProviderList has cognitive complexity 107 (threshold 15). Drivers by points: boolean chains 43, ternaries 24 (33 pts), if/else 27 (30 pts), match/switch 1 (nesting depth added 12). Of this number, 52 points are the body\u0027s own statements and 55 belong to 17 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb218ac8d558a228405617c836f2b2e39db7e6ae370c7a05e4b9d0114fd1fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"useOmoModelSource.useOmoModelSource.omoModelBuild (cognitive 104): useOmoModelSource.useOmoModelSource.omoModelBuild has cognitive complexity 104 (threshold 15). Drivers by points: if/else 17 (69 pts), boolean chains 12, loops 4 (10 pts), ternaries 3 (10 pts), error handling 1 (3 pts) (nesting depth added 67). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOmoModelSource.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a25168cd967d46350384cd8da6b2386d90289444d8161ca5e973b1f6fe3411"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsage::from_claude_stream_events (cognitive 102): TokenUsage::from_claude_stream_events has cognitive complexity 102 (threshold 15). Drivers by points: if/else 20 (95 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 77). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/usage/parser.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c618c35342f1a8a66a29b806607468908682761476678ff168ba62634d5210b5"}},{"ruleId":"D2","level":"warning","message":{"text":"PiPromptPanel.PiPromptPanel (cognitive 102): PiPromptPanel.PiPromptPanel has cognitive complexity 102 (threshold 15). Drivers by points: ternaries 28 (45 pts), if/else 21 (33 pts), boolean chains 17, error handling 3 (4 pts), loops 2 (3 pts) (nesting depth added 31). Of this number, 48 points are the body\u0027s own statements and 54 belong to 19 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02416c3f25a40b57fc7a2c692ae735b03ba6c78831d2279662bc5a9c3a33208"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeFormFields.ClaudeFormFields (cognitive 96): ClaudeFormFields.ClaudeFormFields has cognitive complexity 96 (threshold 15). Drivers by points: boolean chains 41, ternaries 14 (29 pts), if/else 26 (nesting depth added 15). Of this number, 63 points are the body\u0027s own statements and 33 belong to 22 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"544b11d1a9383e852db3db20e3cab7db95096d444a4202068d5048e33dcb70bf"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::responses_to_anthropic_with_web_search_options (cognitive 94): cc_switch::proxy::providers::transform_responses::responses_to_anthropic_with_web_search_options has cognitive complexity 94 (threshold 15). Drivers by points: if/else 27 (76 pts), loops 7 (12 pts), match/switch 2 (6 pts) (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2557}}}],"partialFingerprints":{"codehealthFindingId/v1":"43525f0cdb7288f02ad5bb26649784bc456e8ffceb7ae01a3558b9769c379f07"}},{"ruleId":"D2","level":"warning","message":{"text":"deplink.html.parseDeepLink (cognitive 94): deplink.html.parseDeepLink has cognitive complexity 94 (threshold 15). Drivers by points: if/else 40 (57 pts), boolean chains 15, ternaries 5 (9 pts), error handling 4 (8 pts), loops 2 (5 pts) (nesting depth added 28). Of this number, 67 points are the body\u0027s own statements and 27 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"27391526cbaa631041259ca7e3498d425d444d7c78642420dc8500add9207c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptPanel.StandardPromptPanel (cognitive 93): PromptPanel.StandardPromptPanel has cognitive complexity 93 (threshold 15). Drivers by points: if/else 38 (40 pts), ternaries 16 (23 pts), boolean chains 21, error handling 5 (6 pts), loops 2 (3 pts) (nesting depth added 11). Of this number, 25 points are the body\u0027s own statements and 68 belong to 24 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9f7a884ebfc42041aba69b6dae202c220c63fd5c31c6db988d7836fae19676"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionReader.SessionReader (cognitive 93): SessionReader.SessionReader has cognitive complexity 93 (threshold 15). Drivers by points: boolean chains 35, ternaries 21 (28 pts), if/else 22 (24 pts), error handling 4, loops 1, match/switch 1 (nesting depth added 9). Of this number, 37 points are the body\u0027s own statements and 56 belong to 25 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c1e7363e9d1f2a4d465205b03ceb24f967e42b10a2f784dae3a7720b5cf17e"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotProviderForm.CopilotProviderForm (cognitive 90): CopilotProviderForm.CopilotProviderForm has cognitive complexity 90 (threshold 15). Drivers by points: boolean chains 37, ternaries 29 (35 pts), if/else 16 (17 pts), loops 1 (nesting depth added 7). Of this number, 36 points are the body\u0027s own statements and 54 belong to 22 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f38138e0118448de680fe9d454a77b65190efbb5c60b570c5a706fd4f0480d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::convert_messages_to_input (cognitive 89): cc_switch::proxy::providers::transform_responses::convert_messages_to_input has cognitive complexity 89 (threshold 15). Drivers by points: if/else 20 (75 pts), loops 3 (7 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 63). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2335}}}],"partialFingerprints":{"codehealthFindingId/v1":"198ff1fd7b89394bef3735508113af8702b2920c3ec022e84f34995a8000b346"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value (cognitive 87): cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value has cognitive complexity 87 (threshold 15). Drivers by points: if/else 26 (67 pts), loops 4 (9 pts), match/switch 4 (8 pts), boolean chains 3 (nesting depth added 50). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e260f3af6f0c415ec3b328990342fddecc16c642067bc127e625e7783b54f1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::response_processor::create_logged_passthrough_stream (cognitive 87): cc_switch::proxy::response_processor::create_logged_passthrough_stream has cognitive complexity 87 (threshold 15). Drivers by points: if/else 17 (49 pts), match/switch 5 (26 pts), loops 3 (11 pts), boolean chains 1 (nesting depth added 61). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/response_processor.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"5705eee0a40a75d02058c8017d99758f7b64a7377ab2b4ceae1fd3d1a7919f55"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiProviderForm.KimiProviderForm (cognitive 87): KimiProviderForm.KimiProviderForm has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 35, ternaries 18 (24 pts), if/else 18 (23 pts), loops 4, error handling 1 (nesting depth added 11). Of this number, 36 points are the body\u0027s own statements and 51 belong to 23 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8de42f50b075a84712710f858dff61b25a38e6632c232a2400bc0b2cf31808"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkBuddyProviderForm.WorkBuddyProviderForm (cognitive 82): WorkBuddyProviderForm.WorkBuddyProviderForm has cognitive complexity 82 (threshold 15). Drivers by points: ternaries 22 (36 pts), boolean chains 31, if/else 13, error handling 1, loops 1 (nesting depth added 14). Of this number, 37 points are the body\u0027s own statements and 45 belong to 21 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2495ca40d74760fae4a18ce5402dd7a7aaec93566e0b99c411aecb8a7981fee"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::build_tool_search_paths (cognitive 81): cc_switch::commands::misc::build_tool_search_paths has cognitive complexity 81 (threshold 15). Drivers by points: if/else 27 (59 pts), loops 7 (22 pts) (nesting depth added 47). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2696}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b15481b63604a8fbf38651b2c2fed0816200d528544379e9ca7cad96de53b47"}},{"ruleId":"D2","level":"warning","message":{"text":"turns.buildTurn (cognitive 80): turns.buildTurn has cognitive complexity 80 (threshold 15). Drivers by points: if/else 24 (58 pts), ternaries 3 (9 pts), boolean chains 8, loops 3, match/switch 1 (2 pts) (nesting depth added 41). Most of this is not in the body itself: 13 of the 80 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 368, a function literal at line 344, blocksOf, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c171a4be1e8c3b931d4f989a4b2d4cf5e289cdb8d443bcaebadcca5fddb9ea03"}},{"ruleId":"D2","level":"warning","message":{"text":"EditProviderDialog.EditProviderDialog (cognitive 76): EditProviderDialog.EditProviderDialog has cognitive complexity 76 (threshold 15). Drivers by points: if/else 25 (39 pts), boolean chains 17, ternaries 12 (14 pts), error handling 3 (6 pts) (nesting depth added 19). Most of this is not in the body itself: 15 of the 76 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 139, 292, 103, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3445c2343163136a42328617c2ef76bd5bca75ff365f6ecb69247449a8ccd82"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.buildSwitchSectionsByView (cognitive 74): presentation.buildSwitchSectionsByView has cognitive complexity 74 (threshold 15). Drivers by points: ternaries 19 (35 pts), if/else 17 (34 pts), boolean chains 5 (nesting depth added 33). Of this number, 20 points are the body\u0027s own statements and 54 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58ec7133e045133e141218db110bae79209ce9ff84d22eab6cc77eca9c46eaf"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::anthropic_to_responses (cognitive 72): cc_switch::proxy::providers::transform_responses::anthropic_to_responses has cognitive complexity 72 (threshold 15). Drivers by points: if/else 37 (65 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fb39fbe9093653932d3c89fe0cc890b592b5284473253963858f48fe1c5171"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::sync_single_codex_file (cognitive 72): cc_switch::services::session_usage_codex::sync_single_codex_file has cognitive complexity 72 (threshold 15). Drivers by points: if/else 26 (50 pts), match/switch 5 (12 pts), boolean chains 5, loops 4 (5 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2f8979b633e4b30b05d5207cfd873eb8e8d75bae13b53c641f8ffbb1ad80bb"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::convert_input_to_messages (cognitive 71): cc_switch::proxy::providers::transform_codex_anthropic::convert_input_to_messages has cognitive complexity 71 (threshold 15). Drivers by points: if/else 16 (55 pts), match/switch 3 (10 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbef3b9bf6ddb31ef6ee8ca67b2133e65d20a4a6f9348b785eb82c5f9429fd26"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::cache_injector::inject (cognitive 70): cc_switch::proxy::cache_injector::inject has cognitive complexity 70 (threshold 15). Drivers by points: if/else 21 (61 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/cache_injector.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9d27edc9116f39e7e22a24e15b7d6cda706ed39144cbb1fc263427d7ee9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::responses_request_to_anthropic (cognitive 70): cc_switch::proxy::providers::transform_codex_anthropic::responses_request_to_anthropic has cognitive complexity 70 (threshold 15). Drivers by points: if/else 34 (60 pts), boolean chains 7, loops 1 (2 pts), match/switch 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd2af8812e13ae26d3b2a089d93d47175261591ae83934d712bc54bf14f0666"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeFormFields.OpenCodeFormFields (cognitive 70): OpenCodeFormFields.OpenCodeFormFields has cognitive complexity 70 (threshold 15). Drivers by points: if/else 30 (35 pts), boolean chains 20, loops 7 (8 pts), ternaries 5, error handling 2 (nesting depth added 6). Most of this is not in the body itself: 3 of the 70 points are its own statements and the rest belongs to 20 function items inside it that branch (handleModelExtraFieldKeyChange, handleModelLimitChange, handleExtraOptionKeyChange, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4084fb8a76d9cca8eeb9b605eac524a46f6516a6ae9e23c6a1e84bccff6d49"}},{"ruleId":"D2","level":"warning","message":{"text":"SwitchModePanel.SwitchModePanel (cognitive 70): SwitchModePanel.SwitchModePanel has cognitive complexity 70 (threshold 15). Drivers by points: boolean chains 27, ternaries 16 (25 pts), if/else 13, error handling 4, loops 1 (nesting depth added 9). Of this number, 46 points are the body\u0027s own statements and 24 belong to 14 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7de1cafc42cd2c5287f849459b3583c2579c9e97c4a8de0137d5ca36781e952"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_namespace::flatten_request_namespaces (cognitive 69): cc_switch::proxy::providers::transform_codex_responses_namespace::flatten_request_namespaces has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (61 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"24580489dd2676ee4916987dda60b98a93016edcdbd3ad67d0b9bc2465d5e527"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::update (cognitive 67): ProviderService::update has cognitive complexity 67 (threshold 15). Drivers by points: if/else 28 (54 pts), boolean chains 8, match/switch 2 (5 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6410}}}],"partialFingerprints":{"codehealthFindingId/v1":"141e94dd2c7ad086f0b386167ca1afd17f6b620d4e964b9b919063cae7b4404a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform::openai_to_anthropic (cognitive 67): cc_switch::proxy::providers::transform::openai_to_anthropic has cognitive complexity 67 (threshold 15). Drivers by points: if/else 26 (53 pts), match/switch 3 (8 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"13254bf2f427fcbce155766421fb1c7d0f9759e7d827aebc2ced7a957ad93204"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::markdown_code_scan (cognitive 67): cc_switch::proxy::providers::transform_responses::markdown_code_scan has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (58 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"4453bbf61c721867f5026277bb8175ae4749f60119257fee5197fc3f0765a944"}},{"ruleId":"D2","level":"warning","message":{"text":"UniversalProviderFormModal.UniversalProviderFormModal (cognitive 67): UniversalProviderFormModal.UniversalProviderFormModal has cognitive complexity 67 (threshold 15). Drivers by points: boolean chains 48, if/else 12, ternaries 7. Of this number, 24 points are the body\u0027s own statements and 43 belong to 11 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9381b12ce0ac9b5bcfa399a6eeb1a09cfb0b66b6d86be12bb3188105cb9dbd17"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::finish_call (cognitive 65): RolloutParser::finish_call has cognitive complexity 65 (threshold 15). Drivers by points: if/else 26 (46 pts), match/switch 4 (8 pts), loops 3 (7 pts), boolean chains 4 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf81aa9d47f19ee7c1b36bddd9b22dadefc4ef54c0fe4d9dfaa24b0a033e3bf"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_codex_chat::create_responses_sse_stream_from_chat_with_context (cognitive 65): cc_switch::proxy::providers::streaming_codex_chat::create_responses_sse_stream_from_chat_with_context has cognitive complexity 65 (threshold 15). Drivers by points: if/else 11 (34 pts), loops 7 (23 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea24263ad6e6bb418402b3d5fb53c77b20f6a446c90c876df2422bfcabbfec4d"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageScriptModal.UsageScriptModal::handleTest (cognitive 65): UsageScriptModal.UsageScriptModal::handleTest has cognitive complexity 65 (threshold 15). Drivers by points: ternaries 14 (34 pts), if/else 14 (20 pts), boolean chains 10, error handling 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (UsageScriptModal.UsageScriptModal, UsageScriptModal.UsageScriptModal::handleUsePreset) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d8dcaef7e284fb0b3f3cf9c5256ad0a12145fdc3e15040c08b1a9c4b84648f"}},{"ruleId":"D2","level":"warning","message":{"text":"Database::apply_schema_migrations_on_conn (cognitive 64): Database::apply_schema_migrations_on_conn has cognitive complexity 64 (threshold 15). Drivers by points: if/else 11 (37 pts), loops 8 (24 pts), match/switch 2 (3 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fd7365c333843896553b1acd1087c734ed9a94910249953f16763bd7e79d42"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::import_from_apps (cognitive 64): SkillService::import_from_apps has cognitive complexity 64 (threshold 15). Drivers by points: if/else 19 (50 pts), loops 5 (8 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6504a3a1a9a61cf3cfce83d4ec5a3aefa9857cdace1c426527df2284d4933fe"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_codex_anthropic::create_responses_sse_stream_from_anthropic_with_context (cognitive 62): cc_switch::proxy::providers::streaming_codex_anthropic::create_responses_sse_stream_from_anthropic_with_context has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 7 (24 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dff0b5bc68c85c060d211c0af7dc48e553dad35f4961bb8e42c3ecce1d48c9"}},{"ruleId":"D2","level":"warning","message":{"text":"deepLinkConfigPreview.parseDeepLinkConfigPreview (cognitive 62): deepLinkConfigPreview.parseDeepLinkConfigPreview has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (28 pts), ternaries 10 (20 pts), boolean chains 10, loops 1 (3 pts), error handling 1 (nesting depth added 23). Of this number, 60 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deepLinkConfigPreview.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bac29bc9f790fd6b4582b934efb343c52109eeaedc959c6cb9384fdea313f7"}},{"ruleId":"D2","level":"warning","message":{"text":"McodeProviderForm.McodeProviderForm (cognitive 61): McodeProviderForm.McodeProviderForm has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 18 (30 pts), boolean chains 20, if/else 7 (8 pts), error handling 2 (3 pts) (nesting depth added 14). Of this number, 42 points are the body\u0027s own statements and 19 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3499c049f2f02391f9af768cd54f9c85242d3e8cc64f6a8576ee76313f46c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileService::apply (cognitive 60): ProfileService::apply has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (39 pts), loops 5 (13 pts), match/switch 2 (8 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/profile.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"661411e91691d2a44f871e66f4d13d68e11786f7995da3358d49e5f2c6a55cc1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform::convert_message_to_openai (cognitive 60): cc_switch::proxy::providers::transform::convert_message_to_openai has cognitive complexity 60 (threshold 15). Drivers by points: if/else 18 (47 pts), match/switch 3 (9 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9326c9d993b0b9b4ae7b1d0c002b34932940d2381450ab707075b26bcd73f85c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::omp_config::edit_provider (cognitive 59): cc_switch::omp_config::edit_provider has cognitive complexity 59 (threshold 15). Drivers by points: if/else 22 (40 pts), boolean chains 10, loops 5 (9 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe52e606d11a692b590d6d20abf3629b2943d2e8d601e7c503947b06cec5831"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage::sync_single_file (cognitive 59): cc_switch::services::session_usage::sync_single_file has cognitive complexity 59 (threshold 15). Drivers by points: if/else 20 (35 pts), match/switch 9 (17 pts), boolean chains 4, loops 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"942d3a764f454cff04f8aaefa6ba9c5a1dd3a3129cc930090448f02aa6d840fc"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsPage.ToolRow (cognitive 59): AppsPage.ToolRow has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 22 (34 pts), boolean chains 25 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"41734f60dc2cfeacc1056fa0d707d23fbd6c16e244fccd89a04250b7a610a6ce"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::codex::parse_session_lines (cognitive 58): cc_switch::session_manager::providers::codex::parse_session_lines has cognitive complexity 58 (threshold 15). Drivers by points: if/else 18 (48 pts), boolean chains 5, match/switch 2 (3 pts), loops 2 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"117cc1fb9c2f7dda14cee8c99f6872454e5f2171cb7ee4acf35b605050676e37"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepLinkImportDialog.DeepLinkImportDialog (cognitive 58): DeepLinkImportDialog.DeepLinkImportDialog has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 60, if/else 26 (30 pts), ternaries 10 (14 pts), error handling 4 (5 pts), match/switch 2, loops 1 (nesting depth added 9). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (DeepLinkImportDialog.DeepLinkImportDialog::handleImport) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bb1a6af55ed89a44e1625db97eb71999df4cfd279684d7c6ad51cf0fbd1578"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_direct::plan (cognitive 55): cc_switch::services::provider::codex_direct::plan has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (31 pts), match/switch 10 (16 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8b0ecef66fe487139e463114d3283eb3463a09716959867ae5457e612ba9dd"}},{"ruleId":"D2","level":"warning","message":{"text":"useToolManagement.useToolManagement.executeRun (cognitive 54): useToolManagement.useToolManagement.executeRun has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (28 pts), ternaries 7 (13 pts), boolean chains 12, error handling 1 (nesting depth added 15). Of this number, 23 points are the body\u0027s own statements and 31 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf60b26e1c672530c654c55f14a66090886846d02800240c2347e27d9960961b"}},{"ruleId":"D2","level":"warning","message":{"text":"McpFormModal.McpFormModal (cognitive 54): McpFormModal.McpFormModal has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 42 (76 pts), boolean chains 30, if/else 27 (30 pts), error handling 2 (3 pts), loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (McpFormModal.McpFormModal::submitSingle) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1736811a1a919af31dded964715f69a73bc6461029dde7e37d593e7d7b4ef73"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::codex::json_server_to_toml_table (cognitive 53): cc_switch::mcp::codex::json_server_to_toml_table has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 4 (11 pts), match/switch 2 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed61bba5961ef62542403b7bca6c587c6b45339dc9ccd52872b9722399432388"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageDashboard.UsageDashboard (cognitive 53): UsageDashboard.UsageDashboard has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 19 (21 pts), boolean chains 17, if/else 11, error handling 3, loops 1 (nesting depth added 2). Of this number, 26 points are the body\u0027s own statements and 27 belong to 13 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e7988cf9adb5d69764e562da669ac36d09b6452cd69a07504967d53d4b0774"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyMemoryPanel.DailyMemoryPanel (cognitive 53): DailyMemoryPanel.DailyMemoryPanel has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (21 pts), ternaries 7 (14 pts), boolean chains 13, error handling 5 (nesting depth added 9). Of this number, 18 points are the body\u0027s own statements and 35 belong to 16 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18399776c6c047c12d787394671b3825cc91c4ed0808a94b01021913792b44d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsDevAutoSyncPanel.AutoSyncDialog (cognitive 52): ModelsDevAutoSyncPanel.AutoSyncDialog has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 10 (15 pts), boolean chains 12, loops 6 (8 pts), error handling 1 (nesting depth added 16). Most of this is not in the body itself: 10 of the 52 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 92, a function literal at line 336, a function literal at line 107, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d398f77607a409721217f9169373e9e3b351f6374999503e713a6d9e14d6a23"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::handlers::handle_claude_transform (cognitive 51): cc_switch::proxy::handlers::handle_claude_transform has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 6, match/switch 3 (5 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b8be09d80fa86b044bba958a6126b083b76b3f7b70d2642a21e6bd36ae7bc1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_agy::import_records_with_cursor (cognitive 51): cc_switch::services::session_usage_agy::import_records_with_cursor has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 6, loops 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_agy.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca0949a4e72fa08a9a202653efbeb25435ee6283a1a6b5f3725f7cc66acf61e"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageScriptModal.UsageScriptModal (cognitive 51): UsageScriptModal.UsageScriptModal has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 98, if/else 60 (71 pts), ternaries 28 (66 pts), error handling 4 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (UsageScriptModal.UsageScriptModal::handleTest, UsageScriptModal.UsageScriptModal::handleUsePreset) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"97af220b33d7aac322aa5839a6b92c5de892211f87cef7343344b944be518c9c"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit (cognitive 51): ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (25 pts), ternaries 9 (16 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (ClaudeDesktopProviderForm.ClaudeDesktopProviderForm, ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfd2ac6ef0a2ad0de9cd2af1227d049d2a4e8bd1e0baf0c880ec37028d46b4e"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonConfigEditor.CommonConfigEditor (cognitive 51): CommonConfigEditor.CommonConfigEditor has cognitive complexity 51 (threshold 15). Drivers by points: if/else 20 (38 pts), boolean chains 8, error handling 3, loops 1, match/switch 1 (nesting depth added 18). None of this is in the body itself: all 51 points belong to 5 function literals inside it that branch (lines 120, 87, 194, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CommonConfigEditor.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ae6b4e300ca10a34fd9e7b392bc2842509472ab71e03d5301183177c4ec801"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLogTable.RequestLogTable::renderRow (cognitive 51): RequestLogTable.RequestLogTable::renderRow has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 23 (34 pts), boolean chains 17 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1fbb2595dd1d9fd2f905700064e8608b7ad518f767fc9743adf3fb87bc0ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::settings::save_settings (cognitive 50): cc_switch::commands::settings::save_settings has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (46 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/settings.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75fabec0e7032b59a426f1237d463820653f1fe57595198edb22513063e7648"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_pi::parse_pi_file (cognitive 50): cc_switch::services::session_usage_pi::parse_pi_file has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (39 pts), boolean chains 7, match/switch 1 (3 pts), loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae24efc6d3e3446b5eaf8b5972ec89aed0eba25465cc64792cec9bfd85801ae9"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::claude::parse_session_lines (cognitive 50): cc_switch::session_manager::providers::claude::parse_session_lines has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (39 pts), boolean chains 6, match/switch 2 (3 pts), loops 2 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a368d07e5cd85e79c88a55b844725dd85bc696fc2a1fbcd9cace1acbb614f6d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppsPage.AppsPage (cognitive 50): AppsPage.AppsPage has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 12 (22 pts), boolean chains 16, if/else 11, loops 1 (nesting depth added 10). Most of this is not in the body itself: 13 of the 50 points are its own statements and the rest belongs to 10 function items inside it that branch (renderRow, rowInstalled, handleDragEnd, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c16bd0d764c9351dbfc19940c8b7d6b59aa81936d4a9819a39e970bc518dbc7"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexOAuthSection.CodexOAuthSection (cognitive 50): CodexOAuthSection.CodexOAuthSection has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 31, ternaries 10 (13 pts), if/else 6 (nesting depth added 3). Of this number, 38 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7202182a98752540e26488cd36be90a708bcf5de217331d164f8ec888aacc91a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::handlers::chat_sse_to_response_value (cognitive 49): cc_switch::proxy::handlers::chat_sse_to_response_value has cognitive complexity 49 (threshold 15). Drivers by points: if/else 32 (39 pts), loops 4 (6 pts), boolean chains 2, match/switch 2 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":3023}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f38f75f7de4e351750339d9d40933f03eeb72aa8cde16bb7030d37a25262b6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage::collect_jsonl_files (cognitive 49): cc_switch::services::session_usage::collect_jsonl_files has cognitive complexity 49 (threshold 15). Drivers by points: if/else 8 (36 pts), loops 3 (12 pts), match/switch 1 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"02dfe0c63a2084ee46dc8724e372a5f121b985704537d3cfd0a81e6dc60062f7"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents (cognitive 48): cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (42 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df3663670c8cc3abe8d8a5474cd160a29491ec71d7e0af4a39ed04eff71bb93"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::convert_message_content_to_parts (cognitive 48): cc_switch::proxy::providers::transform_gemini::convert_message_content_to_parts has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (41 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"99aa273c8a59e2190b348f36c71fdddb16354b50ee63731c6d1098888456869c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::subscription::parse_claude_quota (cognitive 48): cc_switch::services::subscription::parse_claude_quota has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (37 pts), loops 3 (5 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb673f758677932c6f59605d2f24d064a2da458d24d0e9e66a26653b39e40293"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionItem.SessionItem (cognitive 48): SessionItem.SessionItem has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 28, ternaries 13 (17 pts), if/else 2 (3 pts) (nesting depth added 5). Of this number, 45 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionItem.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e30d44cf9b793d4c8730c089606eb8d4ea7cb4aab47ea515d2abb41f10c0b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::migrate_storage (cognitive 47): SkillService::migrate_storage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (32 pts), match/switch 4 (8 pts), loops 6 (7 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af45d14a74b60fc13545dcf54bf05446026eb0b63e2f4a0dd4c8001b93809de"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::dsh_config::initialize_profiles_and_commit (cognitive 47): cc_switch::dsh_config::initialize_profiles_and_commit has cognitive complexity 47 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 5 (15 pts), match/switch 2 (8 pts), boolean chains 4 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"699c8b8411410102221cf4678819d3738e9227c5f63c678466883c74ef0bde0b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_dsh::scan_zstd_frames (cognitive 47): cc_switch::services::session_usage_dsh::scan_zstd_frames has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (44 pts), loops 2 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_dsh.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"44aea41d0bf9b222f5b9da1fe071930dd6391a097acac6d293ccad5f5b11ecab"}},{"ruleId":"D2","level":"warning","message":{"text":"useManagedAuth.useManagedAuth (cognitive 47): useManagedAuth.useManagedAuth has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (24 pts), ternaries 11 (15 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 9). Most of this is not in the body itself: 4 of the 47 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 182, 145, 329, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ff8aa79d3fe5be2859b087681b5745f86806eac5dbb4b8c6e896bcbb18f88b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionMarkdown.collectVisibleTextPieces (cognitive 46): SessionMarkdown.collectVisibleTextPieces has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (29 pts), ternaries 2 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec07f548b64b3a420cf5d8e658dad26cd23877fa7a12497f460033227049a9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexChatHistoryStore::enrich_request (cognitive 45): CodexChatHistoryStore::enrich_request has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (34 pts), loops 2 (6 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_history.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d6dd03421e4bd6f1a4c612acac75bfdedb8f030516d9afa3d1b885a6fa5b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mode::operation::run (cognitive 45): cc_switch::mode::operation::run has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (35 pts), loops 4 (5 pts), match/switch 2 (5 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/operation.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e786442f94c08a9824f79857d58ebb2c28b8d00239b6e871d9b45ebf25916ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"AboutSection.AboutSection (cognitive 45): AboutSection.AboutSection has cognitive complexity 45 (threshold 15). Drivers by points: error handling 7 (12 pts), ternaries 8 (12 pts), if/else 8 (11 pts), boolean chains 10 (nesting depth added 12). Of this number, 16 points are the body\u0027s own statements and 29 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"105fa5d8eb8e60e6a126ff63c68ed909c8d34b80bf4c9332b7bc447bd234aef0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModeDialog.EnterBody (cognitive 44): ModeDialog.EnterBody has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 15 (29 pts), boolean chains 12, if/else 2, error handling 1 (nesting depth added 14). Of this number, 38 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b48e7423848e810d5f90f6f029209c53b067bc3220f61317e8311438a4b3fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderType::from_app_type_and_config (cognitive 43): ProviderType::from_app_type_and_config has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (39 pts), match/switch 2 (4 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b227ffb0db7efbf38d4d1639c01cfa5c982e918d8b8adc3e90ce7d0384f4ac"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform::anthropic_to_openai_with_reasoning_content (cognitive 43): cc_switch::proxy::providers::transform::anthropic_to_openai_with_reasoning_content has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 2 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31d6e749db5e0f52b27ab592e5e762ff7ce39a1fd6d005e6b896ef235865985"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_grokbuild::sync_single_grok_file (cognitive 43): cc_switch::services::session_usage_grokbuild::sync_single_grok_file has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 4 (9 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f22526471ee61fe65f0316dcb45a0a3a40c8f02ae915ccadcb0fc5f51bf3726"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageDateRangePicker.UsageDateRangePicker (cognitive 43): UsageDateRangePicker.UsageDateRangePicker has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 15, ternaries 9 (10 pts) (nesting depth added 3). Most of this is not in the body itself: 3 of the 43 points are its own statements and the rest belongs to 13 function items inside it that branch (handleDatePick, renderField, a function literal at line 495, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDateRangePicker.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2309ae9d34dcdafb9f90cc6d2107e3800b0a693d8180af65d25a47ea0e97d957"}},{"ruleId":"D2","level":"warning","message":{"text":"SecretDetector::detect_with_active (cognitive 42): SecretDetector::detect_with_active has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 7, loops 4 (5 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/privacy_filter/secrets.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a3f8e4cecfa47fd9402dc673e6733dac9e417b19e4c0ef174181e7523be1a6"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedCitationTextState::render_message_part (cognitive 42): BufferedCitationTextState::render_message_part has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 5 (13 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9611e7fe0d4ab50c6899bc601d878cca9b957e844d46ab6023f8080094eedd7d"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::uninstall (cognitive 42): SkillService::uninstall has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 5 (10 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 23). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"460fa2eea58b3be8dfd60eb492d20bffc9928394246864ae26d5745f19290872"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::dsh::parse_messages (cognitive 42): cc_switch::session_manager::providers::dsh::parse_messages has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (31 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/dsh.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6dcfb0eb16f378d5fd5837f2c296d807bd9186c029a1cbe1b6768e0d2eb9bd"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptFormPanel.PromptFormPanel (cognitive 42): PromptFormPanel.PromptFormPanel has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 19 (24 pts), boolean chains 10, if/else 7, error handling 1 (nesting depth added 5). Of this number, 25 points are the body\u0027s own statements and 17 belong to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a4a59250d85523336717261a498e4dc579b1200405d29ef4c1056b8b33b445"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::opencode_blocks::push_tool_blocks (cognitive 41): cc_switch::session_manager::providers::opencode_blocks::push_tool_blocks has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (31 pts), match/switch 3 (5 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode_blocks.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"194d6a9db71e62fda0488ffe9eea10c47100436f37b5b0689811ee4863168abd"}},{"ruleId":"D2","level":"warning","message":{"text":"tomlUtils.normalizeServerConfig (cognitive 41): tomlUtils.normalizeServerConfig has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 4 (10 pts), boolean chains 9 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f5d9e3cc89cccc31b64e9c5611ad9f0cc22ab3f375e8969627807caf3c1304"}},{"ruleId":"D2","level":"warning","message":{"text":"Database::get_daily_trends (cognitive 40): Database::get_daily_trends has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (33 pts), loops 5 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"541b8bb8e1c40557f9dca0f053911d634db9e20c2a5cadc6467845ed013dc9b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::add (cognitive 40): ProviderService::add has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":5789}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e88b8bfbb966e4dc126b59c02125b68bc832a275ea6f91ec55fc8c5d5243d7"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::copilot_config::validate_document (cognitive 40): cc_switch::copilot_config::validate_document has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 6 (10 pts), boolean chains 2, match/switch 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"2267e9b3d47576b1c4f8a0236b5b7aa9abca1244c81c09d5a713460a32fab8d1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentsDefaultsPanel.AgentsDefaultsPanel (cognitive 40): AgentsDefaultsPanel.AgentsDefaultsPanel has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18, boolean chains 12, ternaries 8 (9 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 9 of the 40 points are its own statements and the rest belongs to 9 function items inside it that branch (handleSave, a function literal at line 45, getFallbackOptions, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"346d39c52b380a8705681a381594dad3ed990ba1e53df2fe100dd192a744fa22"}},{"ruleId":"D2","level":"warning","message":{"text":"RoutingSection.RoutingSection (cognitive 40): RoutingSection.RoutingSection has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 16 (17 pts), boolean chains 13, if/else 7, error handling 3 (nesting depth added 1). Of this number, 19 points are the body\u0027s own statements and 21 belong to 8 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a690812d59997da841b4d8b1a45f7e408e775399fd894cbbd8891fe70a8d301d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::provider::query_provider_usage_inner (cognitive 39): cc_switch::commands::provider::query_provider_usage_inner has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (35 pts), match/switch 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"843dba38a1c9fb705952cf86fb7ce5d0ff362df365b04016ecf3dfe4af27382b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::anthropic_tool_result_to_responses_output (cognitive 39): cc_switch::proxy::providers::transform_responses::anthropic_tool_result_to_responses_output has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (33 pts), match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47431d5e2791d1cc27a03cc6fd5e4476a5dd746103a570b1df1d9e2fb69d690"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::text_with_url_citations (cognitive 39): cc_switch::proxy::providers::transform_responses::text_with_url_citations has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 4, boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f7721e07d30b00573ef0ae2fd861e4bd90f4874e43fd4546a1942c13bcb716"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::openclaw::parse_session_with_status (cognitive 39): cc_switch::session_manager::providers::openclaw::parse_session_with_status has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (32 pts), match/switch 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/openclaw.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d599a97a5d5fab99d478a93e12e8f44d83a1cb2a4df9a7235e60f989b99e29"}},{"ruleId":"D2","level":"warning","message":{"text":"XaiOAuthSection.XaiOAuthSection (cognitive 39): XaiOAuthSection.XaiOAuthSection has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 12 (22 pts), boolean chains 12, if/else 5 (nesting depth added 10). Of this number, 28 points are the body\u0027s own statements and 11 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0284ff2196029c407f94545f9841e67612476cdeabad0dd78f77fb24bd3d4d28"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderForm.ProviderFormFull::handlePresetChange (cognitive 39): ProviderForm.ProviderFormFull::handlePresetChange has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 9 (17 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (ProviderForm.ProviderFormFull, ProviderForm.ProviderFormFull::handleSubmit, ProviderForm.ProviderFormFull::performSubmit) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":2298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0df8b7bbb1680bdf643c9ca9ccc0704241a02801f8d598fc2d948683bb117db"}},{"ruleId":"D2","level":"warning","message":{"text":"useDragSort.useDragSort.sortedProviders (cognitive 39): useDragSort.useDragSort.sortedProviders has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 7 (28 pts), boolean chains 7, if/else 4 (nesting depth added 21). Of this number, 33 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDragSort.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b70a81eaf658fd5b8fbf65eaf77d01d9470879990f905b99c1691ae65f85dbd"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.setCodexBaseUrl (cognitive 39): providerConfigUtils.setCodexBaseUrl has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 3 (9 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c40e651b593734a1ba1656d852cef3801b56dc2c86265d2b0f6b0cc057e2fc"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamedTextState::missing_suffix (cognitive 38): StreamedTextState::missing_suffix has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25 (35 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb91648bd2f94065ad82489b6d80b2b63add97cba4eaaadeea5ad1c24a979d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::normalize_xai_function_tool_parameters (cognitive 38): cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::normalize_xai_function_tool_parameters has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (35 pts), boolean chains 2, match/switch 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd94fa8819dad612a72c517e4df00c35468efbb8367f0e0261d27bb188a1dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_terminal::build (cognitive 38): cc_switch::services::provider::codex_terminal::build has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 5, match/switch 3 (5 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_terminal.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"697da98b38c93adb167bcf1228d4dcddae0edec53bbcee2f34a118f959a46f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_kimi::sync_file (cognitive 38): cc_switch::services::session_usage_kimi::sync_file has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 3, loops 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_kimi.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff751dc04d59d3497664e96ebc92eb8fe3b3caa8d3876278b6f7e1d92899ffb0"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthCenterPanel.AuthCenterPanel (cognitive 38): AuthCenterPanel.AuthCenterPanel has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 7 (28 pts), boolean chains 5, if/else 4, loops 1 (nesting depth added 21). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 97, 141, 173). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AuthCenterPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb80536ceabf79a8d43d52f955ffc1351756cb97e129a046ae9680a91abb3dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupListSection.BackupListSection (cognitive 38): BackupListSection.BackupListSection has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (11 pts), ternaries 7 (10 pts), error handling 4 (nesting depth added 9). Most of this is not in the body itself: 7 of the 38 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 310, handleRestore, handleConfirmRename, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31fcdf1017c84e3cb18ba571f14a2d1bf1ded8d1886fd5ec523dd995c38e751"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexOAuthManager::adopt_account_refresh_token_under_lock (cognitive 37): CodexOAuthManager::adopt_account_refresh_token_under_lock has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 6 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2036b1fe542e27ec1d7ed355545d9794563372c720429db3a9584b21a48ba82"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::try_get_version_wsl (cognitive 37): cc_switch::commands::misc::try_get_version_wsl has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a16f495e521ffb32ba7ec4f177278bc3d3b6ae77880af9a6dc1ed83e75fd4d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::verified_bounded_fork (cognitive 37): cc_switch::services::session_usage_codex::verified_bounded_fork has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b4a053e041e13f7abbdab9d694fe96c12584d300d9ef4b4147f5279f73b6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonEditor.JsonEditor (cognitive 37): JsonEditor.JsonEditor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 12 (15 pts), boolean chains 5, error handling 2 (nesting depth added 5). Most of this is not in the body itself: 6 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 113, a function literal at line 150, handleFormat, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec86eddc1db94e0ad206c420a6d15f8b7b3690b1e562045687a115c54a4cb96"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotAuthSection.CopilotAuthSection (cognitive 37): CopilotAuthSection.CopilotAuthSection has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 16, ternaries 10 (13 pts), if/else 8 (nesting depth added 3). Of this number, 24 points are the body\u0027s own statements and 13 belong to 8 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"238a5d6de884eeffb1ec0fe57e6a0085c209c5f0fd058b1891d9dfb9763a21ed"}},{"ruleId":"D2","level":"warning","message":{"text":"PiProviderForm.PiProviderForm::submit (cognitive 37): PiProviderForm.PiProviderForm::submit has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 9, ternaries 4 (6 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (PiProviderForm.PiProviderForm) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e4ad94c55381b7c1a8604f654e0d2e2243163eacb865b07b3620bc248e684e"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManagerPage.SessionManagerPage (cognitive 37): SessionManagerPage.SessionManagerPage has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 43 (51 pts), boolean chains 50, if/else 40 (43 pts), error handling 7 (9 pts) (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (SessionManagerPage.SessionManagerPage::handleDeleteConfirm) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c433202c2d456d3b64e8ac8b35120ed89f97939702263198198d1479338de2"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsDevPickerDialog.ModelsDevPickerDialog (cognitive 37): ModelsDevPickerDialog.ModelsDevPickerDialog has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 10 (21 pts), boolean chains 8, if/else 5 (6 pts), error handling 1, loops 1 (nesting depth added 12). Most of this is not in the body itself: 13 of the 37 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 75, a function literal at line 92, a function literal at line 246, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevPickerDialog.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d66e4ce0530fca1402632ea93b198d594de1d6c5a1802335e18d5b86fddde2"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestIndex::observe (cognitive 36): RequestIndex::observe has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 2 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_session.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e42434184643f2e43ad7eaedc7559af61d7288633fd340b45430e8f42e1b96"}},{"ruleId":"D2","level":"warning","message":{"text":"McpService::upsert_server (cognitive 36): McpService::upsert_server has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, boolean chains 14. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1bd36665093beb252fcbeef6953b31ac96dc878a4ce2a7e80ba4dc7a8aae07"}},{"ruleId":"D2","level":"warning","message":{"text":"McpService::delete_server (cognitive 36): McpService::delete_server has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22 (36 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f2b02f6ca1d18ddff1715923644e416eaac71e458430bded653f01819a47d7"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::codex_config::build_simplified_catalog_from_texts (cognitive 36): cc_switch::codex_config::build_simplified_catalog_from_texts has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 6, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"14da4c10bf9e3c4a4fe7f54a505045ef3801a895479c4db84059a1b164d00643"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::responses_json_to_anthropic_sse (cognitive 36): cc_switch::proxy::providers::streaming_responses::responses_json_to_anthropic_sse has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (29 pts), match/switch 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"504cc33e8361241c303f1bdd6e4500f179f8fcfb4606ccf92eeb82b64453f3bc"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::tool_result_content_from_responses_item (cognitive 36): cc_switch::proxy::providers::transform_codex_anthropic::tool_result_content_from_responses_item has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (25 pts), match/switch 3 (9 pts), loops 1 (2 pts) (nesting depth added 23). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bf87c489c3d62b94f604decb5d7bd96909888689d1fb383a72d36ba74b2a75"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::kimi::load_messages (cognitive 36): cc_switch::session_manager::providers::kimi::load_messages has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 5 (9 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/kimi.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe4f088cfc4c560ad68fabfd474d40b10ba8c48dd58ed0e77252bca03c8ee3e"}},{"ruleId":"D2","level":"warning","message":{"text":"useProviderCategory.useProviderCategory (cognitive 36): useProviderCategory.useProviderCategory has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 13, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to one function literal inside it that branches (line 33). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useProviderCategory.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b31ec526d4855643b1b1b0018d19ff84e1ca2d111bd1a545d296d052992d385"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedSkillsPanel.UnifiedSkillsPanel (cognitive 36): UnifiedSkillsPanel.UnifiedSkillsPanel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 78 (89 pts), boolean chains 55, ternaries 36 (49 pts), error handling 16 (18 pts), loops 10 (11 pts) (nesting depth added 27). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (UnifiedSkillsPanel.UnifiedSkillsPanel::uninstallIds) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d223be3be6af1acf6e1fe636c24953e30beb3cee0aa1dba25f51ce579f9e480"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestDetailPanel.useDetailSections (cognitive 36): RequestDetailPanel.useDetailSections has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 7 (13 pts), boolean chains 6 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestDetailPanel.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb98146181c88e50513575f8678d264f5c1b5e60cd21342c6b45084d20ba9af"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::delete (cognitive 35): ProviderService::delete has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 2 (6 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6749}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bb1e71c7c1ad9f8a8228971ba022466d4f932e15fbb15081c16736a0ef2148"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::missing_message_text_parts (cognitive 35): cc_switch::proxy::providers::streaming_responses::missing_message_text_parts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (26 pts), match/switch 2 (8 pts), loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc11faf6218a5ae7d490839f3e3a853f0dc6787a6efbaed68590575d17bbba0b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::responses_content_to_chat_content (cognitive 35): cc_switch::proxy::providers::transform_codex_chat::responses_content_to_chat_content has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (31 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"473dc9fef7258da92f559c1569c526bf2f8c9e9dc64d26dbbf2bf732f4dc5112"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::kimi_oauth::parse_models (cognitive 35): cc_switch::services::kimi_oauth::parse_models has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/mod.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba5e10b73331c9def7500db27a72071e86d3085fbfbc1e5345ecbc341997be2"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::skill::migrate_skills_to_ssot (cognitive 35): cc_switch::services::skill::migrate_skills_to_ssot has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 4 (7 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":5183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b16c181829f9678c73aab12d6f5b543d2cf734d8c61638050fdc13fcdfdf3d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::copilot::load_messages (cognitive 35): cc_switch::session_manager::providers::copilot::load_messages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/copilot.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d411ef1f4ba51369b498018f12f90d1f530de527f25c7f3b1e3f02d5ccee5e8"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedAccountsGroup.ManagedAccountsGroup (cognitive 35): ManagedAccountsGroup.ManagedAccountsGroup has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 24, if/else 6, ternaries 3, error handling 2. Of this number, 22 points are the body\u0027s own statements and 13 belong to 8 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8d7201e205706baa400da465fe0ceb5b8c2a9defc2dcb4e072e620d7d9d29d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkBuddyAccountSection.WorkBuddyAccountSection (cognitive 35): WorkBuddyAccountSection.WorkBuddyAccountSection has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 10 (17 pts), if/else 11, boolean chains 7 (nesting depth added 7). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 181, a function literal at line 228, a function literal at line 104, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/WorkBuddyAccountSection.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc92f867fbb6c0d4c4057b6bb59f5b977062059d98c4b012f03f740d290b722"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::codex::json_value_to_toml_item (cognitive 34): cc_switch::mcp::codex::json_value_to_toml_item has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 2 (4 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bb07f6c42bf45ca960474f5880bc200954a00f88a75431e0073163689c1a50"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::hermes::parse_jsonl_session_with_status (cognitive 34): cc_switch::session_manager::providers::hermes::parse_jsonl_session_with_status has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (27 pts), match/switch 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c9b2c6e85c270100466916e9444381f3ccdcf8525626f1df156637c3f7e08a"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaLines.QuotaLines (cognitive 34): QuotaLines.QuotaLines has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 12 (23 pts), boolean chains 6, if/else 5 (nesting depth added 11). Of this number, 30 points are the body\u0027s own statements and 4 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba26115ebd5312983f16830c30fdd24328a13eb300660ddfd194139e245547b"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageDisplaySection.UsageDisplaySection (cognitive 34): UsageDisplaySection.UsageDisplaySection has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 11, ternaries 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 8 of the 34 points are its own statements and the rest belongs to 13 function items inside it that branch (refreshRates, changeRateSource, changeCurrency, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5f66d5c3fe415832624b1d8d5f24a28106b32a98e11ced37bab69ca4faecec"}},{"ruleId":"D2","level":"warning","message":{"text":"usePromptActions.usePromptActions.toggleEnabled (cognitive 34): usePromptActions.usePromptActions.toggleEnabled has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 5 (11 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/usePromptActions.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b40371b4f65afc0335309571e872d2fa9c27969ecbe3d1cc94a17d162c8fc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"modelsDevPricing.flattenModels (cognitive 34): modelsDevPricing.flattenModels has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 4 (11 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 18). Of this number, 33 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelsDevPricing.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c759c8afb9d2815d9c80631966e1362abf86488ed65fb416f1459c6ecb0b2883"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::validate_provider_settings (cognitive 33): ProviderService::validate_provider_settings has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":8265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d33c2eede857318ca870ec603a445bd3f09616c7d421168d82d64bbc6fb5757"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::check_updates_report (cognitive 33): SkillService::check_updates_report has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 6 (17 pts), if/else 5 (11 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 18). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc15ef595a45bbbcbd37cf64b7a06c10d5429a5c473ea2f6adee3987dea5086"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::update_managed_skill_files (cognitive 33): SkillService::update_managed_skill_files has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 5 (6 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"e162f4b8040554cd298447d69f6e0965d4b9723d0a89029f96f67863daf81b24"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptBuilder::push_assistant (cognitive 33): TranscriptBuilder::push_assistant has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (25 pts), match/switch 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0578cf6ceaecbea142a363706bdd8e4f98e915f713906104ff5f130695ea4a2"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::scan_cli_version_in (cognitive 33): cc_switch::commands::misc::scan_cli_version_in has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 2 (4 pts), loops 2 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3120}}}],"partialFingerprints":{"codehealthFindingId/v1":"960d620f3a9bb7af5d0edc53c6d91d4e0eb83ef060b13f31f66cc2d4a65c28ca"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message (cognitive 33): cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 4, match/switch 2 (4 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"136272dd809b99863f46af9d61e5b49217268017eafc06c9cba463f05a1b4106"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::resolve_continuation_baseline (cognitive 33): cc_switch::services::session_usage_codex::resolve_continuation_baseline has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 2 (6 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ccbafb0edf0319e9de68d0283e21bd76cfe38be4ddcab4c4eb0c8dc188c1e3"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokBuildProviderForm.GrokBuildProviderForm (cognitive 33): GrokBuildProviderForm.GrokBuildProviderForm has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 13, ternaries 7. Most of this is not in the body itself: 8 of the 33 points are its own statements and the rest belongs to 7 function items inside it that branch (handleSubmit, handlePresetChange, handleRawConfigChange, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d4811f8ff93e26b86077f89e8013871fb16f6ea04110a477712bcfa452e845"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionDiff.parseDiff (cognitive 33): SessionDiff.parseDiff has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 5). Most of this is not in the body itself: 5 of the 33 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 41, pushFile). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionDiff.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f074c4392d4830f21e3bf46b0b995357b7f6461fbd88ec71d1171c08197a1460"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageTab.UsageTab (cognitive 33): UsageTab.UsageTab has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 13 (25 pts), boolean chains 4, if/else 2 (4 pts) (nesting depth added 14). Of this number, 21 points are the body\u0027s own statements and 12 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c138077294c02b78cf878568345e218398b4331d6fcad1d91b286fbb14e07a"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::backfill_finished_result (cognitive 32): RolloutParser::backfill_finished_result has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (29 pts), loops 2 (3 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df400092ba361246000e66f6ce0858313f759a108953c178158443b39c8af8d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::privacy_filter::redact_body (cognitive 32): cc_switch::proxy::privacy_filter::redact_body has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 6 (12 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/privacy_filter/mod.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b75a6fbf5f8ed4cd1c79db1ce2ae9b37048711c4d7a73b9ba4ed30c8371468d"}},{"ruleId":"D2","level":"warning","message":{"text":"PiProviderForm.PiProviderForm (cognitive 32): PiProviderForm.PiProviderForm has cognitive complexity 32 (threshold 15). Drivers by points: if/else 80 (88 pts), boolean chains 73, ternaries 40 (48 pts), error handling 2 (3 pts), loops 1 (nesting depth added 17). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (PiProviderForm.PiProviderForm::submit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"5665e6e1f0fb1063a3dd80330ec59be6c650f51509f812f81811d53ed7784eef"}},{"ruleId":"D2","level":"warning","message":{"text":"mutations.useAddProviderMutation (cognitive 32): mutations.useAddProviderMutation has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 6, ternaries 1 (3 pts), error handling 1 (nesting depth added 8). None of this is in the body itself: all 32 points belong to 4 function literals inside it that branch (lines 29, 112, 157, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ffb6b72948e38b0255c71c002838eef3b8b8157cf7a93cd7e23b452fda89df"}},{"ruleId":"D2","level":"warning","message":{"text":"Database::dump_sql (cognitive 31): Database::dump_sql has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e292c166e8dd6ac4702cce0a03f97a03abf9d03e3d7512a9b59315be2faa82d"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonPatch::apply_to (cognitive 31): JsonPatch::apply_to has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 7 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/json.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5a0256be2139d3fd107e9fc65260e2184885b54eca4e3789fc157b04be792c"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::list (cognitive 31): ProviderService::list has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (27 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":5528}}}],"partialFingerprints":{"codehealthFindingId/v1":"113b3b2aab868522422c9e1c59363246866b6dc72ec75c46781bbe699c9bde7c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::enumerate_tool_installations (cognitive 31): cc_switch::commands::misc::enumerate_tool_installations has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84d5f79c48639f78d3899714d07d1a7203303ce7397d077748332b4e2f7e0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::copilot_optimizer::merge_tool_results (cognitive 31): cc_switch::proxy::copilot_optimizer::merge_tool_results has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (7 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8304fa4156012ec2be3cc11cd7f75e17a19fe09dee37271eb3b921b2027be831"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::chat_message_to_response_output_item (cognitive 31): cc_switch::proxy::providers::transform_codex_chat::chat_message_to_response_output_item has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":2060}}}],"partialFingerprints":{"codehealthFindingId/v1":"790a7fb1125dba8450b2a86a46a6078b0f138e5618580970d8bc7b8516043d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 31): App.App has cognitive complexity 31 (threshold 15). Drivers by points: if/else 89 (101 pts), boolean chains 74, ternaries 43 (62 pts), error handling 19 (24 pts), loops 4, match/switch 2 (nesting depth added 36). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (App.App::handleDuplicateProvider) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc405d3c618a471c2d51611df36c2523bfc2ffb7a862ec2be975f607a7fbd2d"}},{"ruleId":"D2","level":"warning","message":{"text":"IconPicker.IconPicker (cognitive 31): IconPicker.IconPicker has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8, ternaries 4 (5 pts), error handling 3, match/switch 1 (nesting depth added 4). Most of this is not in the body itself: 8 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (handleFileChange, handleNameConfirm, handleDeleteConfirm, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IconPicker.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7618776ea6dea7799b92de6ec601eaa2f3a8b2e45690f7cf72ea10af8e74d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchedModelPicker.FetchedModelPickerBody (cognitive 31): FetchedModelPicker.FetchedModelPickerBody has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 11, ternaries 2 (3 pts), loops 2 (nesting depth added 7). Most of this is not in the body itself: 6 of the 31 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 174, a function literal at line 201, matches, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/FetchedModelPicker.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a00e7c93ca41a989c0b391a7cecca174531679ff2388805d721025fe6c4d72"}},{"ruleId":"D2","level":"warning","message":{"text":"frontendLogger.normalizeForSerialization (cognitive 31): frontendLogger.normalizeForSerialization has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (24 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/frontendLogger.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44783f9e6a19a01625f1fa032cb6641bcd1c0ecfb727fa6f6d02220a29dee99"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.writeCodexAgentsLine (cognitive 31): providerConfigUtils.writeCodexAgentsLine has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 2 (4 pts), error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39769af9daa803a601faa700be7ad59640e4a1ed47af2c0813ac32930112071"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAdapter::extract_base_url (cognitive 30): CodexAdapter::extract_base_url has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (30 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8c5fe7c685dc14d507d3e198ee3120ee07c111e9e1bfcba0f2543dc15e5174"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedCitationTextState::merge_part_indices (cognitive 30): BufferedCitationTextState::merge_part_indices has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 7, loops 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfef9133917f8933c7f8cabd9100e07e4fd5642764df6e30ceb17892b0f7257e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::remove_from_live_config (cognitive 30): ProviderService::remove_from_live_config has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (27 pts), match/switch 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6924}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb94be23adb85867de24044776dec39545a4273ce98e47877a8c8f22317c472"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::update_skill (cognitive 30): SkillService::update_skill has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 4, loops 3 (4 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb6e934717887d47759b5b10a8e9b49ecfa4ec50639c86ce95afa4f157d9337"}},{"ruleId":"D2","level":"warning","message":{"text":"useCodexConfigState.mapCodexCatalogModelForForm (cognitive 30): useCodexConfigState.mapCodexCatalogModelForForm has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 20 (27 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"12796241b25c2d21bb7baa8cb8ba5377c00647b0b9cc8977cc04fa200044a933"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatToResponsesState::finalize_tools (cognitive 29): ChatToResponsesState::finalize_tools has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"511afea1ffed820eb7d72f45de2973b3177b680069a5f20f5b36526b109146d8"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::omp_config::validate_provider (cognitive 29): cc_switch::omp_config::validate_provider has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 10, match/switch 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14992aa88badf24e24376f706d7deb6baf9bbaeb78d0934272bd20ab517da6d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::claude::normalize_anthropic_tool_thinking_history (cognitive 29): cc_switch::proxy::providers::claude::normalize_anthropic_tool_thinking_history has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"736be678e6d467fd6fdd66d32f04f3133c980cd40e076a102f2966def276771a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::claude_account::login::wait_for_link (cognitive 29): cc_switch::services::claude_account::login::wait_for_link has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/claude_account/login.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9ab81ea0763996751906d717f83fb3b0e7d98d8efa2efe85b6455b5ff7a22b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::live::import_default_config (cognitive 29): cc_switch::services::provider::live::import_default_config has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b924f3ad46f96d6a71f8f84a780d0b62f02b3dd62d2337276f153453e8b8079"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageScriptModal.UsageScriptModal::handleUsePreset (cognitive 29): UsageScriptModal.UsageScriptModal::handleUsePreset has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 8 (9 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (UsageScriptModal.UsageScriptModal, UsageScriptModal.UsageScriptModal::handleTest) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ff479e263e3dce9d17be2f9e2811a8cd5f5c68705012a5e7b3e63916d5beaf"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.SettingsPage (cognitive 29): SettingsPage.SettingsPage has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 10, if/else 10, error handling 4, ternaries 2 (3 pts), loops 1, match/switch 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 146, renderSection, a function literal at line 276, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67fdf33c935954eb42ce3362ed57f33dc2252a2a19b083b0fcef8450b55be9c"}},{"ruleId":"D2","level":"warning","message":{"text":"useSettings.useSettings.saveSettings (cognitive 29): useSettings.useSettings.saveSettings has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (14 pts), error handling 5 (7 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"078dae213cef5f937c62ffe0df8a07f0f4733fdfbc85b19c080553181dde94dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedCitationTextState::finish_unkeyed_text (cognitive 28): BufferedCitationTextState::finish_unkeyed_text has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bdbe5cd01bafc587ee60fe1b4b7f69c6d4695e63a9b66d003e61ff79c0dc89"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptBuilder::tool_result_block (cognitive 28): TranscriptBuilder::tool_result_block has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 4 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cd3675c4118f76614abfa6d9002b3ddbd1bfbcb0e10654c665ec852b65272b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::opencode::convert_from_opencode_format (cognitive 28): cc_switch::mcp::opencode::convert_from_opencode_format has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 2, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/opencode.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"289ae0a99c21fdf2cc84b7045f0e3ed96074f70a67dd32be8f45bc766a1e8785"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::codex_chat_tool_history::preserve_invalid_tool_calls_as_text (cognitive 28): cc_switch::proxy::providers::codex_chat_tool_history::preserve_invalid_tool_calls_as_text has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_tool_history.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90547068d55b3882723fd8275bb4346258109e99a1bb57cc0cbe967cf3a6b48"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::responses_to_chat_completions_with_reasoning (cognitive 28): cc_switch::proxy::providers::transform_codex_chat::responses_to_chat_completions_with_reasoning has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a66f2edc5485bfd2f701ea50c4cf6dc38c7c7e2e8b038c437788603df0419c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::model_fetch::build_models_url_candidates (cognitive 28): cc_switch::services::model_fetch::build_models_url_candidates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/model_fetch.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c75d4b5ade03205a026273201c0f2483ff612a0e0508008fa98acc251a39f6c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_editor::entries (cognitive 28): cc_switch::services::provider::codex_editor::entries has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 3 (8 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_editor.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fb11c1e0a34f0a5f3bf89cfa124a5e21a7dca79bb158a4e8e9ec35aba3c070"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_pi::parse_subagent_records (cognitive 28): cc_switch::services::session_usage_pi::parse_subagent_records has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f6e46e47ac7494e3c90fd6819a1bca331e696c2d835fabd76d5cd585de8f74"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App::handleDuplicateProvider (cognitive 28): App.App::handleDuplicateProvider has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 2 (5 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (App.App) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d143f20c44d082ef3ba28d0e6b81943098ab54e896487fe59ebb06e28715e473"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.getTomlMultilineStringLines (cognitive 28): providerConfigUtils.getTomlMultilineStringLines has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 14). None of this is in the body itself: all 28 points belong to one function literal inside it that branches (line 342). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f274c5a3b6ab23905ef7e7baec7fffad150d79a6cda6b88492540a1dc444201"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexConfigPatch::apply_to (cognitive 27): CodexConfigPatch::apply_to has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 7 (9 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa03658c7a021708f15a4f5f4861cc928f25e4d2f3774dec6457f4234f79351"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexConfigPatch::write_route (cognitive 27): CodexConfigPatch::write_route has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3, loops 2, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8d7fb72d4049dc51a017a482b331a021997160efb9cf977ab46481df4a03b2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::switch_normal (cognitive 27): ProviderService::switch_normal has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 3 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5af9b976ef8619cbcefec0d3b1d67a335e8e82b747eea3cb77c9479b2b28920"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::deeplink::provider::import_provider_from_deeplink (cognitive 27): cc_switch::deeplink::provider::import_provider_from_deeplink has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"da232d5d179180dd73a4a20c8c522c3aebdc21c626f72d9b826b420241ca5a93"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::rectify_tool_call_args (cognitive 27): cc_switch::proxy::providers::transform_gemini::rectify_tool_call_args has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"36103f958083635342a2d322de58f8defa4656a765d1e958a755db41f71779b1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::cache::build_turns (cognitive 27): cc_switch::session_manager::cache::build_turns has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/cache.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed0dcf5bf399eba76219314f810e5f6b366643cbdde8c54a1aee008767fd260"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseUpgrade.DatabaseUpgrade (cognitive 27): DatabaseUpgrade.DatabaseUpgrade has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (6 pts), ternaries 3 (4 pts), error handling 2 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DatabaseUpgrade.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1cf1947590a706b18b3e21630786861bf1abb6cda90a7e0c10fa7e705cfb33"}},{"ruleId":"D2","level":"warning","message":{"text":"McpConfirmation.McpConfirmation (cognitive 27): McpConfirmation.McpConfirmation has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (11 pts), loops 2 (3 pts), error handling 1, ternaries 1 (nesting depth added 7). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 37, a function literal at line 21, Row, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/McpConfirmation.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b760ec561f5c5d1b839a4fd6ab5b97a6d073c259d699c01df5366eb5bee9721"}},{"ruleId":"D2","level":"warning","message":{"text":"PiNativePromptResources.PiSystemPromptFiles (cognitive 27): PiNativePromptResources.PiSystemPromptFiles has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 14 (23 pts), boolean chains 4 (nesting depth added 9). None of this is in the body itself: all 27 points belong to 2 function literals inside it that branch (lines 402, 360). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9be93c032cebe9c25dde9b5935d4f66466ffdb7742e076b50ac4ab1bf0e357c"}},{"ruleId":"D2","level":"warning","message":{"text":"PiNativePromptResources.PiPromptTemplateEditor (cognitive 27): PiNativePromptResources.PiPromptTemplateEditor has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 12 (17 pts), boolean chains 8, if/else 2 (nesting depth added 5). Of this number, 24 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"775bcf1e3b2181a04e4990597a3aa89308c515c1800eaffdc6a972a6e89231c9"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesFormFields.HermesFormFields (cognitive 27): HermesFormFields.HermesFormFields has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 9, boolean chains 7, loops 1 (nesting depth added 1). Most of this is not in the body itself: 9 of the 27 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 210, 332, 498, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"810294c8c095e49aa00674ced7915c0fd609df050cbb34eb21ede640fb38006a"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.NavItem (cognitive 27): Sidebar.NavItem has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 14 (18 pts), boolean chains 8, if/else 1 (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ab5143974716b664ddeedf225ac2543b117bcccd0ab4441bd3ba1a5f35702d"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageTrendChart.UsageTrendChart (cognitive 27): UsageTrendChart.UsageTrendChart has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 12 (19 pts), if/else 5, boolean chains 3 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1825a24df49703c1ad3def2a78141d5de0ee3c2a0e8455bb04cf1011cdd997e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::codex_config::plan_codex_stack_catalog (cognitive 26): cc_switch::codex_config::plan_codex_stack_catalog has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 5 (8 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":2647}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff611430408ec238236630d59c0d4252f696afc41d743f132ff9af06bba0139"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::anchored_command_from_paths (cognitive 26): cc_switch::commands::misc::anchored_command_from_paths has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, match/switch 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":4219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f3b3c21980c2ec9db9b539390aaf1c633a34abf76f25166ca28aafc96249a1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::wait_child_output (cognitive 26): cc_switch::commands::misc::wait_child_output has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 3 (10 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":4555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1828dac2a1d5bbc86ea459a052486f5a51214c672bae9513c57c44edcfe93926"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::workspace::search_daily_memory_files (cognitive 26): cc_switch::commands::workspace::search_daily_memory_files has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/workspace.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb021b5ef11b434f34a6681474301c38140b35344007c3510ee117975b92dea"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::copilot_config::convert_legacy_settings (cognitive 26): cc_switch::copilot_config::convert_legacy_settings has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb7289cf2e12f09fe8aa507da9f36dcc840ce7e2a56ab16274a6fe9c5d60c29"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::dsh_config::mcp_edit (cognitive 26): cc_switch::dsh_config::mcp_edit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06de00ff5b29fa11d9580e6043896b901b1cb02c5c010c65b1e0c9f1d607681"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::coalesce_replayed_tool_turn_messages (cognitive 26): cc_switch::proxy::providers::transform_codex_chat::coalesce_replayed_tool_turn_messages has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42edf13f480821003397a1071d3d506e5117525de98ca5572ccf1e05f7e69be"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::markdown_container_continuation_start (cognitive 26): cc_switch::proxy::providers::transform_responses::markdown_container_continuation_start has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78d18d1a116070de62ddb054abcceb7f737d6021dd067caa5245ccf2af3094d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_login::plan (cognitive 26): cc_switch::services::provider::codex_login::plan has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 8, match/switch 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_login.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a130e6efd02bdc5dad84a103539e3addea5405b1da388ae2d813b0d7562ba915"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::load_parent_timeline (cognitive 26): cc_switch::services::session_usage_codex::load_parent_timeline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"836d9e3baeb0c677b97429bac782061540a01990d0e18ce6e570230e54f3b202"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::subscription::get_subscription_quota (cognitive 26): cc_switch::services::subscription::get_subscription_quota has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (21 pts), match/switch 3 (5 pts) (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"088def44515570aa6dca753d9888d966887e0dbedc823632717e9df9396073b9"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::workbuddy_account::quota::parse_packages (cognitive 26): cc_switch::services::workbuddy_account::quota::parse_packages has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/quota.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bad1fffa0d972be60ae092dfc78753acb28580c93dd3e5bd142ed454af43e5"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::pi::read_tree_with_status (cognitive 26): cc_switch::session_manager::providers::pi::read_tree_with_status has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 2, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/pi.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ef4956a82e2686eb8eeaeaae47be36896eff51c1e62d24c315bfaebc5deaaa"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiAccountLogin.KimiAccountLogin (cognitive 26): KimiAccountLogin.KimiAccountLogin has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 14 (17 pts), if/else 5, boolean chains 4 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 12 belong to 5 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/KimiAccountLogin.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f526d235849c708818561a14a31fe40b242051bd411b76aede24a9634928c646"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderPresetSelector.PresetPicker (cognitive 26): ProviderPresetSelector.PresetPicker has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, ternaries 6 (10 pts), if/else 4, loops 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 10 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51bc748ac49a1acb46b803e64641d4a65b8dbaa32039c1839d09a9469dfe978"}},{"ruleId":"D2","level":"warning","message":{"text":"useBaseUrlState.useBaseUrlState (cognitive 26): useBaseUrlState.useBaseUrlState has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, boolean chains 7, ternaries 5, error handling 2. None of this is in the body itself: all 26 points belong to 6 function literals inside it that branch (lines 69, 100, 88, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7406ce4c7825824cd92c0adb87ec0d17d4179fff4d9004f07f5a11464a2ff06f"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeDesktopProviderForm.ClaudeDesktopProviderForm (cognitive 26): ClaudeDesktopProviderForm.ClaudeDesktopProviderForm has cognitive complexity 26 (threshold 15). Drivers by points: if/else 40 (57 pts), boolean chains 51, ternaries 25 (33 pts), error handling 2, loops 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels, ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"922fa81a6e5aa06e40b5837a51e9758a52fa112136baf3736b85ae8b3407ab88"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeOfficialSection.ClaudeOfficialSection (cognitive 26): ClaudeOfficialSection.ClaudeOfficialSection has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (13 pts), if/else 7 (9 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 191, confirmRemove). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccadd644c300072fe00e37ff0aa9726da2f4fcf51473517b5507ca6e3d63d59d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStepDetails.BlockText (cognitive 26): SessionStepDetails.BlockText has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 17, ternaries 5, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c56487b52b9c2d294be762c1c8d5ae6839940f64b5cb5094627e30a664e84d7"}},{"ruleId":"D2","level":"warning","message":{"text":"useDirectorySettings.useDirectorySettings (cognitive 26): useDirectorySettings.useDirectorySettings has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (9 pts), loops 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 4). None of this is in the body itself: all 26 points belong to 4 function literals inside it that branch (lines 193, 300, 330, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"857d2f999b475d0017691cab383476c33a4d0d5eca72898a0efb4b0b469afa9f"}},{"ruleId":"D2","level":"warning","message":{"text":"DotenvPatch::apply (cognitive 25): DotenvPatch::apply has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/dotenv.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55f252098d818eea88e7889b4587439cf2fe141cfe257fee16187371621a63a"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestForwarder::validate_responses_stream_start (cognitive 25): RequestForwarder::validate_responses_stream_start has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a8772461d1445b5e518870db9449ac188ef4560c8a1fa3ded6692ee190bc75"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::process_line (cognitive 25): RolloutParser::process_line has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 2 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c6bf6aed09bb099010388dbd4651da9991e119435ac7f8f40626b874ecca8d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::dsh_config::get_providers_from (cognitive 25): cc_switch::dsh_config::get_providers_from has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 3 (7 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5afb2bab50133017166b0c3a162cb9cb662a104d686e7d8012923d581aa394"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::jsonc_document::merge_rt_value (cognitive 25): cc_switch::jsonc_document::merge_rt_value has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 5 (10 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"24769e02462494536619ec388fde910a82b44b6bc86faf8c005e15e5cd02b556"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::kimi_config::apply_provider_unchecked (cognitive 25): cc_switch::kimi_config::apply_provider_unchecked has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd07c50f56358cdbd92dd698f3d9441478179de1333b7ec427605dbb4a1ad5e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::hermes::convert_from_hermes_format (cognitive 25): cc_switch::mcp::hermes::convert_from_hermes_format has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4437543da2de18447028d5710ecd193444b31dd88c7a8ed4364acebe1b2faeb"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::append_sanitized_tool_result_value (cognitive 25): cc_switch::proxy::providers::transform_codex_anthropic::append_sanitized_tool_result_value has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15c0e29402e7a9397f4e5f74b5c3a3a623d203464aa659c5866715266ce7cb2"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::live::import_opencode_providers_from_live (cognitive 25): cc_switch::services::provider::live::import_opencode_providers_from_live has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 3 (8 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1932129b1b57b545d1ad1b750bcebd9cb0540e8afb70fe48b8fa5690c2442cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::live::import_openclaw_providers_from_live (cognitive 25): cc_switch::services::provider::live::import_openclaw_providers_from_live has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f4281a769855d680a31b098a35df473e2524de5793611eb061a48aa978ae07"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_grokbuild::read_capped_jsonl_line (cognitive 25): cc_switch::services::session_usage_grokbuild::read_capped_jsonl_line has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3f75a2aa55fe1dad1782c9f10dc4f2923b7567a79b384988e8b31241639f3c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_kimi::sync_sessions (cognitive 25): cc_switch::services::session_usage_kimi::sync_sessions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_kimi.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"369493a3bc7b59eddaf75616d89f2b733d4b988ad7a7f4dd717a5099210b6a53"}},{"ruleId":"D2","level":"warning","message":{"text":"OmoFormFields.mergeCustomModelsIntoStore (cognitive 25): OmoFormFields.mergeCustomModelsIntoStore has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, ternaries 1 (3 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d298b0c3c3f3273a50de3652755e4342d05b9b2c69300a1b05eb5371cd095a54"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderForm.normalizeCodexCatalogModelsForSave (cognitive 25): ProviderForm.normalizeCodexCatalogModelsForSave has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 6, if/else 1 (2 pts), loops 1 (nesting depth added 9). Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"001536fcee9d4989e9cdcfd898102c5d159bc36de908ed5be8958218235875dc"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionMarkdown.renderNode (cognitive 25): SessionMarkdown.renderNode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 5 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"7782a1a3b43ecc27c57321711b98339f69ecaf702e76e3d7350888b6dee83f93"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.AppNavItem (cognitive 25): Sidebar.AppNavItem has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 11 (20 pts), boolean chains 4, if/else 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"3685e949f0dede9e6bc071c12afd2d0a55a44d4945e506c20dc674866e382987"}},{"ruleId":"D2","level":"warning","message":{"text":"windowActivity.initializeWindowActivity (cognitive 25): windowActivity.initializeWindowActivity has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, error handling 3 (5 pts), ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 67, 111, 102, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/windowActivity.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2389a14bc57d70e46d088ad5a6027fdbecf80fdd89f1a4446c34d72ace583987"}},{"ruleId":"D2","level":"warning","message":{"text":"routingReason.getRoutingReason (cognitive 25): routingReason.getRoutingReason has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 14, if/else 10 (11 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/routingReason.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a410c22fd39cbd242a71e2cb73dde0124c564c38d859f095a38fc24ceb22e6"}},{"ruleId":"D2","level":"warning","message":{"text":"TomlPatch::apply_to (cognitive 24): TomlPatch::apply_to has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 6 (7 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/toml.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc4fcd720139244abd5deef6450a6ebb0210640c592577fbe772038461b6edc"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexOAuthManager::add_account_internal (cognitive 24): CodexOAuthManager::add_account_internal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 3 (5 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"224e0da1b70b64887935a61d50b8b4214471b8a1372ba3039cbb28e1b5afecd9"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::sync_to_app_unlocked (cognitive 24): SkillService::sync_to_app_unlocked has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":3290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30d204341af54f5e8a0d7d569cffda550f502a3b2a5ab7b1f08740154b68572"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::claude_desktop_config::normalize_mimo_anthropic_thinking_history (cognitive 24): cc_switch::claude_desktop_config::normalize_mimo_anthropic_thinking_history has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afcff90918591ea005c1bf611c85e54d9093ed9dd11a463f2384312dc96d995"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::markdown_reference_definitions (cognitive 24): cc_switch::proxy::providers::transform_responses::markdown_reference_definitions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (22 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"26163dbe348cf275f1aa6c04c8b59850908fc63799b3b4936bfad37311e6f9f3"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::markdown_reference_uses (cognitive 24): cc_switch::proxy::providers::transform_responses::markdown_reference_uses has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28c72fe8b2c06dd6d63332e59fdc4fc31423318295ebc2e65ce6a6fd0347e36"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::subscription::query_gemini_quota (cognitive 24): cc_switch::services::subscription::query_gemini_quota has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 7, boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5d525cdf78487a53e10ae557c99b1688c712e1feaa2c5a7a58dc52d395053f"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray::update_problem_indicator (cognitive 24): cc_switch::tray::update_problem_indicator has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (24 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":2760}}}],"partialFingerprints":{"codehealthFindingId/v1":"821ad3c23585d2265ff5034cc74ebe66ab30b623688000795282dc2a8bf2e24c"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillImportDialog.SkillImportDialog (cognitive 24): SkillImportDialog.SkillImportDialog has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, loops 3 (4 pts) (nesting depth added 4). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 48, a function literal at line 89, foundLabel, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillImportDialog.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"24da8b6140a153968984aa57da7f567a3f97b12b5e60328577b17d70f9b9a23c"}},{"ruleId":"D2","level":"warning","message":{"text":"useSettings.useSettings.autoSaveSettings (cognitive 24): useSettings.useSettings.autoSaveSettings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 5 (7 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"54304a55915d1de951cbd226410e9beedd977bb81c2e49b08596e3a980f996ec"}},{"ruleId":"D2","level":"warning","message":{"text":"index.getInitialLanguage (cognitive 24): index.getInitialLanguage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 8, error handling 1 (2 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e6384d5afec6e7a0c9c863ee3246d55ec8cb65f0777d807a7cd44554957f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokConfigPatch::apply_to (cognitive 23): GrokConfigPatch::apply_to has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/grok.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c2397de317367e4472467014e09e0a31de148655a7a1560c34220dca07f9bb"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicToResponsesState::close_block (cognitive 23): AnthropicToResponsesState::close_block has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (22 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfddc880f32cee7379eade75941306fd192846e150b38786be1536daa0e0c9c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgyAccountManager::read_live (cognitive 23): AgyAccountManager::read_live has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cccf2098b8da58893062d2fc5e0ac5e81b3e3a7cc680f6edeb6ae454a2c26a8"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::toggle_app (cognitive 23): SkillService::toggle_app has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b5b6defc2e1c122664ee333b1ce865b785d53caeb7239557101dd75105a187"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptBuilder::backfill_call (cognitive 23): TranscriptBuilder::backfill_call has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f5d5cd135d8d405c9c3f72141dedafaa94a8ccfa6c2354e18cca30f2da15dc"}},{"ruleId":"D2","level":"warning","message":{"text":"OutputInfo::from_contents (cognitive 23): OutputInfo::from_contents has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 3 (6 pts), loops 1 (2 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67ee0f95fcbf12a51b2ce2d2063780e60848ec3a27d5e494530c5c41f979576"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::hermes::convert_to_hermes_format (cognitive 23): cc_switch::mcp::hermes::convert_to_hermes_format has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dc808099bd212e9d1a6eccafcc440cea8d8a3216bd10fc1cc5634df8f8bcdb"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::pi_config::resolve_usage_api_key_with (cognitive 23): cc_switch::pi_config::resolve_usage_api_key_with has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 4 (13 pts), if/else 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"991de08d9648c5a10374d9287960f30d858ad57c2668918d6e00aaa4ee52316b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::claude::transform_claude_request_for_api_format (cognitive 23): cc_switch::proxy::providers::claude::transform_claude_request_for_api_format has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"73951d6a494f6e45422af952153e67887e436dfc3918b804a808dc95b9f84c9e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::drop_incomplete_tool_turns (cognitive 23): cc_switch::proxy::providers::transform_codex_anthropic::drop_incomplete_tool_turns has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fbfe9ccf9593c46964fab1de9dd84f27f8b4054d0703d1cbbb21352f76a550"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::env_checker::check_shell_configs (cognitive 23): cc_switch::services::env_checker::check_shell_configs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/env_checker.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc62f3ceee5326ea014ab82c945677e0f16ff963ef3b603804914d72d190e82"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::live::write_live_snapshot (cognitive 23): cc_switch::services::provider::live::write_live_snapshot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 3 (5 pts), boolean chains 4 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c9fd3dbe2e9fc64dc3fd72656e15fff99289ecdce641a0bea1ebfee4327ced"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_dsh::sync_dsh_usage_from (cognitive 23): cc_switch::services::session_usage_dsh::sync_dsh_usage_from has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), match/switch 1 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_dsh.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaeca65aff7e628bc5fd6fdf12f500e226858b6c16964a86a9cee5e2cf46e7e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_opencode::sync_opencode_usage (cognitive 23): cc_switch::services::session_usage_opencode::sync_opencode_usage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_opencode.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bf04e54af73513d0344bf6ad80f7708a9c7fc7580afdf57846d06d8c827c93"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::search_revision::revision (cognitive 23): cc_switch::session_manager::search_revision::revision has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), match/switch 2 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/search_revision.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"433dc1cec090a565b1a0bae063a367dc1d1dd25ab3371f4476e672b5a26f2e12"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray::handle_profile_tray_event (cognitive 23): cc_switch::tray::handle_profile_tray_event has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":3087}}}],"partialFingerprints":{"codehealthFindingId/v1":"329a98e1afc41cc554880dcfe9a323c3331057b0da9a73cfcf0b1b41371d7ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray::refresh_panel_provider_usage (cognitive 23): cc_switch::tray::refresh_panel_provider_usage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":3509}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5eef5963d041acb35e43bd1ae54c178a2b15df023917f9768de432e7af81d55"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionQuotaFooter.SubscriptionQuotaView (cognitive 23): SubscriptionQuotaFooter.SubscriptionQuotaView has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 4 (8 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f284faf8fd51b9ded7a8d2944f5419a543490f89aa477c52467e73f36d84b3"}},{"ruleId":"D2","level":"warning","message":{"text":"useGeminiConfigState.useGeminiConfigState (cognitive 23): useGeminiConfigState.useGeminiConfigState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, error handling 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 23 points belong to 2 function literals inside it that branch (lines 106, 79). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useGeminiConfigState.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"003126c06bc1cc668c6c253f76e1d1cf779f59dfbe4cd0ad0ea86cd19db28477"}},{"ruleId":"D2","level":"warning","message":{"text":"OmoFormFields.OmoFormFields::handleFillAllRecommended (cognitive 23): OmoFormFields.OmoFormFields::handleFillAllRecommended has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 3 other methods here (OmoFormFields.OmoFormFields::handleModelChange, OmoFormFields.OmoFormFields::handleAdvancedChange, OmoFormFields.OmoFormFields::renderCustomModelRow) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f411261d722007c920e8977f17d66a0a54808531f4a4bf6bf3f6c3da1b1a80"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingConfigPanel.PricingConfigPanel (cognitive 23): PricingConfigPanel.PricingConfigPanel has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (11 pts), boolean chains 6, if/else 6 (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b354f59fb12af05e3f3189db6bd146ea0b0a959a9171012aae5830326a6e54f6"}},{"ruleId":"D2","level":"warning","message":{"text":"useProviderActions.useProviderActions.switchProvider (cognitive 23): useProviderActions.useProviderActions.switchProvider has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 3 (4 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProviderActions.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e8fe9577a2d01acdd39c15dc2de268602555ff5ecedd6bc963c12105528545"}},{"ruleId":"D2","level":"warning","message":{"text":"version.comparePre (cognitive 23): version.comparePre has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/version.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a136fd3aef243fda0f5f81f8131339ef30650fd185570d0fa395af98c4fd4bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemIds::rewrite_event (cognitive 22): ItemIds::rewrite_event has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_responses.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cd6ca269045ad572f71662eba967deb5b6e9a1c98fb566f584e2db553d9fea"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptService::enable_prompt (cognitive 22): PromptService::enable_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/prompt.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fde4cd5ce38d03273b82ced39154b54d9af424efc03bafa45dacd6f6020eff"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::save_native_provider (cognitive 22): ProviderService::save_native_provider has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":5680}}}],"partialFingerprints":{"codehealthFindingId/v1":"11df1e6f796bced2631a97fcdfa3417bc3158a93b9d6c6de38ece445485a3257"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::scrub_leaked_gemini_common_config (cognitive 22): ProviderService::scrub_leaked_gemini_common_config has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 3, match/switch 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7923}}}],"partialFingerprints":{"codehealthFindingId/v1":"930da25b938d1726c02605e6515b8602f7ac2b069ed52aa9bbd2c67a7ef05d87"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::extract_repo_archive (cognitive 22): SkillService::extract_repo_archive has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4308}}}],"partialFingerprints":{"codehealthFindingId/v1":"af99f09412da824895fa5b7a7d1e5264d3d039c5c692a56e307d85090754960b"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::on_user_message (cognitive 22): RolloutParser::on_user_message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dcbb7180f1c4a68b8d58c9cfbe11a478d990f040f064317d47bf7985c3a1c4"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::finish (cognitive 22): RolloutParser::finish has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d59fa380d2a43c98f33d9f5016879f30b34627a893d39f86791b8636952bb4b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::omp_config::has_yaml_reference_tokens (cognitive 22): cc_switch::omp_config::has_yaml_reference_tokens has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca23fe814499575af6fbe38aa4e96a83d70d017d2e829917214b03b79fe4e960"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::copilot_optimizer::sanitize_orphan_tool_results (cognitive 22): cc_switch::proxy::copilot_optimizer::sanitize_orphan_tool_results has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbe2a5dd96a56966d28a4cc1a4c3e9e6d156ae269bcaaffaf5635f6a450b4fd"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::gemini_schema::normalize_json_schema (cognitive 22): cc_switch::proxy::providers::gemini_schema::normalize_json_schema has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 4 (10 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/gemini_schema.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3490a5f288ad541191ded6e1e562f9de59138378c792131b5d0ee459a23971"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::gemini_schema::object_requires_parameters_json_schema (cognitive 22): cc_switch::proxy::providers::gemini_schema::object_requires_parameters_json_schema has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/gemini_schema.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba0fda27277ebf849bc4127c40db9eef21a245429508719e4c2f46af5d3a699"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_kimi_history::repair_tool_history (cognitive 22): cc_switch::proxy::providers::transform_codex_responses_kimi_history::repair_tool_history has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_kimi_history.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb9397505201e752b1a6d9f670c3e4ce2b11635aada180d6a2191109aa5a28b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::promote_additional_tools (cognitive 22): cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::promote_additional_tools has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (7 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce26c8af6628295243990fabff64105680b2fa91c9342022b956167a2ae09292"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::markdown_link_syntax_mask (cognitive 22): cc_switch::proxy::providers::transform_responses::markdown_link_syntax_mask has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9bab7f90992ba96252d4ce66caa2dae5ecf64362cbdaa6efb0b6890fd19f70"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_direct::run_with_edits (cognitive 22): cc_switch::services::provider::codex_direct::run_with_edits has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, match/switch 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"574b1e244ddf0472fc0d8def774ed9cce3e7d3a1f3b3077d6645db924af46523"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_grokbuild::insert_grok_session_entry (cognitive 22): cc_switch::services::session_usage_grokbuild::insert_grok_session_entry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b0a651a165d79c0ce79f1ebf1e169d4eb3392b78aeda01f203a1f84e40039a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::opencode::delete_session_sqlite (cognitive 22): cc_switch::session_manager::providers::opencode::delete_session_sqlite has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"455b0481a594c4b6c7be7b7a1d36369c4a42762be3c91ae6eeccbc89662c0b18"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderIcon.ProviderIcon (cognitive 22): ProviderIcon.ProviderIcon has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4 (6 pts), boolean chains 5 (nesting depth added 3). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 94, 54, 66, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ProviderIcon.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"31838677ad99261af4c1c306fb60aaeb44d6ae64dd126f03b579664df92bc0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"ManualUninstallDialog.ManualUninstallDialog (cognitive 22): ManualUninstallDialog.ManualUninstallDialog has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 6, if/else 3, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 4 function items inside it that branch (environmentLabelForTool, environmentForTool, a function literal at line 167, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ManualUninstallDialog.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0095053392226cda7c51e54dd230d0d26e193b0633de485d9158be862d91bd3"}},{"ruleId":"D2","level":"warning","message":{"text":"AppMatrix.MatrixColumnHeader (cognitive 22): AppMatrix.MatrixColumnHeader has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, ternaries 8 (9 pts), if/else 2 (nesting depth added 1). Of this number, 19 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/AppMatrix.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"601933380e4537a02f524db520b3fde25a4210873dd4c4006b7b2b9b69ac799b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenClawFormFields.OpenClawFormFields (cognitive 22): OpenClawFormFields.OpenClawFormFields has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9, ternaries 6 (7 pts), boolean chains 5, loops 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 196, a function literal at line 355, a function literal at line 83, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"998ff5c9a07ed7c26e38ebc777167ada467b22d86f95e98360cdc2dd3fe99bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkBuddyOfficialSection.WorkBuddyOfficialSection (cognitive 22): WorkBuddyOfficialSection.WorkBuddyOfficialSection has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, ternaries 8 (9 pts), if/else 3 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 7 belong to 5 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyOfficialSection.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f3009cc200eb43e20f36733e702c18b014e337bf49791af7f8bf22332a826f"}},{"ruleId":"D2","level":"warning","message":{"text":"format.formatTokensShort (cognitive 22): format.formatTokensShort has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"202cac58908ab9fcc678dcc5cb72622950399c5f79c88a76091d5b68da4a9828"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatToResponsesState::handle_chat_chunk (cognitive 21): ChatToResponsesState::handle_chat_chunk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcded642964284e65226da3386918954f902e6199e6bcff3606f1f1550dcb55"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::resolve_symlinks_in_dir (cognitive 21): SkillService::resolve_symlinks_in_dir has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 4 (10 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4625}}}],"partialFingerprints":{"codehealthFindingId/v1":"918ea134053bcec4a30562ecedfd962a221472e3e7c7ef9d0cc40ab6ef2e8060"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::initialize_common_config_snippets (cognitive 21): cc_switch::initialize_common_config_snippets has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2e18a1a6763ffe816bc7db5eae5125d6793113096f3572b75c57690d916e85"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::claude_mcp::upsert_mcp_server (cognitive 21): cc_switch::claude_mcp::upsert_mcp_server has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b02526508dae1f06b2fb17f0bd2287a9fffb02c0fb8b58b14e69bd91e267d1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::try_get_version (cognitive 21): cc_switch::commands::misc::try_get_version has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"492b05bdb11f10c2d238f18673cb1bf78e6314c9f10aa98e623d728a0b6e9660"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::probe_path_default_version (cognitive 21): cc_switch::commands::misc::probe_path_default_version has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 2 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"110148e4a5a1cbcf8258c9c824f40802a5e8f7c13a9edbd2b69634fb6ec62a8b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::responses_late_arguments::create_late_arguments_repair_stream (cognitive 21): cc_switch::proxy::providers::responses_late_arguments::create_late_arguments_repair_stream has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/responses_late_arguments.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7124bdf13202e7665aa3be42cd00c727e5384786d0100dfc56934b9b84f294cc"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::anthropic_response_to_responses_with_context (cognitive 21): cc_switch::proxy::providers::transform_codex_anthropic::anthropic_response_to_responses_with_context has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3385802475e27d2880884e1e41c27061775dba88fd1916302477c8c0afb30cff"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::thinking_rectifier::should_rectify_thinking_signature (cognitive 21): cc_switch::proxy::thinking_rectifier::should_rectify_thinking_signature has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 10. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/thinking_rectifier.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7399542dbc6a756de86e4546f1848bcea6123bd5a33fbe91fb95eca76df34b2"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::thinking_rectifier::rectify_anthropic_request (cognitive 21): cc_switch::proxy::thinking_rectifier::rectify_anthropic_request has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 3 (6 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/thinking_rectifier.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e1fa62081ebf00a5d33e89939f101c892b699ff0ab30616f20edab418798a5"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::coding_plan::query_kimi_at (cognitive 21): cc_switch::services::coding_plan::query_kimi_at has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 3, loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1825fa0f70dfffb4f448311bf0d90855841722da10345b93903c38eaf27bf544"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::live::import_hermes_providers_from_live (cognitive 21): cc_switch::services::provider::live::import_hermes_providers_from_live has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae3c4a3cf1ec2550f2982863a9d731b2e5594c017a70100a483a15ebaff8ce0"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_pi::parse_usage_record (cognitive 21): cc_switch::services::session_usage_pi::parse_usage_record has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"7254cbf9ec2e2974136ab5a270bc2c502fd40804da91beec6e94e26dc0cb8321"}},{"ruleId":"D2","level":"warning","message":{"text":"useOpenClawModelOptions.useOpenClawModelOptions.options (cognitive 21): useOpenClawModelOptions.useOpenClawModelOptions.options has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/hooks/useOpenClawModelOptions.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"565eb9d9312f1d8eaabec144622e8eae5741fd180e1d21442915ed3fdf8267c8"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenTerminalDialog.OpenTerminalDialog (cognitive 21): OpenTerminalDialog.OpenTerminalDialog has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 5, ternaries 4, error handling 2. Of this number, 11 points are the body\u0027s own statements and 10 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4ce2475a841f6c8152553c241d87406a19db4bf179974e089da01e298b65e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels (cognitive 21): ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleFetchManagedModels has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (ClaudeDesktopProviderForm.ClaudeDesktopProviderForm, ClaudeDesktopProviderForm.ClaudeDesktopProviderForm::handleSubmit) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a9bf137101d897199bb04370998d29c95a3841e49753405b6844beaa7a8033"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.MainDirectory (cognitive 21): Sidebar.MainDirectory has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12 (16 pts), boolean chains 4, match/switch 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (todayValue, isGlobalSelected, a function literal at line 312). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdd2d0cad814e766d63da1f0c04bed4d416e662189e7a76db4dcd59ef087bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsStorageSheet.SkillsStorageSheet (cognitive 21): SkillsStorageSheet.SkillsStorageSheet has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 3, error handling 2. Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 6 function items inside it that branch (doMigrate, handleMove, handleOpenFolder, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsStorageSheet.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e8c466dc013eb4d5efb2364446a975dcf7d15116b29ec5e1ba101bc4886b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.setApiKeyInConfig (cognitive 21): providerConfigUtils.setApiKeyInConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"99906819d098a2f1b3f9d9df0bef3ca8f12db1c03d4180114915aaaa0fbe7659"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMapping::map_model (cognitive 20): ModelMapping::map_model has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (20 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/model_mapper.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ef1c308299a53cff6dbd918f2d46294f8a6c64ebac5421967379a5b6e89185"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderRouter::select_providers_with_current (cognitive 20): ProviderRouter::select_providers_with_current has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/provider_router.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"17befd467c7c43a9cddfa6d1518ded9d7b1a2fb2c8e682ae4f5d08e0c579f71d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::extract_codex_common_config (cognitive 20): ProviderService::extract_codex_common_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7765}}}],"partialFingerprints":{"codehealthFindingId/v1":"254b4c2aea1dcbfd343715c29a28306ab9137376090f3f04642807eb39ba734b"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::scan_unmanaged (cognitive 20): SkillService::scan_unmanaged has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2516}}}],"partialFingerprints":{"codehealthFindingId/v1":"321ced1b892626bddc41d439fd585b0b5270dbc495badc1555330b21ca060c24"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::tool_action_shell_command_for_shell (cognitive 20): cc_switch::commands::misc::tool_action_shell_command_for_shell has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (13 pts), if/else 5 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc175700c7427bb388d54e0342403ba8469e42745031c186a55cee866b5b9d90"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::extract_env_vars_from_config (cognitive 20): cc_switch::commands::misc::extract_env_vars_from_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":5424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad44a994c2054c64f4b9b2ca8acb72db3da867bffe0921be2a7bd420f7e5eee"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::dsh_config::splice_patch (cognitive 20): cc_switch::dsh_config::splice_patch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"300e93f908e8a9ce9d709210787aef4a7bac9f62cd7c097a8bd10d34574a1299"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::dsh_config::native_provider (cognitive 20): cc_switch::dsh_config::native_provider has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c04cc230c9b20a885842cbc399f384752196c83c03b894481e7389f14ef6a11"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::kimi_config::validate_provider (cognitive 20): cc_switch::kimi_config::validate_provider has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcdf4815b4f0be92365f66bd58d7696642ca383eb2f558acf61024ae8b1de96"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::linux_fix::pseudo_resize_logical (cognitive 20): cc_switch::linux_fix::pseudo_resize_logical has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/linux_fix.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd39c9e8d0f9054fc9087df9763d70a0c6e88dbd469f35b34b20d173982e830"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::opencode::convert_to_opencode_format (cognitive 20): cc_switch::mcp::opencode::convert_to_opencode_format has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/opencode.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef398f1caecc60703e2262f55fce359f5d103e7b4dab036209c1f66b6e4d2408"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mode::controller::startup_app (cognitive 20): cc_switch::mode::controller::startup_app has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/controller.rs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e58b5a60d9d1c7f7cc0c535ebd5d162f515e21fe6f1f5c0b905c0938ba10d08"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::privacy_filter::pii::detect (cognitive 20): cc_switch::proxy::privacy_filter::pii::detect has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/privacy_filter/pii.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7b5c47bfeae10f99dc09eb3d32f22d25d00b6918699049de5ef68a7ca428c7"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_codex_anthropic::responses_sse_events_from_anthropic_message (cognitive 20): cc_switch::proxy::providers::streaming_codex_anthropic::responses_sse_events_from_anthropic_message has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"303b6ef16711d727720b745b4770472bcab60cf8bd838de511deaac374f6c903"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_responses::order_anthropic_web_search_result_stream (cognitive 20): cc_switch::proxy::providers::streaming_responses::order_anthropic_web_search_result_stream has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5cd6a50e017f370afc862d9b805ca68cc8b28778792d19d73a398815672ffc"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::kimi_oauth::account::identify_accounts (cognitive 20): cc_switch::services::kimi_oauth::account::identify_accounts has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/account.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7b9f1df428baa3d11c26b674fc1c5558749e9bdf927e2033a944c5fa28ec9e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::claude_editor::inactive_fields (cognitive 20): cc_switch::services::provider::claude_editor::inactive_fields has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/claude_editor.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02e856bdef6be5e5447ed4c83059c733c1096b66c0bf9d4c8ef9377a22863a6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::subscription_grok::scan_protobuf (cognitive 20): cc_switch::services::subscription_grok::scan_protobuf has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 3 (9 pts), loops 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription_grok.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"929c3c2dc121baf0927b682e408ecfcc34c495a2806b5423bd8ace545dd9db39"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::content::resolve_content_ref (cognitive 20): cc_switch::session_manager::content::resolve_content_ref has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/content.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1305c640e1e9a9e3e113dbc1b8757982a4076e82bb003d7772d3a857413d23ee"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::gemini::parse_session_document (cognitive 20): cc_switch::session_manager::providers::gemini::parse_session_document has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/gemini.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68a98f4dbdec82b75055c36aea24bc2ac24b9150b539729f9cc23d7630ac0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::hermes::scan_sessions_sqlite_at_with_status (cognitive 20): cc_switch::session_manager::providers::hermes::scan_sessions_sqlite_at_with_status has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d823071fb83b27707ce30285fe38bfd1dc121ee44e431f481b8933b2cdde95e0"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::workbuddy::usage_files (cognitive 20): cc_switch::session_manager::providers::workbuddy::usage_files has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/workbuddy.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e229c3e78ae8dc859ec2a746b09ccd6b89f7cf9eb7f3914cf77c0dc7526a16"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepLinkImportDialog.DeepLinkImportDialog::handleImport (cognitive 20): DeepLinkImportDialog.DeepLinkImportDialog::handleImport has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (DeepLinkImportDialog.DeepLinkImportDialog) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e466a8a3f88aad611e1aa1e251b690f61963c16addaedd36a5e6e213e16fd324"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolUninstallConfirmDialog.ToolUninstallConfirmDialog (cognitive 20): ToolUninstallConfirmDialog.ToolUninstallConfirmDialog has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 14, if/else 3, ternaries 2 (3 pts) (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ToolUninstallConfirmDialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3134a0864c4d75934cbfdf89cf25f253eef34ebd43b3d1fca9eaa7c661b0597a"}},{"ruleId":"D2","level":"warning","message":{"text":"OmoFormFields.OmoFormFields::handleAdvancedChange (cognitive 20): OmoFormFields.OmoFormFields::handleAdvancedChange has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 4 (5 pts), boolean chains 4, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (OmoFormFields.OmoFormFields::handleModelChange, OmoFormFields.OmoFormFields::handleFillAllRecommended, OmoFormFields.OmoFormFields::renderCustomModelRow) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0895ec0e025ffb5a68c02938dacbd2a1aa4cd9e979ae76859b5e29cedd5c550"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageHeatmap.UsageHeatmap (cognitive 20): UsageHeatmap.UsageHeatmap has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 6, if/else 1, loops 1 (nesting depth added 5). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 383, showTooltip, a function literal at line 280, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee0948c90789b4f0e8961afd0d19f6bee6a1595759a80cf9e0b1f2a524631ab"}},{"ruleId":"D2","level":"warning","message":{"text":"modelMetadata.indexModelsDev (cognitive 20): modelMetadata.indexModelsDev has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"62437e3df88dd119f4cba2453428c98959c2fcb5ce336f61523fd90368f5b42c"}},{"ruleId":"D2","level":"warning","message":{"text":"Database::migrate_v5_to_v6 (cognitive 19): Database::migrate_v5_to_v6 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45aee239a3bc017d070b5cefbc37c09d4be3b77cef6bddfb423d513e1a4acec"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexOAuthManager::resolve_valid_cached_token_under_lock (cognitive 19): CodexOAuthManager::resolve_valid_cached_token_under_lock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61de0a598afc99db895959b9ad11a2542da31ffd94c021e7fba3faa38ae36c3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkBuddyAccountManager::read_live (cognitive 19): WorkBuddyAccountManager::read_live has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 4 (6 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/mod.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d98e0077adde683f8fcc5ff40bf58f441577719add49a603492c4c04db8955"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptBuilder::push_user_texts (cognitive 19): TranscriptBuilder::push_user_texts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"badeb1cffb8ffe718d04aad0458ca84a4c008e2aa3398b05c52be2f13ef17c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::response_item (cognitive 19): RolloutParser::response_item has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"170e4b678820122c81301b5f186fc56f43e6abe1b4ec0b2f5e6a84e6693693f8"}},{"ruleId":"D2","level":"warning","message":{"text":"PiTranscript::tool_result_message (cognitive 19): PiTranscript::tool_result_message has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (5 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/pi_blocks.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"50247b06b5a657d7f485a39cfe94be54b220fd5f0b7b2c6d33b8d725f0af853a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::tool_uninstall::grok_installer_files (cognitive 19): cc_switch::commands::tool_uninstall::grok_installer_files has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/tool_uninstall.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc7784860312db17cad89ed7ad3adac5442947679a5763f6f6f3444fce323d5"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::dsh_config::validate_provider (cognitive 19): cc_switch::dsh_config::validate_provider has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"72139f6b12ce2cf6c4649cc3c23244e9ce72f82a308974c3715597b27b4125aa"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::classifier_guard::classifier_retry_loop (cognitive 19): cc_switch::proxy::classifier_guard::classifier_retry_loop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/classifier_guard.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5151160873d2b7eab116ebe9825c228a8e2d9f046493d76d61b95b717f079371"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::handlers::responses_sse_to_response_value (cognitive 19): cc_switch::proxy::handlers::responses_sse_to_response_value has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 2, match/switch 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":2788}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed7d43ccc2d8a24f9ccc23d340ee67fde98dc4ff8a81a484a015c72973638a9"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::media_sanitizer::strip_non_image_media_blocks (cognitive 19): cc_switch::proxy::media_sanitizer::strip_non_image_media_blocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/media_sanitizer.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc39c415c938d6ba77dd5647e26e19273e52e884af48af39112ad40a522052e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::codex_chat_common::extract_reasoning_field_text (cognitive 19): cc_switch::proxy::providers::codex_chat_common::extract_reasoning_field_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_common.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1578dc78506686ea4d91fc7ce9c4a5722ae537e40034edd59936678d80b230c6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_namespace::namespace_restore_map (cognitive 19): cc_switch::proxy::providers::transform_codex_responses_namespace::namespace_restore_map has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba2abc79ced88a1e8f0af2a3e9fbe5a38b8d7e8a0b723adc3430ed171ffb15"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::gemini_to_anthropic_with_shadow_and_hints (cognitive 19): cc_switch::proxy::providers::transform_gemini::gemini_to_anthropic_with_shadow_and_hints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"547a6661ea0a4b15f995b285d96cdda4ae29142748addf776ff0c735154d7252"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::merge_web_search_result_metadata (cognitive 19): cc_switch::proxy::providers::transform_responses::merge_web_search_result_metadata has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddfd578a2d74ca7ee37029ae38ae7b12fa1a85e8190bcc349b76eb1e49271c0"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::build_anthropic_usage_from_responses (cognitive 19): cc_switch::proxy::providers::transform_responses::build_anthropic_usage_from_responses has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d40c16e16fdfaf3247f0c2275f60ba31e07b0ca0480b1e76c3ef36f58b1dacd"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_direct::row_facts (cognitive 19): cc_switch::services::provider::codex_direct::row_facts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"992d50cb0596e9ce527ac41b64d18904bba3bcfe1a238b8e0ed2960c17b05a35"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::live::read_live_settings (cognitive 19): cc_switch::services::provider::live::read_live_settings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36c848d2f632babc40919567e61ba9db3392f8bf7265a2dab044f1a130e8859"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::hermes::messages_from_rows (cognitive 19): cc_switch::session_manager::providers::hermes::messages_from_rows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d450c198a603f33d8504bc10d77786ced3745c200daa65a47d889ff1d63322c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray::refresh_all_usage_in_tray (cognitive 19): cc_switch::tray::refresh_all_usage_in_tray has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (7 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":3391}}}],"partialFingerprints":{"codehealthFindingId/v1":"166e49b825d436e1c4fa53b2c1f6223265872c32e7bb3bfb17499ab8cb26ba13"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray_panel::platform::apply (cognitive 19): cc_switch::tray_panel::platform::apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray_panel.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbd06ab7a4152948c83048bae7f31f6107bcb84dd0630e61f12dd3d1f141b40"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageFooter.UsageFooter (cognitive 19): UsageFooter.UsageFooter has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 2 (3 pts) (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"71910f826e49a3100606ed70a3a24f42dd36262a3ee6f45de2d5ad3ef9b3b3f0"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageScriptModal.isOfficialSubscriptionProvider (cognitive 19): UsageScriptModal.isOfficialSubscriptionProvider has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 5, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01807a24567b8d48809d0cb5fbe15029369e66c3e7ba21174be51715d6c65ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderCard.isOfficialProvider (cognitive 19): ProviderCard.isOfficialProvider has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 6, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"88db548b13449675a7308d1d1fa2a2c25a3df9401d600546eafe50b365eec987"}},{"ruleId":"D2","level":"warning","message":{"text":"useOmoModelSource.useOmoModelSource (cognitive 19): useOmoModelSource.useOmoModelSource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 19 points belong to 4 function literals inside it that branch (lines 264, 302, 94, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOmoModelSource.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6b16845372104784bc3aa54c1e9e394725bc64752c3283fe621af7e8fe5b5c"}},{"ruleId":"D2","level":"warning","message":{"text":"modelMetadataFill.piCompletionsThinking (cognitive 19): modelMetadataFill.piCompletionsThinking has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (17 pts), boolean chains 2 (nesting depth added 10). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/modelMetadataFill.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"37706bffa0c693513e3ea4493cefa53ac2bcd02068942b94ba1e6919d107e813"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaLines.SplitQuotaColumn (cognitive 19): QuotaLines.SplitQuotaColumn has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (5 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 2). None of this is in the body itself: all 19 points belong to 3 function literals inside it that branch (lines 537, 505, 518). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d818ffc87e16f05d6f1e400f27698be8331fba26894d148b046e07ca45b97fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedAccountsGroup.AccountRow (cognitive 19): ManagedAccountsGroup.AccountRow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 18, ternaries 1. Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e9e0d63996c8f2a6bcb95a07a732b7717327d606515b1e329c1254e1759281"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoManagerPanel.RepoManagerPanel (cognitive 19): RepoManagerPanel.RepoManagerPanel has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 6, error handling 2, if/else 2 (nesting depth added 4). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 219, handleAdd, handleOpenRepo, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/RepoManagerPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3e6eb5e1118d4c78aa442ad95fbef39c33db8270d4755f11254183d8327f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedSkillsPanel.InstalledRow (cognitive 19): UnifiedSkillsPanel.InstalledRow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, ternaries 5 (6 pts), if/else 1 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c07584028fa8f175ad36eb3f3cc61b0cb85a7d3bccbe89efb4bde513bccfde"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiAppConfig::load (cognitive 18): MultiAppConfig::load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 2 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1706b5288e8d75b40d7324fedb016c75c98d7162ec921482d8ebd33864f1d8"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAdapter::extract_key (cognitive 18): CodexAdapter::extract_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c03439553211bbaeb12c4511bb4cc7ea12cfae8ed8729d04e21265968309c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::sync_to_app_dir (cognitive 18): SkillService::sync_to_app_dir has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2998}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc296bb5dc2e3b74ddcc67903ee7148ddfdc18b2db17920a66fe2cb1af8a946b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkBuddyAccountManager::switch_to (cognitive 18): WorkBuddyAccountManager::switch_to has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/mod.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"382f62e774489a9485cc2ffb4073668f9096abe39b51bd36792fd45148c32075"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::deeplink::utils::decode_base64_param (cognitive 18): cc_switch::deeplink::utils::decode_base64_param has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (4 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/utils.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c3f0ead1f843e2b17b7de37734dc9432047907ce4ab11153b982347ebb2af4"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::hermes_config::get_providers (cognitive 18): cc_switch::hermes_config::get_providers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 1 (4 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"71855f954f2db1a7bfeb3fe24346cb3dd2064a0c7b4ab74676d26c99cbd0aa96"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mode::operation::recover (cognitive 18): cc_switch::mode::operation::recover has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/operation.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bc629dfae6add403f768563d97eff575533afc2d068f0001b5b3fb8bae30d8"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::forwarder::rewrite_claude_transform_endpoint (cognitive 18): cc_switch::proxy::forwarder::rewrite_claude_transform_endpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":4352}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b543cfc673f565a41099fe5c0af723b3bfb6693ae56adb829d62f0c61fefc3"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::apply_reasoning_options (cognitive 18): cc_switch::proxy::providers::transform_codex_chat::apply_reasoning_options has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3173a8cf420a3045d67bd056dfafc42d4e1aeed3cfad07cf6afad0b2a5ba8ab0"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::flatten_union_branches_to_object (cognitive 18): cc_switch::proxy::providers::transform_codex_responses_xai_sanitize::flatten_union_branches_to_object has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (6 pts), match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc81afd8f10c29bcd9826a12aaef6ea675318d7e9efb2a1e80994ebf18b54c0"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::tool_media::strip_media_from_tool_value_at_depth (cognitive 18): cc_switch::proxy::tool_media::strip_media_from_tool_value_at_depth has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/tool_media.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"603aefecb01f7725da339db396c63d1d0223fc8551cc5adc6b76b171066f708a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::claude_account::shared::mirror_profile (cognitive 18): cc_switch::services::claude_account::shared::mirror_profile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/claude_account/shared.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde11e90f170dcc0a3b0742c74904dfb4078389c32b9aed85419d49a566d3d44"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::coding_plan::volcengine_openapi_call (cognitive 18): cc_switch::services::coding_plan::volcengine_openapi_call has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f3c2878d2736d28253fd449d749da82cccfd3b186f2ee843ee14bcaefa119e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::model_pricing::update_model_pricing_batch_inner (cognitive 18): cc_switch::services::model_pricing::update_model_pricing_batch_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/model_pricing.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b1bd5981430644b42a7c4fe68720caf5fe4ae0c408d43bb216717ad81bafca"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::subscription::query_codex_usage (cognitive 18): cc_switch::services::subscription::query_codex_usage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3, loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1e3fdfab78a26c59604b6a01e67f50dd68c0b1f81198cdcb1bb7687dd22a02"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptCopyDialog.PromptCopyDialog (cognitive 18): PromptCopyDialog.PromptCopyDialog has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 7, if/else 3 (nesting depth added 1). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 98, 55, 76, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptCopyDialog.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dfa171f0bd7311ba87d40e537785e193479f4fa1cc7255431819cb83f9eb31"}},{"ruleId":"D2","level":"warning","message":{"text":"workbuddyQuota.workbuddyExpiryLine (cognitive 18): workbuddyQuota.workbuddyExpiryLine has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (8 pts), if/else 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/workbuddyQuota.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78e4e75ef18715ca89dd8ec904b1cf2246ddec889e327e1a1412fc6fda14cc6"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeStackModelsField.normalizeClaudeStackModels (cognitive 18): ClaudeStackModelsField.normalizeClaudeStackModels has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeStackModelsField.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0294cac9112100ff4a96db5174d04e52d9d3eedc12e30c59adbbc8552e50f622"}},{"ruleId":"D2","level":"warning","message":{"text":"OmoFormFields.OmoFormFields::renderCustomModelRow (cognitive 18): OmoFormFields.OmoFormFields::renderCustomModelRow has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 13, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 3 other methods here (OmoFormFields.OmoFormFields::handleModelChange, OmoFormFields.OmoFormFields::handleAdvancedChange, OmoFormFields.OmoFormFields::handleFillAllRecommended) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc8bf99b50a40c38e5b7250e6aa1d730261ba694515e849f499f724d9832ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStepDetails.SessionStepDetails (cognitive 18): SessionStepDetails.SessionStepDetails has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (5 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc0e4510b9c16516e02cb275a3d244bb1f0fc54ba5e669a5ace1f67ff3b542c"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupStorageSection.BackupStorageSection (cognitive 18): BackupStorageSection.BackupStorageSection has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, ternaries 4 (5 pts), error handling 2, if/else 1 (nesting depth added 1). Of this number, 9 points are the body\u0027s own statements and 9 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupStorageSection.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8c46423752271a07593cc15216ddba9a8d13863ef8bf2e4ce2636f82ed0213"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsDevAutoSyncPanel.ModelsDevAutoSyncPanel (cognitive 18): ModelsDevAutoSyncPanel.ModelsDevAutoSyncPanel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5, ternaries 5, boolean chains 4, error handling 4. Of this number, 11 points are the body\u0027s own statements and 7 belong to 5 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c25ec79e2f7f76d8858ec1029c9d7108bd0b1f8a895d7e23f2627b0c227bc3"}},{"ruleId":"D2","level":"warning","message":{"text":"errorUtils.extractErrorMessage (cognitive 18): errorUtils.extractErrorMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorUtils.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"15749fcfde3d59a8c85d78e1b8467bc274261e2b80a301d162cf1a5e8abb3d44"}},{"ruleId":"D2","level":"warning","message":{"text":"piPromptTemplate.findFrontmatterField (cognitive 18): piPromptTemplate.findFrontmatterField has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 5, ternaries 2 (5 pts), if/else 2 (4 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/piPromptTemplate.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"da517f4bd41700e9bef096014481d9ba20a820bbc4e781367a3dc89a410f6123"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.getApiKeyFromConfig (cognitive 18): providerConfigUtils.getApiKeyFromConfig has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6, boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17a8d3eb843669cbf1f8a290c5de83de61f1bb16828ca02af7829b0495f869d"}},{"ruleId":"D2","level":"warning","message":{"text":"textNormalization.scanTomlQuotes (cognitive 18): textNormalization.scanTomlQuotes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (21 pts), ternaries 4 (9 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (textNormalization.scanTomlQuotes::scan) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/textNormalization.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7432f2ea28df55f4f5cd021c3cf432cbb997b36a7926ffd12faaaa70e1319d37"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiAppConfig::migrate_mcp_to_unified (cognitive 17): MultiAppConfig::migrate_mcp_to_unified has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8822887644e877cf829fe5c8f4baa9e7e1cfdfa512ce8aa470d11cdac31a79"}},{"ruleId":"D2","level":"warning","message":{"text":"Database::get_model_stats (cognitive 17): Database::get_model_stats has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3f8fa4163b0c0173209789e37cd71882cb4b0cd73f662426541d8804e9fb4e"}},{"ruleId":"D2","level":"warning","message":{"text":"KeywordGate::active_rules (cognitive 17): KeywordGate::active_rules has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (6 pts) (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/privacy_filter/secrets.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38f218142f776a6d545be28f180396101d2fd76fd168566c02d199c9ced3251"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatToResponsesState::push_tool_call_delta (cognitive 17): ChatToResponsesState::push_tool_call_delta has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab24cc01c768bedaa91a5daf7e8ebee0a4e0f6b7bef66396aca9a19b21abf09"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageLogger::log_request (cognitive 17): UsageLogger::log_request has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/usage/logger.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d44003eca65253ea2192defc73abf1cfb3ce054915a439424c9ed65e1d2e9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"McpService::toggle_app (cognitive 17): McpService::toggle_app has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"969b9a871ced53cc8f30a264d31d61c03e30f2901165c53d65c81813d824de83"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::install_from_zip (cognitive 17): SkillService::install_from_zip has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4718}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f37d48148a9f0d6074993c404e0d649589cecf776f3a50a2153f6be4dba495"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::extract_local_zip_in (cognitive 17): SkillService::extract_local_zip_in has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4877}}}],"partialFingerprints":{"codehealthFindingId/v1":"429db7abd40843e37e75cd2fd4e7378730c89613fab4404311f92e15563b84ff"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptBuilder::push_user (cognitive 17): TranscriptBuilder::push_user has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 2 (4 pts), loops 1 (2 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f8832f9bdaa19ff1b3db962d2d69c8e9783d3a1917b81a355c22ae0e254658"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::codex_config::apply_codex_official_speed_tiers (cognitive 17): cc_switch::codex_config::apply_codex_official_speed_tiers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"09828f1c78d7498c2284316b9cd6bd71c67c5bf8beb42f783100c7e64ea77080"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::expand_env_chars_with_lookup (cognitive 17): cc_switch::commands::misc::expand_env_chars_with_lookup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2617}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bb338d662feb47a7ef6142906ee6dcafdb59dd87cbdfc9ee58f8682a2c5774"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::misc::locate_default_tool (cognitive 17): cc_switch::commands::misc::locate_default_tool has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":4402}}}],"partialFingerprints":{"codehealthFindingId/v1":"017e80f71182beca26b418aa9c69efbdac19453f65faf7a95ac6e59b5642c914"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::proxy::reset_circuit_breaker (cognitive 17): cc_switch::commands::proxy::reset_circuit_breaker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/proxy.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fb25e8c64015de8c1c5290b37a3b5c026e2b54f2be439f60106c39c545e4a1"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::kimi_config::save_oauth_login (cognitive 17): cc_switch::kimi_config::save_oauth_login has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"463bf9a08cd85859439b9223a58ec01d44f8025195decffe7b4b63b6f5cc1ed6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::dsh::import (cognitive 17): cc_switch::mcp::dsh::import has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/dsh.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc7d48cf1267ccba9efb184b62f0c0f75dc0fa2f5624e277b5cf79789ed3f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::hermes::import_from_hermes (cognitive 17): cc_switch::mcp::hermes::import_from_hermes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (6 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2124b663734f97d0dca9d1e45d16dc9c4700121e17f60b6b3da0fce6e7d2c920"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::pi::import (cognitive 17): cc_switch::mcp::pi::import has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/pi.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04a183b6f6a32469f537facd20751188318e5976f35c0d5073a5c7ceef0241c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::codex::strip_codex_openai_only_request_fields (cognitive 17): cc_switch::proxy::providers::codex::strip_codex_openai_only_request_fields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"a615b4c3e3ba7bc4e76dda96c85eb294c06187ada6974b26ad57e1ae0a9e1aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::codex_compaction::create_native_compaction_sse_stream (cognitive 17): cc_switch::proxy::providers::codex_compaction::create_native_compaction_sse_stream has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_compaction.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"595d03a11c4644905a72a9e6298f9e300aee496a69d606a452a48ec77100055f"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::streaming_gemini::merge_tool_call_snapshots (cognitive 17): cc_switch::proxy::providers::streaming_gemini::merge_tool_call_snapshots has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (7 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"664149fbeee9decb65826aaf5c0b296eb9347e9dec24cc297f32263c26d78cab"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat_moonshot_schema::wrap_ref_siblings (cognitive 17): cc_switch::proxy::providers::transform_codex_chat_moonshot_schema::wrap_ref_siblings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat_moonshot_schema.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76fc3251863e7e2c4b91138619e3a1f1339c5a6bd64371516b768eeebabc22c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_responses::responses_web_search_call_from_anthropic_blocks (cognitive 17): cc_switch::proxy::providers::transform_responses::responses_web_search_call_from_anthropic_blocks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"7101a238fabfca7e917bccafa29abfe9296dcc9ffa903f6f3e9d61867335cae7"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::coding_plan::parse_zhipu_token_tiers (cognitive 17): cc_switch::services::coding_plan::parse_zhipu_token_tiers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"82090fa91484677a91797597ba569c4efb2da26b954a3df6f039b2a498744b38"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::kimi_oauth::account::access_token (cognitive 17): cc_switch::services::kimi_oauth::account::access_token has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/account.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec11441fa9d0ab05c32c8b3cab3a8bf79fc513393c76b48aeec0bcdccdd52c92"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::model_fetch::build_model_fetch_headers (cognitive 17): cc_switch::services::model_fetch::build_model_fetch_headers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/model_fetch.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29ee6fc9cb3bab4312971f044cb0fff4aff504f5e5a372e66b6526eb97f169c"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::codex_editor::store_into_row (cognitive 17): cc_switch::services::provider::codex_editor::store_into_row has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_editor.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d56c8c31d7aefd96aeaac8555f016a53f5d74a751132c5966a4180673298ec"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_codex::normalize_codex_model (cognitive 17): cc_switch::services::session_usage_codex::normalize_codex_model has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"9469eda09ad5d3addf21a6e8a93f6bd671d146e60867ff50dc6b750971b921e9"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::subscription_grok::grpc_web_trailer_fields (cognitive 17): cc_switch::services::subscription_grok::grpc_web_trailer_fields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription_grok.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f80b2ef541980095fbc4b0f035fe8667fcd39836a5adbca2605758af143343"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::webdav_sync::archive::replace_skills_dir (cognitive 17): cc_switch::services::webdav_sync::archive::replace_skills_dir has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (17 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/webdav_sync/archive.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"106514db945b252f31ec02b569cdb4be95b3a74eb5a0a5867ad976ee7568b56f"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::content::read_jsonl_line (cognitive 17): cc_switch::session_manager::content::read_jsonl_line has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/content.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1184071b869a10b5a45a6d0618a8360ed952420960a7436ea091f9b44a09c3eb"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::codex_items::strip_output_header (cognitive 17): cc_switch::session_manager::providers::codex_items::strip_output_header has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex_items.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb859bca2664767e6e9ff30761c89c20014ef176f641376ee8469df6a2c0989"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::codex_items::parse_apply_patch (cognitive 17): cc_switch::session_manager::providers::codex_items::parse_apply_patch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex_items.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cf7d91dc86a9951214ea2ad19ffd75d8d8e3f3cb4a7e15770cd42c473bd023"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::workbuddy::load_messages (cognitive 17): cc_switch::session_manager::providers::workbuddy::load_messages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/workbuddy.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d45870d1c1d4dd9f0c730198dcda356abb006c9af8ab3e102e16027f7876438"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray::map_locale_to_tray_language (cognitive 17): cc_switch::tray::map_locale_to_tray_language has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c095bf277a422fbc02f9dc1d63e4e1ab0b3dc464e7a7053477dfaab049dba39f"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesMemoryPanel.MemoryTabPane (cognitive 17): HermesMemoryPanel.MemoryTabPane has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11 (13 pts), boolean chains 3, if/else 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/hermes/HermesMemoryPanel.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0285930ef8e98745077f209e2e2c53abd77b3f9b3bdcfcc347e5134dc67a503e"}},{"ruleId":"D2","level":"warning","message":{"text":"mcpDraft.specOf (cognitive 17): mcpDraft.specOf has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/mcpDraft.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"859efa43e43a43fd0cedde744ddd02e13cfe013dafa13a12fdebe820baf5db76"}},{"ruleId":"D2","level":"warning","message":{"text":"PiNativePromptResources.PiPromptTemplates (cognitive 17): PiNativePromptResources.PiPromptTemplates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 3 (4 pts) (nesting depth added 1). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 834, 902, 985, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb4eee963917e725a142b59ddc1cac577f8ebf0a480dd3b3e6deb7d19af5d60"}},{"ruleId":"D2","level":"warning","message":{"text":"useModelState.parseModelsFromConfig (cognitive 17): useModelState.parseModelsFromConfig has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 12, boolean chains 4, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useModelState.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3967f7bf90b5ea92df5bc51697841ddd9c8960c73f4053485ed3ddcea36c7b2"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuredOptionsEditor.StructuredOptionsEditor (cognitive 17): StructuredOptionsEditor.StructuredOptionsEditor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 2, loops 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (renameOption, commitDraft, a function literal at line 236, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/StructuredOptionsEditor.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d82d08a7072b09e56cbe361402514bc508977a5fbf4ee9eb4ea7430bb1821bd"}},{"ruleId":"D2","level":"warning","message":{"text":"OmoFormFields.OmoFormFields::handleModelChange (cognitive 17): OmoFormFields.OmoFormFields::handleModelChange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (OmoFormFields.OmoFormFields::handleAdvancedChange, OmoFormFields.OmoFormFields::handleFillAllRecommended, OmoFormFields.OmoFormFields::renderCustomModelRow) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6e29d1006925fcb61c90b6a45f1f94961b0e843bed6940ca476f10cf3615b5"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotProviderForm.fromNativeText (cognitive 17): CopilotProviderForm.fromNativeText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"67531172b0a05235e653a303ccf7ed6fdacb13e83d0e640a1762196a099dfe46"}},{"ruleId":"D2","level":"warning","message":{"text":"StackSubagentFields.StackSubagentFields (cognitive 17): StackSubagentFields.StackSubagentFields has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 3. Of this number, 11 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSubagentFields.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc6d85c49ce9e6010259f74f0402a6689259f8089876983d53f0a9ba43a5bfb"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageHero.UsageHero (cognitive 17): UsageHero.UsageHero has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 14 (16 pts), boolean chains 1 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHero.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedd6bcde309f2d07cfc953223b33a7dbdc8ac7d4928fd0637138cf5d225d972"}},{"ruleId":"D2","level":"warning","message":{"text":"requestOverrides.parseHeaderOverrideJson (cognitive 17): requestOverrides.parseHeaderOverrideJson has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/requestOverrides.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99f33e0eda67bbfcc13727654d6c40b044867a34112cb3601d1145f9f77d798"}},{"ruleId":"D2","level":"warning","message":{"text":"providerMetaUtils.mergeProviderMeta (cognitive 17): providerMetaUtils.mergeProviderMeta has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerMetaUtils.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dda1489366075c4545f73071a5cf3b6ab2ee49ad3716f32b06cab159610734"}},{"ruleId":"D2","level":"warning","message":{"text":"textNormalization.scanTomlQuotes::scan (cognitive 17): textNormalization.scanTomlQuotes::scan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (textNormalization.scanTomlQuotes) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/textNormalization.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7d2c62524992aeb5f54dbebdd948b9a71452b5f99430b2bf10ef9ceca389fe"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeProjection::of (cognitive 16): ClaudeProjection::of has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/claude.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d1f96f459ff7f65a960e3fa88f53dac59dc5fcfc029b485a8d8ae110b75cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"Snapshot::from_headers (cognitive 16): Snapshot::from_headers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/codex_quota_protection.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bfa2214cf9d3137d020e84553a28d986c170cf909684230ff2d63971f83919"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotAuthManager::load_from_disk_sync (cognitive 16): CopilotAuthManager::load_from_disk_sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"38de09fe335e84fa17deea50be067137ae709aacd45d1fc106e8a9326a682ffe"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderService::switch_inner (cognitive 16): ProviderService::switch_inner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ecc621abb73951d4bc5a8768ca09912de127775e78b65b14465be67ec036e7"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillService::get_app_skills_dir (cognitive 16): SkillService::get_app_skills_dir has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"04624ed746657308586c9246406ca0b8b1add0e73efadd9d947fafb631996485"}},{"ruleId":"D2","level":"warning","message":{"text":"RolloutParser::event_msg (cognitive 16): RolloutParser::event_msg has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12d76fb5948cab3e88ef95184ad4618268fcf9750005bef7b40b85c7990c2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::commands::failover::set_auto_failover_enabled (cognitive 16): cc_switch::commands::failover::set_auto_failover_enabled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/failover.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad7c946a98b79b44c4f45b1f7c99b91bc40d34a7db63ea6be3f961ab988ad3d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::deeplink::provider::merge_claude_config (cognitive 16): cc_switch::deeplink::provider::merge_claude_config has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e312e50a6b458fafeecf6ceb59e905a34b169e13afb5afaecf3a2eb2f8f6cf6e"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::kimi_config::write (cognitive 16): cc_switch::kimi_config::write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecb3dad2ff4e6cbbcbcb3ca7ee23c42498fa79751b0252ebfe61ea7986a1973"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::live::project::codex::custom_route (cognitive 16): cc_switch::live::project::codex::custom_route has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e93e52dc39595b3796ddb8eb76609a175395be19b36fb923d39ad4dc2bd9cb"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcode_config::write_entry (cognitive 16): cc_switch::mcode_config::write_entry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcode_config.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8177e86297496df8f54052ef49184ca16414e22db707ec4ce94f944efe05569d"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::mcp::codex::sync_enabled_to_codex (cognitive 16): cc_switch::mcp::codex::sync_enabled_to_codex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"025256d7c0bd10023c8bb4c8ad015cac57e756dc67e5a0b7ed22477837e86839"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::codex::infer_chat_reasoning_config (cognitive 16): cc_switch::proxy::providers::codex::infer_chat_reasoning_config has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cac9fd25168e6d9432a2a838c3e0f83137a5c7305b59c59bb4452fa265a8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_anthropic::trailing_turn_supports_thinking (cognitive 16): cc_switch::proxy::providers::transform_codex_anthropic::trailing_turn_supports_thinking has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e06c8c51c4fdc5deb6d17c66c651c2761f7a7944521a30d0c6ae3279b599b4"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_codex_chat::collapse_system_messages_to_head (cognitive 16): cc_switch::proxy::providers::transform_codex_chat::collapse_system_messages_to_head has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"504abe469e127e62529829ce5df1b5f0782e488308c9e6838538d5d9149b5fca"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::proxy::providers::transform_gemini::coalesce_split_tool_result_messages (cognitive 16): cc_switch::proxy::providers::transform_gemini::coalesce_split_tool_result_messages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"14605aa11aed10dfa7ae3220fbb170704988fd8a289af6b307f836caf2f8ce64"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::model_fetch::fetch_models (cognitive 16): cc_switch::services::model_fetch::fetch_models has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/model_fetch.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d221a36be63408ba92e30a7246cadd974fa57df314e4a8d92fc8dd2dac533768"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::provider::usage::execute_and_format_usage_result (cognitive 16): cc_switch::services::provider::usage::execute_and_format_usage_result has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/usage.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"143752d641d10e22bb905a6f38ce33cb2c3f2a8119b8fe5aada00a16e555226a"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_opencode::query_assistant_messages (cognitive 16): cc_switch::services::session_usage_opencode::query_assistant_messages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_opencode.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb8aaa8c744f772730f66ca925ad3bc3cf3c8330acb246df8faa5e02a060dff"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::session_usage_pi::pi_request_identity (cognitive 16): cc_switch::services::session_usage_pi::pi_request_identity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb0dcd9792cc1cf93749d8ad01bc2a54749c95c8ee0a95897941257fc0ec792"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::skill::parse_branch_from_source_url (cognitive 16): cc_switch::services::skill::parse_branch_from_source_url has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48c56fbdc05b0280d5cb715e3445555cab58f4ab49798e494995b0b573cd94b"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::services::skill::save_repos_from_lock (cognitive 16): cc_switch::services::skill::save_repos_from_lock has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":5126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7abd55e01b47ad44580162a28c49ac73f2cd6adace6a5f873ff72c04bd1ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::cache::merge_opencode_parts (cognitive 16): cc_switch::session_manager::cache::merge_opencode_parts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/cache.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"298cd3edeabc1328056642a15a299220e8704c037fba58374b7d88543252edf6"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::session_manager::providers::kimi::scan (cognitive 16): cc_switch::session_manager::providers::kimi::scan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/kimi.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd300b99fc24839876cec1c80f32e3fd35321e35155ca11c1655715f11388f50"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray::refresh_tray_menu (cognitive 16): cc_switch::tray::refresh_tray_menu has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (3 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9636ab6d30571cc4d7056d5ef1a4d3cf73daefd1b6c1aa20d1805be26894bf"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::tray_compat::subclass_proc (cognitive 16): cc_switch::tray_compat::subclass_proc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray_compat.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa20589602c3c5eaa74f7dbece508887dfe1ed3de70edae9becea49ff4edf06"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::usage_script::validate_single_usage (cognitive 16): cc_switch::usage_script::validate_single_usage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/usage_script.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d37e22358cea4386d2a9a171dcf23ab10a559b3af5a58c1e78e10e0a915e205"}},{"ruleId":"D2","level":"warning","message":{"text":"cc_switch::workbuddy_config::update (cognitive 16): cc_switch::workbuddy_config::update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/workbuddy_config.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6b56ecc68b1cc031333f7fa85afd9314c280d540d7df4335851ed0aaab7c68"}},{"ruleId":"D2","level":"warning","message":{"text":"FullScreenPanel.FullScreenPanel (cognitive 16): FullScreenPanel.FullScreenPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 116, 96, 110, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/FullScreenPanel.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9812cdb2e351d795c7b090702fb8774eb765108ba3508bfc04febca201a7aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvWarningBanner.EnvWarningBanner (cognitive 16): EnvWarningBanner.EnvWarningBanner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (getSourceDescription, toggleSelection, toggleSelectAll, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/env/EnvWarningBanner.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2752e474b0b0b52267de0d6efc974300678938b7711bbe866aeae7301bc7aab"}},{"ruleId":"D2","level":"warning","message":{"text":"McpFormModal.McpFormModal::submitSingle (cognitive 16): McpFormModal.McpFormModal::submitSingle has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 4 (6 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (McpFormModal.McpFormModal) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cca3c0f46583d40564357bd8c65ab75c3e3c322098c23e5662fa101fabc51c"}},{"ruleId":"D2","level":"warning","message":{"text":"opencodeFormUtils.mergeOpencodeExtraOptionRows (cognitive 16): opencodeFormUtils.mergeOpencodeExtraOptionRows has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, loops 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/helpers/opencodeFormUtils.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f9dffcf3e724f3ffb57757c0cf3a213730e5f4e52082e3b63439da74b4b5c7"}},{"ruleId":"D2","level":"warning","message":{"text":"PiProviderForm.fillPiModelDraft (cognitive 16): PiProviderForm.fillPiModelDraft has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ad8239ea1ab7a7700f2c218648edff09438e44090ee1720d8ab31c8bc5eecd"}},{"ruleId":"D2","level":"warning","message":{"text":"toolSummary.formatStepTitle (cognitive 16): toolSummary.formatStepTitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/toolSummary.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac85d0ad965b1e717c5593dccbd4c575613575e542dbe75c774746fdc9385e4"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionFinalReply.SessionFinalReply (cognitive 16): SessionFinalReply.SessionFinalReply has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 2, ternaries 2. Of this number, 12 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionFinalReply.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f7af70a7339a858ed446b80070645f998e780b802e5bf87c833867dd469431"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionOutline.SessionOutline (cognitive 16): SessionOutline.SessionOutline has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 3, ternaries 3. None of this is in the body itself: all 16 points belong to 4 function literals inside it that branch (lines 108, 78, 67, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionOutline.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cfb3bdef88c63d21912f0b009d46084b891e15791198e3f086aad5c26957c3"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManagerPage.SessionManagerPage::handleDeleteConfirm (cognitive 16): SessionManagerPage.SessionManagerPage::handleDeleteConfirm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This shape REPEATS in the file: one other method here (SessionManagerPage.SessionManagerPage) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbed5b8395172620c534132962f038bbf1adadb55d89d232fac703acf2d1671"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalProxySettings.GlobalProxySettings (cognitive 16): GlobalProxySettings.GlobalProxySettings has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4, ternaries 4. Of this number, 11 points are the body\u0027s own statements and 5 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8793831e8386474249a29900256d0d840bd2407c42c40816c6634fe1b6cbee9f"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedSkillsPanel.UnifiedSkillsPanel::uninstallIds (cognitive 16): UnifiedSkillsPanel.UnifiedSkillsPanel::uninstallIds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 1 (2 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (UnifiedSkillsPanel.UnifiedSkillsPanel) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e5df1433b56af92369eb54ae6db23c6513c64198f2b3dfe47bc68adf7bd102"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-provider.ThemeProvider (cognitive 16): theme-provider.ThemeProvider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 1, ternaries 1. None of this is in the body itself: all 16 points belong to 8 function items inside it that branch (getInitialTheme, a function literal at line 79, a function literal at line 115, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/theme-provider.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"00741dca2db341a1b7d7d7385077500faafdf8336dea305b84c93fe922ea0dc6"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingEditModal.PricingEditModal (cognitive 16): PricingEditModal.PricingEditModal has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (7 pts), boolean chains 4, if/else 2 (3 pts), error handling 1, loops 1 (nesting depth added 2). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingEditModal.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2951fecba2adc4b6b87ec7c68c0743652e9eb2444ebe583cbb8a689ee351c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"kimiProviderPresets.toKimiModel (cognitive 16): kimiProviderPresets.toKimiModel has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (5 pts), ternaries 5 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/kimiProviderPresets.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f6ffc27223eec4c407b46dad8263ec5cb31cfb5f167035a4a77803bbb72c24"}},{"ruleId":"D2","level":"warning","message":{"text":"errorUtils.translateMcpBackendError (cognitive 16): errorUtils.translateMcpBackendError has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorUtils.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd869988e5dbbd0e94ba6eb18fd676e9747643599915fb8f3ea7a069db5c83b"}},{"ruleId":"D2","level":"warning","message":{"text":"managedAccountUsage.findManagedAccountUsers (cognitive 16): managedAccountUsage.findManagedAccountUsers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/managedAccountUsage.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0f88209a94fca29a8630349507c77eeed896ed8a23d23fab9dada7999c1675"}},{"ruleId":"D2","level":"warning","message":{"text":"TrayPanel.QuotaBlock (cognitive 16): TrayPanel.QuotaBlock has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 4, if/else 1 (nesting depth added 3). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 194, 177). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b627b7837b978d30adfa91718407d263cc7e85dee9ebe92f42973af19c3efb"}},{"ruleId":"D2","level":"warning","message":{"text":"providerCapabilities.providerNeedsRouting (cognitive 16): providerCapabilities.providerNeedsRouting has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c39cb81dda2dac7aaaccc2c612b8f013abb2b31abfe63248871fc6ec0b7ee8f"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.setCodexWireApi (cognitive 16): providerConfigUtils.setCodexWireApi has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc93f0e8ae329d55d9e9f55ba94e79517e6d67e57f9e1262c0eee97fea34477f"}},{"ruleId":"D2","level":"warning","message":{"text":"providerConfigUtils.extractCodexExperimentalBearerToken (cognitive 16): providerConfigUtils.extractCodexExperimentalBearerToken has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4, error handling 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96c78f81de68efa1233b4a62a473e486a824ed822ea302823f3bd5dee7785e7"}},{"ruleId":"D2","level":"warning","message":{"text":"tomlUtils.extractIdFromToml (cognitive 16): tomlUtils.extractIdFromToml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"565da4d30230ee3fddf5ce1bd96abe636a1dd604bc5f9b1976b2bdab4b43176e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderForm.ProviderFormFull: FunctionTooLong \u2014 ProviderFormFull runs 2215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2115 over it, 22.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e93826f89925e360cb9fb58cba9ee2b321372249efd8404fc994095d115d5c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PiProviderForm.PiProviderForm: FunctionTooLong \u2014 PiProviderForm runs 1469 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1369 over it, 14.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2592f481f18a3f19f45c69d916bb8ab3edc412a099b6d5f9faf2d21c7156ab03"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodexFormFields.CodexFormFields: FunctionTooLong \u2014 CodexFormFields runs 1452 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1352 over it, 14.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29b3d50850b2e92612abc83e79bcef02b352ac263d2691799695d2f7d7a8388"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WebdavSyncSection.WebdavSyncSection: FunctionTooLong \u2014 WebdavSyncSection runs 1401 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1301 over it, 14.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23d4064254acd2eba0ca0a8cac72d6e4d214105412d934f900f2334cab0d1c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 1367 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1267 over it, 13.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"07105a35a4d92f5547ca089c2b287cadca4ccefd1661ad4f12bd985d276ceebb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UnifiedSkillsPanel.UnifiedSkillsPanel: FunctionTooLong \u2014 UnifiedSkillsPanel runs 1313 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1213 over it, 13.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac9f39303e1c1158d20bb71d4ee6d06ee0b05f071360ea31f4ad4d24d493c22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageScriptModal.UsageScriptModal: FunctionTooLong \u2014 UsageScriptModal runs 1181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1081 over it, 11.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ffccf9d2a516c36e31880fd304453a5434897c142699ae78070c5456dfcb22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionManagerPage.SessionManagerPage: FunctionTooLong \u2014 SessionManagerPage runs 1099 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 999 over it, 10.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8db94a49d7a4a0b3f64e7eca78357b3a6c2d834d76d1e7d31b5461bd29203e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpFormModal.McpFormModal: FunctionTooLong \u2014 McpFormModal runs 1086 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 986 over it, 10.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb59663efe7089b637eadcf134bfdd349e7281fec7572386d55cdbc8d32155e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/openclawProviderPresets.ts: FileTooLong \u2014 5330 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4830 over it, 10.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/openclawProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7490904ed22d0440fb7e3846bf21d57e86529f456f089cccb9fa384fed535ecf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::run: FunctionTooLong \u2014 cc_switch::run runs 1057 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 957 over it, 10.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccceb464b7ac083cbb86e8617f1753f1e55f503d6f3646a24062b003220e3b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClaudeDesktopProviderForm.ClaudeDesktopProviderForm: FunctionTooLong \u2014 ClaudeDesktopProviderForm runs 976 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 876 over it, 9.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1ae51eb18ed5f31e86e648046f1ff13a8960c14a6d003c254e5c257e729136"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RequestForwarder.forward: MethodTooLong \u2014 forward runs 966 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 866 over it, 9.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65882456872d2b2d31a08eab85cfa99465a8ce79c5e570c2cb2aab14e3cecab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClaudeFormFields.ClaudeFormFields: FunctionTooLong \u2014 ClaudeFormFields runs 938 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 838 over it, 9.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9899dd4104e46339386a13a579aef1cdbbf2319197529ec2028d366f99b3d3ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UnifiedMcpPanel.UnifiedMcpPanel: FunctionTooLong \u2014 UnifiedMcpPanel runs 892 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 792 over it, 8.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"affd224161fabdf00e7b1b2e1c14c23905190eb95a82b857db516381b08b1c95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/misc.rs: FileTooLong \u2014 4311 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 251 free functions. The bar is 500 significant lines; this is 3811 over it, 8.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d423b7b7a1e5181c0aa4cda3b9e3b1c50de33a7693e1de5dfacdee179511147e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OmoFormFields.OmoFormFields: FunctionTooLong \u2014 OmoFormFields runs 810 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 710 over it, 8.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b82a44f2625b76ace05a046bc974104fdde09c36277b1fcf19367225022291"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Database: TooManyMethods \u2014 231 methods, declared across 18 files: database/schema.rs (37), database/backup.rs (36), dao/proxy.rs (29), dao/settings.rs (27), \u002B14 more file(s). The bar is 30 methods; this is 201 over it, 7.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0393f22bda220dc3823817364a11dea90457fee960466c9d63fda0311721e50d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OpenCodeFormFields.OpenCodeFormFields: FunctionTooLong \u2014 OpenCodeFormFields runs 752 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 652 over it, 7.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"999ca598271e94fbe4f7768343262b081042e8c3e084e050262afe8f29cf390b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/opencodeProviderPresets.ts: FileTooLong \u2014 3739 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3239 over it, 7.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/opencodeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35acc4b0dabd3e61567e522fdf1c97a353568968e2f0980bc06cdfeecbf050f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DeepLinkImportDialog.DeepLinkImportDialog: FunctionTooLong \u2014 DeepLinkImportDialog runs 738 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 638 over it, 7.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8935a4f8bdda467ed944b209fffb8d079c069b7770719747fcaa8e1e7eefd892"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CopilotProviderForm.CopilotProviderForm: FunctionTooLong \u2014 CopilotProviderForm runs 689 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 589 over it, 6.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"108d8d923f72a48418757e08d0634b2a10a4eededd0da0a8d98046fe7068f05c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/streaming_responses.rs: FileTooLong \u2014 3376 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2876 over it, 6.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"885347bbc8c443cc46fb3ade8fba2a9ef60dd7e5f4e00bdedc5d93d43bbfdddd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KimiProviderForm.KimiProviderForm: FunctionTooLong \u2014 KimiProviderForm runs 662 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 562 over it, 6.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e99f3e9d36f60e7334433d9c353fd85859adc2eba171e58c45d9eaf6cd29f52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/skill.rs: FileTooLong \u2014 3225 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2725 over it, 6.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cd466c5cc177322e06212ee2bd3b1b67c9e53d89a180454dd6f4199ccd0848"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageDashboard.UsageDashboard: FunctionTooLong \u2014 UsageDashboard runs 639 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 539 over it, 6.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"298b8a7f0e05945fb110d5921920bb27d536ce39f8573944e19b5b1b37980878"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/forwarder.rs: FileTooLong \u2014 3131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: RequestForwarder (2 blocks, 356-3632), declaring 63 free functions. The bar is 500 significant lines; this is 2631 over it, 6.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a47cc1200e79bd3c7c6e4ecdb7ac70bf57d59db22138f8526fcedf960ce7f94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkBuddyProviderForm.WorkBuddyProviderForm: FunctionTooLong \u2014 WorkBuddyProviderForm runs 600 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 500 over it, 6.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23b5701abc15f23178f85bfb5c65976f1291f756376701f82cf0191c4528214"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.seed_model_pricing: MethodTooLong \u2014 seed_model_pricing runs 572 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 472 over it, 5.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd544144f9afb731d15ea6c4a7e553b7c42cbfadd5df4b11ccc5e290ab6609ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsPage.SkillsPage: FunctionTooLong \u2014 SkillsPage runs 572 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 472 over it, 5.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d3bb1827079d8b998850f7954dbaa5f5c17d199e402998fa4d8e80b13e1437"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UniversalProviderFormModal.UniversalProviderFormModal: FunctionTooLong \u2014 UniversalProviderFormModal runs 567 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 467 over it, 5.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c92d20ba719ef069555760848621bec341cc3d8384008c3a17e06c958d2aab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/hermesProviderPresets.ts: FileTooLong \u2014 2803 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2303 over it, 5.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/hermesProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83a0a6117719bb1e1c2de30c278deadec9bc627ecedea424648d5e610d7a7b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionReader.SessionReader: FunctionTooLong \u2014 SessionReader runs 544 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 444 over it, 5.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12137f6c445a148932fb41037bc6eab3e6f746215511afb548c41fc55ff446c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderCard.ProviderCard: FunctionTooLong \u2014 ProviderCard runs 532 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 432 over it, 5.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"204d8ab7b0d6a256c6c2d6936647ad0b2b2e55dc9cc78e8b0f0252c8b017df3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TrayPanel.TrayPanel: FunctionTooLong \u2014 TrayPanel runs 532 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 432 over it, 5.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2359d75a4ba8ddfe09cff007d4fc0da4db9d55dc609fc88a2b31d226f86b52d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/piProviderPresets.ts: FileTooLong \u2014 2556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2056 over it, 5.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ddf318ac8716bc5e6bec51c59617d848b28e778fc690673ca83eb7bf2fa2bd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestForwarder: ClassTooLong \u2014 2040 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 39 methods, 2 blocks, lines 356-3632. The bar is 400 significant lines; this is 1640 over it, 5.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9c7a74154e4fda31f9eda16c20c7f71f1ef24eda5828dc173dc213b3cb2f80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tray.rs: FileTooLong \u2014 2541 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 96 free functions. The bar is 500 significant lines; this is 2041 over it, 5.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82685cd3a4ba808691d6802e4107094248bec9772121446e2ff3acc5e4c4182e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/ProviderForm.tsx: FileTooLong \u2014 2533 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: ProviderFormFull (379-3271). The bar is 500 significant lines; this is 2033 over it, 5.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4b974d66053c99a6dacb0b28d967bda6b050e954c69d793a23eb54bc7e532d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useToolManagement.useToolManagement: FunctionTooLong \u2014 useToolManagement runs 499 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 399 over it, 4.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"011de8722a23cbb6953512627492837b505e37c13b0374bd45fab0b944f827de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SwitchModePanel.SwitchModePanel: FunctionTooLong \u2014 SwitchModePanel runs 498 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 398 over it, 4.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a6cf5e48fe0818265d1a4d490ef3ff4523f77887168d4930276e1ffc76db9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderList.ProviderList: FunctionTooLong \u2014 ProviderList runs 497 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 397 over it, 4.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dab418840a2681d675b96a426915d3d90d1ca6deab68e587e11ee6c9359d35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OpenClawFormFields.OpenClawFormFields: FunctionTooLong \u2014 OpenClawFormFields runs 494 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 394 over it, 4.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"194c63a1ed62f46eeb04c2640aedda4d3e64a6c20b3a8d2ca0cc526ee10e4543"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provider/mod.rs: FileTooLong \u2014 2451 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1951 over it, 4.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d448f9787dce6beb8b320aa971460d2c2d3f30d69a01bf929694b7afa81b1f34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/handlers.rs: FileTooLong \u2014 2365 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 64 free functions. The bar is 500 significant lines; this is 1865 over it, 4.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a353327204a6325717378a17f3aa6bef2bf47d906909aea8f9a45b930bcd3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/usage_stats.rs: FileTooLong \u2014 2164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 1664 over it, 4.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cfd46096ca93be9fbffca5aea2cbdb33bbfb4faa847221f932f3163a728bb3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TrayTexts.from_language: MethodTooLong \u2014 from_language runs 432 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 332 over it, 4.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72f774d64718e3362631919de4f10747c8f7d22b6785c8456ecaf250acf71a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GrokBuildProviderForm.GrokBuildProviderForm: FunctionTooLong \u2014 GrokBuildProviderForm runs 429 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 329 over it, 4.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d1f201c0796ae90f2ffc5a8e4c79c736ed66a342c3bf2064379ab74fe9554c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RequestLogTable.RequestLogTable: FunctionTooLong \u2014 RequestLogTable runs 425 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 325 over it, 4.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbd37a073d907d4a01174fbedae7261218fd2bcbf8608bd029cd140bb45cbf7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RequestForwarder.forward_with_retry_inner: MethodTooLong \u2014 forward_with_retry_inner runs 420 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 320 over it, 4.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"933dbcdbddac34860876fb7f354945a411577905fe944eeadee2302f06985f7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AddProviderDialog.AddProviderDialog: FunctionTooLong \u2014 AddProviderDialog runs 417 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 317 over it, 4.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f0a129dacac1a60f2f84b9e71e64bcb5f671ad121eb1ffc41dc4db75d26880"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AutoFailoverConfigPanel.AutoFailoverConfigPanel: FunctionTooLong \u2014 AutoFailoverConfigPanel runs 417 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 317 over it, 4.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/proxy/AutoFailoverConfigPanel.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b269a53d9b6641fa0cc8edde5bc10c93b3f0fe3a012109ed1b3bfbbd5987f09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsPage.SettingsPage: FunctionTooLong \u2014 SettingsPage runs 414 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 314 over it, 4.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66c73e92aa5be4fee15a8fc23647807a0084ca2ad25aef5131996f71563c50"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptPanel.StandardPromptPanel: FunctionTooLong \u2014 StandardPromptPanel runs 412 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 312 over it, 4.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f31f66e470de10202ed9402f1054c798434291f44f0cb9a7fffc7aea860f06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkillService: TooManyMethods \u2014 121 methods. The bar is 30 methods; this is 91 over it, 4.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d51ffc4981b4d5763633866bc6d895044fa2abd4be56ddb481c18f6c3ebb8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DailyMemoryPanel.DailyMemoryPanel: FunctionTooLong \u2014 DailyMemoryPanel runs 399 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 299 over it, 3.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"717c4233aaf7a1280a4720120dece882c8b9d811a6bf376fc70fe709c39ad7c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PiPromptPanel.PiPromptPanel: FunctionTooLong \u2014 PiPromptPanel runs 396 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 296 over it, 3.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"971b6b009b7c56316de2aff8e46eff94c7b2f815f60ebbc56530655e682a0490"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/schema.rs: FileTooLong \u2014 1979 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: Database (16-4039). The bar is 500 significant lines; this is 1479 over it, 3.96\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d926b0c9a17e58534f83108c8ba7cbd5af1853b653b15938345db04fb42d402"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/claudeDesktopProviderPresets.ts: FileTooLong \u2014 1970 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1470 over it, 3.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeDesktopProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de9012015657b8f1529b750e9579340c1823b1fe89aa68d3e48fb9a299e5adf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppsPage.AppsPage: FunctionTooLong \u2014 AppsPage runs 392 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 292 over it, 3.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab673fe25ceff26926fb597efa6db8a4cc274162b5abd6a81e20f82319950d64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/CodexFormFields.tsx: FileTooLong \u2014 1953 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: CodexFormFields (637-2544). The bar is 500 significant lines; this is 1453 over it, 3.91\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe9a2623469b1a735b10edff8460380b08ca72cb6d249098d5272c62ad20f3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodexOAuthSection.CodexOAuthSection: FunctionTooLong \u2014 CodexOAuthSection runs 384 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 284 over it, 3.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c034fb3c5927d29b8812ba7e7099336667e067b04bfafbfaff471f33d624b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transform_responses.rs: FileTooLong \u2014 1914 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 60 free functions. The bar is 500 significant lines; this is 1414 over it, 3.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"671e05ee22fdcaf64b05e72b5827d27bda2bd59b1ec3894ff58a117c2d39ad5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/PiProviderForm.tsx: FileTooLong \u2014 1894 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: PiProviderForm (507-2352). The bar is 500 significant lines; this is 1394 over it, 3.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e7b3b816dd7a4390f48c6e92f1390c590e95ff31b6e4342cec0e9acf277fa4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex_config.rs: FileTooLong \u2014 1888 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 107 free functions. The bar is 500 significant lines; this is 1388 over it, 3.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"121940538ff23ba4719f39bff0f42c05d3ee193487af67c9ecc6219f20e5bb6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: XaiOAuthSection.XaiOAuthSection: FunctionTooLong \u2014 XaiOAuthSection runs 368 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 268 over it, 3.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c111919159c5f28725425f8472f3fbb6fbe5b90207faa3df2e9b2f0490aa552"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PiProviderForm: ClassTooLong \u2014 1469 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 1069 over it, 3.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f7c62a395922d5529c2b849159b61dcdde7cdf837e98b76725bd328293de17"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BackupListSection.BackupListSection: FunctionTooLong \u2014 BackupListSection runs 367 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 267 over it, 3.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fdeca83f5f447ce6aaf177a1342424ccc244ef3e6b4235b6c7cce78d2f9039"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexFormFields: ClassTooLong \u2014 1452 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 1052 over it, 3.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e818ed342a1e386ac47a1ee38d0ea4ed89f4ce87558c9ba881e200f9d1b950b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/session_usage_codex.rs: FileTooLong \u2014 1798 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 51 free functions. The bar is 500 significant lines; this is 1298 over it, 3.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"717d44c25fa76fd22b49d44ed14b0382972d0b326bb232fc25e1f0bdcea58899"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSettings.useSettings: FunctionTooLong \u2014 useSettings runs 359 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 259 over it, 3.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fe2dcacded7a776ded3be27d5d5392fde065085c751a76cb3cda6df49a20d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ManagedAccountsGroup.ManagedAccountsGroup: FunctionTooLong \u2014 ManagedAccountsGroup runs 354 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 254 over it, 3.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a95d76c3a6b64c9d3df9d5e31e27888ed24f295c3a508bf1c265997224eee0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebdavSyncSection: ClassTooLong \u2014 1401 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 1001 over it, 3.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1904bbbc6a01d20ef84bccce4812cf403f2ee052ae04223453729c37b7d0c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: skills/UnifiedSkillsPanel.tsx: FileTooLong \u2014 1739 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: UnifiedSkillsPanel (129-1776). The bar is 500 significant lines; this is 1239 over it, 3.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7009566b471a4a215aa612933414dae7ea13188b3133ecc5a1fc888eade68ff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: App: ClassTooLong \u2014 1367 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 967 over it, 3.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bce13384d683dc9181fa4fb866d2962baf25bbdf90b7b779b9c1806f547d52"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McodeProviderForm.McodeProviderForm: FunctionTooLong \u2014 McodeProviderForm runs 336 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 236 over it, 3.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"757c9b5f4bd7d82cc7083630f3b677c6c66d9b807cf4169633a7a0295b701dfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageDateRangePicker.UsageDateRangePicker: FunctionTooLong \u2014 UsageDateRangePicker runs 336 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 236 over it, 3.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDateRangePicker.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a700d5a13859ed10809a9a84a1040197117ec5cd36b56e1c20321a1b0e233c65"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CopilotAuthSection.CopilotAuthSection: FunctionTooLong \u2014 CopilotAuthSection runs 332 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 232 over it, 3.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a34ebfddc9d5f64c894250f696cfbb534467285560b5848e6c1f3c977f7194"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnifiedSkillsPanel: ClassTooLong \u2014 1313 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 913 over it, 3.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a295896a13f095cf2cfad841a6b492212639bf9db56bd18609d205851caca02c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transform_codex_chat.rs: FileTooLong \u2014 1640 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 67 free functions. The bar is 500 significant lines; this is 1140 over it, 3.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc70a6f982ddd38dbfab341e3b8badc8fe7e4daeae89863834102aeda365f65"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useManagedAuth.useManagedAuth: FunctionTooLong \u2014 useManagedAuth runs 323 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 223 over it, 3.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"885a5b7b639e8ebb795e3790b410aa6e991f392dbea06726fedb507c9bbd25d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RoutingSection.RoutingSection: FunctionTooLong \u2014 RoutingSection runs 320 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 220 over it, 3.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc406bbdbb636fc4d3cbcea8c8f98b833d933950196af5b6a74541c03cbcdee5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1586 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 1086 over it, 3.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc618d6d48930087fd472acc702a72046af3d68fbc5c3c9784faee4fa914c960"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/WebdavSyncSection.tsx: FileTooLong \u2014 1571 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: WebdavSyncSection (236-1917). The bar is 500 significant lines; this is 1071 over it, 3.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef5eef148cecabdf62009e34bf02db7e20da7af2d2aafee2ac8ecccdfc90de0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/App.tsx: FileTooLong \u2014 1565 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: App (228-2079). The bar is 500 significant lines; this is 1065 over it, 3.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8df23501510e17a40a8ead109e1c5df53746e1c85daaf4e35c29f4f0b38c475"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionReaderHeader.SessionReaderHeader: FunctionTooLong \u2014 SessionReaderHeader runs 310 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 210 over it, 3.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6df27d20f9e964d29dc09a321dacb4791e081a59996f15382f8a6dc7263a51b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsDevAutoSyncPanel.AutoSyncDialog: FunctionTooLong \u2014 AutoSyncDialog runs 310 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 210 over it, 3.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"482a3d76b383829a2ad116e28d441855a42a209e88e2e78f2492f8eaf92f9ac3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkBuddyAccountSection.WorkBuddyAccountSection: FunctionTooLong \u2014 WorkBuddyAccountSection runs 308 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 208 over it, 3.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/WorkBuddyAccountSection.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"93325864001fbcafc028bdf9d550bd73d63a5c0971dbe5e03a9033768d8e0901"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/codex.rs: FileTooLong \u2014 1526 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1026 over it, 3.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ceb07584b3e0d7eea8ca2cf1a0bd623249f208be22ddc19c1fe69c85eedfe7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: presentation.buildSwitchSectionsByView: FunctionTooLong \u2014 buildSwitchSectionsByView runs 305 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 205 over it, 3.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"630c0ad1cd35d8cd6a7dbdf9e4a66f2ebea31f689048a2e367e10abc6aa54fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionItem.SessionItem: FunctionTooLong \u2014 SessionItem runs 304 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 204 over it, 3.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionItem.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2402c95a491886f2d1777775c93c911319a8c39dbe2be53f48dbec247f687ff6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentsDefaultsPanel.AgentsDefaultsPanel: FunctionTooLong \u2014 AgentsDefaultsPanel runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b635f5926888f3dfe92b108e807d68c60a61425ddc9c961b72985bce3756e19f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsageScriptModal: ClassTooLong \u2014 1181 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 781 over it, 2.95\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fa315fb5f54253b6adb26e40f1881e7aa184f125d53442ad2ba7ea12785aac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_codex::parse_codex_file_with_index: FunctionTooLong \u2014 cc_switch::services::session_usage_codex::parse_codex_file_with_index runs 295 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 195 over it, 2.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"974b0facf663c4f45d14a052e1386673de7a58ca8a6c37432e67464250f8fd0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useProviderActions.useProviderActions: FunctionTooLong \u2014 useProviderActions runs 289 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 189 over it, 2.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProviderActions.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ea52950dcd842caf58c89c5297dd747adef22397a54d0db0812e27035a915a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.create_tables_on_conn_unbatched: MethodTooLong \u2014 create_tables_on_conn_unbatched runs 284 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 184 over it, 2.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a055c0e791bf7e55ba237c5b492fa30987471a73a3762c4b2caa4c8bb7405cb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: IconPicker.IconPicker: FunctionTooLong \u2014 IconPicker runs 282 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 182 over it, 2.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IconPicker.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"859206ca3c7505488b6265ca75494e644d031c04e6410f44b35d5b4b23128134"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageDisplaySection.UsageDisplaySection: FunctionTooLong \u2014 UsageDisplaySection runs 279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 179 over it, 2.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d4e5bd0252c25fb091cfa687a10c2ae84c48f0a16cdc202d561a6f1ed114a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EditProviderDialog.EditProviderDialog: FunctionTooLong \u2014 EditProviderDialog runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a88b23d429384a27849b5da7868840b3718fe39179205090643534c86b4b2f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useDirectorySettings.useDirectorySettings: FunctionTooLong \u2014 useDirectorySettings runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb96a49ef0fcffd5b7643038765b99684e6cd55174c2ca779c2bda3fb3c6b5ab"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionManagerPage: ClassTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 699 over it, 2.75\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"950dffe94694c5d8e34b286aa188b3792be930bdcae5e17f71d005c8907918f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/UsageScriptModal.tsx: FileTooLong \u2014 1362 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: UsageScriptModal (253-1765). The bar is 500 significant lines; this is 862 over it, 2.72\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b66ebbb8540181a78fb5aa0a64c3dd76795903b541ee8b4ed942acddaabc35"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: McpFormModal: ClassTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 686 over it, 2.72\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7464cd26242c4931ff455c8b1b88b81711a2f8dcc0d8195916156aa5464609"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.get_daily_trends: MethodTooLong \u2014 get_daily_trends runs 271 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 171 over it, 2.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dd3a46dbf77df25fcfc6b54e26168251dc217b53a513b830237d29c5ffc2c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexOAuthManager: ClassTooLong \u2014 1074 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 43 methods, 2 blocks, lines 374-2104. The bar is 400 significant lines; this is 674 over it, 2.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aee50e7bed5d042334cd6c3b3db315b40317cb029b8076b7236cb86db17fbe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/codex_oauth_auth.rs: FileTooLong \u2014 1339 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: CodexOAuthManager (2 blocks, 374-2104). The bar is 500 significant lines; this is 839 over it, 2.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05d1db2b837bc7d028b48725b2292d51e4fbf24d44f112542a160cae873e103"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mode/controller.rs: FileTooLong \u2014 1336 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 73 free functions. The bar is 500 significant lines; this is 836 over it, 2.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/controller.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccad0a1ffccc99cc1d73a2ed02b2527763f4bd88ac2c093b6352ed08b70a19d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProviderService: TooManyMethods \u2014 78 methods. The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c42a93cb833c6ffc5dc7217ab8f62dac13df43bf7dbd222f135c389f684bac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/SessionManagerPage.tsx: FileTooLong \u2014 1293 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: SessionManagerPage (152-1585). The bar is 500 significant lines; this is 793 over it, 2.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea99699a59b29007e47438d6766fcf470528df3dd0e7e5536e3c0cf6fad8c8db"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppsPage.ToolRow: FunctionTooLong \u2014 ToolRow runs 256 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 156 over it, 2.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6ccf4aad0554c76fdac93ee9ad30de777ccd4123149b0701de09ab2f9829af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/providerConfigUtils.ts: FileTooLong \u2014 1273 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 773 over it, 2.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cc3c572f30288cb4164ad3f0a2fa5e67a8e94aaa67d2ef8e6b39f332cccb42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/coding_plan.rs: FileTooLong \u2014 1257 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 50 free functions. The bar is 500 significant lines; this is 757 over it, 2.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8c3c3447587c29ffd868f22a054122f3f3124ac10f5065c4be4bbd0b47a3f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AboutSection.AboutSection: FunctionTooLong \u2014 AboutSection runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"13955d95b9815fc62a62d6e3f71466457e8c264fd57870c7f035fbba6d9b8ce8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsDevPickerDialog.ModelsDevPickerDialog: FunctionTooLong \u2014 ModelsDevPickerDialog runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevPickerDialog.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6270d9174b89627ba080478f22e8f13cf16303a723cae1c940c4510d6978feb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/claude.rs: FileTooLong \u2014 1244 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 744 over it, 2.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b807f8cd191a413120e42dd6d9336118bcaaa2347c31357ee7f397c168c7c11"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionReaderHeader.SessionReaderToolbar: FunctionTooLong \u2014 SessionReaderToolbar runs 248 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74de0bf2c19e3d3188ad6fe25881b7c9ee5f161b3f1f61705da0e136b2200f7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeDesktopProviderForm: ClassTooLong \u2014 976 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 576 over it, 2.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be444b20e5e814a82cda71f96499082068a639ce5ab35f93fd2f8f83579edb46"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PricingConfigPanel.PricingConfigPanel: FunctionTooLong \u2014 PricingConfigPanel runs 242 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 142 over it, 2.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fb8efd8e94ff1cf54b1379f0f29a259f6fd63f2e582f9174f1e90878845ac3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OpenTerminalDialog.OpenTerminalDialog: FunctionTooLong \u2014 OpenTerminalDialog runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbca57f5027b30a7ae434a0ed8dc2c2951e2ff7ea32db9042fe5e3464078f04e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/McpFormModal.tsx: FileTooLong \u2014 1198 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: McpFormModal (127-1424). The bar is 500 significant lines; this is 698 over it, 2.40\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbda3fe8077f226c78e6d86fec4a1fdee95b3f99d3b5e66dce7aa19d4645d807"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/subscription.rs: FileTooLong \u2014 1183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 683 over it, 2.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b19b578fec2e3a5ffdf0519c6646233e348e614648b2166112705abf63184a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: presentation.buildAdditiveSections: FunctionTooLong \u2014 buildAdditiveSections runs 236 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 136 over it, 2.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bec4b7ce71937ce578fb27978fc1795dadd12ae9c5b5653dd69475381775f0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClaudeFormFields: ClassTooLong \u2014 938 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 538 over it, 2.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cb8f3ee397ccee02cffd9bf690c6c109fe9adc029fadf174884bc23420463e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/ClaudeDesktopProviderForm.tsx: FileTooLong \u2014 1170 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: ClaudeDesktopProviderForm (254-1510). The bar is 500 significant lines; this is 670 over it, 2.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b327723b777bce909818f7e72e54090000d1490acef3b0991eb462843fc77f4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillsStorageSheet.SkillsStorageSheet: FunctionTooLong \u2014 SkillsStorageSheet runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsStorageSheet.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"775d08eda6f80b981ff1a63514939449a3d3b90fbe04311898def408c69441d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: AppSettings: TooManyFields \u2014 69 stored fields beside 5 methods. The bar is 30 stored fields; this is 39 over it, 2.30\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/settings.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0184ba484b7d841ff41e0bb195f52052c7292efc663429c60fa1ac7bc5170234"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/claude_desktop_config.rs: FileTooLong \u2014 1147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 68 free functions. The bar is 500 significant lines; this is 647 over it, 2.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca95d246acd83e2a386e95392535429c7a6839ee8bfb55ff50e9896623c4194"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsDevAutoSyncPanel.ModelsDevAutoSyncPanel: FunctionTooLong \u2014 ModelsDevAutoSyncPanel runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40a09b82ce0b433a06e7c4d520f49c8e168ca1a83e78bd134b3a6301fc2857d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GeneralSection.GeneralSection: FunctionTooLong \u2014 GeneralSection runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/GeneralSection.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e37f0e756f5f5fcc20f90b54d2e84da51a89ffece55333d0d0ec650fc36332"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnifiedMcpPanel: ClassTooLong \u2014 892 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 492 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a732d17504eeafe4b48a2d9d472e46f1a96a7b017eedcc1606ac0c5e5a11f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptFormPanel.PromptFormPanel: FunctionTooLong \u2014 PromptFormPanel runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f793b6ecdf160bea7867e498a7b2e7d006a2acffec73bd7c63b2cc1a8e3a8195"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dsh_config.rs: FileTooLong \u2014 1113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 62 free functions. The bar is 500 significant lines; this is 613 over it, 2.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f78fb0eb7d2acc925cb00aa2a47288a333278f2426ca1518c90d60fd045c66"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message runs 222 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"234730fd53c2c331896cee3e3f4e04dfe21ae3214c716520531146a1f9ccf04d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UniversalProviderPanel.UniversalProviderPanel: FunctionTooLong \u2014 UniversalProviderPanel runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderPanel.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d75d38e8e8f01d069f326663a9e43b54e325d73576db0ce82d2bc2b8d0a65d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FetchedModelPicker.FetchedModelPickerBody: FunctionTooLong \u2014 FetchedModelPickerBody runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/FetchedModelPicker.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b736ec14d062f22cb1210e5c10976d8be15f12610ac31a41673c8f939fb9b0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::handle_claude_transform: FunctionTooLong \u2014 cc_switch::proxy::handlers::handle_claude_transform runs 219 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0cd3a608112b2da9780e09ca29b891e0a79c26fb8418a17a301a414571f1d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/ClaudeFormFields.tsx: FileTooLong \u2014 1091 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ClaudeFormFields (196-1378). The bar is 500 significant lines; this is 591 over it, 2.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b79e547861c3294362d497c8541c11f15693711b2914f60dceea5f39eaf9b70"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderPresetSelector.PresetPicker: FunctionTooLong \u2014 PresetPicker runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"89aa6bb9ff3f874a95aaf40ddc49087357f9e367ee698a41accd2081f61568a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/settings.rs: FileTooLong \u2014 1088 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 67 free functions. The bar is 500 significant lines; this is 588 over it, 2.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/settings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7aa5739d79beb9cdf9fe5aeefdf0eb9ff86e10465e1e86454438457a8ea9f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_responses::responses_to_anthropic_with_web_search_options: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_responses::responses_to_anthropic_with_web_search_options runs 217 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2557}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad353c31ce034165ce4ed4b562ffe5908f326a1a99cbc08f793c5e5fc046ad5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deeplink/provider.rs: FileTooLong \u2014 1071 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 571 over it, 2.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f045e7dde0d343aeeccc9210cb9ca14c65d4f4d63112ab49f1416f337f1af8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transform_codex_anthropic.rs: FileTooLong \u2014 1065 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 565 over it, 2.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315873d17b3f2e19555f7f46bb195b82462b2b178317b86424f9ae9fb42bf5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PiNativePromptResources.PiPromptTemplateEditor: FunctionTooLong \u2014 PiPromptTemplateEditor runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd6b64b960d8f89b9472e47bb80aa0251cd68a2458c88a93f7930e356450e03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/OmoFormFields.tsx: FileTooLong \u2014 1062 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: OmoFormFields (315-1341). The bar is 500 significant lines; this is 562 over it, 2.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"394e11f94464c7862419bc9eb849b6f7b1146fdc00729e6b20717834caadb603"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: JsonEditor.JsonEditor: FunctionTooLong \u2014 JsonEditor runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"048c42cff7f491f9b0afc797727fd7bfdee4437ac02474b41ee59a602b328b20"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EnvWarningBanner.EnvWarningBanner: FunctionTooLong \u2014 EnvWarningBanner runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/env/EnvWarningBanner.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d6104153806d280b4c0da467bbeb0dc0d48f3539c73f2bd8375d1c44367a58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transform_gemini.rs: FileTooLong \u2014 1049 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 41 free functions. The bar is 500 significant lines; this is 549 over it, 2.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e6e891d7d45ed862d2de278218bdd0a90bd39745d89bfa66365f10060ad3cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/copilot_auth.rs: FileTooLong \u2014 1028 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: CopilotAuthManager (2 blocks, 563-1741). The bar is 500 significant lines; this is 528 over it, 2.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18005b40cad9a9e3a69a0168fbeba5f90bd0abd38969ffbcd76c287c7d02ce3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex_history_migration.rs: FileTooLong \u2014 1027 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 55 free functions. The bar is 500 significant lines; this is 527 over it, 2.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_history_migration.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a757c5dad07880a72b1bb4dbd08aedf2f7fb09b5926b26eeca326c9baef0bbc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage::sync_single_file: FunctionTooLong \u2014 cc_switch::services::session_usage::sync_single_file runs 204 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba5d3630247452ae0e4bd3666cc1eff621c65fc525e7f6428e19e599d46d6d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillImportDialog.SkillImportDialog: FunctionTooLong \u2014 SkillImportDialog runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillImportDialog.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df00260f233957a0c5c002086f12027c749a7f25c942f62b3f8a1c68d22a998"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/UnifiedMcpPanel.tsx: FileTooLong \u2014 1015 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: UnifiedMcpPanel (148-1233). The bar is 500 significant lines; this is 515 over it, 2.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f5f627d60e3c466f10739ea7b9a859d57841626abfbf9decf373389a66f157"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OmoFormFields: ClassTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 410 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d97fa5465abc12192f10f630ffa396bc92373d0fede8ffd2254a385a3a71d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provider/live.rs: FileTooLong \u2014 1010 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 510 over it, 2.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f5c2fdc33e33aba3f2c81e5c419c7fe2d9b1f76e249de7abe961f9e28f6221"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BufferedCitationTextState: ClassTooLong \u2014 806 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 39 methods, 2 blocks, lines 705-1802. The bar is 400 significant lines; this is 406 over it, 2.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1be7438bf1342707dc144b28b858e8401a2dfb5e7f5f7ed68003283c1788ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RepoManagerPanel.RepoManagerPanel: FunctionTooLong \u2014 RepoManagerPanel runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/RepoManagerPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f707d01926867d805da9f1f26415ec35701db4cb9e63840a1baec8672c4624"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useCodexConfigState.useCodexConfigState: FunctionTooLong \u2014 useCodexConfigState runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ff1b5b6dd4e5991daefe503138883b489d201dfea21b5fb8a505d7923226b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useOmoModelSource.useOmoModelSource: FunctionTooLong \u2014 useOmoModelSource runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOmoModelSource.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a7bc13ffaf913de23e7f4297e86bcf4c64b960f5ec5429cde0642ba08649fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/OpenCodeFormFields.tsx: FileTooLong \u2014 982 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: OpenCodeFormFields (312-1264). The bar is 500 significant lines; this is 482 over it, 1.96\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbea0baabce97058de2ba53aef25634059f451d0273431ba93ddadff1cb1a65"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DatabaseUpgrade.DatabaseUpgrade: FunctionTooLong \u2014 DatabaseUpgrade runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DatabaseUpgrade.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"af70743dcca0d28c31dcd9137301e16ac34e45c8e0708dd76482d0c3aeffd6c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.apply_schema_migrations_on_conn: MethodTooLong \u2014 apply_schema_migrations_on_conn runs 194 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9743b87ce769a060583559dbe2bf1a9c3df771b3449fb16ee9dc9b4bf26a9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModeDialog.EnterBody: FunctionTooLong \u2014 EnterBody runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a0b50000ce1c234fa3bd7996a8647f8740a846e50070801b17dbb5c19be0b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_codex::sync_single_codex_file: FunctionTooLong \u2014 cc_switch::services::session_usage_codex::sync_single_codex_file runs 193 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c84a33cfacfcd1d1f4c2a6c1d6d373a8380e766f0f49c0d590a4f3cc1d8f4d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PricingEditModal.PricingEditModal: FunctionTooLong \u2014 PricingEditModal runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingEditModal.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"056af689cc7190c957fe89fb346d2a320977a70faefa1387e285609deeee09bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageTab.UsageTab: FunctionTooLong \u2014 UsageTab runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"195da154d433993633381d9a26c26811e4fcbe14a6c1dd2806e8b4f263ea276f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageHeatmap.UsageHeatmap: FunctionTooLong \u2014 UsageHeatmap runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"5879bbaaa58dc18e1a8dbf5c7b48dbbec1296e2cbdff79f2559fb9a7096f435a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageSettingsSheet.UsageSettingsSheet: FunctionTooLong \u2014 UsageSettingsSheet runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageSettingsSheet.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"556b15a1774bec62db540d994e5845b0b8e4bb713b55cbc30570398505acab23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/session_usage_pi.rs: FileTooLong \u2014 943 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 443 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f36b61b5632d44e0c9a78017dbb375b5773999b1470de7ec9af445d4067a402"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tray-panel/TrayPanel.tsx: FileTooLong \u2014 943 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 443 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc47a743daa6678b675eeef8448fbaac5383366ef096ce9402502bbadd73f0c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenCodeFormFields: ClassTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 352 over it, 1.88\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c729b5be3a800355539cf8f2e9b94e94eb56a7c2487c79aa21ac2412e10d5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UnifiedSkillsPanel.InstalledRow: FunctionTooLong \u2014 InstalledRow runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"93de8d6dbd2da8c10fc284cde0a1084bcfb52d38cfa9bd1b15c68b1480a2ed9a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DeepLinkImportDialog: ClassTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 338 over it, 1.85\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b7193fb4943cc069d8e95fd68c4cb7f85fd181f2c5ba586877890435846514"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provider/codex_direct.rs: FileTooLong \u2014 918 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 43 free functions. The bar is 500 significant lines; this is 418 over it, 1.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"682c5bbfab0892cd273c41da836bbefe0c1447cbef19cd7abe53b5a48a1fbcdd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/copilot_config.rs: FileTooLong \u2014 916 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 48 free functions. The bar is 500 significant lines; this is 416 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"001aa7ed3d719d03b7afcc0cf2613f45a22f19deafbe304c65a19918a0bc1b71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: apps/AppsPage.tsx: FileTooLong \u2014 916 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 416 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bc3add52ae2883a7febf1d40acf0d6410a005a5864ce4ca427341c9263db35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useGeminiConfigState.useGeminiConfigState: FunctionTooLong \u2014 useGeminiConfigState runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useGeminiConfigState.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3710068c85a0d78d84a3f633027b1623b7cb8eb92053f9806c0880dcf7d1f1d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/CopilotProviderForm.tsx: FileTooLong \u2014 914 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: CopilotProviderForm (283-1101). The bar is 500 significant lines; this is 414 over it, 1.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d4a59912c6d15bb7f728974367d762e04a26fadb132c6f01c2e8bf5adad1ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: turns.buildTurn: FunctionTooLong \u2014 buildTurn runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1efb0f4292c601549691ffe208b40ee42c6e3ec61b91e5b79035584cea879b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CopilotAuthManager: ClassTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 42 methods, 2 blocks, lines 563-1741. The bar is 400 significant lines; this is 321 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4ade4b82806aa2db6835a965ea6e6b95c89d74c78c686145c93f4560a6b1ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/session_usage.rs: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 381 over it, 1.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89d4394d1357644f87070aae26fe73ad62fe0ef351b21449848f74c86baa47f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prompts/PiNativePromptResources.tsx: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 381 over it, 1.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"716b0dae2d29fcc9844f0ad0dba843fd319c2ce2556727a95e578d0576ace3eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::handle_codex_chat_to_responses_transform: FunctionTooLong \u2014 cc_switch::proxy::handlers::handle_codex_chat_to_responses_transform runs 176 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8803a9aecbd4861bcdfa32d97a98705e914190d4fedc1caaf62012773872ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: TrayTexts: TooManyFields \u2014 52 stored fields beside 2 methods. The bar is 30 stored fields; this is 22 over it, 1.73\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca98c952433ca0d296c2f396b327ebf493bc8a6112ac1b325ea7899e8c9afae2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: deplink.html.generateLink: FunctionTooLong \u2014 generateLink runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"21573514c9d04ce9ddde5bd85f3983543e0dc63a6a508a6ec63a82f8d06d652a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: skills/SkillsPage.tsx: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: SkillsPage (167-873). The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1202000d377c5821bc2ffc5802f5a3f932fc229cb0ee7da7e77eef2b945f2a97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CopilotProviderForm: ClassTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 289 over it, 1.72\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3194c216e07a222bdacb1d32159e45ee899b568f8fd9cd1de83a8b53d76d0bd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_codex_anthropic::convert_input_to_messages: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_codex_anthropic::convert_input_to_messages runs 171 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b7938e5d3fd4c72710094acc472fa903df3a639c618fa6dd189722d00a2afb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/provider.rs: FileTooLong \u2014 854 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 46 free functions. The bar is 500 significant lines; this is 354 over it, 1.71\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac304054468a1f84e3cd5fa124509b54f6a3998f342b3f1ff7e3a2c3c559b9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RectifierConfigPanel.RectifierConfigPanel: FunctionTooLong \u2014 RectifierConfigPanel runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/RectifierConfigPanel.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"684f196e0556dbb6515684b9347056d4f048ce1cea7097caaec0e3b60ae4efd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodexConfigSections.CodexConfigSection: FunctionTooLong \u2014 CodexConfigSection runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexConfigSections.tsx"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"119705d66030e9e04c8139a81b3e9bb06c5c8fcfdaf06a38280d86b0b555d218"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: StructuredOptionsEditor.StructuredOptionsEditor: FunctionTooLong \u2014 StructuredOptionsEditor runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/StructuredOptionsEditor.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb58595e86b1d263050288d71d0dba58956b088b0d6d990b3151c7cbf9a8a08"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GlobalProxySettings.GlobalProxySettings: FunctionTooLong \u2014 GlobalProxySettings runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81bcd5154f30bed3fb2879f7f936c288274b579d827c42c0296448dfae07110"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/UsageDashboard.tsx: FileTooLong \u2014 838 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: UsageDashboard (253-1025). The bar is 500 significant lines; this is 338 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61340e4588be4dc5fa5b1d71cd06d988a5601ea2d1d4b8cabce6144dce67db0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::commands::provider::query_provider_usage_inner: FunctionTooLong \u2014 cc_switch::commands::provider::query_provider_usage_inner runs 167 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"23228ced493ae11e7d8d7bff56cfbc59f11371eb9b35f62c43c7ca237aab77ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PiNativePromptResources.PiInstructionFileEditor: FunctionTooLong \u2014 PiInstructionFileEditor runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a675c99420d470da382bb8ca8990a1d623c5afb2c89eee2e726c62136ecc8d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CommonConfigEditor.CommonConfigEditor: FunctionTooLong \u2014 CommonConfigEditor runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CommonConfigEditor.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"263874898efe9f8a5268dbbc3f57ac51ecde2f4b3656b01c4104b7296006d726"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RequestDetailPanel.useDetailSections: FunctionTooLong \u2014 useDetailSections runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestDetailPanel.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f371f87d8ac669a0395a4b4d3c70fc3fd29847050cb5e6c1b31405c6e8c431a2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KimiProviderForm: ClassTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 262 over it, 1.66\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a026531db889f3681c46d03011eeea855bee0554070526706847203cee34390"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useToolManagement.useToolManagement.executeRun: FunctionTooLong \u2014 useToolManagement.executeRun runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"01652435acd5b5173ccf0d19223b478b77025e2775b1f67e97262afd7a9b3ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppMatrix.MatrixColumnHeader: FunctionTooLong \u2014 MatrixColumnHeader runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/AppMatrix.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1555fe82ca953bb866c3a341250680f6f0249b4d161904968cf9a07590d5309b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/app_config.rs: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 317 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8511f7caf1f14d09a5b74ed81835df9f6a9f54897cb8ab19c5359fbfa8a84bc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ManualUninstallDialog.ManualUninstallDialog: FunctionTooLong \u2014 ManualUninstallDialog runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ManualUninstallDialog.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcb76797a0c656910cd4880f424e1f49d6f38529bfcc0cf98b9214307552959"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileSwitcher.ProfileSwitcher: FunctionTooLong \u2014 ProfileSwitcher runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/profiles/ProfileSwitcher.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bce0d1640d0e632d4fa689e8b178e85a89975c2f581f9d98aae677f73a1bc44"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DirectorySettings.DirectorySettings: FunctionTooLong \u2014 DirectorySettings runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/DirectorySettings.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4768c0c835f19b450ea58de53872b15a2b7d0f65730633c7034c15c0da96d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/SessionMarkdown.tsx: FileTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 313 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"481556bf64621885ecfda682df0bf17bddcbb5d1f83ee5db177915b239dd5364"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/codex.rs: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 307 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44605b01a627cdb3b9e5526a7d14fac30ea7a319d171cf2f0d45f2520bfcb5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.get_model_stats: MethodTooLong \u2014 get_model_stats runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"32821dd08e868c3dcf32d6ac800320a7604bb70c7269a80315b24f98dda4846f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BackupStorageSection.BackupStorageSection: FunctionTooLong \u2014 BackupStorageSection runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupStorageSection.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceaaeec8b3938b3bd19936bb96043f09e04864a222cbd6b5e4142db99431e93d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kimi_oauth/mod.rs: FileTooLong \u2014 804 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 304 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d7ef31a0fc9bc4c2525735309e7596e830c50f358f6dab0afa26783d592abd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/DeepLinkImportDialog.tsx: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: DeepLinkImportDialog (86-1039). The bar is 500 significant lines; this is 302 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c611744852bc95e33c00927d27bc93c7c18cd0da3468ccf4ddac91a0a42f5e36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: apps/useToolManagement.ts: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: useToolManagement (422-1158). The bar is 500 significant lines; this is 302 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a558581a15a10595e7be6b76df30687829afdaa3c78b991426a3c4aef434d840"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::provider::codex_direct::plan: FunctionTooLong \u2014 cc_switch::services::provider::codex_direct::plan runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"89065d27343e381bb3502dd91751f8976dbfdb5b64ef985c6907fb8378bc3663"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsageDashboard: ClassTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 239 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1881a0709b880b1b44b7332fe162cf5cd92be0fe176a9ab1550f59524063dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.get_provider_stats: MethodTooLong \u2014 get_provider_stats runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ba24e03e7b6736e05845c55779b851f7a7da85ec290a03e6f16d37bd4cfd8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageTrendChart.UsageTrendChart: FunctionTooLong \u2014 UsageTrendChart runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d9b11260553caae9771c9ce1fff34188cbbb58562ec7f3561c9ed16828a9ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KimiAccountLogin.KimiAccountLogin: FunctionTooLong \u2014 KimiAccountLogin runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/KimiAccountLogin.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35bcaaf4da2a956b717936c8b93981a41623a35b891f6886e4d15874c20d451"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GeminiFormFields.GeminiFormFields: FunctionTooLong \u2014 GeminiFormFields runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiFormFields.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76ce6d25789067a446ae280b2f63359e72b7f01f4949fdc547bc572270400c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/turns.ts: FileTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 272 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08229b60574ab9e82d2bf8588bc011a6a0baa41acbebd7d6414e2d6f7a2201b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tray_panel.rs: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 271 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray_panel.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b330e89c176bcaf8365914d417303ae15b2c41000a69dcfe88b5736c481a67b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/presentation.ts: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 266 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0186ceccb658e65841cbc9a17ddae287153a3584b0f7e60bd5bb777bcdd1cc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::usage_script::execute_usage_script: FunctionTooLong \u2014 cc_switch::usage_script::execute_usage_script runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/usage_script.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de513d031e0d750436061f2510191c38e443016bb053f0b55a56b5a3e329229"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workbuddy_account/mod.rs: FileTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 257 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccb40e644f16b71859a3dc670c9a19823d08bc5247a3998e9cecdd492a11160"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/KimiProviderForm.tsx: FileTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: KimiProviderForm (111-894). The bar is 500 significant lines; this is 257 over it, 1.51\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1d1ac36655cbea885402a13da5ccfbf87cbfe1311f2b312fe5df4e612d9ae0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::chat_sse_to_response_value: FunctionTooLong \u2014 cc_switch::proxy::handlers::chat_sse_to_response_value runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":3023}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db08afd029518145308a2c2af3ceef966c0b3e0be7d3b624bc0b1506df08d51"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: cc_switch::opencode_config: TooManyFunctions \u2014 45 free functions. The bar is 30 free functions; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/opencode_config.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bedfd70a7527ffb116a000e9215570b9fe69dc0ebbfb5c85f80e0fc03fb91c7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkBuddyProviderForm: ClassTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 200 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"306a251d5c3e6b71b7c7196c3ac6e8e68e321242709375935913b2d010a3c925"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClaudeStackModelsField.ClaudeStackModelsField: FunctionTooLong \u2014 ClaudeStackModelsField runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeStackModelsField.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0962e76aa164ad6aab4d358b01aea68c39220e3d32e0c9af42f3622244c33a5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/xai_oauth_auth.rs: FileTooLong \u2014 747 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: XaiOAuthManager (2 blocks, 190-865). The bar is 500 significant lines; this is 247 over it, 1.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/xai_oauth_auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d307817d21fbcd4895aeddf7a429199dfe485eb39b4dd74723e9ef82a7a398"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexOAuthManager.add_account_internal: MethodTooLong \u2014 add_account_internal runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c72b05ac1a99ca87aedc1270bed654ad1733bd2f8fcc589993fc8c5e70a6dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::streaming_responses::responses_json_to_anthropic_sse: FunctionTooLong \u2014 cc_switch::proxy::providers::streaming_responses::responses_json_to_anthropic_sse runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c133c077ba36f88b0882a2fe35c4229f46d92b45f928374e37ff6059465bd11e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Sidebar.MainDirectory: FunctionTooLong \u2014 MainDirectory runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a713d376908a712e47a5b94fdb62f6eb630f93a1e9a0a9124532ae7f2e13cd4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageHero.UsageHero: FunctionTooLong \u2014 UsageHero runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHero.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c25dfd6240efa4d3b12b865de09daadc70d178ddcefc6df180e8940a48dc57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/backup.rs: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 93% of them inside a single declaration: Database (114-1175). The bar is 500 significant lines; this is 244 over it, 1.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e39f233628b80d481d3dddd48db5c66895a3f1931dc7b86e249a26896ba2220"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/codex_items.rs: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 243 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex_items.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed88e7001ca4ae966f58ccf8ed3419607712c31fe4616eae10bee7366255b6ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/ProviderPresetSelector.tsx: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 243 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea391285a29562311b07032865dfe49a718db674e0181a9d54bc1dee18177c49"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: deplink.html.parseDeepLink: FunctionTooLong \u2014 parseDeepLink runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf89ba7c2c1afc45a5a444e5d36fb58b6950c4e4cf71ae357e012cb9511baec5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_responses::anthropic_to_responses: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_responses::anthropic_to_responses runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"140f5dca656ec46efee9f9d8a15469dff057cab92a9f752677b28c1288303eb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform::openai_to_anthropic: FunctionTooLong \u2014 cc_switch::proxy::providers::transform::openai_to_anthropic runs 147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9b775d915a8ae35b6aa0dad92ec8d36e286222fd0a590ac28a29ba47cf932d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ToolUninstallConfirmDialog.ToolUninstallConfirmDialog: FunctionTooLong \u2014 ToolUninstallConfirmDialog runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ToolUninstallConfirmDialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53d10f814c59bd55daeb488cd56ff42b1316b64f0f60386b04d5e079af0b99e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PanelTexts.from_language: MethodTooLong \u2014 from_language runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray_panel.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6183515ffa72a8354f3c16b117de5fb236f3265d8ef1da8bfd9a0d33895057fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: McpService: ClassTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 27 methods. The bar is 400 significant lines; this is 181 over it, 1.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de1e549fc9bb00db9ec11fcf3fd7729c69c9083fe24a2ddde7174629e7fc845"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::mcp::codex::import_from_codex: FunctionTooLong \u2014 cc_switch::mcp::codex::import_from_codex runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0c3f37207e12dc9147858a5f684d1839e045a383023ad3c9a0419e64994596"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfileManageDialog.ProfileManageDialog: FunctionTooLong \u2014 ProfileManageDialog runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/profiles/ProfileManageDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd5ab0b7086094d035cabd161ac93849e2230ded6f81846035076135b9cde30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClaudeOfficialSection.ClaudeOfficialSection: FunctionTooLong \u2014 ClaudeOfficialSection runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef336d02a47d226a8f98daa6a065a951727b6911b61c84f90fc191780738f2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useKimiOAuth.useKimiOAuth: FunctionTooLong \u2014 useKimiOAuth runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useKimiOAuth.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae309af1ab4e3f137e373418985b018432b542e3cf004cb7791ba3c06ed46bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodexOAuthManager: TooManyMethods \u2014 43 methods, declared across 2 files: providers/codex_oauth_auth.rs (39), codex_oauth_auth/browser.rs (4). The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f9f574419797051f760e9e4d552dcafb3659eb126d60b79f3681d931e6b194"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dao/providers.rs: FileTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: Database (23-974). The bar is 500 significant lines; this is 216 over it, 1.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/providers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8264101d0d44ba13146853dcac3497abb6cdd55b85438afd64131472a01d81"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SkillsPage: ClassTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 172 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1926d94163fc2d331353c501b5c2d4980804f4283216330dcf6bcb249fa0db2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::copilot_config::validate_document: FunctionTooLong \u2014 cc_switch::copilot_config::validate_document runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5dab804f832729796a2972cb59448eb2095872e47d51ec24f967f577da5f75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PiNativePromptResources.PiSystemPromptFiles: FunctionTooLong \u2014 PiSystemPromptFiles runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8507108fc106122ce28868d14a5a0268375b44c93af7e7a8b19b35c7119cb466"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UniversalProviderFormModal: ClassTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 167 over it, 1.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d268d1134a4650f63812fbc2621ac88d7d86315cd220f5838e68be95cd37c93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/SessionReaderHeader.tsx: FileTooLong \u2014 706 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 206 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca502565ac5809a0838b830af38ea0fc45b7871c91fd1b16458476f0e3b75714"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkBuddyOfficialSection.WorkBuddyOfficialSection: FunctionTooLong \u2014 WorkBuddyOfficialSection runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyOfficialSection.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc01d215d39eea580e5310d617028b2c5649f4d0cd7ab7cc6420027084773d1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/ProviderCard.tsx: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: ProviderCard (220-845). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ef7ba858ec400649a691218fa1e8a78ef915d7522b9a9c97f5c71598622ab2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/WorkBuddyProviderForm.tsx: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: WorkBuddyProviderForm (129-854). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3e012dfb383b42c03669d75772f719ecc96f675b251e35be4e933e5a47dfd7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: cc_switch::commands::proxy: TooManyFunctions \u2014 42 free functions. The bar is 30 free functions; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/proxy.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4aadb729deb35f6a19640af52a10b9aa9e8ecd27cbc06caf77a23de7cd8150"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CopilotAuthManager: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e17d68dc81f471c69b718b9c05ee1d490578004975193985c8620606c3aebd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpConfirmation.McpConfirmation: FunctionTooLong \u2014 McpConfirmation runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/McpConfirmation.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"912eff2a27439b90e6d152c563e5e97c18b04fd0220190913dec4fc64c449886"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deplink.html: FileTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 199 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ee5ec6f5f26a86b99abf6d801d60606aedfb1ce0fb6235fc464e57ca1e79dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd28331bbebe4d62cbeb0375faa0d487569eeb5d70467ad31ed4c18351320b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderCardActions.ProviderCardActions: FunctionTooLong \u2014 ProviderCardActions runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCardActions.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a006960ef0a487a6df7c9dd9ce61be62d780c6b1f7756cadf5bbabcc1a90ede"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QuotaLines.QuotaLines: FunctionTooLong \u2014 QuotaLines runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f10c26575ab7ab9e2fb6e7d0f6b1f39fc38375f2b50ed309d81d28668a8780"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/provider.rs: FileTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 194 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3aa4d6830796dd2905b40feb4bb80f63c7e392c068cee132d7de2e3a282b76"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::provider::live::write_live_snapshot: FunctionTooLong \u2014 cc_switch::services::provider::live::write_live_snapshot runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"af70dbf04a04dcccce79d8e1bd08651be38dca19034aab85f08c2fde3c94e31b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodexAuthSettings.CodexAuthSettings: FunctionTooLong \u2014 CodexAuthSettings runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/CodexAuthSettings.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff813a55be1671e1dc7bf2bcf849ec0ed9e9638bffc6a6015b0936cb80820ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::provider::codex_direct::run_with_edits: FunctionTooLong \u2014 cc_switch::services::provider::codex_direct::run_with_edits runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35041dbd2a52f84470961728359c2c07f9888e7a42a52ca06258eb97a1649f2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionReader: ClassTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 144 over it, 1.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a37e36750b954131b98a300a62b8cbaebb9874e5a33cb767d6d2998c094e62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/transform_codex_responses_xai_sanitize.rs: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 180 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbb8c5ec2f9835449c80baebc630d2ac1f46084c0b68a00a6a0321fe0e3d244"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::provider::codex_terminal::build: FunctionTooLong \u2014 cc_switch::services::provider::codex_terminal::build runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_terminal.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dedf0cd09c97f25e00ed3498aff260e30f0f639c4f587a4a53d7928c8f0d9fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptCopyDialog.PromptCopyDialog: FunctionTooLong \u2014 PromptCopyDialog runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptCopyDialog.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0f49fcdae781c203837672475328e908c7d352617ee33188c59d419f0d5fca"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ManagedAccountRemoveDialog.ManagedAccountRemoveDialog: FunctionTooLong \u2014 ManagedAccountRemoveDialog runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ManagedAccountRemoveDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d84b1a1eff6d9d47750b14f342d53e56115d6b9b707ce36f3e3d519e0143536"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/omp_config.rs: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 179 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72cb46cb8e6fb94a650dd8d67ed381e6d421e932e656239c6a4106624167402"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.get_usage_summary_by_app: MethodTooLong \u2014 get_usage_summary_by_app runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95f20c72a369b0ab6de90a0912ffc243fccb31f135dc0e9f1ac7c3a31dc39f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptListItem.PromptListItem: FunctionTooLong \u2014 PromptListItem runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptListItem.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b137bf0404867a87733b1ea64d92453d95614be4c9a5c751a2baa395b1c574b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/types.ts: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 174 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"341a3a0c9c1c9c74b8f985d76f0de9a020eb40c8e2aae62e88c1e6413a908bc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_codex_anthropic::responses_request_to_anthropic: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_codex_anthropic::responses_request_to_anthropic runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f1f1993dad246ea4e81af5d18ff2ed7d6f03dcc95e546d9383421fdbd5cc7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useProxyStatus.useProxyStatus: FunctionTooLong \u2014 useProxyStatus runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProxyStatus.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9b84851cb0c39c440828334b9305dc5f6b6706a589603cbb609f8331198074"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/auth.rs: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 169 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae0b3407acd42f092b449e0833d60cf218de49b1b74b5325359f6a0b73e232d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TrayPanel: ClassTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 132 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c9c51c2d777091e02e123e894664bc558761691452ce9212a3360227363c54"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProviderCard: ClassTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 132 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b06e770efc7d22ec10c2ad3be1d68e0023fe2059ecbb2c26e2bf5fded2b28f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Sidebar.NavItem: FunctionTooLong \u2014 NavItem runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d59e7c8adae94b5419795bd46d81b99bf794a5232780e96455c0011f2339f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/pi.rs: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 41 free functions. The bar is 500 significant lines; this is 163 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/pi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39f370925d86709269830af393118946b59cf8cfb20c0f2af1832615e5b64d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/SessionReader.tsx: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: SessionReader (161-842). The bar is 500 significant lines; this is 161 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e288c3ede009d8688b66ccc57e647b1eba20df4c90f7f95ef84c8192a7cd956c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ManagedAccountsGroup.AccountRow: FunctionTooLong \u2014 AccountRow runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee669047a01d655bc22446f9421f307c2a1be61815596349ded8e0a8ac7f5066"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/grokBuildProviderPresets.ts: FileTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 151 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/grokBuildProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b29c64682ea1d7b13e9f3cb653dc7d50a58d6acdd2313cdf90c76817cfe515"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RequestForwarder: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"532ffcd3a861e302cae01ef9bed34a389c2a70f148d998f1a8f9834d681a3170"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BufferedCitationTextState: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"932b3fa9e7b473cc42188a86f8d215b2f9f77db6cf3796640619e1659f2af2f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BasicFormFields.BasicFormFields: FunctionTooLong \u2014 BasicFormFields runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/BasicFormFields.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0b047096d1ae10e0149cb54534d8f884ccdcddef6014cd6685b28a37590d0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/hermes_config.rs: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 149 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"143d799d02f32c17cd3a4f6cc62e333f84fb535996d59c8ee68b76c5b0728e28"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XaiOAuthManager: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 28 methods, 2 blocks, lines 190-865. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/xai_oauth_auth.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c318379c5381daafc877cc2ca9cca10840d0e3ac9ce84a60324a251e3c49de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shell/Sidebar.tsx: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 137 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61776af10950c41aa98cc9fa5402de618e811fad94f856e2b40c1ba9bde73653"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useOpencodeFormState.useOpencodeFormState: FunctionTooLong \u2014 useOpencodeFormState runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOpencodeFormState.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e39985c4902a2ac17d5543894bd45d27006e1d5b847bbfad53bc0fa29dcffe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/opencode.rs: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 128 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fdc81585ee9da62ef8cd24bb9b5c3fb7059aa490420bd2a39535c34a75bd89"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/ProviderList.tsx: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: ProviderList (111-733). The bar is 500 significant lines; this is 126 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d707af7b0d5c6478055d895a3af4c8db7cf78aa0656f944a705679746293eb09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_responses::convert_messages_to_input: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_responses::convert_messages_to_input runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2335}}}],"partialFingerprints":{"codehealthFindingId/v1":"18662c0216a65a668de3b4db353180ade6d2f61947b4de56a401f12dbe03d8ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClaudeOfficialSection.ClaudeAccountSelect: FunctionTooLong \u2014 ClaudeAccountSelect runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba5816cb54e2079bce5099407ab3d7880457349cb8214edaed104c832801568"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: StackSubagentFields.StackSubagentFields: FunctionTooLong \u2014 StackSubagentFields runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSubagentFields.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedee2046b3db84c9716ddf4a4b3e15a81d4d8f68b8575fe931ae07feebafefa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: useToolManagement: ClassTooLong \u2014 499 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 99 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"238b7de1f04a7e8c2bd19bdb69e2ede8fc40c756b3a08aa0e934742846c117fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: project/codex.rs: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 123 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2139872a565a8b9b029512bc470237268b8336ad6d81148643fbb3bf78e78f03"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SwitchModePanel: ClassTooLong \u2014 498 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 98 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e724a15fdc597467b8ba997cc070717620f0e8053f668f8e6da1a7d4c85701d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProviderList: ClassTooLong \u2014 497 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 97 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ee39151f443bcffb2831ad05df58c29d80567bebcc1ce7075444024fa76b81"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TrayTexts: ClassTooLong \u2014 494 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 2 blocks, lines 89-656. The bar is 400 significant lines; this is 94 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c542425c07ec7b52a0a84588daa8c1b1a8c324f71e9b41d01db6c7d89742fc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenClawFormFields: ClassTooLong \u2014 494 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 94 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e77f960878c9431c0dce15e6b9560480191a492ffbbe1b3a2fcd13dea95981d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProxyService: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/proxy.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21cf9a3615efd1a46e818d58be42292bfa65702e381d5b3f1559550234c4751"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_pi::parse_pi_file: FunctionTooLong \u2014 cc_switch::services::session_usage_pi::parse_pi_file runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96c37102fb0d9c9c70b625d5148abc52efb5138f5c269a84008b4f189966d83"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::deeplink::parser::parse_provider_deeplink: FunctionTooLong \u2014 cc_switch::deeplink::parser::parse_provider_deeplink runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/parser.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d545fde0145e7f4ff68a0e9bcd0dfef3c1c76f212045eb3bf9d99f7dbed1c80"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::provider::live::import_default_config: FunctionTooLong \u2014 cc_switch::services::provider::live::import_default_config runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"86836462a62854226eed6b1bba6a3f95e91f7fb127b74e8bfe577cd97b080735"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: HermesMemoryPanel.MemoryTabPane: FunctionTooLong \u2014 MemoryTabPane runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/hermes/HermesMemoryPanel.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a98a690f284c8de6788317db6aae648614fb3fecedbb4a4a6d6edc24d86c186"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionMarkdown.renderNode: FunctionTooLong \u2014 renderNode runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"3378995305551b64e666f72884dcc5b4e3345730c1af61ea02a236eedef3293d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodexQuotaProtectionSettings.CodexQuotaProtectionSettings: FunctionTooLong \u2014 CodexQuotaProtectionSettings runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/CodexQuotaProtectionSettings.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"013c44752b4f13c8dd398f550541b4123f9012bb70529a92b8cbeeee62a7c96c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/response_processor.rs: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/response_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8b9e154a6b29fa87d47e49fc24fc12e290d680ac0b34aa427ac8bf9eb85263"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: auth/ManagedAccountsGroup.tsx: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 105 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"820694d8eb5b4fb640c72fd7e40326c3ab86b9562cd5cd8ac7f10bb0c7dc1b2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_agy::import_records_with_cursor: FunctionTooLong \u2014 cc_switch::services::session_usage_agy::import_records_with_cursor runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_agy.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f7b5468115cc9c68a229502980131999daafcdca5c059a043175f99c8b9ac4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::subscription::query_gemini_quota: FunctionTooLong \u2014 cc_switch::services::subscription::query_gemini_quota runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2aa78d673db65fbb5bd4969349d59568c6f91185a47adc937c6effd0a3e6df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/ModelsDevAutoSyncPanel.tsx: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f44853032ee85b21af8ecb9d1123c02060036db12ade8e892753811e7bbfb8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/hermes.rs: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 102 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d69a37f86818e732d814fd3cf69f149a3d052f319e6992c243f9b06733cae4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_responses::text_with_url_citations: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_responses::text_with_url_citations runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"496a32fa65a9cf385089c3ea5d9436367402f68c3a6e435160c7cb19544eb3d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/mcp.rs: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: McpService (22-945). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af5f300404f03717db03ce03c8ad8fd7eb45b1ae5dea30dab2d12ca51eab698"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::mode::controller::write_proxy: FunctionTooLong \u2014 cc_switch::mode::controller::write_proxy runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/controller.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"32771394a9ca7017ebfd7a7347b21f7ab9f7db0c048916fa29abc97b0919fc69"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_grokbuild::sync_single_grok_file: FunctionTooLong \u2014 cc_switch::services::session_usage_grokbuild::sync_single_grok_file runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eb39cf69b32cca060cfa32962780c0b778539339fd099f4fb02316833ede4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_grokbuild::insert_grok_session_entry: FunctionTooLong \u2014 cc_switch::services::session_usage_grokbuild::insert_grok_session_entry runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb1996486387e73a9825918894c1c7c274dc2067ab89354ebadb70cd5f7cb87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: universal/UniversalProviderFormModal.tsx: FileTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: UniversalProviderFormModal (30-722). The bar is 500 significant lines; this is 93 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b6fde0fc835a25281a1960cb6acf87fc88db7b3e32bf28e8fd7e9de7ea0e3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::handle_codex_anthropic_to_responses_transform: FunctionTooLong \u2014 cc_switch::proxy::handlers::handle_codex_anthropic_to_responses_transform runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a17505accd8f1bca6b442471029ecab727dd39a56640b3420534a56346917d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BufferedCitationTextState.render_message_part: MethodTooLong \u2014 render_message_part runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a2e24cc2f4c23326365f5c93427e8fdd2a2f620af4e0ca2f3454086f7569f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mode/SwitchModePanel.tsx: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: SwitchModePanel (102-727). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1545a3c5bf52d5ec6e7b45b38df1b3d14ae44c45a63abd9508b9684fc98f717a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::handle_codex_xai_native_responses_rewrite: FunctionTooLong \u2014 cc_switch::proxy::handlers::handle_codex_xai_native_responses_rewrite runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd4b5fccbe908abdb8b528be2c05e075c8f3bda2657d0681ae5bae999116888"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AuthCenterPanel.AuthCenterPanel: FunctionTooLong \u2014 AuthCenterPanel runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AuthCenterPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c8ed694677ffc3867e53d4a6a765b27293092fb484a81dd628f2a7736e6d7a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: cc_switch::config: TooManyFunctions \u2014 35 free functions. The bar is 30 free functions; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/config.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2087e13f89b27a629c64cf8c3a83acba39330864c35e175e22a5545798bcf8b7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: cc_switch::pi_config: TooManyFunctions \u2014 35 free functions. The bar is 30 free functions; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf81a9e0a26d461e6660e1cebe08c12141d474174a1c500392a529dfa441af1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/streaming.rs: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 83 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88afe029cece14c5a45b37b6d6bd91d85e9550ecf1221bc5fdc6e0b8b1bb82fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/claude.rs: FileTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 80 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"953524b1a10f6e1b989517c7b43b27ed11eee201b3c79fe41034f79f5ffdd450"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_gemini::convert_message_content_to_parts: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_gemini::convert_message_content_to_parts runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"558483a157575dbccb350e978834b8db5a6f19a768df1132c976d297eea6994b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useBaseUrlState.useBaseUrlState: FunctionTooLong \u2014 useBaseUrlState runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"75722b055f2c624745e8c70f783d035b6538f7e38a74a8d8f14dea63c8db7f7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModeTabs.ModeTabs: FunctionTooLong \u2014 ModeTabs runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeTabs.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95ba66007b892906f83e057181c3a7b1fa850a2186fa1b8dfb60f358b9ab736"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/streaming_codex_anthropic.rs: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: AnthropicToResponsesState (3 blocks, 55-548). The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d6f8fd748b20c7fcc2570adf80bdd4c9d1538e95de38c87233fe8878c1b743"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workbuddy_account/quota.rs: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/quota.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c740c84a18720b058f3369f36a1d70c13cfe519950f02a3a21f9b356c469f62"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatToResponsesState: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 25 methods, 3 blocks, lines 55-748. The bar is 400 significant lines; this is 56 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0410654eb43d6edd8b00f5dd8f1c9c8a56d1796b77ab772424822fe1751dc24"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::handle_responses_for_app: FunctionTooLong \u2014 cc_switch::proxy::handlers::handle_responses_for_app runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2a25fa3d247f97ea42de82376f412aee997cb88ff04b06209c935b786cfe9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_pi::parse_usage_record: FunctionTooLong \u2014 cc_switch::services::session_usage_pi::parse_usage_record runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a8755b93a76c5240f9323f2f40eb607f7bf92ca145c5c7a85f7e79541576d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionDialogs.SessionDeleteDialog: FunctionTooLong \u2014 SessionDeleteDialog runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionDialogs.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e776d54a952d58418748bd4dba80e6bd96192dc2de8ad8a690dc60f0ff66e315"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quota/QuotaLines.tsx: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf7792f17d48f3e8dd2c7ee80d62d5485212941fce4b622529f13293604d3b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/streaming_codex_chat.rs: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: ChatToResponsesState (3 blocks, 55-748). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7735204750cc96e766acbb4505596124b0fe2be50bfee8dbc533539015584d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.migrate_proxy_config_to_per_app: MethodTooLong \u2014 migrate_proxy_config_to_per_app runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dcb7c4424b0875a7745d91f8fdddc54807de576773004e31e0bac9d09cde8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_kimi::sync_file: FunctionTooLong \u2014 cc_switch::services::session_usage_kimi::sync_file runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_kimi.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4763331123028f7518b53e70277001717fa2c63af317ac4bab3960c435989c5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FullScreenPanel.FullScreenPanel: FunctionTooLong \u2014 FullScreenPanel runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/FullScreenPanel.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0001f806d9a6766f4b4326dfad77b5a0d2b85ba0199f9f374c94de9ffbef5de2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgyOAuthSection.AgyOAuthSection: FunctionTooLong \u2014 AgyOAuthSection runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/AgyOAuthSection.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aeb525546638930c91fd5d01aa8c6e5f119407a4ce21f751bf4e78740c3da96"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TranscriptBuilder: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 2 blocks, lines 372-988. The bar is 400 significant lines; this is 50 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"173446287409e91d38ec6f33538e271c6cd4976cd5eb0b2e3f380dcaae6b1280"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useOpenclawFormState.useOpenclawFormState: FunctionTooLong \u2014 useOpenclawFormState runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOpenclawFormState.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad82cfa8f7346a2d81308bb353c8ecdaa2aff9708220dfba373943d01cc84e1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/openclaw_config.rs: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/openclaw_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"470211c3b55f7e9f65f7db77e63ebf7c0326fca8ba0afed38d54923880fdb3c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/RequestLogTable.tsx: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: RequestLogTable (182-723). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca00dcbd99e72b13a95a9515c7d82eb289a7b4357e1db1dd4f545ba02dc861e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents: FunctionTooLong \u2014 cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b8f57a592beeee009eddb6eda794bea134aef74977b153d3ed655e47b2005e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderPresetSelector.VersionSwitch: FunctionTooLong \u2014 VersionSwitch runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"49644c9241d2e299e13c0c4f0f5e976b595d0fa43cef82d02620f2946b93919a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mutations.useAddProviderMutation: FunctionTooLong \u2014 useAddProviderMutation runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d89f6cfcc7818cb39d43dfa01a3456f4bb42936d2ed67b035da5c544fd2ee62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session_manager/search.rs: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 54 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/search.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93323c76b91b2ff73ea0debbf46591ebd233142cb7e655044a962d301124235d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/kimi_config.rs: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 53 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c31428b046bfac46b56049d5bef11a51f99278fdf2489bf41fda94bc77d1a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QuotaLines.SplitQuotaColumn: FunctionTooLong \u2014 SplitQuotaColumn runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc3d665dc785cafca662842a38675d605a9b1227bd85d5c7843392c0f82eff3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillRestoreDialog.SkillRestoreDialog: FunctionTooLong \u2014 SkillRestoreDialog runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillRestoreDialog.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"87da9b1a0c5b788454659dbf87425d23e294d365be77a3401e8ddd5a7992ae90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/tool_uninstall.rs: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 49 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/tool_uninstall.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b55b9fcff0f510575f1ace76758e84d67d4ee9fec8f6529c816617b83e89f7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.migrate_v1_to_v2: MethodTooLong \u2014 migrate_v1_to_v2 runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d3cb3fc57df12dea69f12005b1a4a2aa0fb941214241a2cfd65483f29848e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useSettingsForm.useSettingsForm: FunctionTooLong \u2014 useSettingsForm runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettingsForm.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c190c582cf455ba41d074f93089afd7115b537a5a9f8ad9c3253077fa6436fb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forms/OpenClawFormFields.tsx: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: OpenClawFormFields (59-659). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9869328d0068079f5aa30b950b5f910d1cffb7efea2c3a955f7c8f43f531ce12"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::handlers::handle_responses_compact_for_app: FunctionTooLong \u2014 cc_switch::proxy::handlers::handle_responses_compact_for_app runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"471a6447de3fd5fb22e3d63d8666c304827f1a2db259b2649166e3f68a0f2cc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageFooter.UsageFooter: FunctionTooLong \u2014 UsageFooter runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a9687d561cd3ffe93a7d0b9a7f3130582eee4b4c25aaada064dd4e2352e504"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UniversalProviderCard.UniversalProviderCard: FunctionTooLong \u2014 UniversalProviderCard runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderCard.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca68045ed8a64c2259e0ecba7cb64c98b975e8faf02f98c0d44ed454cfd08e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dao/proxy.rs: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: Database (26-842). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/proxy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38efab6918d192af23959cfc47de964886cb17d1c36e18c3e404f17586e9497d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GrokBuildProviderForm: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 29 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e21e77d4810ba21d404188208310ad07dfd54692aa388e99d0f9b0644d8ee93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::commands::config::get_config_status: FunctionTooLong \u2014 cc_switch::commands::config::get_config_status runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/config.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab59182611fd76801f4f0111da545052a3b83d7fc7a31f785c23f44132a5bc3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::coding_plan::query_zenmux: FunctionTooLong \u2014 cc_switch::services::coding_plan::query_zenmux runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a501a166f6e2f3cfc3ff7a51950511c6075435aaf50257f3bc12371b5ec994"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RequestHeadersEditor.RequestHeadersEditor: FunctionTooLong \u2014 RequestHeadersEditor runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/RequestHeadersEditor.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d661008b2a61e0795f5bb84caa625463d4cbe2db13369fcf7069091f812cdf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PricingConfigPanel.BillingDefaultsDialog: FunctionTooLong \u2014 BillingDefaultsDialog runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e21d04668b7329d82554f6dca41d3a85ab127755cb8caf447db964162a5a3ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: cc_switch::commands::skill: TooManyFunctions \u2014 32 free functions. The bar is 30 free functions; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/skill.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6140790da1875ef4f0d73109b079f218620cebf334e8fbf13f58e026b7d2fd2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: DeepLinkImportRequest: TooManyFields \u2014 32 stored fields. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ed6de448bbf7bdf8acdbcd210758c89a7ac128a17efe271e6e3197b109a17f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestLogTable: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 25 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f500022ede77553ce26d74c4010c35ffb0d3132e99d06baaff5f3f5b824922"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RequestContext.new: MethodTooLong \u2014 new runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handler_context.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"411f3ec25d4c78d8a9b04f32bed421278b2e57fd9916fbcf2a190bf303f80f6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SubscriptionQuotaFooter.SubscriptionQuotaView: FunctionTooLong \u2014 SubscriptionQuotaView runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"43641d10cf606559fe3f73820bd9414fcd0f522a4f2a45afd14e7833f4b82707"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PromptPageFrame.PromptPageFrame: FunctionTooLong \u2014 PromptPageFrame runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPageFrame.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"03314432d1a9c4a8f0b6870a04eed9349452d4c2f26619c86afeb0fbaa9293c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::omp_config::edit_provider: FunctionTooLong \u2014 cc_switch::omp_config::edit_provider runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a610df56fca038740e84c71c71fe05905f01534b38a61d3a67657e2a912b6aee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_gemini::insert_gemini_session_entry: FunctionTooLong \u2014 cc_switch::services::session_usage_gemini::insert_gemini_session_entry runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_gemini.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a34716348f5a6497702d332f45fbbb15c3ba58f6a4de5c2290d676fecb69306"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/PricingConfigPanel.tsx: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc44e58610c125399fa76db902f88d962eaabf35b225351e31a9e21eea8f1ff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AddProviderDialog: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 17 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"283f2eeab18a863159951f42e49e3c45b094278f0a86ff6d21d1000c1f002a2a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AutoFailoverConfigPanel: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 17 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/proxy/AutoFailoverConfigPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f959abe9274c47375b34e87f6a52afd8f54b6feb1c37ab12fa269e6bf53662e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mode/stack.rs: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/stack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38f172314e29e86d430cb8a31a50ca363abff43f305dd18f824f8df570bb82b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexOAuthManager.resolve_valid_cached_token_under_lock: MethodTooLong \u2014 resolve_valid_cached_token_under_lock runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"901c2ef45d7854996840f932f2ced39aa8ff12371601e6aa0dae72cc94614892"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_dsh::sync_file: FunctionTooLong \u2014 cc_switch::services::session_usage_dsh::sync_file runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_dsh.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b1bd9a710233abb4ebc2c87cfd7f0af50d586dfb1e992d7d9302cb6ca399d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useHermesFormState.useHermesFormState: FunctionTooLong \u2014 useHermesFormState runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useHermesFormState.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2fd2893623d8f332b547b3dd1c1702d63333140674f0cbbbbb5df3f68a104c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsPage: ClassTooLong \u2014 414 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 14 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6205d862645039935cc29ded284c659e279e00b91fd80c08dafb40bd7582e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: cc_switch::proxy::media_sanitizer: TooManyFunctions \u2014 31 free functions. The bar is 30 free functions; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/media_sanitizer.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"959f75255aac5bc5796283da165e02c6156d4c69684b44553f84435b93ef7a82"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ProviderMeta: TooManyFields \u2014 31 stored fields beside 3 methods. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf08fa290515bef47009a107154d862769f64b088f4fadb73b2aadee1d3e0a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_codex::insert_codex_session_entry_on_conn: FunctionTooLong \u2014 cc_switch::services::session_usage_codex::insert_codex_session_entry_on_conn runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af3a00ab400ba999d9b2a58a02aaa5d81a1de106cfbe76b46e93304f92c1eb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::services::session_usage_pi::insert_pi_record: FunctionTooLong \u2014 cc_switch::services::session_usage_pi::insert_pi_record runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"211424fa9e9da5707318668a2c22e955e171e49f46ac8a11ebbba3fe21931b7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::session_manager::providers::copilot::load_messages: FunctionTooLong \u2014 cc_switch::session_manager::providers::copilot::load_messages runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/copilot.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3750da1a396697c194e1aada89508165c57e01442b3bc8442c0a437a8a9298"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useModelState.useModelState: FunctionTooLong \u2014 useModelState runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useModelState.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"08989af8003a98fc819dc8240eee836c13862fa30eac3443a9f1b0463f4714b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderStatsTable.ProviderStatsTable: FunctionTooLong \u2014 ProviderStatsTable runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ProviderStatsTable.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9157b53352b41045fb0d1471293910330d62c1f3f632a20b907eab00af9237"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::codex_config::build_simplified_catalog_from_texts: FunctionTooLong \u2014 cc_switch::codex_config::build_simplified_catalog_from_texts runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"273d9af37fb26e8b2e4f53e027fde2552ffeb8b1e6bc75d976b588f5438414d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agy_account/mod.rs: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea1ddc0a9143b95faf557b0dee6b48142c8f152f5e873db00a5c2944f239d7c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkBuddyAccountManager: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 2 blocks, lines 323-924. The bar is 400 significant lines; this is 7 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/mod.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf9946c9e584159e97be4e72db8b5cc867d72e51045738767c2bd18a0c0f24a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/blocks.rs: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 41 free functions. The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/blocks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"253cdc985ea284ffe5b857aa92ac068cb72608ccbe49ff78115e91732896d122"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cc_switch::proxy::providers::claude::transform_claude_request_for_api_format: FunctionTooLong \u2014 cc_switch::proxy::providers::claude::transform_claude_request_for_api_format runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fde5ee80d9c9075ff46625a9b41ef1cb2cb00741d677b2c6b96ca3ba9f78606"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QuotaLines.QuotaBars: FunctionTooLong \u2014 QuotaBars runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"9236cca3a96e944c440f6be94c6dbecd821b2704cd12691b2e68e7a56e13c50b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: claude_account/mod.rs: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/claude_account/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1420de687530851202f1a724d2426156671f0023770f14061998c0608a70e749"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 51 shared lines): src-tauri/src/services/coding_plan.rs:164-275 | src-tauri/src/services/coding_plan.rs:544-633 | src-tauri/src/services/coding_plan.rs:898-973 \u2014 These 3 members are variants of one another: a block of 51 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5646d8ecb39ee2417014b431df70b2ac2d2bfb28549098279e0d0b0fbd4f34de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 33 shared lines): src-tauri/src/session_manager/providers/claude.rs:146-285 | src-tauri/src/session_manager/providers/codex.rs:1980-2101 | src-tauri/src/session_manager/providers/openclaw.rs:150-264 \u2014 These 3 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ed042420fa74b8fcfc26a4c2a60fdd37ad4b7a8335888d42474171041aac9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src-tauri/src/mcp/agy.rs:107-157 | src-tauri/src/mcp/copilot.rs:258-304 | src-tauri/src/mcp/kimi.rs:84-133 | src-tauri/src/mcp/mcode.rs:69-118 | src-tauri/src/mcp/omp.rs:200-244 | src-tauri/src/mcp/pi.rs:251-321 | src-tauri/src/mcp/workbuddy.rs:108-165 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3026dc33d8b2579f6bb8c874af38f802720de78554c39c00fcaf29f3764fd733"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src-tauri/src/proxy/handlers.rs:339-456 | src-tauri/src/proxy/handlers.rs:999-1075 | src-tauri/src/proxy/handlers.rs:1121-1267 | src-tauri/src/proxy/handlers.rs:1393-1459 | src-tauri/src/proxy/handlers.rs:1481-1610 | src-tauri/src/proxy/handlers.rs:2641-2725 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c7c7ef54bd74f9fbe574c87373c561080b239227e8a954f34f755617876bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src-tauri/src/proxy/providers/codex_chat_history.rs:440-466 | src-tauri/src/proxy/providers/codex_compaction.rs:356-390 | src-tauri/src/proxy/providers/responses_late_arguments.rs:200-240 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:767-859 | src-tauri/src/proxy/providers/streaming_gemini.rs:243-575 | src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:1104-1133 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_history.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa13f59dc20d9622b14c967537203ecd612abda9cc493aacd0c5ec347a7dbcdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src-tauri/src/services/mcp.rs:680-715 | src-tauri/src/services/mcp.rs:718-753 | src-tauri/src/services/mcp.rs:756-791 | src-tauri/src/services/mcp.rs:794-817 | src-tauri/src/services/mcp.rs:820-855 | src-tauri/src/services/mcp.rs:858-893 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"814232f92dc98b4d73a12ade60550744bd5a37713976ddafbe16c9607c3711e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src-tauri/src/services/usage_stats.rs:991-1107 | src-tauri/src/services/usage_stats.rs:1156-1312 | src-tauri/src/services/usage_stats.rs:1322-1654 | src-tauri/src/services/usage_stats.rs:1665-1748 | src-tauri/src/services/usage_stats.rs:1758-1941 | src-tauri/src/services/usage_stats.rs:1951-2143 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"988a0d0eb0384822ba67d6274b62a5f1742a62e9dab5cfb591db00f25c7105e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src-tauri/src/mcp/agy.rs:11-29 | src-tauri/src/mcp/kimi.rs:19-33 | src-tauri/src/mcp/mcode.rs:11-23 | src-tauri/src/mcp/pi.rs:65-77 | src-tauri/src/mcp/workbuddy.rs:25-43 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc8b16b25fe60dca38bc64c36aa09e169143d5cf52856d7b7047343cd15529b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src-tauri/src/proxy/handlers.rs:630-939 | src-tauri/src/proxy/handlers.rs:1668-1818 | src-tauri/src/proxy/handlers.rs:1827-2058 | src-tauri/src/proxy/handlers.rs:2075-2222 | src-tauri/src/proxy/handlers.rs:2322-2386 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d0b71c380cde46e8cf1cc75e41db6138c6c09d9afdf251e59c8de95b3a6da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/lib.rs:311-365 | src-tauri/src/lib.rs:437-483 | src-tauri/src/lib.rs:486-2145 | src-tauri/src/tray.rs:3058-3080 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae2f17d04c309de2471a37bd0a4efeec70a22d52254002e84277f8135fbaa48"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/mcp/agy.rs:62-105 | src-tauri/src/mcp/kimi.rs:50-82 | src-tauri/src/mcp/mcode.rs:40-67 | src-tauri/src/mcp/pi.rs:205-247 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6ddbc24a107ea92a4ca2b4eec04b62de747bef38381b8eddced19c7bbde5f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/mcp/agy.rs:167-183 | src-tauri/src/mcp/kimi.rs:143-158 | src-tauri/src/mcp/mcode.rs:128-138 | src-tauri/src/mcp/pi.rs:345-355 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3141e0a7a2ad1fbfe4a1cd1d36572b5b76c19915b015fa01db10b9d59a9bc8b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/mcp/claude.rs:51-122 | src-tauri/src/mcp/codex.rs:69-298 | src-tauri/src/mcp/gemini.rs:51-118 | src-tauri/src/mcp/opencode.rs:213-294 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16f31cf8ba06d6f33001dc91f23b4eb8e1202110f7502b5b62812e83b07b53a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/mcp/hermes.rs:61-105 | src-tauri/src/mcp/hermes.rs:117-163 | src-tauri/src/mcp/opencode.rs:44-105 | src-tauri/src/mcp/opencode.rs:116-178 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"302ac2b3966c355365f52efe378534e7432d55b93d5256b644c49e60fe91bbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/proxy/handlers.rs:630-939 | src-tauri/src/proxy/handlers.rs:1827-2058 | src-tauri/src/proxy/handlers.rs:2230-2308 | src-tauri/src/proxy/response_processor.rs:501-591 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e85100b036fceddbd68053deae2ea5c11df7e47b3bc8ddb9035c45fe07a23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/proxy/handlers.rs:1668-1818 | src-tauri/src/proxy/handlers.rs:1827-2058 | src-tauri/src/proxy/handlers.rs:2075-2222 | src-tauri/src/proxy/response_processor.rs:230-331 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2434ab65ec3a9a733e631063a4e6aed8dc28fd5333149c4e9a17b711d695c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src-tauri/src/services/s3.rs:333-367 | src-tauri/src/services/s3.rs:375-411 | src-tauri/src/services/s3.rs:420-485 | src-tauri/src/services/s3.rs:491-532 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe7c2d00518370992587fb5be912f1850c88898e71912311408cf2c86727539"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): src-tauri/src/live/patch/json.rs:47-120 | src-tauri/src/live/patch/toml.rs:33-102 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/json.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d882fd22d6acddff26eda570bcf0d244d33046512188ec437adc139bb4aae56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (115 corresponding lines): src-tauri/src/services/session_usage_codex.rs:2638-2752 | src-tauri/src/services/session_usage_gemini.rs:247-369 \u2014 These two members are one piece of code written twice and then edited apart: 115 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2638}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c48280f7d290c159bd873f6c9239011335db8a5b9b5ec5763821be145d1ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): src-tauri/src/services/skill.rs:4311-4397 | src-tauri/src/services/skill.rs:4877-4954 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81d4213ff4ceab2f1169435030b774c9685d736ba1f237833749ac26f358bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): src-tauri/src/services/session_usage_copilot.rs:182-262 | src-tauri/src/services/session_usage_workbuddy.rs:120-193 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_copilot.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b35056eb15483b617da09503a4c4d2ff1a8d981aead7fe354797a3b57f0952"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 54\u002B corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1999-2052 | src-tauri/src/proxy/providers/copilot_auth.rs:1479-1532 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:805-864 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"3027bf2aac3a579a1024a6ba1085458542097ef1004ad5c8ba21aaa1443ea927"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): src-tauri/src/claude_desktop_config.rs:1103-1165 | src-tauri/src/proxy/providers/claude.rs:243-311 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0934d7e09878fa681e5993e05941d11325d2be0ad03c0ed18fdcf7d4e29c8f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): src-tauri/src/services/provider/live.rs:1442-1523 | src-tauri/src/services/provider/live.rs:1530-1591 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ff5dc17ea4f0af5a691ad5bf617fba5f26a78383842a3c276cfbe57a29b86d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src-tauri/src/proxy/providers/copilot_auth.rs:1138-1192 | src-tauri/src/proxy/providers/copilot_auth.rs:1252-1301 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12fc9040b22ea144ee5e8992026b71f88a0291bb7bf35ce68361377cb741b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src-tauri/src/jsonc_document.rs:283-314 | src-tauri/src/jsonc_document.rs:320-351 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c603ad42509ebc5e6d7b2baa7711706f680f24808c86fe84d3e1871378a8dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): src-tauri/src/deeplink/parser.rs:248-323 | src-tauri/src/deeplink/parser.rs:330-408 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/parser.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afe94265d9f16cad303e727c5e775554a9c4b4fef528c5d33579801438ae57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src-tauri/src/jsonc_document.rs:360-398 | src-tauri/src/jsonc_document.rs:406-443 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e09b093023322f1784844bd77ab85756bbdbd3bdf73e34ae2abdfca768286f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src-tauri/src/services/coding_plan.rs:396-440 | src-tauri/src/services/subscription.rs:451-505 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d123cc29986560a361fb0edb2f4354fce67d4ebbd14cea366747c1e1af03309b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:889-936 | src-tauri/src/proxy/providers/transform_responses.rs:217-253 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabac8393f203bb4f91033459e110085d6b7156d9d2f1d3cd0da3790bf4cf669"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src-tauri/src/provider.rs:891-935 | src-tauri/src/provider.rs:938-999 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec14ef2cc66bd24333192a261013424b3037f44370a7216757672fa9c2c60b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): src-tauri/src/services/subscription.rs:260-340 | src-tauri/src/services/subscription_grok.rs:62-131 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d0b99f22c9d17937d201c4705e3f5397b2acfae69e945b02184230fcac1b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 38\u002B corresponding lines): src-tauri/src/services/balance.rs:75-112 | src-tauri/src/services/balance.rs:157-209 | src-tauri/src/services/balance.rs:293-330 | src-tauri/src/services/balance.rs:369-406 | src-tauri/src/services/balance.rs:449-495 | src-tauri/src/services/coding_plan.rs:1787-1831 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d43cd8577b66705b9cc94b654608263176ddf11655423e964fd9061930ddc54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src-tauri/src/proxy/handlers.rs:3419-3472 | src-tauri/src/proxy/response_processor.rs:670-728 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":3419}}}],"partialFingerprints":{"codehealthFindingId/v1":"1623ed968904757d0481d72a9be3b5a5e5831ab4ce30522de7dbaf9bc98960f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src-tauri/src/config.rs:168-207 | src-tauri/src/config.rs:215-263 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/config.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ffc5ee5e15d3f95f2826386af54f6c6057431b394baa70d27964526efbe432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src-tauri/src/database/backup.rs:598-642 | src-tauri/src/services/config.rs:37-80 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6eb2422dee502296cd63d1c0124d4922dd2b7cf93a4bb6c29893039136fa57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src-tauri/src/hermes_config.rs:383-413 | src-tauri/src/openclaw_config.rs:395-425 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7846e1775da26f26d25f7951d7c3035111a6ba7483b0597422ea7e2448563a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:504-530 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:510-536 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bad80d3df22600c0b631bf9d3b432052065aebb5375124f8bd2078543fc9db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src-tauri/src/jsonc_document.rs:203-238 | src-tauri/src/jsonc_document.rs:244-277 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d907c9872d6dcf6c895448e0d95c83adbbb5c57ab50abee999350ce357409f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src-tauri/src/services/provider/icon.rs:134-176 | src-tauri/src/services/provider/icon.rs:180-215 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/icon.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a896f97b2406e7206ec415df1c58be4ed446e14c022103c4e945bd629b878e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src-tauri/src/commands/auth.rs:622-670 | src-tauri/src/commands/auth.rs:761-795 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/auth.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5632a4d7ca05e5046917f7a1fc49114e11444bd1d3fd067f9c26ddb3b557a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src-tauri/src/commands/misc.rs:6616-6664 | src-tauri/src/session_manager/terminal/mod.rs:308-347 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6616}}}],"partialFingerprints":{"codehealthFindingId/v1":"0962496abcc616b744f7841a2fe8cfe5e9c93f8dee8b703ad78ac586a7106b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/deeplink/provider.rs:1086-1116 | src-tauri/src/deeplink/provider.rs:1125-1148 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"42206e67da1ca140d6579ad0bbdeac9c996317dd01fdabd1d7f256b2017cbce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:402-426 | src-tauri/src/proxy/providers/copilot_auth.rs:588-610 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d3cb200a9082e3b6afee6ab6b6fec895d5c95e000728907bcf692cfd0a1029"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src-tauri/src/commands/s3_sync.rs:128-160 | src-tauri/src/commands/webdav_sync.rs:136-168 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"282bc180b2a1638aea212f5299809244ee6b3e17c0db10a9b5836d3b853637c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/commands/misc.rs:3338-3361 | src-tauri/src/commands/misc.rs:3369-3400 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3338}}}],"partialFingerprints":{"codehealthFindingId/v1":"31749932740033b75019480f9712d919490910f00c01807119e989a5b9ba16a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src-tauri/src/proxy/providers/transform_responses.rs:936-973 | src-tauri/src/proxy/providers/transform_responses.rs:1039-1073 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faef92de4c2cf105a3742e13ff70283d07f3ba478215e0851488606f2bb9d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src-tauri/src/session_manager/providers/claude.rs:1599-1620 | src-tauri/src/session_manager/providers/codex_items.rs:55-73 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07f47ea18b8e3f73ce866dbed52f6f932686dcf3ac1597598b7235034489791"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src-tauri/src/services/s3_sync.rs:41-79 | src-tauri/src/services/webdav_sync.rs:62-102 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_sync.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24ec0e9af70748324201bea5cd5719efc59ffbf824d967970abf565524733cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src-tauri/src/proxy/providers/transform_responses.rs:347-371 | src-tauri/src/proxy/providers/transform_responses.rs:434-458 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"be82d775d3859e1ad3bc93a59be82512a138838a022518784f2d39b71f757a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src-tauri/src/database/dao/proxy.rs:340-376 | src-tauri/src/database/dao/proxy.rs:631-662 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/proxy.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad40266ffd4c3ec98571e9624bce82891f87d093d3f583875bf33a58d5ed2771"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:2054-2077 | src-tauri/src/proxy/providers/copilot_auth.rs:1622-1654 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"45da023d817ae32e3dbfdd07ee5104db3018d0fa1cc29dbb1898192290eaac36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src-tauri/src/proxy/handlers.rs:1310-1345 | src-tauri/src/proxy/handlers.rs:1620-1653 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d16c5528cc3a71524b395231ddf7d6e478d093826346e1d1b9a0c86be7c6e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src-tauri/src/services/env_manager.rs:76-102 | src-tauri/src/services/env_manager.rs:170-197 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/env_manager.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"939e7c178ada6af5c48018a3f0250038ed962842c07b5ea92f662923663db955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src-tauri/src/proxy/providers/streaming_gemini.rs:46-81 | src-tauri/src/proxy/providers/transform_gemini.rs:1512-1543 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2ca133da47d1dce92313d6fa19ca7fcefd3eb61d098f01f52268f99dc75d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src-tauri/src/proxy/providers/transform_responses.rs:41-65 | src-tauri/src/proxy/providers/transform_responses.rs:67-97 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13c1510d0f06a37c937ca6a30e2bbf320823a5b29b404bc0c579b8215152c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src-tauri/src/proxy/providers/claude.rs:111-137 | src-tauri/src/proxy/providers/claude.rs:313-349 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"810d495a4e1e27589699f50c834fc0abeb880ab7edc4b6ffb007637e7a7fef26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src-tauri/src/database/schema.rs:3969-3987 | src-tauri/src/database/schema.rs:3993-4013 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":3969}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db3f63501cb58d588d94c0fc408757d6c50877cd8f558193003cb4366e55cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/services/pi_prompt_files.rs:42-64 | src-tauri/src/services/pi_prompt_files.rs:255-279 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/pi_prompt_files.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"470985c6b7e26a7dbb07b05312113849026d8d074ee8f6f6b6a2a37b5719aa77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src-tauri/src/app_config.rs:64-83 | src-tauri/src/app_config.rs:209-228 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1664610061b941c5f7e7bb48e65681637143cd1ea53a8320d86687d86f28f43e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src-tauri/src/database/dao/failover.rs:23-49 | src-tauri/src/database/dao/profiles.rs:32-60 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/failover.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e395ade4f15d1dc92e35d60e77e3ba51a9ea7f2b922efb67e0ec36ad3102b382"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src-tauri/src/codex_history_migration.rs:767-788 | src-tauri/src/codex_history_migration.rs:1293-1314 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_history_migration.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4d38211d368f2045a17519f2637ac9b3e20df527ed4d17fc09606266cc2793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src-tauri/src/proxy/providers/transform.rs:399-420 | src-tauri/src/proxy/providers/transform_responses.rs:2064-2096 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2cce9994db3d47673beedb463e8052720a1aefa87f6cce900dc7d624341933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src-tauri/src/session_manager/terminal/mod.rs:183-215 | src-tauri/src/session_manager/terminal/mod.rs:349-376 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/terminal/mod.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb641453920b7291e3187c84a1fdcad2389d22d9afe1d344a701cc30ae3e22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src-tauri/src/hermes_config.rs:363-381 | src-tauri/src/openclaw_config.rs:375-393 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"230fe7c19c6f2574247285f2b0c2ef13d856abd6d1c406cccad3c4abbc41d318"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/proxy/forwarder.rs:3180-3202 | src-tauri/src/proxy/forwarder.rs:3207-3232 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"978d860ae1327b4649f7c5c46d4f8b83e16175d282631716bcd2ef4db28f757d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src-tauri/src/pi_config/mod.rs:380-400 | src-tauri/src/services/pi_prompt_files.rs:302-322 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8510210aa0c209b06001077a578631f78458ce172421db0df0c36ef18b9f6718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/commands/import_export.rs:56-79 | src-tauri/src/commands/import_export.rs:175-197 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/import_export.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bd341a62d5744bd8c58b98e4a2bd33981cdd00a366dbae6481bb8645bb2e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/services/s3_auto_sync.rs:157-180 | src-tauri/src/services/webdav_auto_sync.rs:166-189 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2dd4315398c244e86ddf69286c893740737d301a1548a3d32e9f1ae7b2dcf32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src-tauri/src/session_manager/providers/hermes.rs:333-353 | src-tauri/src/session_manager/providers/opencode.rs:231-252 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7d167e9222a793d44a0cf452898e9aff066d49d5713aaa13b92dfab2e16a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src-tauri/src/services/agy_account/mod.rs:162-181 | src-tauri/src/services/workbuddy_account/mod.rs:346-368 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbf1b3a09ba46274c6acfc61d4faf0fbb9d3f70f0b12ad03c08df355ef846b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/services/provider/pi.rs:159-182 | src-tauri/src/services/provider/pi.rs:184-206 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/pi.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe516fdcf9040ebb7e491e7da43181734f6090e494bbb71de076b7a87f020f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src-tauri/src/codex_config.rs:975-992 | src-tauri/src/proxy/providers/codex.rs:1056-1073 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"e365d52901bb0c559723ddfe9892b3d3114653e78c786b68da554e9c03c217c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/services/session_usage_pi.rs:470-492 | src-tauri/src/services/session_usage_pi.rs:498-512 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d9e284666325bcf29d094be379e8921a1624f3a91929a91febc240d72d3adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src-tauri/src/session_manager/providers/claude.rs:54-87 | src-tauri/src/session_manager/providers/gemini.rs:472-508 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3456d6f2dbe1b98cc70809ba4350e59e25ae93848e8e0b91933b7620f5fb59b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:717-745 | src-tauri/src/proxy/providers/codex_oauth_auth.rs:751-786 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"7808f6596614d2906b0dba3deca56b88835782c08b040c92330d56763cbcc8d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src-tauri/src/session_manager/providers/claude.rs:1266-1287 | src-tauri/src/session_manager/providers/gemini.rs:449-470 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aacf8f1e2c6acd11a0200e27e8c695f5214763cbd28e13fe4186dd33de25354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/services/provider/mod.rs:94-109 | src-tauri/src/services/provider/mod.rs:115-137 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2d8232fe2400b8aafb6e6a3ace4250cc42acecee5659e2dff00cde6d314ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/services/s3_sync.rs:181-204 | src-tauri/src/services/webdav_sync.rs:246-269 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_sync.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"578a26b56f25cd8b30d4775ef9e61570ae1f88e57a03ddb80d81e73e72029014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/commands/s3_sync.rs:166-181 | src-tauri/src/commands/webdav_sync.rs:174-189 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d2dd9f3bb322c16d6ffc24879007ec23664b7d8801985855d99c1389a45b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src-tauri/src/lib.rs:2308-2355 | src-tauri/src/lib.rs:2363-2420 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"df71529a70f5d94f4d9e63c1aa63f4de38a3acf6478d452ee24ecc34d56f4f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1899-1910 | src-tauri/src/proxy/providers/copilot_auth.rs:1421-1434 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:775-787 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53df4ac65168136b2e21ad30f5f840d678633dfc69aacf9574c9d38c942cd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src-tauri/src/services/provider/mod.rs:6100-6119 | src-tauri/src/services/provider/mod.rs:6129-6154 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6100}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2ea9653b88c019533e9962a1504ab2309735e80942596b054410bd776754e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src-tauri/src/app_config.rs:42-61 | src-tauri/src/app_config.rs:187-206 | src-tauri/src/settings.rs:95-114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c9802e8391d8f6f49ca201e2badc4a0d81db0534702594d13969a1f0776621"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/database/backup.rs:889-903 | src-tauri/src/database/dao/mcp.rs:64-80 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4f6752bb8753683945bed1125ffbbf93147f2d8d72fdd922097e1f06a96413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/codex_config.rs:431-454 | src-tauri/src/codex_config.rs:459-481 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"470f6f17a724737235eae890ba914ba1efc0d159527b3f5e73c30d28aa066488"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/proxy/providers/codex.rs:609-632 | src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:134-158 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"065014273de2ff386c888a04f69e925248c1b26e027e0067463ccdc022152adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:852-883 | src-tauri/src/proxy/providers/transform_responses.rs:189-215 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8b9fcb83525baaa35f92036348a0ec5dbc4bd5d3822c4ca3ae3f581f563799"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:1176-1195 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:1197-1216 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"394e10648b79ec511d222402a93b10c410367c0fa48a5af6175458b40b42c132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src-tauri/src/proxy/providers/transform_codex_chat.rs:1851-1870 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1872-1889 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2b6cdd2ef0ff35ea25e563a347506d29f6687afac5651a5e12953cce7e46f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src-tauri/src/services/provider/gemini_editor.rs:440-460 | src-tauri/src/services/provider/grok_editor.rs:210-234 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/gemini_editor.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0cd5c2d8b91ebb3195a731862ec1aceefc3c8a3642c18fb8e85effba0a98b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src-tauri/src/pi_config/mod.rs:121-141 | src-tauri/src/pi_config/mod.rs:147-168 | src-tauri/src/pi_config/mod.rs:173-188 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa116c3cd56b1f4b9f864be031a5d0169dc245cb52c842d74b5e8a21a76a127"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src-tauri/src/proxy/copilot_optimizer.rs:309-329 | src-tauri/src/proxy/copilot_optimizer.rs:338-354 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3cfcfaf37f49041246ab2ca638872ffa95180d1baf70fd793bffae7825dc65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/session_manager/providers/hermes.rs:35-58 | src-tauri/src/session_manager/providers/opencode.rs:103-127 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ca6e9dc4fca8b8e4fb46d433c771f199afca693c1088c28321405f4322ceb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/mode/controller.rs:1547-1560 | src-tauri/src/mode/controller.rs:1564-1574 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/controller.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6be85ac8fcd1688f72767ebc675e79966ecddab35e77323bec3eb69855d6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/pi_config/mod.rs:473-489 | src-tauri/src/services/pi_prompt_files.rs:281-295 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fbce53fc1f857ccbc6afdeef5bae636544895031b25b9a9cec30b1ebeac6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src-tauri/src/services/provider/mod.rs:8108-8130 | src-tauri/src/services/provider/mod.rs:8133-8151 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":8108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9f605a3e3070d593047060921c974a224b34ed1870fdbb20d1bf2716b1cac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/commands/omo.rs:22-37 | src-tauri/src/commands/omo.rs:58-73 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/omo.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd474f514d107cf53bb16abd0590024444fdb026b00e9e428354ff824dc8a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:2079-2103 | src-tauri/src/proxy/providers/copilot_auth.rs:1717-1740 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ebe5b9bf90ff0749eaeca774696eaab1f279a39487865e8bede218fb92d955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src-tauri/src/commands/provider.rs:60-72 | src-tauri/src/commands/provider.rs:81-98 | src-tauri/src/commands/provider.rs:221-233 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3f86dfa4804f713ad567c087cf2c9172a7d8540f177a135ad1b07f9f2123e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/model_capabilities.rs:159-170 | src-tauri/src/model_capabilities.rs:172-183 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/model_capabilities.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14d56c5da6d19c75933d0c8649798e731893350b5fae36c12935d2d2d6c231d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src-tauri/src/omp_config.rs:849-867 | src-tauri/src/pi_config/mod.rs:260-277 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a376964a7b2dd2f1cd5dea38ee00b49beca72d6833c8cd05a7023c963cc80bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/proxy/providers/streaming_codex_chat.rs:538-550 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:552-564 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7252a0ae7ebedd0c037a1b392fbd73497371efe2c0924bbe90e5185bb87eeae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src-tauri/src/services/usage_stats.rs:2714-2732 | src-tauri/src/services/usage_stats.rs:2737-2758 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":2714}}}],"partialFingerprints":{"codehealthFindingId/v1":"398a62918244401e0d07a8e421e44900b93f05cd476b066dd15f8711247ce6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/mode/stack.rs:605-619 | src-tauri/src/mode/stack.rs:622-636 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/stack.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b158ad278964aac1385f48e7a689c0a5593df5ae3a90ddff30f5ecb4c8638047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/proxy/handlers.rs:2998-3010 | src-tauri/src/proxy/providers/responses_late_arguments.rs:29-48 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":2998}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f405f37ad12ec57c179f89b9f94cc98acf4057232e03175f68e2a9e222e8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/settings.rs:198-209 | src-tauri/src/settings.rs:293-306 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/settings.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"124ed0729c04234d0eb8c88a975db97a38f7bbc2071cbf6b1ed16f918c255d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src-tauri/src/services/mcp.rs:496-515 | src-tauri/src/services/prompt.rs:301-321 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a53bd6ae27e1d3871c4f8399db147ba519cacdc3a557350f528c5f88ae66457"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1564-1581 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:416-430 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"885872d5776e6ca53d8a1d7b3baabbc34129fbd6f4fef1dcec84ded683fb0ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src-tauri/src/proxy/media_sanitizer.rs:185-213 | src-tauri/src/proxy/media_sanitizer.rs:400-429 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/media_sanitizer.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1988ed5619b2a0b5bcb9608c596c7792337d20fa45ae9133ebd82ec04e2fa027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/proxy/copilot_optimizer.rs:520-530 | src-tauri/src/proxy/copilot_optimizer.rs:626-642 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff00ece13567dd2a9f493d614d66153823db570250b9f24f6d0087ec9b3acc2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/proxy/providers/streaming_responses.rs:1403-1418 | src-tauri/src/proxy/providers/streaming_responses.rs:1424-1439 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a1ca8949db3bf5a3667c8180d9226cbe5389071396cf478412847851619df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src-tauri/src/services/provider/live.rs:71-84 | src-tauri/src/services/provider/live.rs:156-174 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2ec5deb041b8b4d5bf605dd30de7d92e2394b50d93a286ab37460b34dddf51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): src-tauri/src/services/session_usage.rs:983-1006 | src-tauri/src/services/session_usage.rs:1056-1069 | src-tauri/src/services/session_usage.rs:1079-1101 | src-tauri/src/services/session_usage_dsh.rs:309-331 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfc77504b93b2fb37615bbf926fbb59899de128ec30eed1068468679d762bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src-tauri/src/proxy/providers/auth.rs:42-58 | src-tauri/src/proxy/providers/auth.rs:62-79 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/auth.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9718eea04aeba9ceca1e80f190c25ce5fc58b985a3f9532d9470fd2680aa1511"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/proxy/providers/transform_codex_chat_moonshot_schema.rs:74-88 | src-tauri/src/proxy/providers/transform_codex_responses_kimi_history.rs:33-47 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat_moonshot_schema.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e033cf38978aee6afd67c757a68120483e3b447a6f5c00012b19cfbb4be7afe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src-tauri/src/commands/import_export.rs:35-49 | src-tauri/src/commands/import_export.rs:82-95 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/import_export.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9933a966ea958d3253c36138c52c151f771ab0b41537ce78ea8d31cb75501ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src-tauri/src/session_manager/terminal/mod.rs:34-55 | src-tauri/src/session_manager/terminal/mod.rs:156-181 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/terminal/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc909ff30a67bb36add66c6a52b0d762c5c119a869d9d7b74151b471e097d7c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/session_manager/terminal/mod.rs:58-72 | src-tauri/src/session_manager/terminal/mod.rs:285-305 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/terminal/mod.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8c4c49c96013026e5bef7495a70f01cd821d68f8e6a255d97fb93d8276b14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/commands/copilot.rs:42-61 | src-tauri/src/commands/copilot.rs:71-86 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/copilot.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ab0623c7c3707262f52c2e047fb79a8ae61a2b927c3fa795475ed17e8cca95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/services/agy_account/oauth.rs:74-86 | src-tauri/src/services/dsh_account.rs:284-298 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/oauth.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb3e0a6de4977e6ab42b88e4b8b9b6e57a4fe44e75407fd9b00059f62f3bada"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src-tauri/src/services/skill.rs:4402-4418 | src-tauri/src/services/skill.rs:4428-4444 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4402}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35f240cad2875e42961bf5c10dadf5e1bc9c700ae315664a40358c24f32de8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/claude_desktop_config.rs:989-999 | src-tauri/src/proxy/model_mapper.rs:159-169 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88a699263e1b9685e359250de4537fbc623cbb5cd0745787191bba51ea8f961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/codex_history_migration.rs:1193-1217 | src-tauri/src/services/session_usage_codex.rs:1159-1173 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_history_migration.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d21003d110b06ec01f63fd4ad89dd4141ebbc29bad43b5b019140dccbf775ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src-tauri/src/services/proxy.rs:475-497 | src-tauri/src/services/proxy.rs:502-518 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/proxy.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcec7093935f5d667828987df9021e5a0736e4436a2fe06ec0c5828ac983d70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/commands/misc.rs:3471-3486 | src-tauri/src/commands/misc.rs:3496-3508 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38cb5e475e4640924d17033450a98b0b83f69a6e244bd570bfe94ef60e63553"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src-tauri/src/jsonc_document.rs:561-578 | src-tauri/src/openclaw_config.rs:496-514 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de80923afaeb296fb9dff2c99c9c5a1b6cc8a5915f65d83178fa4954ebe8df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/proxy/providers/reasoning_bridge.rs:36-51 | src-tauri/src/session_manager/providers/workbuddy.rs:120-135 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/reasoning_bridge.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"664d15794122c75196cd4f04411e9dcb864323db70e964a9a50f0962cccc624f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src-tauri/src/openclaw_config.rs:735-749 | src-tauri/src/openclaw_config.rs:774-788 | src-tauri/src/openclaw_config.rs:819-829 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/openclaw_config.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d73eef5f66a09cade84b335af79f5e38542419aabd91ff9f782ef9b219b6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1468-1484 | src-tauri/src/proxy/providers/copilot_auth.rs:736-751 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"6405680dd1f9da95bf568414f7815b148ef36178a0a08dca04e61e2f88f62058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/services/coding_plan.rs:1382-1396 | src-tauri/src/services/s3.rs:105-120 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"921b835af60532195c0f0aaac919cfd32caba80b3f4ff5ce4b3419a33d916031"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/commands/config.rs:324-337 | src-tauri/src/commands/skill.rs:250-260 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/config.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba953d0099d27630330b72768113ba03f77a95d3d4715adea49002c8a2b95b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src-tauri/src/proxy/providers/transform_codex_chat.rs:1466-1484 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1489-1508 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"97387d11e02d219b91e5ec91a83f2e7dd16079e3c9d6b89d5e73455504017a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/services/provider/mod.rs:7399-7416 | src-tauri/src/services/provider/mod.rs:7468-7479 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":7399}}}],"partialFingerprints":{"codehealthFindingId/v1":"358b52ddd5f298bb2735c27b8541335dc75e08c50b86939be741f164e7df34d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/commands/config.rs:20-34 | src-tauri/src/commands/config.rs:36-50 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/config.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf627c5c4ca1db59a1d8eb87ede3b22e1b37a331b63efc8a414acbb555bcf6f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): src-tauri/src/services/subscription.rs:236-255 | src-tauri/src/services/subscription.rs:731-751 | src-tauri/src/services/subscription.rs:1295-1314 | src-tauri/src/services/subscription_grok.rs:40-59 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd74709576a718b97f509387154698c42455e33bcda3ca06a15832e7d400b053"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/live/project/codex.rs:491-501 | src-tauri/src/live/project/codex.rs:504-517 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"0803aced544485a462e28fd3e5a78db24f8bd7d35b5d58c33057e6cedb185bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/proxy/providers/xai_oauth_auth.rs:457-468 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:655-667 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/xai_oauth_auth.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f3aa63c557cdfb095fad6a5617aa0df973ca70bef6726070c9a37f6970e49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/session_manager/terminal/mod.rs:242-257 | src-tauri/src/session_manager/terminal/mod.rs:259-273 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/terminal/mod.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"635edc963b5c75a822bc54045889f8a6c94d8ea9bb0369bd855b616a900a6833"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): src-tauri/src/services/session_usage_copilot.rs:265-279 | src-tauri/src/services/session_usage_dsh.rs:633-648 | src-tauri/src/services/session_usage_kimi.rs:236-250 | src-tauri/src/services/session_usage_workbuddy.rs:195-210 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_copilot.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dee3357af667991c674c74eea3f47d8f67d935efb41d1ad043da6c6829883a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/commands/misc.rs:2678-2691 | src-tauri/src/commands/misc.rs:3301-3311 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e24ac962d0fed9cf93f96d9b91f6fcfb1af2fb0aad3a4461ce894abe49b806"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src-tauri/src/hermes_config.rs:569-582 | src-tauri/src/hermes_config.rs:586-599 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7b2b92f6f9b246cd2027a08b89c42627594d4600bdd7eae0e151b5666b86d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1925-1939 | src-tauri/src/proxy/providers/copilot_auth.rs:1303-1317 | src-tauri/src/proxy/providers/copilot_auth.rs:1458-1472 | src-tauri/src/proxy/switch_lock.rs:26-41 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"892002282e076849c59a95329bd3f5132200be0b7b1b1d9a0ce79ce10ca6bb92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src-tauri/src/services/s3.rs:254-270 | src-tauri/src/services/webdav.rs:109-126 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf39dd789e6e355a56067947bf4e9fcbdbd89074fb3807f4a2a0e8d858222cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:792-813 | src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:1031-1057 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9bda3089a33e6da90c0e4c0ec8e8b3c2a592920abf20809b888f7ea1b3dc5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src-tauri/src/services/s3_auto_sync.rs:78-94 | src-tauri/src/services/webdav_auto_sync.rs:78-94 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca7b01a1f0227564cb1a56bd516daa55fd940601663cadc45e1381c5a071249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src-tauri/src/database/dao/proxy.rs:72-92 | src-tauri/src/database/dao/proxy.rs:379-406 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/proxy.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fde3ada066fe5824c112e5a532e76f75740197d25a30a47361cbf7309a81dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/proxy/forwarder.rs:3832-3842 | src-tauri/src/proxy/forwarder.rs:4211-4221 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3832}}}],"partialFingerprints":{"codehealthFindingId/v1":"581e4f49c54c3a3f6d875190a1c289871d540a7d719cb8002e8feda8a8cbf297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/commands/workspace.rs:138-150 | src-tauri/src/commands/workspace.rs:327-340 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/workspace.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d179068402fb832facc38e2ebf41c07f37b8254b5ae0b4b57c0e0025a77f2128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src-tauri/src/proxy/usage/logger.rs:283-306 | src-tauri/src/proxy/usage/logger.rs:326-348 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/usage/logger.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e33c6c34d5bc85912f44b34936de1a318b739ea9dc677ee7a8e9d04bf31909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/services/session_usage_codex.rs:1822-1834 | src-tauri/src/services/session_usage_codex.rs:1850-1861 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"243b660e44a9c6ee5897e7bcaf86d485fba6b11ab79c8701d6e2b4bfd90749c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/commands/usage.rs:343-353 | src-tauri/src/commands/usage.rs:376-389 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/usage.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"290aee7bb2d224f08a7874f044e9bfd82672d5e43b3fb034810df99522481bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/services/kimi_oauth/lock.rs:150-162 | src-tauri/src/services/kimi_oauth/lock.rs:165-177 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/lock.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dce6753dcf2a3bae0c0933e11d3d9303051581a478712b5a067159aad16643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src-tauri/src/services/mcp.rs:345-364 | src-tauri/src/services/mcp.rs:433-452 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5738b79ec9bdcb92344404b852c6f92e2c41220e88e2dad4026840548877d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/services/workbuddy_account/quota.rs:301-314 | src-tauri/src/services/workbuddy_account/quota.rs:320-330 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/quota.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"102c2722f96e9942a27118bfd7bde93d3c27c1ddcc335859004b27b9f862d682"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src-tauri/src/hermes_config.rs:1147-1154 | src-tauri/src/services/claude_account/snapshot/store.rs:150-157 | src-tauri/src/services/pi_prompt_files.rs:129-138 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"022b519e1b2a0f7e383df50c4f7ba33270fe095ddb866951b28e11dc755239e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/proxy/forwarder.rs:4708-4719 | src-tauri/src/proxy/handlers.rs:2617-2630 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":4708}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e9b4ac41a2a8c963e90a3a772351f4a72504f8cd1349940af340840ac2c912"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/services/agy_account/mod.rs:559-566 | src-tauri/src/services/workbuddy_account/mod.rs:905-912 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"43905816dbcea5faf4362148250103004d0121ff85e4de8f801d794e57e7bb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/commands/profile.rs:150-158 | src-tauri/src/commands/profile.rs:167-178 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/profile.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2720d3307718ef665b3dc6ab21909ffb4ce7a4f152ef323962ea87796e55f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): src-tauri/src/commands/provider.rs:28-37 | src-tauri/src/commands/provider.rs:43-51 | src-tauri/src/commands/provider.rs:143-153 | src-tauri/src/commands/provider.rs:160-170 | src-tauri/src/commands/provider.rs:177-187 | src-tauri/src/commands/proxy.rs:149-157 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f6fb2a2352bcc057ae5576fab56c5933a3ab848e2b934a46471dfdb87df2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/services/claude_account/mod.rs:691-705 | src-tauri/src/services/claude_account/mod.rs:713-725 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/claude_account/mod.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4fee779b4ed7ffed1547a0fcdc63b4364947eb723d5428f8d7c05e25ecc33f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/services/provider/codex_client_catalog.rs:264-276 | src-tauri/src/services/provider/codex_official_models.rs:391-403 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_client_catalog.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fc7b0a9a8754437ebea9777bf5868d7031657b6ad24c247b10a12a826a0158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src-tauri/src/claude_mcp.rs:80-87 | src-tauri/src/config.rs:364-372 | src-tauri/src/gemini_mcp.rs:14-21 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b1f90fb6902ff29542e95996dd89caf2477c421c948e7d43f853122280d5e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/services/s3_sync.rs:161-172 | src-tauri/src/services/webdav_sync.rs:190-201 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_sync.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afcacd1d4af27b620251b401ed02521075bf1f926e17ea9ebfb22518cfb7d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/commands/workspace.rs:119-134 | src-tauri/src/commands/workspace.rs:310-322 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/workspace.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"158bb23b1638cfe979271e963b021846b3904116837819150371133b4a6ff272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/services/stream_check.rs:328-342 | src-tauri/src/services/stream_check.rs:345-359 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/stream_check.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8a9cd07d2bfce96481e37df848f9d06f0e35a9552cad5d728c9ea4c2dd42f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/openclaw_config.rs:858-869 | src-tauri/src/openclaw_config.rs:882-896 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/openclaw_config.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c0239900ca3fad70f8ed3d100e72e3abd8895beca21e409fa93ff138e1ce39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1885-1894 | src-tauri/src/proxy/providers/copilot_auth.rs:1407-1416 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:753-764 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b57b405f435e99104b59a64833702d379c7b82f9db9dda4e4f0efb057beb84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/proxy/providers/xai_oauth_auth.rs:707-715 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:717-729 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/xai_oauth_auth.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba18d58d0e389906c1cb8a5bedbd66392c7ef089a79d643f668b22867b43eced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src-tauri/src/services/agy_account/mod.rs:568-578 | src-tauri/src/services/claude_account/mod.rs:149-157 | src-tauri/src/services/workbuddy_account/mod.rs:914-923 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"c282f0e3a2f6893df28693b2064ce082d454772f07e4caa7547b499c35821a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/agy_config.rs:320-330 | src-tauri/src/commands/misc.rs:6116-6126 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/agy_config.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b81240d6ac92a2d2f474b63cd0c1c4c7f06f5ddb95b4de35b5d4c557cebf52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src-tauri/src/commands/provider.rs:1095-1105 | src-tauri/src/commands/provider.rs:1112-1122 | src-tauri/src/commands/provider.rs:1129-1139 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81bda6f97a0dd7f5a7b4003e9556e2e8915e3eb7246d4ccfdb564137fe283f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/commands/s3_sync.rs:103-114 | src-tauri/src/commands/webdav_sync.rs:108-122 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08cb65fa8cffe1234aedd8f7bce60026d869b9c987c9d8e020caa6bc402d95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src-tauri/src/database/dao/profiles.rs:89-106 | src-tauri/src/database/dao/proxy.rs:671-694 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/profiles.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc214a7542c0df6292e7f12cef60582b3ebc352bf0cb20a76052a8183d558ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src-tauri/src/claude_mcp.rs:89-96 | src-tauri/src/gemini_mcp.rs:23-30 | src-tauri/src/mcp/copilot.rs:65-75 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e142a3d677dd28ead96741a43735a6b878060e22c73b9a8cb8bcd56c9bc88a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): src-tauri/src/commands/pi.rs:27-34 | src-tauri/src/commands/provider.rs:954-961 | src-tauri/src/commands/provider.rs:969-976 | src-tauri/src/commands/provider.rs:984-991 | src-tauri/src/commands/provider.rs:999-1006 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/pi.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c975a8137de1ef7a5363058381a69b8248c26bd6c973022ad546712f5c4b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/services/proxy.rs:331-349 | src-tauri/src/services/proxy.rs:378-384 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/proxy.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d5176a154fed7c3c9f98e2d607c1a62301a9c53729c9a9eec28af87e906830"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/session_manager/providers/hermes.rs:664-673 | src-tauri/src/session_manager/providers/opencode.rs:150-156 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cb38b9d681ed8ca330dcb9937c9b55fad8a41f55884682b497dcdd10478a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): src-tauri/src/copilot_config.rs:803-809 | src-tauri/src/dsh_config.rs:132-138 | src-tauri/src/dsh_config.rs:369-378 | src-tauri/src/opencode_config.rs:18-24 | src-tauri/src/services/omo.rs:328-334 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"701abc1ee4ba3f9be1e92f90d48c86317801898c824b383689ee4ba4d33e76db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): src-tauri/src/database/dao/proxy.rs:418-428 | src-tauri/src/database/dao/proxy.rs:719-727 | src-tauri/src/database/mod.rs:332-338 | src-tauri/src/database/mod.rs:341-347 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/proxy.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ace95d39ccbec2e17e128e11837cda1bbe6c5627501f6e5815701ed1a746fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src-tauri/src/proxy/media_sanitizer.rs:277-288 | src-tauri/src/proxy/opaque_state_rectifier.rs:272-285 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/media_sanitizer.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fc3d83ab6fe898d8b289cd8dd58fbfc200475a01cf772917b5201cd2a442cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/services/agy_account/oauth.rs:177-186 | src-tauri/src/services/dsh_account.rs:602-609 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/oauth.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cf465aafc8f84b174aa7a00ea807f47bbb77e285c35561eb55043e8e1cfd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/commands/s3_sync.rs:117-125 | src-tauri/src/commands/webdav_sync.rs:125-133 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b60bc2470d01345822ab4d5504451e16ade4456bb106026aec9ad37e88ba373"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/session_manager/providers/opencode.rs:927-933 | src-tauri/src/session_manager/providers/opencode.rs:935-941 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"62857632231d8e746976a164470c56c24dd3e3c69f70ba48541bc1f861db91fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/database/backup.rs:128-136 | src-tauri/src/services/claude_account/snapshot/store.rs:142-148 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ce303c261c96d647ee6a00106b068b006a4fed244f0cf82c79e22caefd2273"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/dsh_config.rs:1147-1159 | src-tauri/src/dsh_config.rs:1229-1241 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8520a845eb996cfeda5e178198b536848d79076375e7b45fe7637a91672224"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/proxy/hyper_client.rs:352-357 | src-tauri/src/proxy/hyper_client.rs:365-370 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/hyper_client.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"caccec680b5f28672e4a8053d5007ac0300f6893fe522bfc098d59a6a189e13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/codex_config.rs:128-134 | src-tauri/src/codex_config.rs:1212-1218 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf53fc022ca7c087e21bd3054647b7a9086a905422440983556b64f306f2acae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/proxy/providers/gemini_shadow.rs:194-205 | src-tauri/src/proxy/providers/gemini_shadow.rs:209-217 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/gemini_shadow.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e7f4fbc6d6ed1ec118b4562b060cdfeace4b40067845d09b1ea2bc4526e7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/proxy/providers/transform_codex_chat.rs:1752-1760 | src-tauri/src/proxy/providers/codex_chat_common.rs:288-295 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"2811517bb4d4ed52d0fcb4de091bebf09970daef331d1d030d9405abd7b09b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/session_manager/providers/utils.rs:286-298 | src-tauri/src/tray.rs:686-694 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/utils.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa386aa66e690c6649861d4b1fae376e11b4bbe01fbc44470949be6aaacf9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/commands/failover.rs:11-18 | src-tauri/src/commands/proxy.rs:12-19 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/failover.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"440ef58051525a5ffeef5f0032eac3ecc1ef0dfc8f1b6dccf0bb68c1de0d9b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src-tauri/src/claude_mcp.rs:115-122 | src-tauri/src/gemini_config.rs:129-139 | src-tauri/src/openclaw_config.rs:189-198 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88e5155cabfee91b16789dc583dbea3c46f3f0f1767ce1d698ecbc82a615fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/commands/session_manager.rs:136-144 | src-tauri/src/commands/session_manager.rs:152-159 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/session_manager.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d258974c8669d7ac794bea928c13df2256d3ad8029625400df88afb343b94a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src-tauri/src/deeplink/provider.rs:512-529 | src-tauri/src/deeplink/provider.rs:531-544 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6a38c910ef996f99a144692762e12d23f93a79c7f5cb9e9ed090be59f0d02d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): src-tauri/src/services/coding_plan.rs:121-135 | src-tauri/src/services/coding_plan.rs:442-456 | src-tauri/src/services/coding_plan.rs:1041-1055 | src-tauri/src/services/coding_plan.rs:1653-1667 | src-tauri/src/services/kimi_oauth/account.rs:379-393 | src-tauri/src/services/subscription.rs:106-120 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"644f0f598d7678b153ba82a5e3390605a8fef2ff4b896c8dc382f5d91d4e36c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src-tauri/src/session_manager/providers/claude.rs:300-309 | src-tauri/src/session_manager/providers/codex.rs:2189-2198 | src-tauri/src/session_manager/providers/grokbuild.rs:182-191 | src-tauri/src/session_manager/providers/opencode.rs:905-914 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea587e560643570deeaad344a23004ba46f62e0a48129a6bde39b73533b5ded4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/proxy/providers/reasoning_bridge.rs:64-70 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:106-113 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/reasoning_bridge.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff90f4843a8d7ce7758903f11c16c95c196e5a91034ab735e3dfa867279dc950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/services/provider/mod.rs:5492-5504 | src-tauri/src/services/provider/mod.rs:5509-5521 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":5492}}}],"partialFingerprints":{"codehealthFindingId/v1":"552e4146f7b976853295a6b7f27d0936f3d8839967a334d5a436fcf00f18fe40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src-tauri/src/opencode_config.rs:91-105 | src-tauri/src/session_manager/providers/opencode.rs:19-28 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/opencode_config.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71c23b626a6516238b9811c1a0de5264a846ecfd76a220fd5bdc73cd4840395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/proxy/providers/reasoning_bridge.rs:26-34 | src-tauri/src/services/claude_account/snapshot/creds.rs:11-22 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/reasoning_bridge.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a6bcb6d16c2920963c3d8f16ee550da38dcc82e79ca13becfa205db6e4441f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/proxy/providers/transform_codex_chat.rs:570-581 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:50-60 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ea81146def7ce9e2c8859c1df26fb6c942958a19a3b6850495e3dce2415b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src-tauri/src/services/coding_plan.rs:1747-1761 | src-tauri/src/services/subscription.rs:90-104 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4b9ace4d47bf0cb18d38930544ecdc0397153265dd87b69b9ba4c064b1ab8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/codex_config.rs:922-929 | src-tauri/src/grok_config.rs:66-80 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab862776bb457348f2f8f8275e83c1288dda4895953f17f73f495f53ec1ee452"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/commands/skill.rs:121-128 | src-tauri/src/commands/skill.rs:451-458 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/skill.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a1227b87949d3bdbe114dad760ee2dbd41b61b1a72815d95b186b5a40f4274"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): src-tauri/src/database/dao/proxy.rs:120-137 | src-tauri/src/database/dao/proxy.rs:584-596 | src-tauri/src/database/dao/proxy.rs:703-716 | src-tauri/src/database/dao/proxy.rs:753-764 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/proxy.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6c08328b14a744f1852ef1be1317fdfb8d10bdbaea97c8dca8c3e919f7c942"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src-tauri/src/mcp/claude.rs:129-142 | src-tauri/src/mcp/gemini.rs:125-137 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b666e3d2efc55a522a19ee4d4211e85311b6859cc930fea85d96bd883a82396"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/tray.rs:1047-1057 | src-tauri/src/services/provider/mod.rs:5415-5422 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52b78bfe5c96cd36549c2628e18a205f49e833cbd790598b67f6c8b27641aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/commands/settings.rs:272-280 | src-tauri/src/commands/import_export.rs:233-240 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/settings.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d60b9a51741dbc8dbcfda1ece976d92b66a15988202cdd858d0e551583853d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:495-499 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:694-701 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"64de3da87dcaa3538e9bacc02217ce5900ef0a495ed15afcf56d619cb80951e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/database/dao/failover.rs:97-107 | src-tauri/src/database/dao/proxy.rs:599-610 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/failover.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a715b52c295c4d8d1ac3bcaf5de10e7992665cc4276f63a367449be74a842732"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src-tauri/src/services/codex_oauth_models.rs:130-138 | src-tauri/src/services/model_fetch.rs:331-339 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/codex_oauth_models.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d51798bf5bafa4c717e3f3b4c2ebed179fe1edec81f49b457e2bf46b6c75c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/database/dao/mcp.rs:173-178 | src-tauri/src/database/dao/profiles.rs:109-115 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/mcp.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7f94b4804daad388fbaed67add3600d1a2d3aba1a0e7d92729106a2b40202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/session_manager/providers/blocks.rs:360-367 | src-tauri/src/services/balance.rs:534-539 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/blocks.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8211a539d3e7d3667f0fa5033830a9ce67303ba73a2cad91cfbb76398b1a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): src-tauri/src/mcp/agy.rs:56-60 | src-tauri/src/mcp/kimi.rs:44-48 | src-tauri/src/mcp/mcode.rs:34-38 | src-tauri/src/mcp/workbuddy.rs:53-57 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c2e93929da7ed5dcf198a0ef9bbeaa51b1f7d55788191ebb9fefd0483b0beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/commands/mod.rs:105-110 | src-tauri/src/commands/profile.rs:102-107 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"695c0f5f155b60420d245b2d53f0d1cc47152acae0cceccb29c00fba67eeb9e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/copilot_config.rs:103-108 | src-tauri/src/kimi_config.rs:89-94 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c775edf7781e166df1f50328194dcc63a54bf6ef0b032e0bc7be20d84943c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1376-1383 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:403-410 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d072198c6d6aa3043a34fc5ec3fb71e2375c0e08d2ac6db0ca9bd6303cc6411"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src-tauri/src/services/session_usage.rs:56-59 | src-tauri/src/services/sync_protocol.rs:67-70 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7753651c303c322dc342d88e3dfd48a8cae68dac731b78f2331ee9e0a1264d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/commands/custom_icon.rs:23-28 | src-tauri/src/commands/skill.rs:106-113 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/custom_icon.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d405dfbb796a73fd9295c3b4c80975edfeded14ca33aeb1f6cb98bc285f62e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/copilot_config.rs:853-862 | src-tauri/src/services/provider/codex_direct.rs:940-947 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aeda0b553dfb40ac31dd224a3779ef3d12bf9365ee3f8507ec37a0ceba9a9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/pi_config/mod.rs:464-471 | src-tauri/src/services/claude_account/shared.rs:280-285 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39d8b3e75ee108fe489a2ab213f29313df100ed4a910f24ed364b09447c86ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/commands/skill.rs:208-213 | src-tauri/src/commands/usage.rs:15-20 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/skill.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6f0dd9ada8448d6806ff082d5bcd09e8c0362a1daad578b98a099d1f0cb854"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src-tauri/src/mcode_config.rs:21-28 | src-tauri/src/proxy/forwarder.rs:132-139 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcode_config.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"296cfcaccde9955def91c61f1e87143702076d581e0d485c8a04c00c1f233361"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/commands/custom_icon.rs:43-48 | src-tauri/src/commands/skill.rs:94-99 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/custom_icon.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"93590eee7293f2d73404b61d6bcdae39314a35312b16a9ceac7ce031b308a077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src-tauri/src/commands/misc.rs:1935-1941 | src-tauri/src/services/skill.rs:3757-3761 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1935}}}],"partialFingerprints":{"codehealthFindingId/v1":"599bfc37bc240d7435038c250e6145df24b19aec132cbeed95ef5f5f63762a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src-tauri/src/services/provider/codex_client_catalog.rs:135-138 | src-tauri/src/services/provider/codex_official_models.rs:154-157 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_client_catalog.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dae83612c28b06fc936624f16c6820df337be73ffc2a5b71096f357865e181"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src-tauri/src/database/mod.rs:241-244 | src-tauri/src/database/schema.rs:3894-3897 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/mod.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"690a45a190fdd5e2caa75401ae046e20378be6b4893d1a69622816464c8ae0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/services/exchange_rates.rs:89-94 | src-tauri/src/services/prompt.rs:13-18 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/exchange_rates.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f912aba9e94ad183f0c2012e87f19baafc67610d8772ddd76b5276f74b9e919f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src-tauri/src/jsonc_document.rs:181-185 | src-tauri/src/openclaw_config.rs:436-440 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4881e45c8434d658bd0dafd62855cb26cdb54c6d828f7b5daa767d8c8b1cb5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/proxy/usage/parser.rs:64-69 | src-tauri/src/services/session_usage_codex.rs:769-776 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/usage/parser.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"350ff6a0397ce35408d0b0103cf22485e24e378d4476fdbca7a9e3b98477c8e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/commands/custom_icon.rs:11-16 | src-tauri/src/commands/skill.rs:38-43 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/custom_icon.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f965c7855e0be30cfc9a1a3301a03031bbfc083b362823c498d4bff4b98aec5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/commands/profile.rs:181-186 | src-tauri/src/commands/provider.rs:1067-1072 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/profile.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"16eef6b2b00f9ca6c672fc60d4ba2f011f3a6608066e6715a6470d62d2bb9865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/deeplink/mod.rs:79-84 | src-tauri/src/services/kimi_oauth/mod.rs:869-877 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/mod.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a6d79ef0d939970b994713dfe6030601bd70d4ee0008c0b31736bd65721de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): src-tauri/src/hermes_config.rs:105-108 | src-tauri/src/openclaw_config.rs:59-62 | src-tauri/src/opencode_config.rs:13-16 | src-tauri/src/services/omo.rs:108-111 | src-tauri/src/services/provider/codex_client_catalog.rs:259-262 | src-tauri/src/services/provider/codex_official_models.rs:386-389 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"43536f98308f5f5eebeba8ca38e2fb1a72cfcfcb089a2d3182a42b3bd08524b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/services/claude_account/snapshot/state.rs:62-67 | src-tauri/src/services/kimi_oauth/account.rs:59-64 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/claude_account/snapshot/state.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8951e00bd7300bd64608760e64f4afea3277e68540cebcda949afe09a39e4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src-tauri/src/hermes_config.rs:929-934 | src-tauri/src/openclaw_config.rs:725-728 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dceb8a2d4c9e57c94c1200b8565e6e4194b35d36d61687860c05bb8b073690"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src-tauri/src/proxy/providers/codex.rs:1020-1030 | src-tauri/src/tray.rs:1245-1260 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"4087e7d3961740b9ea5ec563330a0974ff76743cf93e6e9f0237534479fd54bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src-tauri/src/commands/omp.rs:26-31 | src-tauri/src/commands/pi.rs:14-19 | src-tauri/src/commands/provider.rs:1056-1061 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/omp.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee8e3f6447db5361bb5d53f3395352d61bee76a11b173cba47e8d193cd24686"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src-tauri/src/services/session_usage_pi.rs:986-991 | src-tauri/src/session_manager/providers/pi.rs:588-594 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae9fb343507b306375c80b2fb48e68a5572a392b53dc9c7119abcfab0e66ddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src-tauri/src/live/patch/json.rs:252-258 | src-tauri/src/live/patch/toml.rs:183-189 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/patch/json.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5c0eb1bc1ad8a07b5fb9fe6efbe7e85848e31e0a2d494a9733200dea471773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1162-1217 | src-tauri/src/proxy/handlers.rs:1519-1574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/handlers.rs:1158\u0060 calls \u0060is_compaction_request\u0060 and \u0060src-tauri/src/proxy/handlers.rs:1518\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0603003f9dbc9935f2c3c540e3dffb308fe88a684a346110f0bb2396f794d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201346 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:3432-3472 | src-tauri/src/proxy/response_processor.rs:683-728 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/handlers.rs\u0060 and \u0060src-tauri/src/proxy/response_processor.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:3432\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":3432}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e161f950d601cef6077cc1a6705305f7f36cb71ef2d670461628be7b5a9cdf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src-tauri/src/app_config.rs:87-131 | src-tauri/src/app_config.rs:232-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db6d1aad536e605d2a831ae7e46cd2a61675dd3112530cdf7b41755787bdd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1885-1927 | src-tauri/src/proxy/handlers.rs:2262-2304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:1885\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b762be63810d70d09b092ac408d4a70ab853e2d176dc6197c5ef9fc5338cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:2713-2753 | src-tauri/src/proxy/providers/streaming_responses.rs:2769-2810 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:2713\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2713}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1ae94038a8277fc7c73ce4972d1f025dc2c17d04b3c392d096652786fe6e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1227-1267 | src-tauri/src/proxy/handlers.rs:1572-1610 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:1227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0595002a1c96947e1b7c35c4ed58f43293c02cd2ada94a46024e9b9256db13b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:2012-2052 | src-tauri/src/proxy/providers/copilot_auth.rs:1492-1532 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:2012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3466f2cf24ab60ba5e5b5c033fe27bc3adbbda011ab0da5961c525c32a993e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): src-tauri/src/proxy/handlers.rs:1750-1789 | src-tauri/src/proxy/handlers.rs:1992-2031 | src-tauri/src/proxy/handlers.rs:2157-2196 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ef1f5ea18b8e55b144a435f57afd166054481c275982686b56a507a7360fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_chat.rs:1071-1110 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1112-1149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a733aa6b263e4bdf5ffdcf80e97e2bce8105ae78a81c718f19c11b96baec73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3711-3744 | src-tauri/src/proxy/providers/streaming_responses.rs:4315-4349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3711\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3711}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e43625119e3cadec96d764995c06ddc6372181136333883744d47c91c92bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3079-3109 | src-tauri/src/proxy/providers/streaming_responses.rs:4353-4384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3079\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3079}}}],"partialFingerprints":{"codehealthFindingId/v1":"c345fce41654040135a56393f6917c073743944cc05b23127749f72abbfe9c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): src-tauri/src/config.rs:169-196 | src-tauri/src/config.rs:216-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/config.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f307b44e1aa488e4d8c4315fcf4fbdbbb41209d5674aa20bf010f816d59ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): src-tauri/src/lib.rs:2330-2355 | src-tauri/src/lib.rs:2397-2420 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/lib.rs:2330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/lib.rs:2396\u0060 calls \u0060display\u0060 and \u0060src-tauri/src/lib.rs:2329\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ee80c2fb23c7fc6f7e8cc9b106598b78a6e5ca1d1521fcf2f1e5b8539666e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1348-1373 | src-tauri/src/services/usage_stats.rs:1462-1487 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ba6748e49163924c022aaa76f7414f7c582eed4851aa6aab1e520c9ca9f73a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): src-tauri/src/proxy/handlers.rs:711-734 | src-tauri/src/proxy/handlers.rs:1875-1899 | src-tauri/src/proxy/handlers.rs:2252-2276 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:711\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9d73cf5cd53cb38afd4eb397742991c87a806535d10daa204166b7bda1e793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src-tauri/src/services/s3.rs:336-360 | src-tauri/src/services/s3.rs:494-518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/s3.rs:336\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d53e22c41083d97ecfeed3faf705367bca63286142d89f242bb38bb3cc0381a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src-tauri/src/claude_desktop_config.rs:1108-1131 | src-tauri/src/proxy/providers/claude.rs:249-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/claude_desktop_config.rs:1108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f6065432893c1c6bdd5843f633c7bd586757a987c4192f83955dcf9f5a2584"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): src-tauri/src/commands/misc.rs:6317-6340 | src-tauri/src/commands/misc.rs:7063-7084 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:6317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/commands/misc.rs:6313\u0060 calls \u0060to_path_buf\u0060 and \u0060src-tauri/src/commands/misc.rs:7061\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f0d9393018baa6dbe7184133104dd8191faff9bfa0adc5009a8a5839f56d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_gemini.rs:367-390 | src-tauri/src/proxy/providers/streaming_gemini.rs:429-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_gemini.rs:367\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8835d9cd384785b2938cc3290c86fb2908a44f82bbd6731e9e953d095e695c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src-tauri/src/proxy/providers/streaming.rs:448-470 | src-tauri/src/proxy/providers/streaming.rs:635-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming.rs:448\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"e023eb625cb1628ed9ca421bcfaeb0b943e94eb9f29f738566f723e70669c597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src-tauri/src/commands/misc.rs:6468-6489 | src-tauri/src/session_manager/terminal/mod.rs:124-145 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/misc.rs\u0060 and \u0060src-tauri/src/session_manager/terminal/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6468}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1973daa869c42952b6d6e1fc9df0be8f192514bdbcdc6178804f3313f5c42b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201341 lines \u00D7 2): src-tauri/src/commands/misc.rs:6671-6711 | src-tauri/src/commands/misc.rs:7096-7130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:6671\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74f287fa3af221dcafc7861c5b1f10dd7b6912a07563bff984fddd39e1f6797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src-tauri/src/mcp/claude.rs:101-122 | src-tauri/src/mcp/gemini.rs:97-118 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/gemini.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/claude.rs:101\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bd56bdd0e5e37f6b072b9aeb03bb777bc653e4de1aa58113e63ccf3fd549ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:1326-1347 | src-tauri/src/proxy/forwarder.rs:1411-1431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:1326\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd6d004918c6a3f62d27859e3357561e3477c17ba633df496a215d3b9231172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201322 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1850-1871 | src-tauri/src/proxy/handlers.rs:2234-2248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:1850\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1850}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f378fce1d0f43e0e2a82a169dc3e453e7ba91eba0b04b23bcbe987176aba82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3666-3687 | src-tauri/src/proxy/providers/streaming_responses.rs:4257-4274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3666\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3666}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc342c98b7ef2b16e2d792e7d2c266b08c73698ca6daebf58cffe52d30e6387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): src-tauri/src/services/balance.rs:82-102 | src-tauri/src/services/balance.rs:164-184 | src-tauri/src/services/balance.rs:229-249 | src-tauri/src/services/balance.rs:300-320 | src-tauri/src/services/balance.rs:376-396 | src-tauri/src/services/balance.rs:465-485 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/balance.rs:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"506bd0125904a16ba5601a4f1853ce35a1970afb29a1dd4001ccb5e2fcb94fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 3): src-tauri/src/proxy/providers/streaming_responses.rs:3015-3031 | src-tauri/src/proxy/providers/streaming_responses.rs:3667-3687 | src-tauri/src/proxy/providers/streaming_responses.rs:4258-4274 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3015}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e49d2cc52e5ed44cde34c8572eee2fb5f0f3d453d74ef555997ecdd269266b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src-tauri/src/jsonc_document.rs:218-238 | src-tauri/src/jsonc_document.rs:257-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/jsonc_document.rs:218\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060\u0026Option\u003CRtJSONObjectContext\u003E\u0060 in one and \u0060\u0026Option\u003CRtJSONArrayContext\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/jsonc_document.rs:216\u0060 calls \u0060contains\u0060 and \u0060src-tauri/src/jsonc_document.rs:256\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1d491066ffd1d5b874822f44e0a3c9caff08ade80009b2f0dac101c6e9c164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src-tauri/src/session_manager/providers/hermes.rs:39-58 | src-tauri/src/session_manager/providers/opencode.rs:107-127 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/hermes.rs\u0060 and \u0060src-tauri/src/session_manager/providers/opencode.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/hermes.rs:39\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5270d81ca6ce2f9fbbdf92aa85d166f310f21da57d90b3f005323c183c00f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src-tauri/src/mcp/claude.rs:19-38 | src-tauri/src/mcp/codex.rs:24-43 | src-tauri/src/mcp/gemini.rs:19-38 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/codex.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbceb2e5f47ab78c271ae193c053af15b3770ab0d97c09934b103e16d73113a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3032-3051 | src-tauri/src/proxy/providers/streaming_responses.rs:3699-3718 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3032\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3032}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb88b237c28cd2b614041b697188dba5463fe9dc53a35d5cba507ab17d3d29a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src-tauri/src/services/session_usage_copilot.rs:189-208 | src-tauri/src/services/session_usage_kimi.rs:98-117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage_copilot.rs:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_copilot.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7240a48abd404e0b6262776929e254855442c8148023d848c97ed3326ab48d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): src-tauri/src/services/usage_stats.rs:1047-1065 | src-tauri/src/services/usage_stats.rs:1195-1212 | src-tauri/src/services/usage_stats.rs:1549-1567 | src-tauri/src/services/usage_stats.rs:1711-1728 | src-tauri/src/services/usage_stats.rs:2002-2019 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c1a72b8cf87bf1eb3f76e79b746a8b46909c6fce34c08c58a562004a7981e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 5): src-tauri/src/services/usage_stats.rs:1042-1060 | src-tauri/src/services/usage_stats.rs:1544-1562 | src-tauri/src/services/usage_stats.rs:1707-1723 | src-tauri/src/services/usage_stats.rs:1799-1816 | src-tauri/src/services/usage_stats.rs:1997-2014 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1042\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7f9b8f90af371d7206b3f21422755785e9a9cff20f34c1f0d76932ad4862e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src-tauri/src/mcp/claude.rs:97-115 | src-tauri/src/mcp/codex.rs:257-275 | src-tauri/src/mcp/gemini.rs:93-111 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/codex.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/claude.rs:97\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"436e229b087534f8755dc1b1e6c5715d7951d1a05bb4e1f03558823aa5a4c213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src-tauri/src/services/usage_stats.rs:1012-1030 | src-tauri/src/services/usage_stats.rs:1674-1691 | src-tauri/src/services/usage_stats.rs:1970-1987 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e12fa92ec0936d6e0540f2204edd2aeba419b5f5d2c9d7b4be458a2e19c6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): src-tauri/src/proxy/handlers.rs:351-367 | src-tauri/src/proxy/handlers.rs:1134-1150 | src-tauri/src/proxy/handlers.rs:1494-1511 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/handlers.rs:1132\u0060 calls \u0060decode_codex_request_body\u0060 and \u0060src-tauri/src/proxy/handlers.rs:349\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"018e77c467fd5b88e39bd6e33cb58c4383f14bd304ad46f378a56d8a3352e305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:1156-1173 | src-tauri/src/proxy/forwarder.rs:1230-1248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:1156\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1861f8b902fcf2da2a88f97eee079c1def16ef343fc743955e1774e4e921392c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:186-200 | src-tauri/src/proxy/providers/streaming_responses.rs:215-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:186\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a143fca24183e4393cd1f3fef15a6da507ec767f82201e423aafc3a69b85371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:2971-2988 | src-tauri/src/proxy/providers/streaming_responses.rs:4216-4233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2971}}}],"partialFingerprints":{"codehealthFindingId/v1":"d601e485a3f1f4b4126018d635ea557e67c6122292ebefc89201d8d2c963fa8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3406-3423 | src-tauri/src/proxy/providers/streaming_responses.rs:3471-3484 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef93ba775fe77b4cbe634e01a13eaf734dcd1ad594a69dbd53ae96617998810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:853-870 | src-tauri/src/proxy/providers/transform_responses.rs:190-207 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform_codex_anthropic.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fdac4b585466d7dcb1aaf6496d6f2bf4c1d54d4bdfcd252839ffe9806ec23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_chat.rs:879-896 | src-tauri/src/proxy/providers/transform_codex_chat.rs:920-937 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d61dd8ccfbfb61a18578233cc470471be6289dd7b80f1219fa3767a83601cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): src-tauri/src/services/usage_stats.rs:1009-1025 | src-tauri/src/services/usage_stats.rs:1671-1686 | src-tauri/src/services/usage_stats.rs:1774-1789 | src-tauri/src/services/usage_stats.rs:1967-1982 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1009\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f0a090233758f6cff0ad66ab08bac4740846f6bb3aab1046f2ad06d06d3e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src-tauri/src/proxy/providers/streaming_responses.rs:3041-3057 | src-tauri/src/proxy/providers/streaming_responses.rs:3708-3724 | src-tauri/src/proxy/providers/streaming_responses.rs:4312-4328 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3041}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7c696aff76c6e7ccf27ca6e09e9aade26df431fb2a8fd6c68683de952b0326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): src-tauri/src/services/coding_plan.rs:183-199 | src-tauri/src/services/coding_plan.rs:571-587 | src-tauri/src/services/coding_plan.rs:925-940 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95f65f5ea165213640de2a0aca9968aeec58917c0555ed06677950b8ea0326b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): src-tauri/src/services/session_usage_codex.rs:2694-2708 | src-tauri/src/services/session_usage_gemini.rs:297-311 | src-tauri/src/services/session_usage_opencode.rs:496-512 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage_codex.rs:2694\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be228c32bfcd9103ffec0e361f31139d848e58d7871a29c00ea23fd8c6af60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src-tauri/src/claude_mcp.rs:337-352 | src-tauri/src/gemini_mcp.rs:87-103 \u2014 before extracting anything, compare \u0060src-tauri/src/claude_mcp.rs\u0060 and \u0060src-tauri/src/gemini_mcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/claude_mcp.rs:337\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"25db04c96268eb620bdc26cbaeed5c6b1a2a933c275eaf114257c22e64d06b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:138-154 | src-tauri/src/commands/webdav_sync.rs:146-162 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/s3_sync.rs:138\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d1e52a3dd16b45c4858234dd01e2094e2412ab89408676b68a57b312b34b6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1037-1053 | src-tauri/src/proxy/handlers.rs:1422-1438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:1037\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"3046b25d331f2c3ada1c064c0aecbab067169622c7d0211409f460f830dea2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src-tauri/src/proxy/providers/codex.rs:22-38 | src-tauri/src/proxy/providers/codex.rs:166-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:22\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d88f795754794514503d00a983396dad57599d30fb6f9e61e1dce08439e22f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src-tauri/src/proxy/response_processor.rs:535-551 | src-tauri/src/proxy/response_processor.rs:562-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/response_processor.rs:535\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/response_processor.rs:578\u0060 calls \u0060default\u0060 and \u0060src-tauri/src/proxy/response_processor.rs:552\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/response_processor.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5642dff86fe63370f6b59c8beae9d81991cf828d08f38d2b1691b02f6385d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src-tauri/src/services/agy_account/oauth.rs:158-174 | src-tauri/src/services/dsh_account.rs:583-599 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060stream\u0060 to \u0060\u0026mut tokio::net::TcpStream\u0060 in one and \u0060\u0026mut TcpStream\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/oauth.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"07248bac23d719df2a53be99565833a05080cf59739445db56f17a9233900d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src-tauri/src/services/skill.rs:4375-4391 | src-tauri/src/services/skill.rs:4934-4948 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/skill.rs:4375\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":4375}}}],"partialFingerprints":{"codehealthFindingId/v1":"153fefd4bde27e735b372027aaf0a738b47e4660538fa73935f424e764f08844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:68-87 | src-tauri/src/services/usage_stats.rs:1262-1280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac51910d403c4070866c0420d3bcbd301a64345d70715b256f03be56bef2ca22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src-tauri/src/usage_script.rs:106-122 | src-tauri/src/usage_script.rs:200-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/usage_script.rs:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/usage_script.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0d8654f26deb880e49a5d946991cc75601865240693acd5b5da0b470f06db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src-tauri/src/mcp/claude.rs:97-112 | src-tauri/src/mcp/codex.rs:257-272 | src-tauri/src/mcp/gemini.rs:93-108 | src-tauri/src/mcp/opencode.rs:265-280 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/codex.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/claude.rs:97\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7324b38528591f14aa74208547666fca1eeaaa7c4f4b51f7725984b51ef937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 4): src-tauri/src/services/usage_stats.rs:992-1007 | src-tauri/src/services/usage_stats.rs:1157-1170 | src-tauri/src/services/usage_stats.rs:1759-1772 | src-tauri/src/services/usage_stats.rs:1952-1965 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f86cd681cc0d0d2686f9effbae61f2eacd9b0b33a79a052cc107928b44f354a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): src-tauri/src/proxy/providers/claude.rs:781-795 | src-tauri/src/proxy/providers/codex.rs:1184-1199 | src-tauri/src/proxy/providers/gemini.rs:174-188 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/claude.rs\u0060 and \u0060src-tauri/src/proxy/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6bd16194d324fde75cdea3d3edd0a40500e842df02c2cc01bd5dc2c5822a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src-tauri/src/proxy/providers/streaming_responses.rs:2621-2636 | src-tauri/src/proxy/providers/streaming_responses.rs:2896-2911 | src-tauri/src/proxy/providers/streaming_responses.rs:3111-3126 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2621}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0f0ce321b9207cfaabfd318568d0710cf58195b0965b2e1274dc1727bd130c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/deeplink/codex_link.rs:273-288 | src-tauri/src/deeplink/grok_link.rs:210-225 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/codex_link.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8db5d3d953ad732dad369012038dd7c1df6007fee7e3c6f1acb4628aba2115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/proxy/providers/copilot_auth.rs:1149-1164 | src-tauri/src/proxy/providers/copilot_auth.rs:1263-1278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/copilot_auth.rs:1149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0be859e0464e234638698d7bcc7bf852cab8388faa8a7b22ef61d4e6eaef985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_codex_chat.rs:388-403 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:624-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/streaming_codex_chat.rs:621\u0060 calls \u0060is_empty\u0060 and \u0060src-tauri/src/proxy/providers/streaming_codex_chat.rs:387\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec855f81cb4ab8f593d88c2bd9537c91cd3d8b231582ed5d9cdf51c97c90484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:2862-2877 | src-tauri/src/proxy/providers/streaming_responses.rs:4199-4215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:2862\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"73761b7e0dfc7b635c9e1a0d251618a4363630b706d03f97a1a48e1e97dc9126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/services/provider/codex_editor.rs:78-93 | src-tauri/src/services/provider/grok_editor.rs:48-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/codex_editor.rs:78\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_editor.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4109f692fe9c8a22294586727a2c1c1810428afbbe28f80fe5f56561d2d0e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/services/session_usage_codex.rs:1195-1210 | src-tauri/src/services/session_usage_codex.rs:1216-1231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b041e772e9df124dfd7d49a825c363d19abadebd84717be7559dd13a3b9cfe81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1926-1941 | src-tauri/src/services/usage_stats.rs:2128-2143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1926\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e07a6cb9ec9b89c3fd8e9a7912b28af8c81211ad88acf9d6fba8ec11ea57548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 11): src-tauri/src/services/balance.rs:95-109 | src-tauri/src/services/balance.rs:177-191 | src-tauri/src/services/balance.rs:242-256 | src-tauri/src/services/balance.rs:313-327 | src-tauri/src/services/balance.rs:389-403 | src-tauri/src/services/balance.rs:478-492 | src-tauri/src/services/coding_plan.rs:198-212 | src-tauri/src/services/coding_plan.rs:586-600 | src-tauri/src/services/coding_plan.rs:670-684 | src-tauri/src/services/coding_plan.rs:939-951 | src-tauri/src/services/coding_plan.rs:1812-1826 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/services/balance.rs:111\u0060 calls \u0060Ok\u0060, \u0060parse_deepseek_balance\u0060 and \u0060src-tauri/src/services/coding_plan.rs:214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a4e4e9f7119385fea7f322be4ebd9125c156b347a967b30a4de271b10e555b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 6): src-tauri/src/proxy/providers/streaming.rs:286-300 | src-tauri/src/proxy/providers/streaming.rs:420-434 | src-tauri/src/proxy/providers/streaming.rs:445-459 | src-tauri/src/proxy/providers/streaming.rs:632-646 | src-tauri/src/proxy/providers/streaming.rs:752-764 | src-tauri/src/proxy/providers/streaming.rs:783-795 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/providers/streaming.rs:461\u0060 calls \u0060Some\u0060, \u0060take\u0060 and \u0060src-tauri/src/proxy/providers/streaming.rs:765\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c518b10f7a2d00b7273ad348253cd710c48c5b5bd663c1349ba6ac76c84ae4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src-tauri/src/proxy/handlers.rs:2033-2047 | src-tauri/src/proxy/handlers.rs:2198-2211 | src-tauri/src/proxy/handlers.rs:2363-2377 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:2033\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"0891a099bcdc7a294534d281c1ddc8c40754e7dfd00d4ac6581704a1d9aa424f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src-tauri/src/session_manager/providers/claude.rs:264-278 | src-tauri/src/session_manager/providers/codex.rs:2080-2094 | src-tauri/src/session_manager/providers/openclaw.rs:244-257 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/claude.rs\u0060 and \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/claude.rs:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"94415a4aeba34ffa5c7f105e3ca5c0b6daa9c10de36506f42ed148836c64e6b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/app_config.rs:135-149 | src-tauri/src/app_config.rs:280-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"378a79b9ac4d44fcb09027b8e2ea1f3adf0e399294d3fe9221a7a2bb53619c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src-tauri/src/commands/misc.rs:6718-6732 | src-tauri/src/commands/misc.rs:7136-7149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:6718\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/commands/misc.rs:7151\u0060 calls \u0060remove_file\u0060 and \u0060src-tauri/src/commands/misc.rs:6734\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea758a72e31f641880be7a10dc6aa75d55923b0d611fdb09fee0b43c1e607f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): src-tauri/src/jsonc_document.rs:204-215 | src-tauri/src/jsonc_document.rs:245-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/jsonc_document.rs:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060\u0026Option\u003CRtJSONObjectContext\u003E\u0060 in one and \u0060\u0026Option\u003CRtJSONArrayContext\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"be64803e1c349bf6adc9090c42002dd9bba8556845e838c8c6cf40bf19f6702b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/live/project/codex.rs:943-957 | src-tauri/src/live/project/grok.rs:282-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/live/project/codex.rs:943\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"e828782daf966979c3c180f070ca56b03169136f9adc1553d4a66aa47606998d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:761-775 | src-tauri/src/proxy/handlers.rs:1920-1931 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:761\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"18435023b34c560ee781afba5257cc323b4b62379607c457c6051ac052eba77c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/proxy/providers/codex.rs:1113-1127 | src-tauri/src/proxy/providers/gemini.rs:134-148 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex.rs\u0060 and \u0060src-tauri/src/proxy/providers/gemini.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:1113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb265b3d1d450cade09fa086392a8db2ee2c008ebda0b5375f80d2c70f6721d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3447-3461 | src-tauri/src/proxy/providers/streaming_responses.rs:3502-3516 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3447\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3447}}}],"partialFingerprints":{"codehealthFindingId/v1":"050997f846c1e157615117499b3b7109962d030cf44f0faf41661246aaa22a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:158-172 | src-tauri/src/services/webdav_auto_sync.rs:167-181 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/s3_auto_sync.rs:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"40722db1b2880eb9d1533296a536d01e47915a1de26e254b1d47c90add799014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1435-1449 | src-tauri/src/services/usage_stats.rs:1634-1648 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"9535ac606e525737fa4ccf00cc74db0abbeb35a4f617b9930b8daca54640d439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/session_manager/providers/codex.rs:2005-2019 | src-tauri/src/session_manager/providers/openclaw.rs:173-187 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 and \u0060src-tauri/src/session_manager/providers/openclaw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5b7694cf8cdccce3db4a0a8d4ecdb2aead726fe6245a76196b6c77da47fb42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/session_manager/providers/opencode.rs:235-249 | src-tauri/src/session_manager/providers/opencode.rs:269-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dc3f01ce52219a39c5dcd6230ba7a9ababdc2aac197ebcf18d24552b91be15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): src-tauri/src/proxy/handlers.rs:388-401 | src-tauri/src/proxy/handlers.rs:1042-1054 | src-tauri/src/proxy/handlers.rs:1170-1182 | src-tauri/src/proxy/handlers.rs:1427-1439 | src-tauri/src/proxy/handlers.rs:1527-1539 | src-tauri/src/proxy/handlers.rs:2691-2704 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:388\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d185df41e97f5c48b38199f36cba94d947e9385878dc923175f19e088d01cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src-tauri/src/proxy/handlers.rs:757-770 | src-tauri/src/proxy/handlers.rs:1916-1929 | src-tauri/src/proxy/handlers.rs:2293-2306 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:757\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39ea9b875272494d847adb999cb6514fc358f198ebdb98335683bff6de0160b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src-tauri/src/proxy/providers/codex.rs:23-36 | src-tauri/src/proxy/providers/codex.rs:167-180 | src-tauri/src/proxy/providers/codex.rs:452-465 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:23\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69994da133f3a0b402e0eca068944e6e4e10a53511098992dd4864e55a29767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src-tauri/src/proxy/providers/streaming_responses.rs:2881-2894 | src-tauri/src/proxy/providers/streaming_responses.rs:3362-3375 | src-tauri/src/proxy/providers/streaming_responses.rs:4087-4100 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2edb671c20d63b81158c637677ce626023e42537c7db59c4b0447a13788565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src-tauri/src/services/coding_plan.rs:262-275 | src-tauri/src/services/coding_plan.rs:620-633 | src-tauri/src/services/coding_plan.rs:960-973 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:262\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d17a79b8133ffd39f2ffb54380cefac3d0261640eb49c2988421427f5710c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/codex_history_migration.rs:796-809 | src-tauri/src/codex_history_migration.rs:1375-1388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_history_migration.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dded1fec001c23b957e9de737dc399490a311650c3104a9ad9129e26f3bd448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src-tauri/src/commands/misc.rs:3138-3150 | src-tauri/src/commands/misc.rs:3535-3548 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:3138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9155ba1072a2d46f34e1734d3c73ba869ee9b9a08c95ba8cee776bef2e42f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/mcp/claude.rs:62-75 | src-tauri/src/mcp/gemini.rs:58-71 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/gemini.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/claude.rs:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a69bdc1b3a12b0df82a71430e82fdd1971f508085d2d8079ade999c49344e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/mcp/hermes.rs:306-319 | src-tauri/src/mcp/opencode.rs:250-263 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/hermes.rs\u0060 and \u0060src-tauri/src/mcp/opencode.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/hermes.rs:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6ec679def120d266a3419cdb646e3cad6fa4585781d3000d8bc709108396ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1328-1341 | src-tauri/src/proxy/handlers.rs:1637-1649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:1328\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9cc71ff04ce92e7e940278288c81d3a4c46cfe5bc347a95f5bb3cca68279bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_gemini.rs:50-63 | src-tauri/src/proxy/providers/transform_gemini.rs:1513-1525 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_gemini.rs:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7532c50d3a10d719dabd938f6a953f00c79830c3a2be366623f392029143edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:378-393 | src-tauri/src/proxy/providers/streaming_responses.rs:802-817 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"74325cf185d165ae6884021a7d29a1ac11f837880840262472a5121c3cb28615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:2073-2086 | src-tauri/src/proxy/providers/transform_responses.rs:2681-2694 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:2073\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b9a6a22bcf156b409f425777a4b4bd533a5705de54ae5d4e56e043190ced50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:2847-2860 | src-tauri/src/proxy/providers/streaming_responses.rs:4638-4650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:2847\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/providers/streaming_responses.rs:2861\u0060 calls \u0060Some\u0060 and \u0060src-tauri/src/proxy/providers/streaming_responses.rs:4651\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2847}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb011cba8f8858ae1b65d414e70364941f721ccb86a1801e47817f5d625fe368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/services/provider/live.rs:1013-1026 | src-tauri/src/services/provider/live.rs:1174-1187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/live.rs:1013\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"96519c0e360cf431075a1e49d83c6b5a7d09ae9122aab7ff6ee16591b4af2c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/services/s3.rs:315-328 | src-tauri/src/services/webdav.rs:450-463 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83d34f5f546d4f1a4649609549aaf8f8662bd6ec9f3bb6c72f73e1e3549cafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:138-151 | src-tauri/src/services/webdav_auto_sync.rs:147-160 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae6230aac6ca05dfa0c2d426b006a22a64bbba89e6275ebcb80cbbfc8b96e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1886-1903 | src-tauri/src/services/usage_stats.rs:2086-2103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1886\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/services/usage_stats.rs:1904\u0060 calls \u0060get\u0060 and \u0060src-tauri/src/services/usage_stats.rs:2104\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c48b9c0744cc159492dbefaebb08bc8049c5962eb7c27e27ef286d1a58acef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/session_manager/providers/gemini.rs:451-464 | src-tauri/src/session_manager/providers/pi_blocks.rs:454-467 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/gemini.rs:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/gemini.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95e44d2b7c3d26f89aa2a92d3d018fa5767e741a994d1429bbf5c7e14cd3cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src-tauri/src/proxy/providers/streaming_responses.rs:2560-2572 | src-tauri/src/proxy/providers/streaming_responses.rs:2972-2984 | src-tauri/src/proxy/providers/streaming_responses.rs:3585-3597 | src-tauri/src/proxy/providers/streaming_responses.rs:4217-4229 | src-tauri/src/proxy/providers/streaming_responses.rs:4520-4532 | src-tauri/src/proxy/providers/streaming_responses.rs:4675-4687 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3590919e071369cb7c29c7eaf6a3385adf5474d8dd0bc3086d59d39acfc694d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src-tauri/src/proxy/providers/claude.rs:701-713 | src-tauri/src/proxy/providers/codex.rs:1113-1125 | src-tauri/src/proxy/providers/gemini.rs:134-146 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/claude.rs\u0060 and \u0060src-tauri/src/proxy/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/claude.rs:701\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"6745181c2845eb791b622ccb832dfab9b8b6d1e80fd4fe9b9258ff4af22c8c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src-tauri/src/codex_config.rs:439-450 | src-tauri/src/codex_config.rs:467-479 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75fe4a677342c229649a7e5be1be35b2db0353b643102155b129781eaaceda7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src-tauri/src/commands/failover.rs:204-215 | src-tauri/src/commands/failover.rs:239-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/failover.rs:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/failover.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8de60b054b951083a42c21aa555c66d8f5488a62327c09466f9ad8d56f08de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/mcp/hermes.rs:287-299 | src-tauri/src/mcp/opencode.rs:231-243 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/hermes.rs\u0060 and \u0060src-tauri/src/mcp/opencode.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/hermes.rs:287\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f0b3f5a3c89cec0db29f7330029144223703984c3e218047555c1b8ca87aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/mcp/kimi.rs:70-82 | src-tauri/src/mcp/mcode.rs:55-67 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/kimi.rs\u0060 and \u0060src-tauri/src/mcp/mcode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/kimi.rs:70\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/kimi.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"608b8274b0ca0617e2483905d4b5788e98be2f4a42adc9c6669680b0244ef8af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:3181-3193 | src-tauri/src/proxy/forwarder.rs:3208-3220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3181}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee784a3e635366e380ea4c69aa989455558c72bb888d949b417bb259ab4245a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src-tauri/src/proxy/handlers.rs:1936-1947 | src-tauri/src/proxy/handlers.rs:2100-2112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:1936\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb4dc6600be1da77772135e5f46b71c357fcaa20632bba59b6e3bd21711137f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1927-1939 | src-tauri/src/proxy/providers/copilot_auth.rs:1460-1472 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1927\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"e773a4b95e507d22b53177fbc792159600c59f1743eed545349da5095de7ead5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3291-3303 | src-tauri/src/proxy/providers/streaming_responses.rs:4149-4161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3291\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c22d659f24acf771af4454abb86ec67e46fdc51ea0ffbf0964e1eb59ea9ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:860-872 | src-tauri/src/proxy/providers/transform_responses.rs:2843-2855 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform.rs:860\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16d321f2425c22fcd2e065d5c2bdd702c9323f7fb58735ce01f1122505aae38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/session_manager/providers/opencode.rs:585-597 | src-tauri/src/session_manager/providers/opencode.rs:879-891 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/opencode.rs:585\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05189fe46ee380dbb4ad388b0f9f4804c52f543878ad1f51c3e8b5709cf46ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/usage_script.rs:70-82 | src-tauri/src/usage_script.rs:145-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/usage_script.rs:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/usage_script.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04f441a50881943f65bd2ace2eeb2edbf0aa9d4a7c24c4e5a1d950293782b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): src-tauri/src/services/usage_stats.rs:1008-1019 | src-tauri/src/services/usage_stats.rs:1347-1358 | src-tauri/src/services/usage_stats.rs:1461-1472 | src-tauri/src/services/usage_stats.rs:1670-1681 | src-tauri/src/services/usage_stats.rs:1773-1784 | src-tauri/src/services/usage_stats.rs:1966-1977 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"301933c22d3106bee89b9206e8ada48ae6d7424d6912927fed890023c18e8a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 4): src-tauri/src/proxy/providers/streaming_responses.rs:3407-3418 | src-tauri/src/proxy/providers/streaming_responses.rs:3472-3480 | src-tauri/src/proxy/providers/streaming_responses.rs:4413-4421 | src-tauri/src/proxy/providers/streaming_responses.rs:4472-4480 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c840bb34278f647eb61f5f020851b6684a007ed8ff39a0342b110a604011bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): src-tauri/src/proxy/forwarder.rs:3118-3129 | src-tauri/src/proxy/forwarder.rs:3184-3193 | src-tauri/src/proxy/forwarder.rs:3211-3220 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3118}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ea0b0a41b54c571c5c602f687c96382564a5b3d3d14cc1cd3ff24fbf6b1f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src-tauri/src/services/coding_plan.rs:177-188 | src-tauri/src/services/coding_plan.rs:565-576 | src-tauri/src/services/coding_plan.rs:649-660 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:177\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"783aee08e99282f6b1653fe50b4d5cfd189440c214ebe24cc75d1206f42a5af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src-tauri/src/services/s3.rs:335-346 | src-tauri/src/services/s3.rs:422-433 | src-tauri/src/services/s3.rs:493-504 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/s3.rs:335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9055885094c2da8b74841b0238e7c00aed34b3e7271b9864f9f62bcc011252a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/commands/misc.rs:2811-2822 | src-tauri/src/commands/misc.rs:2826-2837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:2811\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce05c9e945e214081f55da7d63e84dc978cb0e738fd8c2bc0ced32bd92d7797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/database/backup.rs:608-619 | src-tauri/src/services/config.rs:50-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/backup.rs:608\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cb392248c917c66208dc390db310f9d93658279dd4af85f4e7ae7c5491fc40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src-tauri/src/proxy/hyper_client.rs:436-446 | src-tauri/src/proxy/hyper_client.rs:449-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/hyper_client.rs:449\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/hyper_client.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f00c8d4980e0c7b741a7a78fe0dfe45df87b93f1eb957af4db7b4f577a0c03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/proxy/providers/codex.rs:99-110 | src-tauri/src/proxy/providers/codex.rs:802-813 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0547abff8ccc2fefe102b79a91726cfbd85a4b103c86ac01e32be1aaf35262b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1457-1466 | src-tauri/src/proxy/providers/copilot_auth.rs:674-685 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1457\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bb0887adf93de000ccf89897023d8367a386796f73eb86d5f2c3e983c723cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/proxy/providers/streaming.rs:581-592 | src-tauri/src/proxy/providers/streaming.rs:595-606 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming.rs:581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/streaming.rs:577\u0060 calls \u0060insert\u0060 and \u0060src-tauri/src/proxy/providers/streaming.rs:591\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be934b1f4c4e2b6a54b92b681804e9ce7025fd330c5bb5b776a8b900cfe53e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:630-641 | src-tauri/src/proxy/providers/streaming_responses.rs:647-658 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:630\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad40d45dee3fa197cac29ed46b3e38a03078d50e3b8383fe8f31133956cefb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3161-3172 | src-tauri/src/proxy/providers/streaming_responses.rs:3240-3250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3160\u0060 calls \u0060Some\u0060, \u0060get\u0060, \u0060and_then\u0060 and \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3239\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3161}}}],"partialFingerprints":{"codehealthFindingId/v1":"211a0c735bc1f269ab546a31e8f75476500bd2f6101205811f5d8e6b92b62956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:4457-4467 | src-tauri/src/proxy/providers/streaming_responses.rs:4481-4492 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:4481\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":4457}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e8f6c774b764a9334355ccacb837571194ffb2bc258ae46a8b48ae8e8300b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/proxy/providers/transform_responses.rs:1510-1521 | src-tauri/src/proxy/providers/transform_responses.rs:1560-1571 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/transform_responses.rs:1507\u0060 calls \u0060get\u0060, \u0060and_then\u0060, \u0060Some\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs:1559\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47b8234ddd70f57a2153bf56398a5f9808f39a6863a9369b6c056311ded3ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src-tauri/src/services/session_usage.rs:1197-1207 | src-tauri/src/services/session_usage_agy.rs:156-167 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage.rs:1197\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ce6f26b91e1bc31d6917836d8290cddfdd765bef03dffb1248d47351d2b7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src-tauri/src/services/skill.rs:983-992 | src-tauri/src/services/skill.rs:1694-1705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/skill.rs:983\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"490e0126304932801a9b6460bb072582d9bb0cf895589c972f4e787fb5871e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/session_manager/providers/claude.rs:147-158 | src-tauri/src/session_manager/providers/codex.rs:1986-1997 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/claude.rs\u0060 and \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/claude.rs:147\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8cb16d189f19abb71b90c9078601a3d329abc4bba9531c39295de4b2218e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src-tauri/src/session_manager/providers/claude.rs:207-218 | src-tauri/src/session_manager/providers/codex.rs:2048-2057 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/claude.rs\u0060 and \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/claude.rs:207\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"41518215c979b0d66961adbb83b81aaa4ad59b0b90a2111fc466c07edef039b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src-tauri/src/session_manager/providers/codex.rs:1989-1999 | src-tauri/src/session_manager/providers/openclaw.rs:157-168 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 and \u0060src-tauri/src/session_manager/providers/openclaw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/codex.rs:1989\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f48eb6b152e014bbd7ee0eefe1e37376dc7e8a1f20828a036d77b26621be15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 13): src-tauri/src/services/balance.rs:83-92 | src-tauri/src/services/balance.rs:165-174 | src-tauri/src/services/balance.rs:230-239 | src-tauri/src/services/balance.rs:301-310 | src-tauri/src/services/balance.rs:377-386 | src-tauri/src/services/balance.rs:466-475 | src-tauri/src/services/coding_plan.rs:173-182 | src-tauri/src/services/coding_plan.rs:404-413 | src-tauri/src/services/coding_plan.rs:561-570 | src-tauri/src/services/coding_plan.rs:645-654 | src-tauri/src/services/coding_plan.rs:1799-1808 | src-tauri/src/services/subscription.rs:460-470 | src-tauri/src/services/subscription_grok.rs:640-650 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/balance.rs:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/services/subscription_grok.rs:638\u0060 calls \u0060body\u0060 and \u0060src-tauri/src/services/coding_plan.rs:402\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b69ab308dbf2840fe21f28f6e0e7c05fdf3e41e0665525db4fdbd7a44b04ab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): src-tauri/src/proxy/providers/codex_compaction.rs:361-370 | src-tauri/src/proxy/providers/responses_late_arguments.rs:205-214 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:773-783 | src-tauri/src/proxy/providers/streaming_gemini.rs:258-268 | src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:1108-1117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_compaction.rs:361\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/codex_compaction.rs:359\u0060 calls \u0060default\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:1106\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_compaction.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6548612c7eb36207962bee3b98cdb3d092b2d867425cff845bf694b42bb46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): src-tauri/src/lib.rs:348-355 | src-tauri/src/lib.rs:467-477 | src-tauri/src/lib.rs:2123-2130 | src-tauri/src/tray.rs:3059-3066 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/lib.rs:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"43133d3a8d1101f3a492a87df3643aded7e0e4a1fb12ef309d2425a9a282ec25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src-tauri/src/proxy/handlers.rs:1000-1010 | src-tauri/src/proxy/handlers.rs:1122-1132 | src-tauri/src/proxy/handlers.rs:1394-1404 | src-tauri/src/proxy/handlers.rs:1482-1492 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe850e5fbcd87ea36dfd74ed8c00cd202583169e68e4ce19e2b68612f770d7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): src-tauri/src/commands/config.rs:274-284 | src-tauri/src/commands/config.rs:327-337 | src-tauri/src/commands/skill.rs:252-260 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/config.rs:274\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/config.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"48470acccc8ba6e29964dca6c583fb42f312db13f84ec2e59af3f5f086eef763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src-tauri/src/services/session_usage.rs:1306-1316 | src-tauri/src/services/session_usage_codex.rs:2640-2650 | src-tauri/src/services/session_usage_gemini.rs:251-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage.rs:1306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/services/session_usage.rs:1305\u0060 calls \u0060as_ref\u0060 and \u0060src-tauri/src/services/session_usage_codex.rs:2639\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d208334d9eb7e7cdeaf252e2b26fc1141390133694668f50547b9dfb645324e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/codex_config.rs:1088-1098 | src-tauri/src/codex_config.rs:1162-1172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"71faa0b241a65460989adc2d6520f3c4c8c23211e3db4d41ba0b54516350bbde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src-tauri/src/commands/xai_oauth.rs:35-45 | src-tauri/src/commands/xai_oauth.rs:111-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/xai_oauth.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b49d1fa32e1f8a84ee1ca26c22e89d9e165c94e56b5aae660f4ec7248a3d706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/database/backup.rs:1011-1021 | src-tauri/src/database/backup.rs:1153-1163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19bbda784873cc0718725ee48dfaba154a6134130c1391a27ccbb4fe7d828a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/mcp/kimi.rs:90-101 | src-tauri/src/mcp/mcode.rs:75-86 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/kimi.rs\u0060 and \u0060src-tauri/src/mcp/mcode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/kimi.rs:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/kimi.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"198a92ee4396bc39383fcec4a220ddc56e6f25e83e51864372ed864b096d579d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src-tauri/src/openclaw_config.rs:753-771 | src-tauri/src/openclaw_config.rs:794-812 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/openclaw_config.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f23b9c9b7d0b744a31bdbbf0ef75f27c49396172c8e4907b6c000e6868f4a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:872-882 | src-tauri/src/proxy/providers/codex_oauth_auth.rs:917-927 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c8e8386febedb5e7a9e73b743c2b6e281368e100721db0ea1f07faea09ba39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1901-1910 | src-tauri/src/proxy/providers/copilot_auth.rs:1424-1434 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1901\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"89748bf6ed80896b06828b716b2dc25c913fc9e4c133b001147e023e39facaf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1913-1923 | src-tauri/src/proxy/providers/copilot_auth.rs:1437-1447 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddf913dada457f05aa068ffaa996fb99506a8a9b71d4dbfe1b880ad5f5a5e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_gemini.rs:71-81 | src-tauri/src/proxy/providers/transform_gemini.rs:1533-1543 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_gemini.rs:71\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030ff6943d11fbec494c657ae88b5b66f2b984b074c4e8f863f232345b108b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:451-458 | src-tauri/src/proxy/providers/transform_gemini.rs:936-946 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform.rs:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"677c3d5b1eafa1691f2eceb26436a2389f702bb497231e886fd8e2e1e73e5b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/xai_oauth_auth.rs:296-306 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:520-531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/xai_oauth_auth.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"719b5cb428fff57aed45cdab6a270a6e337cbe34f7ca173660c072d04695892e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/coding_plan.rs:704-714 | src-tauri/src/services/coding_plan.rs:725-735 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:704\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ece33dfa21e4b000dbba0d83bd7fa20f401c73cf950a768b4fb5c29ce236cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src-tauri/src/services/s3.rs:459-469 | src-tauri/src/services/webdav.rs:287-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a38774c8d3a0edf45527c9ad3c97d3debdda02816b9ee6d1b2685dec9f58ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:79-89 | src-tauri/src/services/webdav_auto_sync.rs:79-89 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69249c5d521415b013cd35869d8996b951ab6ee31394102605bc8d0fadc2633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src-tauri/src/services/session_usage_dsh.rs:105-115 | src-tauri/src/services/session_usage_kimi.rs:28-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage_dsh.rs:105\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_dsh.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e94b92452edb6a05f7e5265fd3900cf3b45de65facbc350ff6c409659c9cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src-tauri/src/services/skill.rs:2542-2550 | src-tauri/src/services/skill.rs:5228-5238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/skill.rs:2542\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f0c2e5de3d01b85ba08c6029ff0c4b94725938c57a148dace7cadf8ff95b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/subscription.rs:734-744 | src-tauri/src/services/subscription.rs:1297-1307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/subscription.rs:734\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4a4b2d53e3a72039b107403ae3991089a5fdc1b13711f028e4fcbf240a015e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:2720-2730 | src-tauri/src/services/usage_stats.rs:2746-2756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:2720\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":2720}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a39b115c04da8266917165b1acc86ec9403ff79853057591462e6a0b0cd1be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/session_manager/providers/dsh.rs:189-199 | src-tauri/src/session_manager/providers/kimi.rs:235-245 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/dsh.rs:189\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/dsh.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b58a7ce67e1eeba7e81a2f89b1884cd04676e8272afecde2304560f630998b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): src-tauri/src/services/coding_plan.rs:172-181 | src-tauri/src/services/coding_plan.rs:403-412 | src-tauri/src/services/coding_plan.rs:560-569 | src-tauri/src/services/coding_plan.rs:644-653 | src-tauri/src/services/coding_plan.rs:907-916 | src-tauri/src/services/coding_plan.rs:1798-1807 | src-tauri/src/services/subscription.rs:459-468 | src-tauri/src/services/subscription_grok.rs:639-648 \u2014 before extracting anything, compare \u0060src-tauri/src/services/coding_plan.rs\u0060 and \u0060src-tauri/src/services/subscription.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/services/subscription_grok.rs:638\u0060 calls \u0060body\u0060 and \u0060src-tauri/src/services/coding_plan.rs:402\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a138381087c2e39af807a7a0727abb8d0c67d02105683daffa330abe5f34357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src-tauri/src/proxy/handlers.rs:920-929 | src-tauri/src/proxy/handlers.rs:2039-2047 | src-tauri/src/proxy/handlers.rs:2203-2211 | src-tauri/src/proxy/handlers.rs:2369-2377 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/handlers.rs:2038\u0060 calls \u0060builder\u0060, \u0060status\u0060 and \u0060src-tauri/src/proxy/handlers.rs:918\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc934bb42899dba1548630c721144d0ec8210babdecedee3b39654940e1e19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src-tauri/src/proxy/handlers.rs:1802-1811 | src-tauri/src/proxy/handlers.rs:2036-2045 | src-tauri/src/proxy/handlers.rs:2200-2209 | src-tauri/src/proxy/handlers.rs:2366-2375 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5372a7caf4759aef2b830a2cd09c73ecf0b95bf3a7b66c9be2f93d08a9fc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src-tauri/src/commands/misc.rs:2750-2759 | src-tauri/src/commands/misc.rs:2846-2855 | src-tauri/src/commands/misc.rs:2858-2867 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2750}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fab6d274e734f344a6e0b945f268cd2b9b0393f0cfe067ec89560828d4afad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): src-tauri/src/proxy/handlers.rs:682-691 | src-tauri/src/proxy/handlers.rs:1847-1855 | src-tauri/src/proxy/handlers.rs:2231-2238 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:682\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"7529037b34c7012bb416d450bd56583a48f473a61a9bdac67a6cac2f9ff1f3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src-tauri/src/proxy/providers/codex.rs:877-886 | src-tauri/src/proxy/providers/codex.rs:889-898 | src-tauri/src/proxy/providers/codex.rs:925-934 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:877\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0b9e114507680a336de3961808ea1e68d1ab0dcd8164374cd71572bdb281ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src-tauri/src/proxy/providers/codex.rs:901-910 | src-tauri/src/proxy/providers/codex.rs:970-979 | src-tauri/src/proxy/providers/codex.rs:987-996 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:901\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d2d5e3d3b1be78551176909c5b4402e690ccc0395267f76059da107091eaa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src-tauri/src/proxy/providers/streaming_responses.rs:522-531 | src-tauri/src/proxy/providers/streaming_responses.rs:547-556 | src-tauri/src/proxy/providers/streaming_responses.rs:717-726 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc3075e5b060c411251b78ffbdec28461744b09764656f3fd5dee5de109a045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src-tauri/src/services/s3.rs:376-385 | src-tauri/src/services/s3.rs:421-430 | src-tauri/src/services/s3.rs:492-501 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b478a87edf95801b9de29183ba717de8c42ac914a73e0f276072dfbeec756f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src-tauri/src/claude_mcp.rs:179-195 | src-tauri/src/mcp/validation.rs:10-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/claude_mcp.rs:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spec\u0060 to \u0060Value\u0060 in one and \u0060\u0026Value\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea05b7285c5796e30bea4e9071f4f469b1cf7bf65d360a1f6ccb2534c968f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src-tauri/src/codex_history_migration.rs:768-775 | src-tauri/src/codex_history_migration.rs:1294-1303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/codex_history_migration.rs:776\u0060 calls \u0060get\u0060, \u0060as_str\u0060 and \u0060src-tauri/src/codex_history_migration.rs:1304\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_history_migration.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba27effaf06741095a434bfa9d8192d8134c799bb763e4e746fd4645be2529e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/commands/auth.rs:533-542 | src-tauri/src/commands/auth.rs:551-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/auth.rs:533\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/auth.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f255a4271e6c1e026dbcf4c1ec4abdf7b60a78375d861832c2d9d2145be044e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src-tauri/src/commands/config.rs:221-243 | src-tauri/src/commands/config.rs:250-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/config.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13ca412bd8bbbc0e491979fba8591a8117cdc113848dedfba8c6eff41a3fcac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/commands/misc.rs:1236-1245 | src-tauri/src/commands/misc.rs:1267-1276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:1236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"875d0ca43c7dc1ac0a8412e71353155b4923daf8dc47d7683a15c81c37dc55f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src-tauri/src/commands/workspace.rs:69-78 | src-tauri/src/commands/workspace.rs:206-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/workspace.rs:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/commands/workspace.rs:203\u0060 calls \u0060to_lowercase\u0060 and \u0060src-tauri/src/commands/workspace.rs:65\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/workspace.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b78434b51bd0a75c684f7601b4a69a60d1898f1bb5a8aa472960bdb407b368d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src-tauri/src/deeplink/provider.rs:1048-1057 | src-tauri/src/deeplink/provider.rs:1133-1140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/deeplink/provider.rs:1048\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/deeplink/provider.rs:1061\u0060 calls \u0060Some\u0060 and \u0060src-tauri/src/deeplink/provider.rs:1143\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ed7b7f01ca7c60aa6a18abe87be3fdec1dfbb2f6874d3c93f4a26682dc7591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src-tauri/src/hermes_config.rs:393-413 | src-tauri/src/openclaw_config.rs:405-425 \u2014 before extracting anything, compare \u0060src-tauri/src/hermes_config.rs\u0060 and \u0060src-tauri/src/openclaw_config.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/hermes_config.rs:393\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b18acd72cd4a288483e743f02c0d9080755d49cd7d8736acc1c890a0c5d8d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src-tauri/src/lightweight.rs:52-60 | src-tauri/src/lightweight.rs:95-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lightweight.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab69527b3b3caf250a22e591378b2efac7f974589ede57c0a235e76f5e78989b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/mcp/kimi.rs:51-60 | src-tauri/src/mcp/mcode.rs:41-50 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/kimi.rs\u0060 and \u0060src-tauri/src/mcp/mcode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/kimi.rs:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/kimi.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0927413ddc2aac70831cd4351c2e2b50895562a22402175db410e741b3a0e4f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:131-140 | src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:182-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f8acc463fe6f004945bf59327c58cc22804b471039c9ac1e3b4fcfce2bcb37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:366-376 | src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs:386-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_xai_sanitize.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"23973872f3fb0ea4b68e5f4d2fc35290d3def740de1b0b74c1b67b418d6ffff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/coding_plan.rs:220-230 | src-tauri/src/services/coding_plan.rs:243-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:220\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb97faf48d1eba959cc590029b01e7d29a442546d0f60b75db6fc8c41fd47090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/services/skill.rs:479-488 | src-tauri/src/services/skill.rs:489-498 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/skill.rs:479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a14a3e78063553847e4f97e89774f33fbe4eada5e885336e6f0f9513f994ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/services/subscription.rs:239-248 | src-tauri/src/services/subscription_grok.rs:43-52 \u2014 before extracting anything, compare \u0060src-tauri/src/services/subscription.rs\u0060 and \u0060src-tauri/src/services/subscription_grok.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/subscription.rs:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0959408cd43b88d41de7f749e6932b63fa1e96c1c39b3454a09bd1b13856a26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/services/subscription.rs:1086-1095 | src-tauri/src/services/subscription_grok.rs:644-653 \u2014 before extracting anything, compare \u0060src-tauri/src/services/subscription.rs\u0060 and \u0060src-tauri/src/services/subscription_grok.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/subscription.rs:1086\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"6460c9604f40599725304cd70ee6ef34c25abd8bf37dcb93cbab7dc24ade6992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/services/subscription_grok.rs:292-301 | src-tauri/src/services/subscription_grok.rs:329-338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/subscription_grok.rs:292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription_grok.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bfff655f9c6505ec68d04d5cfacb784628c007e880de3f68e3e33df8d960d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14): src-tauri/src/services/balance.rs:83-91 | src-tauri/src/services/balance.rs:165-173 | src-tauri/src/services/balance.rs:230-238 | src-tauri/src/services/balance.rs:301-309 | src-tauri/src/services/balance.rs:377-385 | src-tauri/src/services/balance.rs:466-474 | src-tauri/src/services/coding_plan.rs:173-181 | src-tauri/src/services/coding_plan.rs:404-412 | src-tauri/src/services/coding_plan.rs:561-569 | src-tauri/src/services/coding_plan.rs:645-653 | src-tauri/src/services/coding_plan.rs:908-916 | src-tauri/src/services/coding_plan.rs:1799-1807 | src-tauri/src/services/subscription.rs:460-468 | src-tauri/src/services/subscription_grok.rs:640-648 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/balance.rs:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/services/subscription_grok.rs:638\u0060 calls \u0060body\u0060 and \u0060src-tauri/src/services/coding_plan.rs:402\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3566a1c4c90620a9e67893e6d87a791a5de2b332bc28ed38c1e00cea07d2f798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): src-tauri/src/proxy/handlers.rs:716-723 | src-tauri/src/proxy/handlers.rs:1880-1888 | src-tauri/src/proxy/handlers.rs:2257-2265 | src-tauri/src/proxy/response_processor.rs:536-544 | src-tauri/src/proxy/response_processor.rs:563-570 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/handlers.rs\u0060 and \u0060src-tauri/src/proxy/response_processor.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/handlers.rs:716\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad361354c6e0bacff633756573d0fc18572408c41df883d8f85dcf3d7be61fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src-tauri/src/provider.rs:927-935 | src-tauri/src/provider.rs:991-999 | src-tauri/src/provider.rs:1026-1034 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/provider.rs:927\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c04f3a7f5072a6495cdb109a6f20342dfb8018b7c00a4279ca50d93ad28bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src-tauri/src/proxy/providers/codex_oauth_auth.rs:2024-2032 | src-tauri/src/proxy/providers/copilot_auth.rs:1504-1512 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:826-833 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"9912e1deb293a420167d0484c34a630ca24b8e2374c293505028a17ac7ac901b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): src-tauri/src/proxy/providers/transform.rs:453-458 | src-tauri/src/proxy/providers/transform_gemini.rs:938-946 | src-tauri/src/proxy/providers/transform_responses.rs:2374-2379 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform.rs:453\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8822bb75ebb0112d98ed4c57b00bc9c9311144668590f2e29c6360175f04fc56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src-tauri/src/session_manager/providers/claude.rs:150-159 | src-tauri/src/session_manager/providers/codex.rs:1989-1997 | src-tauri/src/session_manager/providers/openclaw.rs:157-166 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/claude.rs\u0060 and \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/claude.rs:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"db89ab2c4697f458fd11a59b221ff1213228f838380afcc885b8cb8d1b4727ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src-tauri/src/session_manager/providers/opencode.rs:589-597 | src-tauri/src/session_manager/providers/opencode.rs:814-822 | src-tauri/src/session_manager/providers/opencode.rs:883-891 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/opencode.rs:589\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a295a14a3add04578a9fc2c0e40520e2c4bfb9a77ca85671c7d32c8192bd18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/claude_desktop_config.rs:991-999 | src-tauri/src/proxy/model_mapper.rs:161-169 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/claude_desktop_config.rs:991\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c530d75870c89c329361e288baa3eb76293316fcdec8c2b735137ec6e9e61dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/commands/auth.rs:444-452 | src-tauri/src/commands/auth.rs:454-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/auth.rs:444\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/auth.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaa075b973c7f678ea5f14814192d69e0da3dd595102a338622910e499b92a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/commands/codex_oauth.rs:111-119 | src-tauri/src/commands/xai_oauth.rs:38-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/codex_oauth.rs:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/codex_oauth.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a473ebb630832e13e99968f8ccc9ed7ea22ebd9c6616447107dac75cfac3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/jsonc_document.rs:306-314 | src-tauri/src/jsonc_document.rs:343-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/jsonc_document.rs:306\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e823777480739bcdf55da20693b8a4c44f23522a2dacfe56b51084c63d04c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src-tauri/src/kimi_config.rs:369-376 | src-tauri/src/kimi_config.rs:384-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/kimi_config.rs:369\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cdadd8ad94d39ddb92080a13157aa3e92b5247b091726625a6a36be51025bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/proxy/circuit_breaker.rs:176-184 | src-tauri/src/proxy/circuit_breaker.rs:206-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/circuit_breaker.rs:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/circuit_breaker.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba169dd79b2da03f294a9bceff44f12feb7d70194550b25115de8f1c1883bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/proxy/providers/codex.rs:1060-1068 | src-tauri/src/tray.rs:1218-1226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:1060\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"6771a70c4bcbe1f43b334c27cf4792d6e6c8a9d1a8c79c6eef945f1f995cce50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:517-525 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:523-531 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb89ab2883769d4b93a55ad771efd47f9c813e3e62c8c95f0022672c9c59f0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:234-246 | src-tauri/src/proxy/providers/streaming_responses.rs:274-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df67492828e207b8632469ec28ba3d8730d0789314ff7ac7cbc5b2854ec7da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:3005-3013 | src-tauri/src/proxy/providers/streaming_responses.rs:4241-4249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:3005\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":3005}}}],"partialFingerprints":{"codehealthFindingId/v1":"316987098fb8b8f0e974bc77dbfb8c6ea945d5ff87b1e8ac8f1cb69fec0f9614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src-tauri/src/services/claude_account/shared.rs:254-262 | src-tauri/src/services/claude_account/shared.rs:264-271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/claude_account/shared.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a948dfee55ada46a13984757b958f5623e732d76163888342a6f23dc1641b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/services/kimi_oauth/account.rs:252-260 | src-tauri/src/services/kimi_oauth/account.rs:270-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/account.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e134fbe8df9ca2a3b6cebcf6863306192f784aa13af94878874d751194eb8c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/services/s3_sync.rs:162-170 | src-tauri/src/services/webdav_sync.rs:191-199 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060settings\u0060 to \u0060\u0026mut S3SyncSettings\u0060 in one and \u0060\u0026mut WebDavSyncSettings\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_sync.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0870386deb6456796f36e3a8744a8bee7327b0398054a49412e6836354f79791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/session_manager/providers/pi_blocks.rs:140-148 | src-tauri/src/session_manager/providers/pi_blocks.rs:326-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/pi_blocks.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89faf50efe9349b4aeea6f7766b239f5135a1d1a67c7da22a40a2fadbf60657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/session_manager/providers/workbuddy.rs:48-56 | src-tauri/src/session_manager/providers/workbuddy.rs:73-81 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/workbuddy.rs:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/workbuddy.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7253366d7523d88603ea6370cbc54adf8bd6067972335de78dfde42af679a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/settings.rs:201-209 | src-tauri/src/settings.rs:298-306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/settings.rs:201\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/settings.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7813150813d293539f9ab73d9d0d5fc284a843b0f9e6e2e2221c7e88cae4939a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src-tauri/src/proxy/handlers.rs:1728-1735 | src-tauri/src/proxy/handlers.rs:1934-1941 | src-tauri/src/proxy/handlers.rs:2098-2105 | src-tauri/src/proxy/handlers.rs:2323-2330 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1728}}}],"partialFingerprints":{"codehealthFindingId/v1":"394ba408ab2ad07c283b5a8cefdc9f2bfc4fa79696b48a02544f01678dc0cae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src-tauri/src/services/provider/mod.rs:8879-8886 | src-tauri/src/services/provider/mod.rs:8904-8911 | src-tauri/src/services/provider/mod.rs:8928-8935 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/mod.rs:8879\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":8879}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d378bc42c47dd2a2a53bd857f77cb4cef1f3fb27a95a917c167abad9d99127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/commands/auth.rs:513-520 | src-tauri/src/commands/auth.rs:549-556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/auth.rs:513\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/auth.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff997cc83c20c72e12fab3e6ab1a9423575984c45617f267e3844088684285d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src-tauri/src/commands/misc.rs:3339-3345 | src-tauri/src/commands/misc.rs:3370-3377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3339}}}],"partialFingerprints":{"codehealthFindingId/v1":"233bddf312edf6075075c6d0ca6b01ed5db158286759edb2eaedb2b45608f645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/commands/misc.rs:6643-6650 | src-tauri/src/session_manager/terminal/mod.rs:328-335 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/misc.rs\u0060 and \u0060src-tauri/src/session_manager/terminal/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:6643\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6643}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fddb8dfa6b893e67dabb997f8a4f1c1192801fa77ab1a2513c2a6c2ca91f109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/commands/tool_lifecycle_progress.rs:123-130 | src-tauri/src/services/claude_account/login.rs:206-213 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/tool_lifecycle_progress.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"253914d8921eaa15f29d8308da82e1544f5c46834c974427112741e505433bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/database/backup.rs:896-903 | src-tauri/src/database/dao/profiles.rs:53-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/backup.rs:896\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14917bb756af7ab48d51d749ff52ef61f31185879eab984e60b47d2ceca231b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/hermes_config.rs:384-391 | src-tauri/src/openclaw_config.rs:396-403 \u2014 before extracting anything, compare \u0060src-tauri/src/hermes_config.rs\u0060 and \u0060src-tauri/src/openclaw_config.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/hermes_config.rs:384\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7a6d130d7c9907f7dc7578a68e225993a78f55896eff6c083f52fc55236592"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/jsonc_document.rs:377-384 | src-tauri/src/jsonc_document.rs:422-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/jsonc_document.rs:377\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/jsonc_document.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"873d69a55f179c4d8d4794ba869c37a0a5b9020c0214297665bd47426fdffb52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 4): src-tauri/src/mcp/hermes.rs:91-97 | src-tauri/src/mcp/hermes.rs:148-149 | src-tauri/src/mcp/opencode.rs:89-91 | src-tauri/src/mcp/opencode.rs:164-171 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/hermes.rs\u0060 and \u0060src-tauri/src/mcp/opencode.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/hermes.rs:91\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/mcp/hermes.rs:91\u0060 calls \u0060is_object\u0060, \u0060as_object\u0060, \u0060is_empty\u0060 and \u0060src-tauri/src/mcp/hermes.rs:148\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe2aaa3f5cfec7235f8b86966b624de67e7467e7ecb7fdef91a139b8f7068c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:3524-3531 | src-tauri/src/proxy/forwarder.rs:3552-3560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:3524\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad95395f038048c145619c4735ee7efec62732ec4796656afe6705c09c8baf66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:4161-4168 | src-tauri/src/proxy/forwarder.rs:4183-4190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":4161}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b664a1d40ff3220e68c37d7db4cf397470d75c36a8bc918cf020ccf5b1a1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:2067-2074 | src-tauri/src/proxy/providers/copilot_auth.rs:1637-1644 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c677038e0c99a7010de338b5f933d561ac1ac0836b3ffdd341611c2a721e94a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/services/profile.rs:222-229 | src-tauri/src/services/profile.rs:231-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/profile.rs:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/profile.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e2f68b8d4048bbef02cb08ef5c4b109608787eea9e2b994fba0acb6424404a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/services/skill.rs:2525-2533 | src-tauri/src/services/skill.rs:2599-2607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":2525}}}],"partialFingerprints":{"codehealthFindingId/v1":"82813f726709b810f54d2f41217077275ff479c317e1caf969bd5277ab294859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src-tauri/src/session_manager/providers/claude.rs:183-189 | src-tauri/src/session_manager/providers/claude.rs:231-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/claude.rs:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f639d4af8124e31e9903dbeb6c3614c4f4cc69a0427f90f6d1dd343f5307c913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/session_manager/providers/hermes.rs:346-353 | src-tauri/src/session_manager/providers/opencode.rs:244-252 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/hermes.rs\u0060 and \u0060src-tauri/src/session_manager/providers/opencode.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/hermes.rs:346\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"07609b48f552a10bf0d514a9da781561c14d6351c61ade8a81e35f09a55be4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/session_manager/providers/opencode.rs:705-712 | src-tauri/src/session_manager/providers/opencode.rs:722-729 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee48d58feac306a2bfd055651aae819541a7efd914e884e9f66de07df18d415e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src-tauri/src/proxy/handlers.rs:683-691 | src-tauri/src/proxy/handlers.rs:1848-1855 | src-tauri/src/proxy/handlers.rs:2232-2238 | src-tauri/src/proxy/response_processor.rs:511-519 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/handlers.rs\u0060 and \u0060src-tauri/src/proxy/response_processor.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34efdee96e50025a1865f342ea6ee0ed7da6996598d986c736e430171161a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src-tauri/src/proxy/handlers.rs:1753-1759 | src-tauri/src/proxy/handlers.rs:1995-2001 | src-tauri/src/proxy/handlers.rs:2160-2166 | src-tauri/src/proxy/response_processor.rs:279-285 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/handlers.rs\u0060 and \u0060src-tauri/src/proxy/response_processor.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2516bb5c78cf25ad67794a1f58021603087cabb37eb93beb0a2b2536ae7371a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/commands/misc.rs:1884-1890 | src-tauri/src/commands/misc.rs:3340-3346 | src-tauri/src/commands/misc.rs:3372-3378 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"e313b0466817bb3534adc078996b3ffd714def99ba9ea95f85915a54223dacb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/mcp/codex.rs:129-135 | src-tauri/src/mcp/codex.rs:151-157 | src-tauri/src/mcp/codex.rs:202-208 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/codex.rs:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35a02cbe0df4e0c35e6c6e24364d97cf5c3211bdbe9d7bb9e994df1c430e6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/proxy/forwarder.rs:3473-3480 | src-tauri/src/proxy/forwarder.rs:3523-3529 | src-tauri/src/proxy/forwarder.rs:3551-3558 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:3473\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3473}}}],"partialFingerprints":{"codehealthFindingId/v1":"dceaf84afc11f7c9bbd606584f3c799e8eb201f10a13274dd4ed3fec5d535fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1888-1894 | src-tauri/src/proxy/providers/copilot_auth.rs:1410-1416 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:757-764 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1888\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/xai_oauth_auth.rs:756\u0060 calls \u0060filter\u0060 and \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1887\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"feec1e99d0a366ffa579552b4740638502a16e9e6d1ef3db733151c2d255994f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/proxy/providers/copilot_auth.rs:923-929 | src-tauri/src/proxy/providers/copilot_auth.rs:1139-1145 | src-tauri/src/proxy/providers/copilot_auth.rs:1253-1259 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/copilot_auth.rs:1252\u0060 calls \u0060fetch_and_cache_endpoint\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs:920\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/copilot_auth.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7f6c1ce1ec58f5fb73b5e27d2ef828e9312478b109cf77939585922852141c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/commands/auth.rs:276-282 | src-tauri/src/commands/auth.rs:294-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/auth.rs:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/auth.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"0071b37fb66622da4fffd0b94002982c26b4f47ec79ed3d5f33a19d8ccf32a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src-tauri/src/commands/misc.rs:220-225 | src-tauri/src/commands/misc.rs:632-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060tools\u0060 to \u0060Option\u003CVec\u003CString\u003E\u003E\u0060 in one and \u0060\u0026[String]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72319b16d17b8a33e5c0133d3a87c4eab3c72605be3b993cae5db8a9f71d33d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/commands/misc.rs:3387-3393 | src-tauri/src/commands/misc.rs:3442-3448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:3387\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":3387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9ae1ea4e06bc0a2cbac16a2dfafbd8dd96c86ebb9e317933e04681e7a344ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/commands/workspace.rs:88-94 | src-tauri/src/commands/workspace.rs:263-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/workspace.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e0ef4c9d756265d07ea4acda94a81b4371f50c937ead531e8101ab60d193c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src-tauri/src/database/dao/profiles.rs:46-52 | src-tauri/src/database/dao/profiles.rs:75-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/dao/profiles.rs:46\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/profiles.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f765f79c9f0824c3550020530446b84b4dec1895ba769d43f06b7e90f092bf3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/live/project/codex.rs:314-320 | src-tauri/src/live/project/codex.rs:324-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7dd9f33587c3b7985cc1408e9ec4fdc29ff1f983f1b637383ddf07de83b475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/mcp/codex.rs:749-755 | src-tauri/src/mcp/codex.rs:765-771 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/codex.rs:749\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d8cca2616e087307b718936ebe43a2880455e8a564a1cd4aa98268d72cd732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src-tauri/src/mcp/mcode.rs:52-57 | src-tauri/src/mcp/pi.rs:221-227 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/mcode.rs\u0060 and \u0060src-tauri/src/mcp/pi.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/pi.rs:221\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/mcode.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7977247e877d0dedc88e0cc60e659582b4e72eb56076b86dabf657f5a4c8a3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/mode/controller.rs:1553-1560 | src-tauri/src/mode/controller.rs:1567-1574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mode/controller.rs:1553\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/mode/controller.rs:1550\u0060 calls \u0060settled_stack\u0060, \u0060Ok\u0060 and \u0060src-tauri/src/mode/controller.rs:1566\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/controller.rs"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0273ef3f0cdac8183ccf93b62044836276b32e5bf0342f56902259f79b051f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/codex_chat_history.rs:445-451 | src-tauri/src/proxy/providers/streaming_gemini.rs:258-265 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_chat_history.rs:445\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_history.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb7a89ea42656d73d7a18f481f9d7f830672766df4ee9780fb0f24e6670e92d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:420-426 | src-tauri/src/proxy/providers/streaming_responses.rs:845-851 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:420\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"7901bd6e136a8a0da96c28ab3aa72dff1bd83fab839ab234cb266d22fd8ef9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:1935-1942 | src-tauri/src/proxy/providers/streaming_responses.rs:1946-1953 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:1935\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/streaming_responses.rs:1945\u0060 calls \u0060tool_item_key_from_event\u0060 and \u0060src-tauri/src/proxy/providers/streaming_responses.rs:1934\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1935}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ffbd3c6017c4956abead6f0318cd20d7e43dd1e050bf567d404860eb1e6e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:718-724 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1637-1646 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_chat.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0072df68bca3631ea48660bca39fb41f2b06447352af00315573dffee1fa49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:552-556 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:588-594 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e22b7f2e0fffab9395b48b6ae7b85bbf79d38992a74b8db60f6149ac1f0505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:917-923 | src-tauri/src/proxy/providers/transform_responses.rs:237-243 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform_codex_anthropic.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_codex_anthropic.rs:917\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81407441501808ac9cef48fd733722636c5c3008bc2957e7e44743ee1f6234e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:60-66 | src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:127-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:59\u0060 calls \u0060trim\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:126\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"993393aff93ea03a6711837d7750883825ff001b7012fcb8b2ce739acd6daef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_gemini.rs:216-222 | src-tauri/src/proxy/providers/transform_gemini.rs:1258-1264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b554a460e12322035f60b5297e786d051f0557340e9724a51429377c6518e25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_responses.rs:348-354 | src-tauri/src/proxy/providers/transform_responses.rs:435-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a1b0ff6ed8d9771929175cc34ccf997f0d7573fcfa9564522d344b63fb77d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_responses.rs:781-787 | src-tauri/src/proxy/providers/transform_responses.rs:1081-1087 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_responses.rs:781\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2b523e009c69534b4e15c5e0236db9df4137cbe797256f6c85bf463c4ed692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_responses.rs:937-943 | src-tauri/src/proxy/providers/transform_responses.rs:1041-1047 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_responses.rs:937\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65a2fb322acd56cbc7be4df361e4f39bf5eedeefcfc7e623877758374bdc08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/services/balance.rs:498-504 | src-tauri/src/services/coding_plan.rs:506-512 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"520f75a4937a0562021da1d5e7ba87b2a45ae7ddd6fabad3cd15ffaadb01c243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/services/provider/mod.rs:8124-8130 | src-tauri/src/services/provider/mod.rs:8145-8151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/mod.rs:8124\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":8124}}}],"partialFingerprints":{"codehealthFindingId/v1":"647d1e73eec5d480a1714fa5497299fc58e465e2c922cef18e66b33b0951bbd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/services/provider/pi.rs:185-191 | src-tauri/src/services/provider/pi.rs:209-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/pi.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d23200e7c666d02371d9121842b26d781db46d1b009142eea284128d9ef506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src-tauri/src/session_manager/providers/grokbuild.rs:97-111 | src-tauri/src/session_manager/providers/hermes.rs:878-891 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/grokbuild.rs:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/grokbuild.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcffba234a10f29243b144beaba895ca74ac38d510ebc104ff9c1f82e7071ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): src-tauri/src/services/balance.rs:102-107 | src-tauri/src/services/balance.rs:184-189 | src-tauri/src/services/balance.rs:249-254 | src-tauri/src/services/balance.rs:320-325 | src-tauri/src/services/balance.rs:396-401 | src-tauri/src/services/balance.rs:485-490 | src-tauri/src/services/coding_plan.rs:205-210 | src-tauri/src/services/coding_plan.rs:426-431 | src-tauri/src/services/coding_plan.rs:593-598 | src-tauri/src/services/coding_plan.rs:677-682 | src-tauri/src/services/coding_plan.rs:944-949 | src-tauri/src/services/coding_plan.rs:1819-1824 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/balance.rs:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2bb64bd98afaf8518a92fc07e277a3de78fbb23c5b9e219a181bfff40ba29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src-tauri/src/services/mcp.rs:687-693 | src-tauri/src/services/mcp.rs:725-731 | src-tauri/src/services/mcp.rs:763-769 | src-tauri/src/services/mcp.rs:797-802 | src-tauri/src/services/mcp.rs:827-833 | src-tauri/src/services/mcp.rs:865-871 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/mcp.rs:687\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd069ba5032ee29a4ce29265a0b47b478b958a86183849ff6d68f9cc6bb653b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src-tauri/src/mcp/agy.rs:175-183 | src-tauri/src/mcp/kimi.rs:150-158 | src-tauri/src/mcp/mcode.rs:130-138 | src-tauri/src/mcp/pi.rs:347-355 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/kimi.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/agy.rs:175\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d569d8a3256145fca62439028a10c1904e2dc852e8e68235a9687a819aa8548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src-tauri/src/proxy/providers/streaming_responses.rs:2882-2890 | src-tauri/src/proxy/providers/streaming_responses.rs:3363-3371 | src-tauri/src/proxy/providers/streaming_responses.rs:4088-4096 | src-tauri/src/proxy/providers/streaming_responses.rs:4495-4500 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"8614ad74977b41ceb9cd9e2a398f21181f4c83b99adebd26c1cf3f2ce42125ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src-tauri/src/deeplink/provider.rs:1347-1352 | src-tauri/src/deeplink/provider.rs:1567-1572 | src-tauri/src/deeplink/provider.rs:1693-1701 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/deeplink/provider.rs:1347\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10c40bcb4a827edb4d6e1e25213f52520c9e4b784e42e9c67e427b3453623ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src-tauri/src/mcp/agy.rs:109-118 | src-tauri/src/mcp/kimi.rs:86-95 | src-tauri/src/mcp/mcode.rs:71-80 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/kimi.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/agy.rs:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"416fb7ba0531b47e4c498d69f14dedd48ed58550f7c55a72aca5701cd2bb4159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/deeplink/provider.rs:1354-1359 | src-tauri/src/deeplink/provider.rs:1706-1713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/deeplink/provider.rs:1354\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"902657590a0a169d54a55403cd12cdec30203b240d7ed4c6273f6a2a6520375a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/dsh_config.rs:373-378 | src-tauri/src/services/omo.rs:340-345 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/dsh_config.rs:373\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3975527e28186291ad13714ce25398bd4d680bda3b7b5c716d83bd6c583e5dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/mode/stack.rs:607-612 | src-tauri/src/mode/stack.rs:624-629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/stack.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a7c5ee75571559f7c813ef3851b1bc80b1c197e24d95bf217205e1fe3ce5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/cache_injector.rs:36-41 | src-tauri/src/proxy/cache_injector.rs:60-65 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/cache_injector.rs:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/cache_injector.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff6c83749dbfe6ce3f4d4b2acafe8bc3062e214482a8cc1c12fa2c387b468af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/copilot_optimizer.rs:316-322 | src-tauri/src/proxy/copilot_optimizer.rs:345-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca1b88c92c8f64e9ed3756a4d9acf6869b90caecab0adfcdcd79710f2be0847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:1787-1792 | src-tauri/src/proxy/providers/claude.rs:395-400 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:1787\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce12f303e3f5653fc16f3194ba442a95375677e802823ec7c9bade1f289c27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/providers/codex_chat_common.rs:7-12 | src-tauri/src/proxy/providers/codex_chat_common.rs:52-57 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_chat_common.rs:7\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_common.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"40857d65bcad9958b6d9b2288ee9fc8f1349ceb24ee45c0035908bfb6df7f8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:475-485 | src-tauri/src/proxy/providers/streaming_responses.rs:969-979 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a28f5e675513fd16dae14f439c34a05fe6bebf095bd83dbe0365fbd5d8b99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:305-310 | src-tauri/src/proxy/providers/transform_responses.rs:1836-1841 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"622f69740cdfe8c044fa23c808fe82278c97dc931e5e0ffc1b082e33bdbcafd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/env_checker.rs:77-82 | src-tauri/src/services/env_checker.rs:93-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/env_checker.rs:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/env_checker.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb34ad9ec07ff608cf6a75bb2f0beb2e8c5f2a951eba2eefafbad1dc17d7031b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/provider/mod.rs:6801-6806 | src-tauri/src/services/provider/mod.rs:6991-6996 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/mod.rs:6801\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6801}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5776448d624d419fdd8ab6864b3e6b653eb7afac6d2c9b01c10077e768e33e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1400-1405 | src-tauri/src/services/usage_stats.rs:1514-1519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1400\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ed91129496ab45de7244d690a043e4d914c1aa4755a1bb4ecd2a66dc341be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/session_manager/providers/dsh.rs:214-219 | src-tauri/src/session_manager/providers/kimi.rs:261-266 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/dsh.rs:214\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/dsh.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b4d937434b18e3af9d03536c6b9305c102f2f61da13f3b5890a775eecd6480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src-tauri/src/mcp/kimi.rs:99-104 | src-tauri/src/mcp/mcode.rs:84-89 | src-tauri/src/mcp/omp.rs:213-218 | src-tauri/src/mcp/pi.rs:287-292 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/kimi.rs\u0060 and \u0060src-tauri/src/mcp/mcode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/kimi.rs:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/mcp/omp.rs:212\u0060 calls \u0060native_enabled\u0060 and \u0060src-tauri/src/mcp/pi.rs:286\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/kimi.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7305d49db4e9a6629143015e694d93eeea9a2e9c24ae6ddfb13d1a0fa07b937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/codex_config.rs:1011-1017 | src-tauri/src/codex_config.rs:1093-1097 | src-tauri/src/codex_config.rs:1167-1171 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e079c6b897787d44be065618d8528a050e2706678762cc96933a9646d8d306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/copilot_config.rs:805-809 | src-tauri/src/opencode_config.rs:20-24 | src-tauri/src/services/omo.rs:330-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/copilot_config.rs:805\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"3651652336aa074ba33297d1ffa85ac1e5e01133d57b0efd92da581ec019256e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1901-1905 | src-tauri/src/proxy/providers/copilot_auth.rs:1424-1429 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:777-781 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1901\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/providers/xai_oauth_auth.rs:784\u0060 calls \u0060then_with\u0060, \u0060cmp\u0060 and \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:1908\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"38065c9138fa0e7b4282b57b65d8b8421441d87cce767bf00dae44ca050e387d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:552-556 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:588-593 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:610-615 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"602001e7aaa12767a5a19762a513b55f0adb98035c34fb91471a36b429919ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/services/usage_stats.rs:2722-2726 | src-tauri/src/services/usage_stats.rs:2748-2752 | src-tauri/src/session_manager/providers/agy.rs:200-204 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:2722\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":2722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e5b16ca1a72235ed077331b4d2d3f492cf146378d0a53efd22af1bef499052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/claude_mcp.rs:90-96 | src-tauri/src/gemini_mcp.rs:24-30 \u2014 before extracting anything, compare \u0060src-tauri/src/claude_mcp.rs\u0060 and \u0060src-tauri/src/gemini_mcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef31e207a802014c4fe3dff90a9fe694fb4b1bbc8f417badc88f7f6c379f589a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): src-tauri/src/commands/misc.rs:6256-6258 | src-tauri/src/commands/misc.rs:7056-7060 | src-tauri/src/commands/misc.rs:7092-7096 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:7056\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":6256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e495d57bc271d0b173f4ee49cf8a05807f0f3c3249939d46122f8de6adce91f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/commands/provider.rs:82-86 | src-tauri/src/commands/provider.rs:112-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/provider.rs:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"314e1ab3d710b305f5387128ed98687185e649a72150fdefffaaa67e6ef17fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/mcp/hermes.rs:143-147 | src-tauri/src/mcp/opencode.rs:155-160 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/hermes.rs\u0060 and \u0060src-tauri/src/mcp/opencode.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/hermes.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"299fd005c1b9fc6ce54b96496642bb47e1078bb5fc20dcf83ae5825e60c5f1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/pi_config/mod.rs:123-128 | src-tauri/src/pi_config/mod.rs:226-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/pi_config/mod.rs:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c753018228d0325dc66040133a29e349c2dd4e72851014e2952812f1802f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/pi_config/mod.rs:175-181 | src-tauri/src/pi_config/mod.rs:205-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/pi_config/mod.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee57245263978fae3e3e276366be05b8ac13573f80866fb58b1ad300d27a108"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:4064-4071 | src-tauri/src/proxy/forwarder.rs:4134-4141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":4064}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3197ab3afd26653af78d681e614b8f05028e67aa448546efdbbf1530bb3edf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/responses_late_arguments.rs:32-36 | src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:578-582 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/responses_late_arguments.rs:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/responses_late_arguments.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03de1ed69bc6153b0a5ae9b7ab264b8215d4379d74023d8c4fff3d038c829c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:253-257 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:254-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0262cbdd6406744aedad0f11b841ebcc464a58523c499b58f90ec402c3e55e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:746-750 | src-tauri/src/proxy/providers/transform_responses.rs:2726-2730 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac5e9a7b886f7e42e5fffd2291bc2f2ce7deec87f82f939c02c32f3c5349e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:898-902 | src-tauri/src/proxy/providers/transform_responses.rs:222-226 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform_codex_anthropic.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_codex_anthropic.rs:898\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"23850921689f0072f0cd006c2bd80d449982a540e83af277dc8f9090ba393fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_chat.rs:1852-1857 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1873-1878 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dc2476bfdb3b4c7cde8628098ff1a84380ccf743766bd57b44f1b273a4641c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/transform_responses.rs:438-442 | src-tauri/src/proxy/providers/transform_responses.rs:1865-1869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_responses.rs:438\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/providers/transform_responses.rs:1870\u0060 calls \u0060get\u0060, \u0060and_then\u0060, \u0060is_some_and\u0060 and \u0060src-tauri/src/proxy/providers/transform_responses.rs:443\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1536f6af0a499771ff2b51b0010f9f795e57dd725c355faf504b883b5af21c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/pi_prompt_files.rs:133-138 | src-tauri/src/services/pi_prompt_files.rs:243-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/pi_prompt_files.rs:133\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/pi_prompt_files.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1cf7f8bb211e0bc872cede1ca85284097a7090dc56e077454e0ab8ee3d3309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/profile.rs:406-410 | src-tauri/src/services/profile.rs:426-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/profile.rs:406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/profile.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ade27acf6b6091da19e6452f17a52a5de8f20a018ba02b60eaa4802d97ad2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/session_usage.rs:656-661 | src-tauri/src/services/session_usage_grokbuild.rs:196-200 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d871adc22c090734d39e2f187d4f495a35a15c4d68e4984991b173a4aa49f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/session_usage_dsh.rs:543-548 | src-tauri/src/services/session_usage_kimi.rs:176-180 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage_dsh.rs:543\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_dsh.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4c47846a6d3a300e6cc02a082a541fdb206afb94dd0fffb3df23d300b14232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/session_usage_pi.rs:472-476 | src-tauri/src/services/session_usage_pi.rs:500-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage_pi.rs:472\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060flavor\u0060 to \u0060\u0026Flavor\u0060 in one and \u0060\u0026\u0027static Flavor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9cfc98e362f43601d4ce369b8b64c4af2823c5d46d1a9ff08ad576cc57aae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1097-1102 | src-tauri/src/services/usage_stats.rs:1253-1257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1097\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"d714c00205228d9fe1cc2ae21c7d198f408d90f6a446cbecf59df0c62e3e6ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1525-1529 | src-tauri/src/services/usage_stats.rs:1601-1605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1525\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e43ae234a3deed263326b8fc2aa07891c78d65787b910b88f9794f556b1b719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/session_manager/providers/hermes.rs:282-287 | src-tauri/src/session_manager/providers/opencode.rs:749-753 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/hermes.rs\u0060 and \u0060src-tauri/src/session_manager/providers/opencode.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9203dafe2bbef64abc83cce57df315c6bb0563d438e8c0e84165dafa77d6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/session_manager/providers/workbuddy.rs:53-57 | src-tauri/src/session_manager/providers/workbuddy.rs:90-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/workbuddy.rs:53\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/workbuddy.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd66dcbafec5eb4b016ba0b438787fe2a61a9bccaeae2229a6315b97d5c0419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/commands/misc.rs:1991-1997 | src-tauri/src/session_manager/terminal/mod.rs:148-154 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/misc.rs\u0060 and \u0060src-tauri/src/session_manager/terminal/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae2f7a2c65873e6b890848f59f3d6c682e098149ae41dce350c5e4a70603791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:89-97 | src-tauri/src/commands/webdav_sync.rs:94-102 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f1f01ac0cca77af5d6ccdefe391fce3d7c2297b31f47e9a0e4dbf64db6213a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src-tauri/src/deeplink/codex_link.rs:249-256 | src-tauri/src/live/project/codex.rs:216-223 | src-tauri/src/services/provider/codex_terminal.rs:419-426 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/codex_link.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5671fe5bc6dd44cf30af8291105257ec3fbb5bb3b6413bd018c55fc7dc562c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src-tauri/src/deeplink/codex_link.rs:258-263 | src-tauri/src/deeplink/grok_link.rs:195-200 | src-tauri/src/live/project/codex.rs:225-230 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/codex_link.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28429de0650568023e553a797de92bd648bb96452d714d35be2941574635e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src-tauri/src/mcp/agy.rs:159-165 | src-tauri/src/mcp/copilot.rs:306-312 | src-tauri/src/mcp/kimi.rs:135-141 | src-tauri/src/mcp/mcode.rs:120-126 | src-tauri/src/mcp/pi.rs:323-329 | src-tauri/src/mcp/workbuddy.rs:168-174 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/kimi.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63b0e713e221011079270862ef1584821539b954f0e45eae8a9b6a5f28b6cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:3807-3811 | src-tauri/src/proxy/gemini_url.rs:158-162 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3807}}}],"partialFingerprints":{"codehealthFindingId/v1":"f660a0ec97366d51921bd562b955c1cdced83647fb15fc90209e639a5c6be5f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/proxy/providers/codex_oauth_auth.rs:1406-1410 | src-tauri/src/proxy/providers/copilot_auth.rs:615-619 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:432-436 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"93586c45329e717dcb68d3bf5ba12bba3c6dd60acab82f771fafdd4bd294670d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:136-146 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:193-205 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8aebbc5df894cf3e72f6b619b24a79f7bd64ea2ee0e8a72dc61fd79c0efa072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/services/coding_plan.rs:1368-1374 | src-tauri/src/services/s3.rs:91-97 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"013d6d7456c34bf14389354ab71f1f4d196f6b31451c7ecbb7dadc9c10aaa21e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/provider/codex_client_catalog.rs:140-145 | src-tauri/src/services/provider/codex_official_models.rs:159-164 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_client_catalog.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c200c6f90148347e1c3970db0472e9fae22b810705af6189b3b435ed5424d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:32-37 | src-tauri/src/services/webdav_auto_sync.rs:32-37 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63e649894ada9b138f133548edd6bedaa4b3df04b4fdf1f038ca1555f27e2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:48-53 | src-tauri/src/services/webdav_auto_sync.rs:48-53 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7a98658a654127b519828d726ad0e3cc5b35564913c0e811ee9dd56ee2170a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:55-63 | src-tauri/src/services/webdav_auto_sync.rs:55-63 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c7f3b08367dc9b10127e342d0c1317555a392029f884260f78f8b4fb80cdc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:124-135 | src-tauri/src/services/webdav_auto_sync.rs:133-144 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0723d65cd0746fe917360b43d467f262ae99388a86e46dcce8bca5098df830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/services/session_usage_codex.rs:577-584 | src-tauri/src/services/session_usage_opencode.rs:72-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f1c952e420f519b1ed52ee83adc1334bebcc93eac1273f8c36b9f0071a29da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/session_manager/providers/copilot.rs:140-145 | src-tauri/src/session_manager/providers/kimi.rs:306-311 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/copilot.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b07ee1aa7ded76568cf4731add86aee8b8e5621d2696d8dab9bdff4178c6b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/commands/hermes.rs:25-31 | src-tauri/src/commands/openclaw.rs:19-25 | src-tauri/src/commands/provider.rs:1144-1150 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/hermes.rs:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/hermes.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afcd9ce6a8f98c88ec554f85f528a3cd7a3df80811545a7697c5f2eecf15fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/commands/hermes.rs:35-39 | src-tauri/src/commands/openclaw.rs:29-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/hermes.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f494b77ed8f2eb4ece714842b026aaa63c7d6f3065c90dfda87298f9b2bad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:14-18 | src-tauri/src/commands/webdav_sync.rs:14-18 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060settings\u0060 to \u0060\u0026mut S3SyncSettings\u0060 in one and \u0060\u0026mut WebDavSyncSettings\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3d4aa7cc6edbfc1e1020996181e48f18a1e9e470f433b10ef717372c180500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:33-39 | src-tauri/src/commands/webdav_sync.rs:38-44 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b248a1f5ef455ae543b8cf7b1cd8df09b9477263381a6d7b42f06a780cf11900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:45-52 | src-tauri/src/commands/webdav_sync.rs:50-57 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/s3_sync.rs:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060existing\u0060 to \u0060Option\u003CS3SyncSettings\u003E\u0060 in one and \u0060Option\u003CWebDavSyncSettings\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"583c730b51628fd846b7b728f87b4cdb1fa1ed4b0c90a6642c629b45386de3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:74-84 | src-tauri/src/commands/webdav_sync.rs:79-89 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84df3185046f6c56c4a5e569f5680647185c57d0705a05b7095d0ff12085943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/commands/s3_sync.rs:184-190 | src-tauri/src/commands/webdav_sync.rs:202-208 \u2014 before extracting anything, compare \u0060src-tauri/src/commands/s3_sync.rs\u0060 and \u0060src-tauri/src/commands/webdav_sync.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6121d26b482fcb6b54f59c745a416703e9e0d56bd6858d74fa72de98a1b135d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/mcp/claude.rs:41-47 | src-tauri/src/mcp/gemini.rs:41-47 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/gemini.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4fecf1000f8d0bbdd1a869e69d93ddeb475a220dbb29ed3a2a95326bc535f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/mcp/claude.rs:145-157 | src-tauri/src/mcp/gemini.rs:140-152 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/gemini.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b645a8abb00312105217257a3c52f1784bdeca1b5cf0ff8bca4711bcd31276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/agy_account/mod.rs:673-677 | src-tauri/src/services/workbuddy_account/mod.rs:992-1000 \u2014 \u0060src-tauri/src/services/agy_account/mod.rs\u0060 and \u0060src-tauri/src/services/workbuddy_account/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb129a1ae4ac3ac2bd60406cf06cb8849a4728386fff3c5aa714ea7e8efeea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/services/s3_auto_sync.rs:72-76 | src-tauri/src/services/webdav_auto_sync.rs:72-76 \u2014 before extracting anything, compare \u0060src-tauri/src/services/s3_auto_sync.rs\u0060 and \u0060src-tauri/src/services/webdav_auto_sync.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060settings\u0060 to \u0060\u0026mut S3SyncSettings\u0060 in one and \u0060\u0026mut WebDavSyncSettings\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_auto_sync.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd93d33e4164676640acfd07a3633ef46821701ecf7b1b1e197a6c39c132151f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src-tauri/src/services/usage_stats.rs:1824-1879 | src-tauri/src/services/usage_stats.rs:2032-2079 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/usage_stats.rs:1824\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60fc7cbfe1be9ab6aa2137b75d0fc3de4e10e0660f46c8dd5dc1ffaeae2fe80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src-tauri/src/database/schema.rs:642-661 | src-tauri/src/database/schema.rs:690-712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/schema.rs:642\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/database/schema.rs:662\u0060 calls \u0060set_user_version\u0060 and \u0060src-tauri/src/database/schema.rs:713\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad70a9bb14dffcad1d064232a1776efa9b00283a0d2d68febd2b42d36bbab2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): src-tauri/src/proxy/forwarder.rs:1098-1119 | src-tauri/src/proxy/forwarder.rs:1163-1182 | src-tauri/src/proxy/forwarder.rs:1238-1257 | src-tauri/src/proxy/forwarder.rs:1337-1356 | src-tauri/src/proxy/forwarder.rs:1421-1440 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:1098\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedf067906b77728f37c153ecb3bec95b60cfafa72c6711ca477ab63e3858cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/session_manager/terminal/mod.rs:35-47 | src-tauri/src/session_manager/terminal/mod.rs:157-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/terminal/mod.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2117f2e63cfa7de23952ca578dcd957b29b8a344e5843a444b55faed5fb956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/database/schema.rs:622-636 | src-tauri/src/database/schema.rs:682-697 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/schema.rs:622\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f85e97784b3b5ab71bf0d18996f2684b676a6e7e8b080f4350b524ae0ba5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/services/session_usage.rs:985-999 | src-tauri/src/services/session_usage.rs:1082-1096 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/session_usage.rs:985\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f27e306d9ba620241e1e27c8d65554a3ed9a637835c5e1a4c787124953a21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src-tauri/src/database/schema.rs:601-614 | src-tauri/src/database/schema.rs:626-639 | src-tauri/src/database/schema.rs:686-700 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/schema.rs:601\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaa8f3249f18e7859df5c762504d979eb04971a6e27afe5a823514fd5e77c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/services/s3_sync.rs:65-79 | src-tauri/src/services/webdav_sync.rs:88-102 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/s3_sync.rs:65\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060settings\u0060 to \u0060\u0026mut S3SyncSettings\u0060 in one and \u0060\u0026mut WebDavSyncSettings\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/s3_sync.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60ef58425765cca545f7be6da28bf637fd019b69aa35591842d0ed23edfecfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/services/skill.rs:1071-1084 | src-tauri/src/services/skill.rs:4845-4857 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/skill.rs:1071\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5643d29a2d64f7adbb9417d86e7e11c06ad105e9e992a8fb859df0bb4dcc86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:1868-1881 | src-tauri/src/proxy/providers/streaming_responses.rs:1885-1898 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:1868\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08486379449d620266f43bcc7740b4fc76e31e0f5ed35a90e2ebe6bbd3a3add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src-tauri/src/mcp/codex.rs:239-252 | src-tauri/src/mcp/hermes.rs:303-316 | src-tauri/src/mcp/opencode.rs:247-260 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/hermes.rs\u0060 and \u0060src-tauri/src/mcp/opencode.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/codex.rs:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa06a5af5155411f2c1a8c7b590288b9baab06c2e408e88290d2e6caa3678a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src-tauri/src/mcp/agy.rs:144-157 | src-tauri/src/mcp/copilot.rs:291-304 | src-tauri/src/mcp/kimi.rs:120-133 | src-tauri/src/mcp/mcode.rs:105-118 | src-tauri/src/mcp/omp.rs:234-244 | src-tauri/src/mcp/pi.rs:308-321 | src-tauri/src/mcp/workbuddy.rs:152-165 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/kimi.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/agy.rs:144\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"682c6a00b6ca06daef94d7e1f56892c45500dd22b6f4409616af4ddb699ea57a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src-tauri/src/proxy/providers/transform_gemini.rs:953-972 | src-tauri/src/proxy/providers/transform_gemini.rs:976-995 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_gemini.rs:953\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f178d9f2f3ec66d104971e21d5dc2e5fa7599393ff7658b7e29e76052d280a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/mcp/claude.rs:79-91 | src-tauri/src/mcp/gemini.rs:75-87 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/claude.rs\u0060 and \u0060src-tauri/src/mcp/gemini.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/claude.rs:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/claude.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c1aba0d213c7582fe4b6b2a710398ea598b02e7979e92260d8287a649e928a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_responses.rs:2413-2419 | src-tauri/src/proxy/providers/transform_responses.rs:2436-2447 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":2413}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4792ee99da651e44cf4756b68adb0e613199d72ae861f3a5175a3459ece2a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/services/coding_plan.rs:1198-1209 | src-tauri/src/services/coding_plan.rs:1239-1250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/coding_plan.rs:1198\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cedf4cd219951ceadbf5bef5b440c55dfc1a96b9a0487c97e47b09953c8f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/session_usage_copilot.rs:266-276 | src-tauri/src/services/session_usage_workbuddy.rs:196-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_copilot.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5e3092eb538a256e15ed9987154af8597280265d3a8fbad03b93794f5854eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/providers/codex.rs:1101-1108 | src-tauri/src/proxy/providers/gemini.rs:129-140 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex.rs\u0060 and \u0060src-tauri/src/proxy/providers/gemini.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:1101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a02d5b35e1c6460a1c00219fb1bdff5bc76b839aeaeda44c5798e2ed1961614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_anthropic.rs:715-725 | src-tauri/src/proxy/providers/transform_codex_anthropic.rs:728-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_codex_anthropic.rs:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc8437407169d2f3f2dd6a410d462c643bf38f07195bc7f094d05f7f9ec40a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 15): src-tauri/src/services/balance.rs:84-92 | src-tauri/src/services/balance.rs:166-174 | src-tauri/src/services/balance.rs:231-239 | src-tauri/src/services/balance.rs:302-310 | src-tauri/src/services/balance.rs:378-386 | src-tauri/src/services/balance.rs:467-475 | src-tauri/src/services/coding_plan.rs:174-182 | src-tauri/src/services/coding_plan.rs:405-413 | src-tauri/src/services/coding_plan.rs:562-570 | src-tauri/src/services/coding_plan.rs:646-654 | src-tauri/src/services/coding_plan.rs:1800-1808 | src-tauri/src/services/subscription.rs:461-470 | src-tauri/src/services/subscription.rs:1475-1485 | src-tauri/src/services/subscription.rs:1534-1544 | src-tauri/src/services/subscription_grok.rs:641-650 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/balance.rs:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/services/subscription.rs:1531\u0060 calls \u0060json\u0060 and \u0060src-tauri/src/services/coding_plan.rs:171\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"53883b8ac67e4dde4166462baaf9cf62e6d474f9172f09da058bf323b9e1e8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/services/provider/live.rs:1446-1456 | src-tauri/src/services/provider/live.rs:1534-1544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/live.rs:1446\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"def25f0d62a60f9f8ab862c50cbd95813b8b07b4054060dba92e837d8daabb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/mcp/codex.rs:413-423 | src-tauri/src/mcp/grokbuild.rs:197-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/codex.rs:413\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3ad7ec92683e877c47b44298ac7915195d026fa93b79e66330db56e42bbe4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src-tauri/src/proxy/providers/claude.rs:651-658 | src-tauri/src/proxy/providers/claude.rs:660-668 | src-tauri/src/proxy/providers/claude.rs:670-678 | src-tauri/src/proxy/providers/claude.rs:680-688 | src-tauri/src/proxy/providers/claude.rs:690-699 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/claude.rs:651\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fa91bed88bab27e04635efa8a770d7987038c0d381054db81f4c43a1bb5470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/services/agy_account/mod.rs:168-177 | src-tauri/src/services/workbuddy_account/mod.rs:352-361 \u2014 \u0060src-tauri/src/services/agy_account/mod.rs\u0060 and \u0060src-tauri/src/services/workbuddy_account/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/agy_account/mod.rs:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"250c126db2ddd16c4771ac914c89e44931fa71de6032e381599f2198a9922084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src-tauri/src/live/project/grok.rs:233-247 | src-tauri/src/live/project/grok.rs:344-358 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/live/project/grok.rs:233\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/grok.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5787ec7bdd3d1aaf60f8c78a1b9d416bb1b46a3c7f92c5a7e7f50e57fc5f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): src-tauri/src/services/balance.rs:102-106 | src-tauri/src/services/balance.rs:184-188 | src-tauri/src/services/balance.rs:249-253 | src-tauri/src/services/balance.rs:320-324 | src-tauri/src/services/balance.rs:396-400 | src-tauri/src/services/balance.rs:485-489 | src-tauri/src/services/coding_plan.rs:205-209 | src-tauri/src/services/coding_plan.rs:426-430 | src-tauri/src/services/coding_plan.rs:593-597 | src-tauri/src/services/coding_plan.rs:677-681 | src-tauri/src/services/coding_plan.rs:944-948 | src-tauri/src/services/coding_plan.rs:1819-1823 | src-tauri/src/services/subscription.rs:484-493 \u2014 before extracting anything, compare \u0060src-tauri/src/services/balance.rs\u0060 and \u0060src-tauri/src/services/coding_plan.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/balance.rs:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf71e0eccf8895ff2cbe27a6ac3f03f9d9c39d043a6ff99ba3dec1feec31c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:409-416 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1934-1943 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_chat.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform_codex_chat.rs:1934\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/providers/transform.rs:416\u0060 calls \u0060clone\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_chat.rs:1943\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b1e37e9f1dfeb6fb752d44faed0d580fe315dbda42dc3160f6f065698c77b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src-tauri/src/session_manager/providers/claude.rs:161-169 | src-tauri/src/session_manager/providers/codex.rs:2008-2016 | src-tauri/src/session_manager/providers/openclaw.rs:176-184 \u2014 before extracting anything, compare \u0060src-tauri/src/session_manager/providers/claude.rs\u0060 and \u0060src-tauri/src/session_manager/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/claude.rs:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"334547f99dd7d72e39ee49879704fdf9e78a7df31f7d242fc2d66106fbda0ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/deeplink/provider.rs:1013-1020 | src-tauri/src/deeplink/provider.rs:1044-1052 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/deeplink/provider.rs:1013\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f09d24fdf4f4fa18850d01f209cc96928a01dba849b091857cb34321571a044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/deeplink/provider.rs:1450-1458 | src-tauri/src/deeplink/provider.rs:1591-1599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/deeplink/provider.rs:1450\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"5486cf87880a318939a524f3a34b46102fbdadcc4cd77d5ea0a6833e8f40edda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/hermes_config.rs:798-804 | src-tauri/src/hermes_config.rs:876-884 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf0614ec710258f80ab1005c68e818181df5cbda51b1ee9f61c91998212d523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/proxy/providers/claude.rs:797-805 | src-tauri/src/proxy/providers/gemini.rs:182-190 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/claude.rs\u0060 and \u0060src-tauri/src/proxy/providers/gemini.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/claude.rs:797\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"af282b65e698ddc8c128a3b3d500812b263a4a94baef7546556553d7df004719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/commands/config.rs:272-280 | src-tauri/src/commands/workspace.rs:350-358 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/config.rs:272\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/config.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4da95f6ff267d435a3b560821c95f596528999cfe69a148c8ed7d7d907b0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/openclaw_config.rs:736-744 | src-tauri/src/openclaw_config.rs:775-783 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/openclaw_config.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fde57d24df39cef80e876ba13fa4f27bd01a4ad54464e826e28965e574da01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/copilot_config.rs:638-646 | src-tauri/src/copilot_config.rs:712-720 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"a462b7782a0023782953dc33a2582e4ec8fa326d3e809ce8a10f1fee9c9aec82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/database/schema.rs:3979-3987 | src-tauri/src/database/schema.rs:4005-4013 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/schema.rs:3979\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":3979}}}],"partialFingerprints":{"codehealthFindingId/v1":"967422f6930ce2b4c4f848aeb4d452197fdbcc3688789808d28f2da089e373f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/hermes_config.rs:370-378 | src-tauri/src/openclaw_config.rs:382-390 \u2014 before extracting anything, compare \u0060src-tauri/src/hermes_config.rs\u0060 and \u0060src-tauri/src/openclaw_config.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/hermes_config.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75e8324a6372a94b20e59c513aaf4f3021795a483da5cff023c89ead2079a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/mcp/codex.rs:391-398 | src-tauri/src/mcp/grokbuild.rs:161-168 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/codex.rs:391\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e12029fabad2bc8121c37682e002879948942d010578c199402b3e237f24ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:3834-3841 | src-tauri/src/proxy/forwarder.rs:4213-4220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":3834}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0a32edfd46013b19bd3aa2869344f603a5de1ab7a6916718087c1f5550f0a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:657-664 | src-tauri/src/proxy/providers/transform_codex_chat.rs:1958-1964 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_chat.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9e54751c9dc4cca24c2a185de7aa94cf85e1d4cc1f379d52f79ce3be38616f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/mcp/validation.rs:30-37 | src-tauri/src/mcp/validation.rs:38-45 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/validation.rs:30\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/validation.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"41eea855db98503f07a463c13c3fc783700c0f08e51d2895a9587bbf963a291e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/provider.rs:919-926 | src-tauri/src/provider.rs:1018-1025 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/provider.rs:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fd600f3ada6e06f279deb0504bdf31295b73e1e44444b8b6ba88e1a4a03849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src-tauri/src/app_config.rs:1126-1133 | src-tauri/src/proxy/providers/gemini.rs:99-104 | src-tauri/src/services/provider/mod.rs:8731-8737 | src-tauri/src/services/provider/mod.rs:8740-8745 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/app_config.rs:1126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"690b5144c931b3afa9187047dc050be4262f8d83879df6743728c04b2e0962ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/session_manager/content.rs:599-606 | src-tauri/src/session_manager/content.rs:696-703 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/content.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"befc0843f2b81a90d496ea1d38602b381a552e1de1a781cac18ecc92070333c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src-tauri/src/proxy/providers/codex_oauth_auth.rs:2015-2022 | src-tauri/src/proxy/providers/copilot_auth.rs:1495-1502 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:817-824 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/copilot_auth.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:2015\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34b2d2a2d1b58c55080e833237e6741b6ddb840a75f65c852abad229d97ee4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/services/stream_check.rs:329-336 | src-tauri/src/services/stream_check.rs:346-353 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/stream_check.rs:329\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/stream_check.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3322fe02415ce491b4b5b5bef90cf0d272d935c9a199c1761eb2a54ca0fec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/codex_config.rs:365-372 | src-tauri/src/codex_config.rs:375-382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c60303e46d11fb94d3954b4e1466b6709c92b001c29ef71579cec9d393d9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src-tauri/src/session_manager/providers/opencode_blocks.rs:84-91 | src-tauri/src/session_manager/providers/pi_blocks.rs:141-148 | src-tauri/src/session_manager/providers/pi_blocks.rs:327-334 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/opencode_blocks.rs:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode_blocks.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d609e92dfef3432ce343259f132313f1c6e4af675bf09f3f28eb4a5a9c973f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/session_manager/terminal/mod.rs:247-254 | src-tauri/src/session_manager/terminal/mod.rs:263-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/terminal/mod.rs:247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/terminal/mod.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"371668aab0b477cc0634f3f748cba836fa90d86e057787123b4235c0844ac180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/codex_config.rs:980-987 | src-tauri/src/proxy/providers/codex.rs:1061-1068 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/codex_config.rs:980\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2413224371a8c3a99b31eb2a18c4456f03dbc9d98fd75c248565335642dd41b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:174-181 | src-tauri/src/proxy/providers/streaming_responses.rs:202-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"089c453f8060ce273a60d4d7bb511e998e73c44263363e1d9e5e30da76555cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/claude_mcp.rs:372-379 | src-tauri/src/gemini_mcp.rs:159-166 \u2014 before extracting anything, compare \u0060src-tauri/src/claude_mcp.rs\u0060 and \u0060src-tauri/src/gemini_mcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/claude_mcp.rs:372\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"562b920d7a210ef72d048a8669a6addb6a40b90d35602e3b7c731255fe227abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/commands/omo.rs:23-30 | src-tauri/src/commands/omo.rs:59-66 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/omo.rs:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/omo.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a736f317786e7aae2b13deeb90bd8e976421ea89aa34d922667a99d93c7866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/dsh_config.rs:788-795 | src-tauri/src/mcode_config.rs:182-189 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/dsh_config.rs:788\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd5d0e01f8059f806dc81cfc0618f75039dcb4c9e82a9eec101e84ba8f658eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/session_manager/providers/hermes.rs:122-128 | src-tauri/src/session_manager/providers/hermes.rs:334-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/hermes.rs:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"0668788a4f954b76735b4587fb5943dc510b5ca98de5ea88cb37b12480e7da05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:53-59 | src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:64-70 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd10462cecb34ffce291d384690dfa3ab8e06d5d481d28a9263c339c4c51ca6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/session_manager/providers/opencode.rs:445-451 | src-tauri/src/session_manager/providers/opencode.rs:503-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/opencode.rs:445\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/opencode.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fee02aa33d0e0089f844606dc704fd1fda028d415b823aac3615682e1be78af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/mcp/opencode.rs:72-78 | src-tauri/src/mcp/opencode.rs:92-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/opencode.rs:72\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/opencode.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3debfa62fb410dd5f0cd31cbccb7be0f0d2c9c7aed92f8a83bd25d5cc7aefab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/cache_injector.rs:143-149 | src-tauri/src/proxy/cache_injector.rs:150-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/cache_injector.rs:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/proxy/cache_injector.rs:158\u0060 calls \u0060Some\u0060, \u0060get\u0060, \u0060and_then\u0060 and \u0060src-tauri/src/proxy/cache_injector.rs:150\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/cache_injector.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f700c740c20a1710ad043ca34ba9e2a4af3f8556c44f1ebf7c934d60744a619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/forwarder.rs:1788-1794 | src-tauri/src/proxy/forwarder.rs:1795-1801 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/forwarder.rs:1788\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efe1b5bb770a59d6a3ad60bc1697e15169e093b1035bfd2a3967576f5b74869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/database/backup.rs:240-246 | src-tauri/src/database/backup.rs:1075-1080 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/backup.rs:240\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/backup.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9338c8ee0359579167d47e2149433f7df96b8b521e45c752d1593c9098a8adb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/proxy/providers/codex_chat_common.rs:190-196 | src-tauri/src/proxy/providers/transform_gemini.rs:1179-1185 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_chat_common.rs:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_common.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64e282468b8498d4ce784c346feccbce0ac6b8de4bc03f8329b2ff1b33a99e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:121-126 | src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:131-136 | src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs:182-187 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_responses_namespace.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73e57a9a72c21cef056a853d3d75bd4764e89434aaed1224e02df9c0d844e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/proxy/providers/claude.rs:642-647 | src-tauri/src/proxy/providers/codex.rs:1099-1103 | src-tauri/src/proxy/providers/gemini.rs:126-131 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/claude.rs\u0060 and \u0060src-tauri/src/proxy/providers/codex.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/claude.rs:642\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f037aff7598c4d50b6831abe90ebbcfe50db510de03605f009cf91c402f648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/agy_account/mod.rs:561-566 | src-tauri/src/services/workbuddy_account/mod.rs:907-912 \u2014 \u0060src-tauri/src/services/agy_account/mod.rs\u0060 and \u0060src-tauri/src/services/workbuddy_account/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/agy_account/mod.rs:561\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc4b49b5772c08ed5c4b3d09ed43606963c0e8f289dbdb89c43080b53a05a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/mcp/agy.rs:76-81 | src-tauri/src/mcp/mcode.rs:49-54 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/mcode.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"949a18c1f54b86421842e29b8dd6277ed2e6cb4b1d41cacb175737f8c819d9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/services/provider/live.rs:1474-1479 | src-tauri/src/services/provider/live.rs:1549-1554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/provider/live.rs:1474\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc4a9b5750b84459a481935c8802f99922d1c6bd7d4c887da1f342e535290f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src-tauri/src/proxy/copilot_optimizer.rs:463-469 | src-tauri/src/proxy/copilot_optimizer.rs:522-529 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/copilot_optimizer.rs:522\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/copilot_optimizer.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f74e6095c73cdd054f035a70516d574923e34abb8acc3da9b6bb83b492b13fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/mcp/opencode.rs:81-86 | src-tauri/src/mcp/opencode.rs:155-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/opencode.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e22e8cbba4e6905c6e58e29e8db64a48496f450338ad2a484a2e1f5676eed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src-tauri/src/deeplink/provider.rs:1361-1366 | src-tauri/src/deeplink/provider.rs:1450-1455 | src-tauri/src/deeplink/provider.rs:1591-1596 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/deeplink/provider.rs:1361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf72342191eded3da9424e0ac717adf0d6b583f3d3ce2ed7d2d84077a3ad38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/services/agy_account/mod.rs:166-170 | src-tauri/src/services/claude_account/mod.rs:163-167 | src-tauri/src/services/workbuddy_account/mod.rs:350-354 \u2014 \u0060src-tauri/src/services/agy_account/mod.rs\u0060 and \u0060src-tauri/src/services/workbuddy_account/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/services/agy_account/mod.rs:166\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/mod.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aaabc024562c8ae010e697127c5ec4592ecb4a3c852f3a08c6ba35a2081658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/codex.rs:1219-1223 | src-tauri/src/proxy/providers/codex.rs:1225-1229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex.rs:1219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4305551e1ca69db2f2ddc929d0de819a3a72b0b85dd09ca90fdeea07922226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_responses.rs:159-163 | src-tauri/src/proxy/providers/streaming_responses.rs:251-255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/streaming_responses.rs:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45805f141855c593f324ee83ae406a69857f760e16aa34f99e0510561f9dbef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/database/mod.rs:334-338 | src-tauri/src/database/mod.rs:343-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/database/mod.rs:334\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/mod.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72bcf5c147f44edc45d41b959c52aea4dbcd98b32d09ee718c83d891b628ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src-tauri/src/mcp/agy.rs:124-128 | src-tauri/src/mcp/kimi.rs:100-104 | src-tauri/src/mcp/mcode.rs:85-89 | src-tauri/src/mcp/omp.rs:214-218 | src-tauri/src/mcp/pi.rs:288-292 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/kimi.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/mcp/agy.rs:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/mcp/omp.rs:212\u0060 calls \u0060native_enabled\u0060 and \u0060src-tauri/src/mcp/pi.rs:286\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adc6aad4a4ebf2e482d4e3feb1f40006930bc8a63c77b8ededb2c9ebc532eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/claude.rs:774-778 | src-tauri/src/proxy/providers/gemini.rs:167-171 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/claude.rs\u0060 and \u0060src-tauri/src/proxy/providers/gemini.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/claude.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"821b37cd778b1635843c1eb5e32eab9621bbaf0e0d58dc7ebdeb63ae71b7f288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/streaming_codex_anthropic.rs:157-161 | src-tauri/src/proxy/providers/streaming_codex_chat.rs:112-116 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f72dc17c7d6be68a5f7f799fda87c6cbbf374a227124ecb0177d847754ee423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/claude_mcp.rs:81-87 | src-tauri/src/gemini_mcp.rs:15-21 \u2014 before extracting anything, compare \u0060src-tauri/src/claude_mcp.rs\u0060 and \u0060src-tauri/src/gemini_mcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6ed88535028383c89f722318fa0ba2c01bd53c3335889232545800704dee9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/commands/misc.rs:1907-1912 | src-tauri/src/commands/misc.rs:3089-3094 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/commands/misc.rs:1907\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c084e9ac2db75be24d696944a0ed1cb49f914d02bc806246e140fcd527b9e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src-tauri/src/mcp/agy.rs:12-16 | src-tauri/src/mcp/kimi.rs:20-24 | src-tauri/src/mcp/mcode.rs:12-16 | src-tauri/src/mcp/pi.rs:66-70 | src-tauri/src/mcp/workbuddy.rs:26-30 \u2014 before extracting anything, compare \u0060src-tauri/src/mcp/agy.rs\u0060 and \u0060src-tauri/src/mcp/kimi.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src-tauri/src/mcp/agy.rs:18\u0060 calls \u0060trim\u0060, \u0060is_empty\u0060, \u0060Ok\u0060 and \u0060src-tauri/src/mcp/kimi.rs:25\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"915252bfef86e64f4f3270e6b1b2b071677f5eba1794f9d9e135f197f70933e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/mode/controller.rs:1178-1182 | src-tauri/src/mode/controller.rs:1199-1203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/controller.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7475c3ea4af49a2a579ccd6e9be89abc1da4f40ad7dba2face3fed77a94fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/codex_oauth_auth.rs:405-409 | src-tauri/src/proxy/providers/xai_oauth_auth.rs:203-207 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060 and \u0060src-tauri/src/proxy/providers/xai_oauth_auth.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/codex_oauth_auth.rs:403\u0060 calls \u0060join\u0060 and \u0060src-tauri/src/proxy/providers/xai_oauth_auth.rs:202\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c8714008231df776aa7edebd6eac1209805a4f353fd0467d0bd1d9b8f2b973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:326-330 | src-tauri/src/proxy/providers/transform_gemini.rs:108-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform.rs:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src-tauri/src/proxy/providers/transform_gemini.rs:104\u0060 calls \u0060Some\u0060, \u0060build_generation_config\u0060 and \u0060src-tauri/src/proxy/providers/transform.rs:322\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7274d415b43d58f339b59e6a1d90f828efcbe9a66531cf9ff2d266e5f308fc60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/proxy/providers/transform.rs:708-713 | src-tauri/src/proxy/providers/transform_codex_chat.rs:2075-2080 \u2014 before extracting anything, compare \u0060src-tauri/src/proxy/providers/transform.rs\u0060 and \u0060src-tauri/src/proxy/providers/transform_codex_chat.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/proxy/providers/transform.rs:708\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8a4a70ba3b41badd172a5897b5522ed1b272f224d42de86b7b3ffa1e7e746a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/session_manager/providers/pi_blocks.rs:127-131 | src-tauri/src/session_manager/providers/pi_blocks.rs:320-324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src-tauri/src/session_manager/providers/pi_blocks.rs:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/pi_blocks.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea8278d9a8d78e0f1386e3d244e1766d9009d10a6c38c54ba06abff4f763159"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MultiAppConfig (LCOM4 4): MultiAppConfig\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"e159503c17f0e526fd13c30c57d9424033cb46f226c53d74504d5157310af0e7"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: uses the web clipboard first on Linux (#9384): This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/lib/clipboard.test.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79f862f2c2893e9e6a6bf88fa39e16aa0b708e9254dbe2a55df570b51ec6aeb"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: falls back to the native command on Linux when the web clipboard fails: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/lib/clipboard.test.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69ceaf0fbfee75d0273d84f67e0c9602af3817857e0d6b63a12becf3d12521c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: \u8FDE\u7EED\u5207\u6362\u9884\u8BBE\u65F6\u53EA\u8BA4\u6700\u540E\u4E00\u6B21\u6295\u5F71: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useDraftEditorProjection.test.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d0a6e1d7edaad3eec70be7d1e78b4baf4237f93b2774f4540effd81e681904"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: \u6295\u5F71\u5931\u8D25\u65F6\u63D0\u793A\u5E76\u4FDD\u6301\u6CA1\u6709\u5E95: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useDraftEditorProjection.test.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a2caa0f4972a80af6b2ce176f3bc8ebe0c9d13562aee4f0e47dcb25899f078"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: \u4F5C\u5E9F\u540E\u8FDF\u5230\u7684\u6295\u5F71\u4E0D\u518D\u751F\u6548: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useDraftEditorProjection.test.tsx"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70bdfd84e2b4f65e682f99e9a68604b65e447263987939418f3d878529afe0d"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: discards a pending Copilot projection after a form lifecycle %s: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useDraftEditorProjection.test.tsx"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d5515a7ef0323e61a72b3ef1983fd764d719b6442b168a1e4428d8a5782465"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should call API and invalidate query cache after successful drag: This test sets up 4 test doubles (for example \u0060vi.spyOn\u0060) against 0 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useDragSort.test.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c65c2cca88f418e3415a92151bdefaf6bbc5d097566bb8967ba143237e9b6e"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should show error toast when drag operation fails: This test sets up 4 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useDragSort.test.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d7ed60499000f0c2e0138073ebd17dfd4ebc2b399451f31f6470628f7a6bba"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: propagates export success message to toast with saved path: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useImportExport.extra.test.tsx"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef5360ae4de89ab637eddeb00df74d8242c44c2a759067290b54b291beee857"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should export successfully with default filename and show path in toast: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useImportExport.test.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a547e140da15f961d5a6c99828896dabc3b9142013fe65c518604879014bd73f"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should show error message when export fails: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useImportExport.test.tsx"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0775543d9fa95980e236dd93e8843e22eb548ab19ec39dbcd0b52fe832019728"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should catch and show error when export throws exception: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useImportExport.test.tsx"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a33bfb4d5639a6803b467b16ccbb273b8c0c8358c50ac7092d09353d8be372a"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should show error and return when user cancels save dialog during export: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useImportExport.test.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3845d1d668c6e8a4eda5f8ccd9249ec34155a68691a913be26ccc10fa82b7ad5"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should not request plugin sync when switching non-Claude provider: This test sets up 4 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc43d2effc5b573db2b52041c4089ac0560d3711e6b5830bb4a551cea4eb1da0"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should sync plugin config when switching Claude provider with integration enabled: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36c01968ccbe4a4add3a210df0d72cb954cdbb5bf658cb7c3b6661ada2334ea"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should not call applyClaudePluginConfig when integration is disabled: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"324f293c640c61bee1d6ea835fc7133ba1a6521327d2548059bf632df9148763"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should show error toast when plugin sync fails with error message: This test sets up 4 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe98324a3cc511908372c75cbd46bb10a61bd80442d857b8c7382b6196bb5a7"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should use default error message when plugin sync fails without error message: This test sets up 4 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5510747e2a719943d090c19da38886d20b590626087e1fb0ff162eb4cce072"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should update provider and refresh cache when saveUsageScript succeeds: This test sets up 3 test doubles (for example \u0060vi.spyOn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c8f44975989d11ede2109e71e9f2b926dbd5200dd05b5aa41cfd74d8f7bf4c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: handles switch mutation errors silently: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useProviderActions.test.tsx"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7220d54a24e87c891d7eddfcc0c3f3b903568c6ed2565035b305cf51a43ecf7"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: auto-saves and applies Claude onboarding skip when toggled on: This test sets up 4 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useSettings.test.tsx"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2369d5b84ab838dc66f5f52ac4d55bf73485394dc2ac8129929be75a86ce813"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: auto-saves and clears Claude onboarding skip when toggled off: This test sets up 4 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useSettings.test.tsx"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25a73d6692aaa2e36c0134da7d38eeba9de9909dad9a1c45c7d36c60ec876a9"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: shows toast when Claude plugin sync fails but continues flow: This test sets up 5 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useSettings.test.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ea12b0794b441d39ae032f31053e9cb7c7f35505e7effdecd8aa124def9976"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: detects plugin toggle via live cache even when closure data is stale: This test sets up 6 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useSettings.test.tsx"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fe4705f39718cd853fc5a77e69ddf072ef217e5307d6f3c3e0337e48cc64ec"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: resets form, language and directories using server data: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/hooks/useSettings.test.tsx"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc434de96f8e2185c4b56cc3e67f32ebf9ccf22ae65423ebef98b16be97621e6"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: Genesis \u4F7F\u7528\u5F53\u524D Key \u62C9\u53D6\u53EF\u7528\u5BF9\u8BDD\u6A21\u578B: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ClaudeFormFields.test.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9046c383c026a574c11b7b9b70104f77149b83e6bfaaabf38847c889b51c5452"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: reports automatic invalidation separately from a user choice: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/CodexOAuthSection.test.tsx"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bb98cf79f2a1fd97207ff2380caf994c493265ec0323a1086d75fa013f6079"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: keeps an unbound Codex Official provider ID unchanged: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/EditProviderDialog.test.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"8951c9371243c0f0aef0d142910ae8d9c7536cb486cbc94eaa09ddd9bfc04945"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: fills the context length of a model picked from the fetched list: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/HermesFormFields.test.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"da35c731c3ba157da1634363fc599e1282f735681903465c995b4eb96c8f8ef8"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: fills the picked row even after rows above it were removed: This test sets up 6 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/HermesFormFields.test.tsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"66126e23af959f7d2a5551c67b2ae1951291a7b0f06257169f490ad02c61986d"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: selects an existing account by ID and keeps account management open: This test sets up 3 test doubles (for example \u0060vi.mock/jest.mock of an imported module\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/KimiAddProviderDialog.test.tsx"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ae29821358ce9539bd99d2838a217648ab294917e18ed8f1ec6a5790de21ce"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: removes model limit when both fields are cleared: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/OpenCodeFormFields.test.tsx"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73decb94f1e33f1664181567a2371c5e6bf161efe2dd72f2ca2e0eafe90073e"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: deletes SYSTEM.md without a confirmation and writes it back on undo: This test sets up 3 test doubles (for example \u0060vi.spyOn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/PiNativePromptResources.test.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cc373d88ca6f2fae5755a8e423b3b3dfd3f456d6c17ba74b6f500896f80a96"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: allows navigation but blocks interactions during a pure reload: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/PromptPanel.test.tsx"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab231e1d37ee95bc10dd04db31679ef849ad421a083643707dacded93592a365"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: saves the selected account when the fixed card was bound to %s: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ProviderForm.codexManagedAccount.test.tsx"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2980b6e7ed534c41d69dc0fdb58612215d4594f5a511895234b53cac48547d"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: keeps a category-less managed card Official when it is unbound: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ProviderForm.codexManagedAccount.test.tsx"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18ad7eaf3dc4c7d689811dd765874e6a21f1c821e374ff44cbb5ba1b3cfa6b6"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: requires models when creating a new provider: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ProviderForm.opencodeBuiltin.test.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a52006b9638390f45b3375445bdce309f92998c2d9561cf87b3c8ee1f085226"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: \u628A\u7528\u4E0D\u7528\u7B80\u5316\u9762\u677F\u62A5\u7ED9\u9875\u5934\uFF0C\u5378\u8F7D\u65F6\u62A5 false: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ProviderForm.stackModels.test.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba47af1fbe84bd1f7bd7e4a5d03f6f2b69c6fb4f69e678916fb40e12b824ae01"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: uses the additive layout for apps that keep several providers: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ProviderList.test.tsx"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c309e75a117fb575b25015a794981cf38efc253a166f1e821bbf72f593c909"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: uses native membership to add and remove %s providers: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/ProviderList.test.tsx"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"5507423f43db85b8b0d58651ec30cd6f3938a6e89febb173a1dc7a7fc731fd43"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: rolls a failed autosave back and reports it: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/SettingsDialog.test.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9db1f3fc1188cb3e03b9d27459ac5bf86e9d976fc49a7182ac99e4bf8f5d20c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: passes onImportSuccess through to the import hook: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/SettingsDialog.test.tsx"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6126d6887edf048c3dd3d5512fffe32397376ad6e7447f70f7b049a33af0944"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: waits for saving before reporting success to the dashboard: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/components/UsagePage.test.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb53c86264ff6e03d3a9eb160a15228fce3f68e6f7a417e23ca0ec3d50f7bab"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/AppsPage.test.tsx::AppsPage concurrent CLI upgrades does not confirm the next queued plan with a held Space: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8512dfd5477a1d7625ea0c90e3e34d152ba57ff589ab187762cad767257c2948"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm ignores a stale model-list response after the request config changes: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ccb86951806c5a724c681a3e9fc63d92315086b7d5cb59265a3e05f20b147c42"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm keeps unknown fetched models on Pi defaults when the endpoint changes: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0cd7c37b313dd12d4fc1d28046f18d9c5b47c20ddcef8e3d1193e38eb5847103"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm requires custom model limits instead of inferring Pi metadata: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62d57eb6901bfd408541ad96d9c30415f40a3b40622396120753ba5bc63c9fd5"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm reuses the shared model fetch command and lets the user select a real result: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fbf063f19ca6946980ddfd4def25960c2f9215e5644786822a937d7c44b0570e"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm stores Pi-native request headers without mixing them with API-key auth: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0fd5f5bb32ae6a7785d6c2b58aa75d3be5e45a22f4776a868c44e0fe511eefa3"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm uses fetched model ownership only as display data, never as capability metadata: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5d7bae918f45f44e755c84ea86b3a8f7ac32b407b7bc00c9e758bcf32c8bdd90"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm uses structured Pi-native capabilities and limits in collapsed model details: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5770b95d859dacead1650d1c2ff034a930e871ab13cf1c775cf2412d16b317e9"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/components/PiProviderForm.test.tsx::PiProviderForm writes omp presets without Pi-only fields and edits discovery: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"003255937c96f3222c9e20957e75deea68e6754515fef31fd6f3d32938292d81"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: the repository roottests/integration/App.test.tsx::App integration with MSW navigates OpenClaw and Hermes pages with underline tabs: Passed 1\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1104e33062047264e9f618786626ca4eef3e3bd4097db63d303cd7d21b72a838"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64cfc05b626df763e29149d568b3402d3af88c32755563e0e2ab4a3c4cffffa3"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff8af1c10bc916fac14463a97bf528888cd0291c21e3d32310884f553154ac52"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba653fba7dcd361acde42b082c6cd50708c376773c0216bdc72213cc84f88d13"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"282c312a8fbfe29243f0d59b6277888c7309dca40fbe07c21d763075be0113b6"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/ProviderForm.tsx: src/components/providers/forms/ProviderForm.tsx changed 54 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 507 in ProviderForm.ProviderFormFull at line 379. 16 of those changes were fix/bug commits, and the other 38 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/ProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c52dc3e53c106f66371d1d0c2c1038739e659a9bce09cdb564b94c7c90dd615"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/App.tsx: src/App.tsx changed 68 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 296 in App.App at line 228. 20 of those changes were fix/bug commits, and the other 48 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/App.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9826040e612fb7bb3ace3364a41376c5e0f8b9ecce4f4ed708e247b3dfd92c70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/forwarder.rs: src-tauri/src/proxy/forwarder.rs changed 64 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 217 in RequestForwarder::forward at line 1543. 46 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/forwarder.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/forwarder.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a222e7130129e72be08655f8f7130a13e8fe8651773268305a4865e85d057d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/lib.rs: src-tauri/src/lib.rs changed 104 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in cc_switch::run at line 486. 28 of those changes were fix/bug commits, and the other 76 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc01a92e9c28ff2741665d9c22411065b9cf3c3a5a084f03d419d809f2a5eb5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/CodexFormFields.tsx: src/components/providers/forms/CodexFormFields.tsx changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 219 in CodexFormFields.CodexFormFields at line 637. 15 of those changes were fix/bug commits, and the other 27 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/CodexFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acc246f8474360da378afcde3096df0a758447baa3da836b199972a376818e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/ProviderCard.tsx: src/components/providers/ProviderCard.tsx changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 126 in ProviderCard.ProviderCard at line 220. 12 of those changes were fix/bug commits, and the other 36 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/ProviderCard.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e015a39f7a1808b296ce395608f142f4a056908cf7401d83f856c32a9d578cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/ProviderList.tsx: src/components/providers/ProviderList.tsx changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 116 in ProviderList.ProviderList at line 111. 7 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/ProviderList.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f6622221f06ebc28276a11d18fbe444413e302e754ac6b639b924c42264267"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/skills/UnifiedSkillsPanel.tsx: src/components/skills/UnifiedSkillsPanel.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 220 in UnifiedSkillsPanel.UnifiedSkillsPanel at line 129. 6 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/skills/UnifiedSkillsPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e0d73c045e1b69493d06929c539ec90383bee8745d64fadb2d01898727e63e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/PiProviderForm.tsx: src/components/providers/forms/PiProviderForm.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 225 in PiProviderForm.PiProviderForm at line 507. 5 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/PiProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d89a48c1ae8d65e989925917b1bdb30f9d942bc91032d5f242cde06c79f61c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/UsageScriptModal.tsx: src/components/UsageScriptModal.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 223 in UsageScriptModal.UsageScriptModal at line 253. 5 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/UsageScriptModal.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"0865c784138567263ac6ec73106719ccfea7901b532f00e3236dd85a973aa962"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/AddProviderDialog.tsx: src/components/providers/AddProviderDialog.tsx changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in AddProviderDialog.AddProviderDialog at line 58. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/AddProviderDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3cceb9e1f344710561dc4d47ad582806927018f418ceeb3a330b254f4c2322"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/mcp/UnifiedMcpPanel.tsx: src/components/mcp/UnifiedMcpPanel.tsx changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 133 in UnifiedMcpPanel.UnifiedMcpPanel at line 148. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/mcp/UnifiedMcpPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a645d2b1ae4aa9f5bb824319ce0763f83b330cddd77e28223e34d0ffdd2c699"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/provider/mod.rs: src-tauri/src/services/provider/mod.rs changed 71 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in ProviderService::update at line 6410. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/provider/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/mod.rs"},"region":{"startLine":6410}}}],"partialFingerprints":{"codehealthFindingId/v1":"7099ee645da37709510fd670166a9233e16078362cadbeb58c00cafc1f528518"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/ClaudeFormFields.tsx: src/components/providers/forms/ClaudeFormFields.tsx changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 136 in ClaudeFormFields.ClaudeFormFields at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/ClaudeFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e730e9c1d7fa420af8863c3ad799908b706cd23b9855b1df24046ec38a1fe20"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/DeepLinkImportDialog.tsx: src/components/DeepLinkImportDialog.tsx changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 141 in DeepLinkImportDialog.DeepLinkImportDialog at line 86. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/DeepLinkImportDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2232f1d4d04a38a113749a4e5efc83e003440d0c30de786bb2a9a1fdb8340cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/commands/misc.rs: src-tauri/src/commands/misc.rs changed 72 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in cc_switch::commands::misc::build_tool_search_paths at line 2696. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/misc.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":2696}}}],"partialFingerprints":{"codehealthFindingId/v1":"877146b92a36cd570a3e85699d963ed4b4d8b94cc6a768174da9c964027611f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/ClaudeDesktopProviderForm.tsx: src/components/providers/forms/ClaudeDesktopProviderForm.tsx changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 148 in ClaudeDesktopProviderForm.ClaudeDesktopProviderForm at line 254. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/ClaudeDesktopProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd4eeb2806b3a1d60c569f09ec53437cfc23c774c88d24d9c59a77474958e42"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/mode/SwitchModePanel.tsx: src/components/providers/mode/SwitchModePanel.tsx changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in SwitchModePanel.SwitchModePanel at line 102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/mode/SwitchModePanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6ea99d06f43704312117139d5e03505b7d1a214d99610b571443fa1b8c011e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/RequestLogTable.tsx: src/components/usage/RequestLogTable.tsx changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in RequestLogTable.RequestLogTable at line 182. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/RequestLogTable.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf94d8bc0e6c27cc76db91bbb09051afe2b275330e234c7064b797dfe009f0d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/sessions/SessionManagerPage.tsx: src/components/sessions/SessionManagerPage.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 153 in SessionManagerPage.SessionManagerPage at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/sessions/SessionManagerPage.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fd7c8b4bc0b52f2c9d30312dba5b53d0709e4182f98d18d00a156a7b9e2fb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/presentation.ts: src/components/providers/presentation.ts changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in presentation.buildAdditiveSections at line 800. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/presentation.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd86d3d8f2402870782fa05ab85076cfe4cf15a65d51a527b9596e34e8274140"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/database/schema.rs: src-tauri/src/database/schema.rs changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in Database::apply_schema_migrations_on_conn at line 492. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/database/schema.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/schema.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"f468953ea0f2ed4dc378d5f6be81426f752e294d899470ce0f85af9725489018"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/EditProviderDialog.tsx: src/components/providers/EditProviderDialog.tsx changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in EditProviderDialog.EditProviderDialog at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/EditProviderDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92b015b93e290cc94798913241678e360062d7400470b776780088f6675c6d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/streaming_responses.rs: src-tauri/src/proxy/providers/streaming_responses.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 280 in cc_switch::proxy::providers::streaming_responses::create_anthropic_sse_stream_from_responses_raw at line 2399. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/streaming_responses.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_responses.rs"},"region":{"startLine":2399}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab9d3e0bf8b24324a598c3f799992977a8f3c02828fbdf6fadb90b9789bf6d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/session_usage_codex.rs: src-tauri/src/services/session_usage_codex.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in cc_switch::services::session_usage_codex::parse_codex_file_with_index at line 1252. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_codex.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36532ff60aa7f476564070e007f2e3eaa8a3f164e807234a88f6833808dbcff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/UsageDashboard.tsx: src/components/usage/UsageDashboard.tsx changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in UsageDashboard.UsageDashboard at line 253. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/UsageDashboard.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaced30fa416790a76e7ca6ff888180af37a788356b1946e7931285d8e40cbf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/OpenCodeFormFields.tsx: src/components/providers/forms/OpenCodeFormFields.tsx changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in OpenCodeFormFields.OpenCodeFormFields at line 312. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/OpenCodeFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"628e0677ed86af36d111ee50a40d2e327bbab5399beb8dab60e436cd1b9a78c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/codex_config.rs: src-tauri/src/codex_config.rs changed 56 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in cc_switch::codex_config::build_simplified_catalog_from_texts at line 2961. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/codex_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_config.rs"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ae2516c75adb6dafb87eff438b95976a913d7b0a8f069a24f2ade4a640a551"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/tray-panel/TrayPanel.tsx: src/tray-panel/TrayPanel.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 111 in TrayPanel.TrayPanel at line 523. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/tray-panel/TrayPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a9c211e10c9961b1d4794cc8acc21f38554ace9fe7198c989d770d9c40e648"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/handlers.rs: src-tauri/src/proxy/handlers.rs changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in cc_switch::proxy::handlers::handle_claude_transform at line 622. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/handlers.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57787f9dee7a2daf65eaa4ee6229f159f1c4ad883a0b402b71da604f035a139"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/provider/live.rs: src-tauri/src/services/provider/live.rs changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in cc_switch::services::provider::live::write_live_snapshot at line 553. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/provider/live.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/live.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3bb688a98c4212012ea0a4a645e40c0c17d04b970e534c6e9d69afb3e4e4db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/apps/AppsPage.tsx: src/components/apps/AppsPage.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in AppsPage.ToolRow at line 736. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/apps/AppsPage.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"0212b9026c2fff55b03051da3a16280ab3dfb8d1397c601f6dfbc7fe690c310d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/provider/codex_direct.rs: src-tauri/src/services/provider/codex_direct.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in cc_switch::services::provider::codex_direct::plan at line 586. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/provider/codex_direct.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_direct.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ba86fbcec3d24c034c775bffad5f2e63b5452e2c0b63c04a61ab0fbd0a7ecf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/skill.rs: src-tauri/src/services/skill.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in SkillService::get_app_skills_dir at line 686. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/skill.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/skill.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0466e59f1bf331f530c30ee7e961202be205fd92d6efd888d2595e02fe97651"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/KimiProviderForm.tsx: src/components/providers/forms/KimiProviderForm.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in KimiProviderForm.KimiProviderForm at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/KimiProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba6ee7694aadee0c046330962013818c09fcdef8ae5e2205bcdee8a9bfbf04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/mcp/McpFormModal.tsx: src/components/mcp/McpFormModal.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 109 in McpFormModal.McpFormModal at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/mcp/McpFormModal.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"602cbd3fac6e1419b3a82b3f3c8bf50e6f47757c26ee518407690c79c769fa87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/tray.rs: src-tauri/src/tray.rs changed 50 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in cc_switch::tray::map_locale_to_tray_language at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/tray.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2415576ef97759da95e777ca09f7caafd6e52038a3fb113d0582bb8d135ef32f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/skills/SkillsPage.tsx: src/components/skills/SkillsPage.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in SkillsPage.SkillsPage at line 167. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/skills/SkillsPage.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2699dd0545f6b759c08167508262e04dc753d86b5d767b81ca0ed03ea1a8b960"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/EndpointSpeedTest.tsx: src/components/providers/forms/EndpointSpeedTest.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in EndpointSpeedTest.EndpointSpeedTest at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/EndpointSpeedTest.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/EndpointSpeedTest.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf263763fefb87a4e99f55627f237eb9b6b165709d7d43a1afc8f0770f2dc41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/mcp/codex.rs: src-tauri/src/mcp/codex.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in cc_switch::mcp::codex::import_from_codex at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/mcp/codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/codex.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"36311576043341b12c56e3db3662332a7c908f815025f07e75c3ec8d9eefcd07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/WebdavSyncSection.tsx: src/components/settings/WebdavSyncSection.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in WebdavSyncSection.WebdavSyncSection at line 236. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/WebdavSyncSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2329487ca4c557e40b6de41e648c31fca9b8aec16a8131b85b02b00c9d6dc2ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/session_usage.rs: src-tauri/src/services/session_usage.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in cc_switch::services::session_usage::sync_single_file at line 651. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f82e1ef18d6d56a85c8e97139c24edb0f42ebbc8fefc356baedb183ff953703"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/apps/useToolManagement.ts: src/components/apps/useToolManagement.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in useToolManagement.useToolManagement.executeRun at line 739. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/apps/useToolManagement.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"635dd4b07305b909c59cd237d6c7813c534f4252b3e4d44298135d6d44ea3ba0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/CodexOAuthSection.tsx: src/components/providers/forms/CodexOAuthSection.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in CodexOAuthSection.CodexOAuthSection at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/CodexOAuthSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"706cfcb4bb98de64e6d74c5923610bcaec941adff58bf76bee1f5063cb404391"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/transform_codex_chat.rs: src-tauri/src/proxy/providers/transform_codex_chat.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in cc_switch::proxy::providers::transform_codex_chat::append_responses_item_as_chat_message at line 844. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/transform_codex_chat.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d44e2a8dc454dddee01e79f58024936d381bc27959a039de9cfd9b56a36275"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/auth/ManagedAccountsGroup.tsx: src/components/settings/auth/ManagedAccountsGroup.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in ManagedAccountsGroup.ManagedAccountsGroup at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/auth/ManagedAccountsGroup.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3393440cba80201e7ace82d58b2b39f7610dd9d216576076467f15dc98a12622"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/streaming.rs: src-tauri/src/proxy/providers/streaming.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 82 in cc_switch::proxy::providers::streaming::create_anthropic_sse_stream at line 242. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/streaming.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2297dd99ca9b098c9ac3a4ac5ca2227d9654652765b1bfbca3c2cf9974bae5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/shell/Sidebar.tsx: src/components/shell/Sidebar.tsx changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in Sidebar.NavItem at line 531. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/shell/Sidebar.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccd4a388a1723d23353c19a57cb6d002afe067e27f3c7913824e9200154be8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lib/query/mutations.ts: src/lib/query/mutations.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in mutations.useAddProviderMutation at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/lib/query/mutations.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"db21fc3094a59ff9fad25f6163226dbffea2b73dc4843511a1bbb7693b9c4b59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/transform_responses.rs: src-tauri/src/proxy/providers/transform_responses.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in cc_switch::proxy::providers::transform_responses::anthropic_to_responses at line 1781. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/transform_responses.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_responses.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"857e29df0d1423deb03e6c78a973058a2a3fb4168dfc1662a99dd834130673ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/mod.rs: src-tauri/src/proxy/providers/mod.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ProviderType::from_app_type_and_config at line 143. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e109323103d0dad36f5a4d7a0bf2c390b31060f88a6686040f51aae2643bbf78"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hooks/useProviderActions.ts: src/hooks/useProviderActions.ts changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in useProviderActions.useProviderActions.switchProvider at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/hooks/useProviderActions.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProviderActions.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"16265c9490aef2e25b12eecf4ad8491e65d847347f910668eaf000af128dfb01"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/OmoFormFields.tsx: src/components/providers/forms/OmoFormFields.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 126 in OmoFormFields.OmoFormFields at line 315. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/OmoFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cc259ab9ad36ab37405493759be9e799d73fdb78ec78b7e3448793e7eaca8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/McodeProviderForm.tsx: src/components/providers/forms/McodeProviderForm.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in McodeProviderForm.McodeProviderForm at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/McodeProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f454a90ed2b3ce5343b1b41662c905202279a71142b9449ee1b49e84301babfb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/sessions/SessionItem.tsx: src/components/sessions/SessionItem.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in SessionItem.SessionItem at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/sessions/SessionItem.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionItem.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"61177a177fd586d7192f4f03d56c57dc5d1289f60d31b1305562a43252096eff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/prompts/PromptPanel.tsx: src/components/prompts/PromptPanel.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in PromptPanel.StandardPromptPanel at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/prompts/PromptPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f160e7e65e39ea4ebdcb1bd1ecd582b3822c5d62b5a543d79abc0b7597dbe7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/AboutSection.tsx: src/components/settings/AboutSection.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in AboutSection.AboutSection at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/AboutSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ff86829fa0b948e8908bdd7371b20a95b7838df801d94cb5a3e6af5e9568de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/CommonConfigEditor.tsx: src/components/providers/forms/CommonConfigEditor.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in CommonConfigEditor.CommonConfigEditor at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/CommonConfigEditor.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CommonConfigEditor.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7096a53c2020996d5ffb355e83c078fec26cf22b59a997721c76247a362bee6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/utils/providerConfigUtils.ts: src/utils/providerConfigUtils.ts changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in providerConfigUtils.extractProviderBaseUrl at line 1166. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/utils/providerConfigUtils.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"211934e855bde5a948de85f183af2bf435bb5404dd341d2416518d08b6648b4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/transform.rs: src-tauri/src/proxy/providers/transform.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in cc_switch::proxy::providers::transform::openai_to_anthropic at line 656. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/transform.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfc94f37160be5bca3eaf58887d42e7de0e7b637aeae6b3ff3438679c13ae90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/hooks/useManagedAuth.ts: src/components/providers/forms/hooks/useManagedAuth.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in useManagedAuth.useManagedAuth at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/hooks/useManagedAuth.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd79f372a7c23e3dbadb4e6e909c155bcd6d8137ba1867c304bc565c0eaceeeb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/mcp.rs: src-tauri/src/services/mcp.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in McpService::upsert_server at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/mcp.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/mcp.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2301f87f1a783722518b151a2470b75ce2ad35dbd2feaedaccd69772efaa2f9b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/sessions/reader/SessionReader.tsx: src/components/sessions/reader/SessionReader.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 101 in SessionReader.SessionReader at line 161. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/sessions/reader/SessionReader.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b70d8fd263b1a6933fba6d818a5d5e5c715404bd8f6767179ea736e86928b84"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/deeplink/provider.rs: src-tauri/src/deeplink/provider.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in cc_switch::deeplink::provider::import_provider_from_deeplink at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/deeplink/provider.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/deeplink/provider.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedb51b14e56e06a1b535b4ae859428b7bde3ca88fed1bdef5882c0c357cdcbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/commands/settings.rs: src-tauri/src/commands/settings.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in cc_switch::commands::settings::save_settings at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/settings.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/settings.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d098cf39e21583879dbb7a2c8e4efabae045f8542fe85fbcadd31c85ceb31f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/subscription.rs: src-tauri/src/services/subscription.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cc_switch::services::subscription::parse_claude_quota at line 508. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/subscription.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf49624b1037edfbb34315600a6af6c39f8dbf26b9af40262cca12f444095cc3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/prompts/PiPromptPanel.tsx: src/components/prompts/PiPromptPanel.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in PiPromptPanel.PiPromptPanel at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/prompts/PiPromptPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb689661b67e26df00f222b08301a101cb3cf18d080798f1052ae1e0c46a2da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/provider.rs: src-tauri/src/provider.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Provider::resolve_usage_credentials at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/provider.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/provider.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"322a3026bdf23dd694df7bd8716b86a7f3772a91af99cfd958ec651c231cced3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/SettingsPage.tsx: src/components/settings/SettingsPage.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in SettingsPage.SettingsPage at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/SettingsPage.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecba4d1ff7191d18c84ccd30ef50c8014dfdcdcbc0510e50d34bc4e020fb690"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/mode/ModeDialog.tsx: src/components/providers/mode/ModeDialog.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in ModeDialog.EnterBody at line 131. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/mode/ModeDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8354f80a60a70d6979c85e2fb154c5e284f2a1e11b45d93ec9c0e23918f779c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/universal/UniversalProviderFormModal.tsx: src/components/universal/UniversalProviderFormModal.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in UniversalProviderFormModal.UniversalProviderFormModal at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/universal/UniversalProviderFormModal.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2d997148d3c76a07ba07b1bad3c403ddc882b6ffb89756c77217717541c3d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/UsageTrendChart.tsx: src/components/usage/UsageTrendChart.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in UsageTrendChart.UsageTrendChart at line 280. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/UsageTrendChart.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"5add31fbfe3b378b57baf2b99f328766abb40b9dec6a478e752b1ab788e8971e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/OpenTerminalDialog.tsx: src/components/providers/OpenTerminalDialog.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in OpenTerminalDialog.OpenTerminalDialog at line 228. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/OpenTerminalDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"562ae37b8406dd4263b291e5ed0e92731678195d5ba351f19ef398db79252fcc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/CopilotAuthSection.tsx: src/components/providers/forms/CopilotAuthSection.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in CopilotAuthSection.CopilotAuthSection at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/CopilotAuthSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ddf803915aa1afb596965c3a1f42ad108ccddd99fb981f0155fef8f0e1b8df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/quota/QuotaLines.tsx: src/components/quota/QuotaLines.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in QuotaLines.QuotaLines at line 211. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/quota/QuotaLines.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8642816dfe04d6c1cac7205225a50e7ed805da48bd523ef75948641a44aeda"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/live/project/codex.rs: src-tauri/src/live/project/codex.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in CodexConfigPatch::write_route at line 759. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/live/project/codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/live/project/codex.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6051abc0696fc728c7b8970244f45bb7f83cdc77804c5bee78484d02dad0a81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/commands/provider.rs: src-tauri/src/commands/provider.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in cc_switch::commands::provider::query_provider_usage_inner at line 667. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/provider.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a21a6aada1a2f78bdfa06e58bd01bce34d126315b1b146c308c8552be5c41dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/ProviderPresetSelector.tsx: src/components/providers/forms/ProviderPresetSelector.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ProviderPresetSelector.PresetPicker at line 548. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/ProviderPresetSelector.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee7329f58a47b03f82b658f2ee614bc126b66d043e4e1307c50d7caa8e91f6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/CopilotProviderForm.tsx: src/components/providers/forms/CopilotProviderForm.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in CopilotProviderForm.CopilotProviderForm at line 283. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/CopilotProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"18336f1cf64095cb608b9044165dfeb541909994546acbeb3a3052b1c35c557d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/SubscriptionQuotaFooter.tsx: src/components/SubscriptionQuotaFooter.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SubscriptionQuotaFooter.SubscriptionQuotaView at line 231. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/SubscriptionQuotaFooter.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e91519278a5c47fd0d045bbe7cc1c2e05f7e4eb451240cee5b5e88bde296d7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/XaiOAuthSection.tsx: src/components/providers/forms/XaiOAuthSection.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in XaiOAuthSection.XaiOAuthSection at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/XaiOAuthSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"130bbfd91f09babfba2156abbabad4ae1c9e26ce320e95c04ce976312f55982e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/UsageDisplaySection.tsx: src/components/usage/UsageDisplaySection.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in UsageDisplaySection.UsageDisplaySection at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/UsageDisplaySection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee841bb1d22020caf00c96342520121c210e60d3bc49c4494bcfb233c019c6f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/RequestDetailPanel.tsx: src/components/usage/RequestDetailPanel.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in RequestDetailPanel.useDetailSections at line 86. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/RequestDetailPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestDetailPanel.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"678055a4b92164fb8257397a3a60fb8cc2a6efee7d1a6cb558cf2ff5d3910631"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hooks/useDirectorySettings.ts: src/hooks/useDirectorySettings.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in useDirectorySettings.useDirectorySettings at line 140. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/hooks/useDirectorySettings.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa7a0f47113936ccfd05cddefc84ec15cacc73a9b48432f7a83f59c4fb9d669"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/ProviderEmptyState.tsx: src/components/providers/ProviderEmptyState.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ProviderEmptyState.ProviderEmptyState at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/ProviderEmptyState.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderEmptyState.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff28d74c30973c8ace66e785853de2d9a832775e1f208a7783b5f58d17ba6338"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/format.ts: src/components/usage/format.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in format.getLocaleFromLanguage at line 457. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/format.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc00dfc53bfe875de641d30b504e1a5edc0637a89a1c4210a3e6c9014cc410aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/sections/RoutingSection.tsx: src/components/settings/sections/RoutingSection.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in RoutingSection.RoutingSection at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/sections/RoutingSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ddd6e8fa16b232d0c5d73467da3f999b0bf31572df0b6a136a6c6b755714d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/GrokBuildProviderForm.tsx: src/components/providers/forms/GrokBuildProviderForm.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in GrokBuildProviderForm.GrokBuildProviderForm at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/GrokBuildProviderForm.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f66be883921c37034f50e0c04c15a17f3d5c9ef6bfc7092c2889579cb94f16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/AuthCenterPanel.tsx: src/components/settings/AuthCenterPanel.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AuthCenterPanel.AuthCenterPanel at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/AuthCenterPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AuthCenterPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e115fd66fa0b66d36b4e104605061676d7b8ae1684e9a8a843396ad344bf92b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/codex_oauth_auth.rs: src-tauri/src/proxy/providers/codex_oauth_auth.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CodexOAuthManager::add_account_internal at line 1691. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/codex_oauth_auth.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_oauth_auth.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fc25a2749a06d8e516f741a16250debdaf79e16beb014a6c91dce62102140c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/session_manager/providers/codex.rs: src-tauri/src/session_manager/providers/codex.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in RolloutParser::finish_call at line 1572. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/session_manager/providers/codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/codex.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"687359feb26f0016c0f6b91e0bade281001f5d8b4ed7568c482ce72c30f87f18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/prompts/PromptFormPanel.tsx: src/components/prompts/PromptFormPanel.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in PromptFormPanel.PromptFormPanel at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/prompts/PromptFormPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13b0ddadfc4e52c3535b6d5ab549de1cab056fa05a489a8caa3e547dddf5a94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/session_usage_pi.rs: src-tauri/src/services/session_usage_pi.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in cc_switch::services::session_usage_pi::parse_pi_file at line 522. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_pi.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_pi.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69f865d0fb8dd73552096170dd7cffbbf13f24d3159f587f15bfe15b50a6cd2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/sessions/reader/SessionReaderHeader.tsx: src/components/sessions/reader/SessionReaderHeader.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SessionReaderHeader.SessionReaderHeader at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/sessions/reader/SessionReaderHeader.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62b42fca418862dc82b068f0103fb9b7548303c8d35fd2e2a847c2b8d61872"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/ClaudeOfficialSection.tsx: src/components/providers/forms/ClaudeOfficialSection.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ClaudeOfficialSection.ClaudeOfficialSection at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/ClaudeOfficialSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2c78a01066ab161ab6d0f96e4e061f91cfe581938c397b9c82f4b24452a771"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/common/FullScreenPanel.tsx: src/components/common/FullScreenPanel.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in FullScreenPanel.FullScreenPanel at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/common/FullScreenPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/FullScreenPanel.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed2c3924508b3ac9657392989b1788cb7e7ba30f80125496bc72ad233e8a2f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/response_processor.rs: src-tauri/src/proxy/response_processor.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in cc_switch::proxy::response_processor::create_logged_passthrough_stream at line 731. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/response_processor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/response_processor.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7807d1ab271cbf6fb5215864520f57d461889a636d7de122b755f55db31d9203"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hooks/useSettings.ts: src/hooks/useSettings.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in useSettings.useSettings.saveSettings at line 347. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/hooks/useSettings.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"629a80ee0bc91fc5461509e1c22d72a01cbebe8f7d1380e4c7ee25c4b215a874"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/UsageDateRangePicker.tsx: src/components/usage/UsageDateRangePicker.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in UsageDateRangePicker.UsageDateRangePicker at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/UsageDateRangePicker.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDateRangePicker.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c28c9b3f9a8db77a604e594974fd4bec23074fe5363bee7acff73a2198f29e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/app_config.rs: src-tauri/src/app_config.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MultiAppConfig::migrate_mcp_to_unified at line 1055. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/app_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/app_config.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b82e399e4489f32a07e0590ffa8070e861553e6eea79ede562349bc9dd78e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/HermesFormFields.tsx: src/components/providers/forms/HermesFormFields.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in HermesFormFields.HermesFormFields at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/HermesFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5eb3f1d9e934e488154a73219d6587a250af733d635f1fa9a573d2707164bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/transform_codex_anthropic.rs: src-tauri/src/proxy/providers/transform_codex_anthropic.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in cc_switch::proxy::providers::transform_codex_anthropic::anthropic_sse_to_message_value at line 1424. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/transform_codex_anthropic.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_anthropic.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"4194309a7d5dbb5be8b86e2edfa9b5c26ca4a220f5b7b34082168767c1d9f127"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/session_manager/providers/hermes.rs: src-tauri/src/session_manager/providers/hermes.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in cc_switch::session_manager::providers::hermes::parse_jsonl_session_with_status at line 716. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/session_manager/providers/hermes.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"459aef905da5f41139643a5f9a0ea2b91bb10038ad3f73d7d5e8b10c43059e7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/mode/operation.rs: src-tauri/src/mode/operation.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in cc_switch::mode::operation::run at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/mode/operation.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/operation.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d13ed7216ac12a070714b9aaf70b4205a45e0d3c2fc706db234e0d899928624"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/commands/tool_uninstall.rs: src-tauri/src/commands/tool_uninstall.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in cc_switch::commands::tool_uninstall::known_native_install at line 386. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/tool_uninstall.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/tool_uninstall.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41878582f640a4ab1e4e879fce49bf48690349c00b6a2787699e0afd7f439ef"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/coding_plan.rs: src-tauri/src/services/coding_plan.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in cc_switch::services::coding_plan::query_coding_plan at line 1863. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/coding_plan.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"a480adeeb4ba2962bd5f0fc76b53d4d7269f615ad96b4373dec1817ebdacdcf2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/workspace/DailyMemoryPanel.tsx: src/components/workspace/DailyMemoryPanel.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in DailyMemoryPanel.DailyMemoryPanel at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/workspace/DailyMemoryPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8db09a04366188feeedfb7c88d24055e316fdd45d0bd462e60305ce6f1271b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/JsonEditor.tsx: src/components/JsonEditor.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in JsonEditor.JsonEditor at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/JsonEditor.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae0663f094ce3d9f3db92c4ef47a900b5e8b8ffad6844b167094684df8b13ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/i18n/index.ts: src/i18n/index.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in index.getInitialLanguage at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/i18n/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"986ca8652aeb9bd3b29a71cc0627422a358df9db5277e3c2eda4876f171ca2b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/skills/SkillImportDialog.tsx: src/components/skills/SkillImportDialog.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SkillImportDialog.SkillImportDialog at line 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/skills/SkillImportDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillImportDialog.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f716f5f27ab2f7e7960256bdd468741303354e4058a883a74240e4fb05e4b9f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/utils/deepLinkConfigPreview.ts: src/utils/deepLinkConfigPreview.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in deepLinkConfigPreview.parseDeepLinkConfigPreview at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/utils/deepLinkConfigPreview.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deepLinkConfigPreview.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec0bb87f39d5b77871828151a77d168056c704e0855bf0730df0b12b1948cfe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/ModelsDevAutoSyncPanel.tsx: src/components/usage/ModelsDevAutoSyncPanel.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ModelsDevAutoSyncPanel.AutoSyncDialog at line 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/ModelsDevAutoSyncPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5f65dad93a8f0439b7da1fc5ba4fab3223aa1c255c3ae3f424be555b0e4ee3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/utils/errorUtils.ts: src/utils/errorUtils.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in errorUtils.translateMcpBackendError at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/utils/errorUtils.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorUtils.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92f3332410a611329438431ccc280eec9b643819e82e78597e4b00edb4ad65d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/session_manager/providers/claude.rs: src-tauri/src/session_manager/providers/claude.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in cc_switch::session_manager::providers::claude::parse_session_lines at line 141. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/session_manager/providers/claude.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7ceb77fd0097dc3c4742fa2b2bcfca1a474f1e29662a516d78eeebe94819a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/dsh_config.rs: src-tauri/src/dsh_config.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in cc_switch::dsh_config::initialize_profiles_and_commit at line 979. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/dsh_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/dsh_config.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabba0930d13f9862281a5d5c9b77d2f94b4a0fb660df12750ddb053d236eafa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/utils/providerCapabilities.ts: src/utils/providerCapabilities.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in providerCapabilities.resolveCodexOfficialIdentity at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/utils/providerCapabilities.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05a90568fe9199ccaea43f90bf76d77e28421b4e16935d3c438edd6997d314e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/session_usage_agy.rs: src-tauri/src/services/session_usage_agy.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in cc_switch::services::session_usage_agy::import_records_with_cursor at line 179. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_agy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_agy.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"40825d73e82dbff195ccfb50fc1189116b9193057d1e37dbfadf487bf7836110"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/KimiAccountLogin.tsx: src/components/providers/KimiAccountLogin.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in KimiAccountLogin.KimiAccountLogin at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/KimiAccountLogin.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/KimiAccountLogin.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc1024d1f1cd3877bba6a45ff7f9a98a1419d50694961078e9ca7a40e4032a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/UsageHero.tsx: src/components/usage/UsageHero.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in UsageHero.UsageHero at line 207. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/UsageHero.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHero.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7c2115591cf08992420ee59cccfa7db0314755739a103d3800dae87b369d10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/OpenClawFormFields.tsx: src/components/providers/forms/OpenClawFormFields.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in OpenClawFormFields.OpenClawFormFields at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/OpenClawFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"89945042070d16a875b3481ef9bb177036ad3710a2f65545f7d35c716de38bdf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/UsageHeatmap.tsx: src/components/usage/UsageHeatmap.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in UsageHeatmap.UsageHeatmap at line 247. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/UsageHeatmap.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4905dd0d472f6ee080ffe1d04ce95b2d3a881839031a301e38d0c0aa85d9cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/kimi_config.rs: src-tauri/src/kimi_config.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in cc_switch::kimi_config::apply_provider_unchecked at line 340. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/kimi_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_config.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae058cfa03dac9e0939d925777d2248be5bf8f3f8d984f63de2aa571420a0c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/streaming_codex_chat.rs: src-tauri/src/proxy/providers/streaming_codex_chat.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in cc_switch::proxy::providers::streaming_codex_chat::create_responses_sse_stream_from_chat_with_context at line 764. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/streaming_codex_chat.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_chat.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5f7432e49cbffd7809191ccad094dd546be150b8d6338ba74d9c997ae794f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/mcp/AppMatrix.tsx: src/components/mcp/AppMatrix.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in AppMatrix.MatrixColumnHeader at line 212. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/mcp/AppMatrix.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/AppMatrix.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0910be9e750fdb7d3ac90406fc4f7394b6f237754d3279f1f2744012f5057da5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/UsageFooter.tsx: src/components/UsageFooter.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in UsageFooter.UsageFooter at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/UsageFooter.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61d4360ac0c22047a1af58effd28069633b5c0c40b946970c4e26b1804f3995"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/error.rs: src-tauri/src/proxy/error.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ProxyError::into_response at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/error.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/error.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f1ba93559fcc93be4829f642930ae3c553832569ebfef6e980194b9335194f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/prompts/PiNativePromptResources.tsx: src/components/prompts/PiNativePromptResources.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in PiNativePromptResources.PiPromptTemplateEditor at line 515. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/prompts/PiNativePromptResources.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"097198116cb77b71f914ba8170bcd1683ae15f0d0da219cb3052ce7c8c2e1d3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/session_usage_grokbuild.rs: src-tauri/src/services/session_usage_grokbuild.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in cc_switch::services::session_usage_grokbuild::sync_single_grok_file at line 191. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_grokbuild.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_grokbuild.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4219f7e163d9d2b160426c81017540572062c0cf866a5120abe53edd6971b30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/transform_gemini.rs: src-tauri/src/proxy/providers/transform_gemini.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in cc_switch::proxy::providers::transform_gemini::convert_messages_to_contents at line 561. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/transform_gemini.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_gemini.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03fe20e2aaf64e7c564a52b666a16fc2ee460e1e0464d714a7af5f146460e58"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/ModelsDevPickerDialog.tsx: src/components/usage/ModelsDevPickerDialog.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ModelsDevPickerDialog.ModelsDevPickerDialog at line 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/ModelsDevPickerDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevPickerDialog.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cceaeeda51d7b202d3facf63209791afd9f6731fa19ec4d279c96aaa1c4d22"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/IconPicker.tsx: src/components/IconPicker.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in IconPicker.IconPicker at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/IconPicker.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IconPicker.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"964380cfae69ed26f0efb6450a698254adc02d95357e8c68e02103cbaef07f62"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/PricingConfigPanel.tsx: src/components/usage/PricingConfigPanel.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PricingConfigPanel.PricingConfigPanel at line 348. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/PricingConfigPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"9011b71612e85e496c3999e9c917c9182a3cd59409b447757705ff2bf346d920"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/GeminiFormFields.tsx: src/components/providers/forms/GeminiFormFields.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in GeminiFormFields.GeminiFormFields at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/GeminiFormFields.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiFormFields.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3998a75650f5b8fba5837d81294226a969bd1b2c5a377a4e459c33819c5e45a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/FetchedModelPicker.tsx: src/components/providers/forms/FetchedModelPicker.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in FetchedModelPicker.FetchedModelPickerBody at line 130. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/FetchedModelPicker.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/FetchedModelPicker.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"73925ef2a135e36399fecdb23b0ec9cdc7152d80ffbd0d6e6892f2a85061cd08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hooks/useDragSort.ts: src/hooks/useDragSort.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in useDragSort.useDragSort.sortedProviders at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/hooks/useDragSort.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDragSort.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"739b8e0049615acb1d830a2b13cc647e2d58c9b20ad7b12a853682cad24b58b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/BackupListSection.tsx: src/components/settings/BackupListSection.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in BackupListSection.BackupListSection at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/BackupListSection.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37d8f3e505b13959524f86ac15189d42f3ae62d00ac8a7033fda21547160912"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/codex_chat_history.rs: src-tauri/src/proxy/providers/codex_chat_history.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CodexChatHistoryStore::enrich_request at line 107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/codex_chat_history.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_history.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51e4c495b30877a50dc573669a5b756953af5756ecd203e11acbf2d40acb3eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/copilot_config.rs: src-tauri/src/copilot_config.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cc_switch::copilot_config::validate_document at line 608. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/copilot_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/copilot_config.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b84b8ec8df7beddf0548f45cdb35d4bd74e78a3a115821054cc73a8123e1725"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/skills/SkillsStorageSheet.tsx: src/components/skills/SkillsStorageSheet.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SkillsStorageSheet.SkillsStorageSheet at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/skills/SkillsStorageSheet.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsStorageSheet.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"41355024a26341ca6093754643f5152c348dd37d7e15e844c6ef93fdd5a4b121"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/ProviderIcon.tsx: src/components/ProviderIcon.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ProviderIcon.ProviderIcon at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/ProviderIcon.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ProviderIcon.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a27d7d25d0f41d8548851d75916ef74e91f951e36528c627452d973a6378c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/provider/codex_login.rs: src-tauri/src/services/provider/codex_login.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in cc_switch::services::provider::codex_login::plan at line 242. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/provider/codex_login.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_login.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe54e259bfa654ffa0bf1903b283deee5d89d5ca46bd0d8299991b82210cbf8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/usage/PricingEditModal.tsx: src/components/usage/PricingEditModal.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in PricingEditModal.PricingEditModal at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/usage/PricingEditModal.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingEditModal.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5e0e6e8765cba8fe4ef0eba5cea0c76e792db197fae5c50e529fab42d43b73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/hermes/HermesMemoryPanel.tsx: src/components/hermes/HermesMemoryPanel.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in HermesMemoryPanel.MemoryTabPane at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/hermes/HermesMemoryPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/hermes/HermesMemoryPanel.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c66dc1d9fb0097304300344b93e1b2bf356a88aff38c4a591194b8425134e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/openclaw/AgentsDefaultsPanel.tsx: src/components/openclaw/AgentsDefaultsPanel.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in AgentsDefaultsPanel.AgentsDefaultsPanel at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/openclaw/AgentsDefaultsPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46ac814fe0326c34954223631f4c593498b0c6c4cef249bddc2351ba2518bd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/omp_config.rs: src-tauri/src/omp_config.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in cc_switch::omp_config::has_yaml_reference_tokens at line 758. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/omp_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/omp_config.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"176436c8c8dd8e8b69323ef05eafd0779931f0200f94992b58a6d7dd0e10ae94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/proxy/providers/streaming_gemini.rs: src-tauri/src/proxy/providers/streaming_gemini.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in cc_switch::proxy::providers::streaming_gemini::create_anthropic_sse_stream_from_gemini at line 237. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/streaming_gemini.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_gemini.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b20100d15971f0f3d853d97ff24d40e75595dee517fefa6768f6bec7f569a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/skills/RepoManagerPanel.tsx: src/components/skills/RepoManagerPanel.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RepoManagerPanel.RepoManagerPanel at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/skills/RepoManagerPanel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/RepoManagerPanel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9943fc9f607f8a31bb56eddd31467e84a02e64e67e331039212193c8c67710c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hooks/useProxyStatus.ts: src/hooks/useProxyStatus.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in useProxyStatus.useProxyStatus at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/hooks/useProxyStatus.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProxyStatus.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ced78ed7f9f9e111090a771259477a82bdeea87aac3e6739bd5725d8570daa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/session_usage_kimi.rs: src-tauri/src/services/session_usage_kimi.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in cc_switch::services::session_usage_kimi::sync_file at line 79. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_kimi.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_kimi.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"61332894643fa0e2705bca992cd5c129907d88f82d80877b3f13731a8115827c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/hooks/useBaseUrlState.ts: src/components/providers/forms/hooks/useBaseUrlState.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in useBaseUrlState.useBaseUrlState at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/hooks/useBaseUrlState.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"890fd0ca6047fd258463d5813e1c03db853dd7e96fb730c618a75dbbbd662ffc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/services/profile.rs: src-tauri/src/services/profile.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ProfileService::apply at line 343. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/profile.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/profile.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"77af4625dd70c63804bc36e565478e2ebaec35d8e3c31e0c0ddee2bc83a56aff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/sessions/reader/SessionFinalReply.tsx: src/components/sessions/reader/SessionFinalReply.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SessionFinalReply.SessionFinalReply at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/sessions/reader/SessionFinalReply.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionFinalReply.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"851b6c79b30e83bea1a4bba1b1d9d5966bcbc6b1c85b8b5662b18b10c150bf2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/tray-panel/UsageTab.tsx: src/tray-panel/UsageTab.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in UsageTab.UsageTab at line 195. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/tray-panel/UsageTab.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1f2307639c90445d0de4a57dd88d68fb54606b947f65c5f5e8dc280c5e755f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/apps/ToolUninstallConfirmDialog.tsx: src/components/apps/ToolUninstallConfirmDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ToolUninstallConfirmDialog.ToolUninstallConfirmDialog at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/apps/ToolUninstallConfirmDialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ToolUninstallConfirmDialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e8f1d72c4c7c0f4717ba24b2a9cf2401732b65e4efb13c833e1a7fd5dc8fad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/settings/GlobalProxySettings.tsx: src/components/settings/GlobalProxySettings.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in GlobalProxySettings.GlobalProxySettings at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/settings/GlobalProxySettings.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ac97d425713c146f00dece81f9662c70254752aaf251eb227d0ba61b11d821"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/kimi_session.rs: src-tauri/src/kimi_session.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in RequestIndex::observe at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/kimi_session.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/kimi_session.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13fb9776d6049e63df5978c6073392bfc65bf5109dc04ac0ee5089d7344b4c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/providers/forms/hooks/useOpencodeFormState.ts: src/components/providers/forms/hooks/useOpencodeFormState.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in useOpencodeFormState.useOpencodeFormState at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/hooks/useOpencodeFormState.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOpencodeFormState.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81355cdcab29fff35cab9ac7dacc7cf63b8677054ea459faa31f39d769aef84"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/common/AppCountBar.tsx: src/components/common/AppCountBar.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AppCountBar.AppCountBar at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/common/AppCountBar.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/AppCountBar.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62c0ac6cef74489b3548089531e238b615362ed4020db2bdc936e0c3cd2b2c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/proxy.rs: src-tauri/src/services/proxy.rs changed 23 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ProxyService::live_has_proxy_placeholder at line 277), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): let clients reach local routing through a separate connection address (#7878)\u201D; \u201Cfix(proxy): roll back the saved listen address when the restart fails to bind\u201D; \u201Cfix(proxy): save global routing settings without clobbering per-app retries and timeouts\u201D; \u201Cfix(codex): keep proxy sessions in the same history bucket as direct\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/proxy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/proxy.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ad399a747d9035804dc888a9d6e3c44c8c2cb53d1af94d622745ea79a82a01"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/proxy/providers/codex.rs: src-tauri/src/proxy/providers/codex.rs changed 22 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is CodexAdapter::extract_base_url at line 1168), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): strip every OpenAI-only Codex field for third-party Responses upstreams\u201D; \u201Cfix(proxy): drop Codex-private include markers for third-party upstreams (#9077)\u201D; \u201Cfix(codex): reuse the Grok compat layer for GitHub Copilot Responses (#7989)\u201D; \u201Cfix(codex): restore reasoning effort after re-enabling (#8998)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/codex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b84e39b18c1b571d39aa4fa433576808ba3fb9916bfd5f3ffdf2855ed616f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/claude_desktop_config.rs: src-tauri/src/claude_desktop_config.rs changed 19 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is cc_switch::claude_desktop_config::normalize_mimo_anthropic_thinking_history at line 1103), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(apps): require Claude.app on macOS to count Claude Desktop as installed\u201D; \u201Cfix(claude-desktop): point the official card at claude.com/download\u201D; \u201Cfix(claude-desktop): publish claude-haiku-5-5 for the Haiku tier in route mode\u201D; \u201Cfix(claude-desktop): write inferenceModels in the UI tier order (#7491)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/claude_desktop_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_desktop_config.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b7619ecb1eb2b27ce3092cf82aaaf31560e15d960ecd012483a52dca74907f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/config.rs: src-tauri/src/config.rs changed 13 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is cc_switch::config::derive_wsl_home_dir at line 215), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: recover configuration locks and caches after panics (#9483)\u201D; \u201Cfix(config): write through symlinked live config files\u201D; \u201Cfix(wsl): skip syscalls 9P rejects when piConfigDir targets WSL (#8249)\u201D; \u201Cfix(config): let the test home override win over the legacy HOME fallback (#7812)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/config.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f8a0a81230a476d246dfe3ab07d5a779b71c903f8872bd85e0cbbd65b4f555"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/proxy/server.rs: src-tauri/src/proxy/server.rs changed 10 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is ProxyServer::start at line 104), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): reject browser-originated requests to the local router\u201D; \u201Cfix(proxy): reject upstream URLs that loop back to the proxy itself (#8598)\u201D; \u201Cfix(proxy): stop child processes from inheriting the listener socket on Windows\u201D; \u201Cfix(codex): keep proxy sessions in the same history bucket as direct\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/server.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c188fe085101267987819bd6c49a6eb5cfcd3b70f30f179a22e2677070a4a5b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/provider/codex_editor.rs: src-tauri/src/services/provider/codex_editor.rs changed 10 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is cc_switch::services::provider::codex_editor::store_into_row at line 412), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex): show the on-disk login in the official card\u0027s auth.json editor\u201D; \u201Cfix(codex): keep a top-level base_url when saving a provider\u201D; \u201Cfix(codex): treat model_catalog_json as a plain key field\u201D; \u201Cfix(codex): let users switch back to CC Switch\u0027s model catalog when aggregation is blocked\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/provider/codex_editor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_editor.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb40ffe86efa0ca8d64f1d9b6a9ecf1f2f6c250d9f940db2a29be23c7f99e65"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/model_capabilities.rs: src-tauri/src/model_capabilities.rs changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is cc_switch::model_capabilities::resolve_image_input_capability at line 19), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): strip non-text media (file/audio) for text-only upstreams (#6274)\u201D; \u201Cfix(codex): handle text-only DeepSeek V4 Flash 0731 on OpenRouter (#6194)\u201D; \u201Cfix(presets): move MiniMax CN and BaiLing to their current official endpoints\u201D; \u201Cfix(pricing): move retired DeepSeek V4 family to the V4.1 Flash tier\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/model_capabilities.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/model_capabilities.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"369e1821ddca2e72c09f78be70c8eddece15c3bff821f3bd0417c8132c504a3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/balance.rs: src-tauri/src/services/balance.rs changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is cc_switch::services::balance::query_siliconflow at line 215), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): stop treating an empty DeepSeek balance as an expired plan\u201D; \u201Cfix(usage): show the balance amount even when it is used up\u201D; \u201Cfix(usage): show account balance when a Zhipu account has no coding plan\u201D; \u201Cfix(usage): hide empty DeepSeek wallets when another currency has funds\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/balance.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1721abd962ead06919d76e2f90af50302cfc0c446c715f356a9e741ede7a39"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/session_manager/providers/agy.rs: src-tauri/src/session_manager/providers/agy.rs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is cc_switch::session_manager::providers::agy::transcripts_in_root at line 88), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): track sync cursors for Antigravity session transcripts (#9346)\u201D; \u201Cfix(ci): keep the WSL2 suite on a stable test root and match UNC catalog pointers\u201D; \u201Cfix(agy): let a transcript win over another root\u0027s index-only entry\u201D; \u201Cfix(ci): make WSL2 checks manual and guard SQLite tests\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/session_manager/providers/agy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/agy.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2514748e54a6be2016611069ed85ed639e21d53b54e34dfa5deae7fdb85954e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/agy_account/quota.rs: src-tauri/src/services/agy_account/quota.rs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is cc_switch::services::agy_account::quota::fetch_with at line 181), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(agy): pass cloudaicompanionProject in quota lookup and surface region ineligibility (#9414)\u201D; \u201Cfix(agy): align account quota endpoint with agy CLI and distinguish Ultra 5x/20x plans (#9319)\u201D; \u201Cfix(agy): add Weekly Argon quota limit line (#8913)\u201D; \u201Cfix(agy): show Gemini quota when querying Google directly\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/agy_account/quota.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/agy_account/quota.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e59a2515ecd32705a507f92396bf714b24d07f1b9099c7119346cfd4f3f6af8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/lib/modelMetadata.ts: src/lib/modelMetadata.ts changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is modelMetadata.indexModelsDev at line 174), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(models): don\u0027t borrow a vendor-hosted entry that points at another vendor\u201D; \u201Cfix(models): match old OpenCode Zen/Go addresses to the moved models.dev entries\u201D; \u201Cfix(models): cap only borrowed GPT windows and warn on oversized entries\u201D; \u201Cfix(presets): cap GPT context windows at the 272K subscription window\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/lib/modelMetadata.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadf2f23cd9ef0e1f6226e1cec370fbf40677197266ffbf44ff76ccfc352f6e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/session_usage_opencode.rs: src-tauri/src/services/session_usage_opencode.rs changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is cc_switch::services::session_usage_opencode::sync_opencode_usage at line 82), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): dedupe Codex request model aliases (#7643)\u201D; \u201Cfix(usage): prefer opencode streamed time for session latency (#8410)\u201D; \u201Cfix(usage): derive opencode session request latency from message times (#8309)\u201D; \u201Cfix(usage): bill Claude 1-hour cache writes at the 1h rate (#7653)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_opencode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_opencode.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff78676e7bd34da117f725e6db0f63cb441a40de82f03e9f705447d1ff8dcc4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/components/shell/AppPageHeader.tsx: src/components/shell/AppPageHeader.tsx changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is AppPageHeader.AppPageHeader at line 42), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): keep the window draggable and its controls clickable while a dialog is open (#9140)\u201D; \u201Cfix(linux): restore window dragging and resize feedback (#8092)\u201D; \u201Cfix(ui): show compact mode-colored connection badge in header (#8634)\u201D; \u201Cfix(windows): avoid native CSS drag regions (#8327)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/shell/AppPageHeader.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/AppPageHeader.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d806d90417630bd50687074deaefea469b94d717a093cac503b61c313f8b59b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/proxy/opaque_state_rectifier.rs: src-tauri/src/proxy/opaque_state_rectifier.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is cc_switch::proxy::opaque_state_rectifier::rectify_opaque_state at line 298), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): retry Claude Responses requests rejected for replayed reasoning\u201D; \u201Cfix(proxy): retry Codex requests rejected for a foreign Azure resource\u201D; \u201Cfix(proxy): explain unreadable sub-agent tasks instead of emptying them\u201D; \u201Cfix(proxy): retry Codex history carrying MiniMax turns on OpenAI-family upstreams\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/opaque_state_rectifier.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/opaque_state_rectifier.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"554ae76e75b38225b740ea9114982750003264bcd0d31a48f25a322dce3b6054"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/commands/profile.rs: src-tauri/src/commands/profile.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is cc_switch::commands::profile::emit_profile_apply_events at line 64), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): keep the remaining DB-lock-waiting sync commands off the UI thread (#9178)\u201D; \u201Cfix(startup): keep database lock waits off the UI thread (#9098)\u201D; \u201Cfix(claude-desktop): stop the routing service when leaving a mapping card\u201D; \u201Cfix(proxy): keep the routing service running for Claude Desktop model mapping\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/profile.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/profile.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23cb94dea4e3dcf70a6ee0649cde2c9ce4641a7f57e70160109252452ba8afb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/lightweight.rs: src-tauri/src/lightweight.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is cc_switch::lightweight::exit_lightweight_mode at line 37), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(window): keep the main window inside the monitor work area on launch (#9336)\u201D; \u201Cfix(tray): keep lightweight mode across restarts\u201D; \u201Cfix(tray): release the tray panel WebView in lightweight mode\u201D; \u201Cfix(linux): restore Wayland title-bar controls on first show and tray re-show (#7947)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/lightweight.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lightweight.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"91db2ec257595a76da1c85d5a373197485131a86a77c58e1cf9abb776977ce93"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/components/ui/dialog.tsx: src/components/ui/dialog.tsx changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is dialog.DialogOverlay at line 19), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): stop the what\u0027s-new dialog from collapsing on macOS and Linux (#9401)\u201D; \u201Cfix(ui): keep the window draggable and its controls clickable while a dialog is open (#9140)\u201D; \u201Cfix(ui): center dialogs without translate so they stay sharp on 1x displays\u201D; \u201Cfix(icon-picker): keep picker clear of macOS traffic lights (#9076)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/ui/dialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/dialog.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0149260eb3b7e0372763cbcbbd47d7c87d3b07ff27e290d135cc660d16e6f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/proxy/media_sanitizer.rs: src-tauri/src/proxy/media_sanitizer.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is cc_switch::proxy::media_sanitizer::is_unsupported_image_error at line 78), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): strip non-text media (file/audio) for text-only upstreams (#6274)\u201D; \u201Cfix(codex): handle text-only DeepSeek V4 Flash 0731 on OpenRouter (#6194)\u201D; \u201Cfix(pricing): move retired DeepSeek V4 family to the V4.1 Flash tier\u201D; \u201Cfix(codex): mirror vision-capable DeepSeek catalog and un-gate the legacy v4-flash alias (#7286)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/media_sanitizer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/media_sanitizer.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d400c1efee2769e262f75944574d601270f2ea3e3ca941700703f7386bd88d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/proxy/providers/codex_chat_common.rs: src-tauri/src/proxy/providers/codex_chat_common.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is cc_switch::proxy::providers::codex_chat_common::extract_reasoning_field_text at line 5), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): fall back to Gemini\u0027s skip signature on the Gemini Native path\u201D; \u201Cfix(proxy): fall back to Gemini\u0027s skip signature when a cached one is lost\u201D; \u201Cfix(proxy): round-trip Gemini thought signatures on Codex chat tool calls\u201D; \u201Cfix(proxy): strip inline \u003Cthink\u003E/\u003Cthinking\u003E blocks on the Claude and Codex chat paths (#7741)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/providers/codex_chat_common.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_common.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"37391b8a718d8e408c3a7907897b02966ac6b9fdc7cd191bf95d7ebb6505acfc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/provider/codex_client_catalog.rs: src-tauri/src/services/provider/codex_client_catalog.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is cc_switch::services::provider::codex_client_catalog::stale_clients at line 351), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex): warn about stale Codex clients on Windows without a process table\u201D; \u201Cfix(codex): run stale-client detection outside the aggregate stack view (#7892)\u201D; \u201Cfix(codex): expose cached-account restart notice outside Stack mode (#8006)\u201D; \u201Cfix(codex): keep proxy sessions in the same history bucket as direct\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/provider/codex_client_catalog.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_client_catalog.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a945dbfcdc872a8644e3eec411b058b1467de08769aa5707f55b490fe25c6d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/components/ui/sheet.tsx: src/components/ui/sheet.tsx changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is sheet.SheetPanel at line 44), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): keep the window draggable and its controls clickable while a dialog is open (#9140)\u201D; \u201Cfix(ui): reserve the scrollbar gutter on main scroll areas\u201D; \u201Cfix(ui): stop form drawers from closing on an overlay click\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/ui/sheet.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/sheet.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7627275373cc8453ff7f57df98f5e3842873d456c167b6e0bdb6e1f1be077266"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/grok_config.rs: src-tauri/src/grok_config.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is cc_switch::grok_config::strip_grok_mcp_servers_from_settings at line 243), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(presets): refresh stale default models (grok-4.7, kimi-k3.1-pro, qwen3.7-plus) (#9193)\u201D; \u201Cfix: stop shared config and live files from leaking provider settings\u201D; \u201Cfix(grokbuild): keep provider model table selected when backfilling live config\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/grok_config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/grok_config.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"808b8da3b99e0272ba2fb86df2a4aeb7703fe3316ec726d9e052e35aa86c5032"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/tray-panel/api.ts: src/tray-panel/api.ts changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is state at line 132), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tray): show the tray panel without waiting for its data (#9154)\u201D; \u201Cfix(tray): align quota bars and show time until reset\u201D; \u201Cfix(tray): keep tray panel rows stable and fit scaled displays (#8572)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/tray-panel/api.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/api.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"346b1fd158ee5a1408cfeb63616cc056a8f037d88769c7558f875b877aa2d8a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/components/providers/forms/ApiKeyInput.tsx: src/components/providers/forms/ApiKeyInput.tsx changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ApiKeyInput.ApiKeyInput at line 22), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(provider-form): stop macOS from capitalizing typed API keys\u201D; \u201Cfix(providers): mark API Key as required where saving checks it\u201D; \u201Cfix(providers): show the preset\u0027s promotion under the API Key field again\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/forms/ApiKeyInput.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ApiKeyInput.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eda88eef122bb64c04d8eda504a9f33dc959232583625e1647008a21959e3ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/model_pricing.rs: src-tauri/src/services/model_pricing.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is cc_switch::services::model_pricing::update_model_pricing_batch_inner at line 454), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: recover configuration locks and caches after panics (#9483)\u201D; \u201Cfix(pricing): give the models.dev fetch time to finish reading the body\u201D; \u201Cfix: fetch models.dev through the backend proxy-aware client, fixing sync failures in proxy-only environments (#8739)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/model_pricing.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/model_pricing.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b113e9209ec2f6c29ad22aafcb1438b23ba9c1d18a85283512e27727142b5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/proxy/usage/logger.rs: src-tauri/src/proxy/usage/logger.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is UsageLogger::log_request at line 114), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(proxy): log the mapped upstream model on failed requests\u201D; \u201Cfix(usage): cap stored proxy_request_logs.error_message on write (#9010)\u201D; \u201Cfix(usage): bill Claude 1-hour cache writes at the 1h rate (#7653)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/proxy/usage/logger.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/usage/logger.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee29bde31060da4d2e39e1a39e64ad1a494edb5df967426e109b01714600b388"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/session_usage_gemini.rs: src-tauri/src/services/session_usage_gemini.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is cc_switch::services::session_usage_gemini::sync_single_gemini_file at line 136), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): dedupe Codex request model aliases (#7643)\u201D; \u201Cfix(usage): bill Claude 1-hour cache writes at the 1h rate (#7653)\u201D; \u201Cfix(sessions): read Gemini CLI JSONL chat files (#7866)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_gemini.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_gemini.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"21133964e35e229adfbf311dfca92108c7cf73913f27627ce13bc08c37671263"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/commands/codex_oauth.rs: src-tauri/src/commands/codex_oauth.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is cc_switch::commands::codex_oauth::get_codex_oauth_quota at line 28), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex-oauth): stop reporting transient refresh failures as an expired login\u201D; \u201Cfix(tray): show bound ChatGPT account quota for managed Codex cards\u201D; \u201Cfix(codex-oauth): isolate shared workspace accounts (#6780)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/codex_oauth.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/codex_oauth.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be7ec397f684f1d7976323021c887f541571b3984e5304eeff760cf18fe23b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/components/providers/CodexStaleClientsNotice.tsx: src/components/providers/CodexStaleClientsNotice.tsx changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is CodexStaleClientsNotice.CodexStaleClientsNotice at line 24), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex): warn about stale Codex clients on Windows without a process table\u201D; \u201Cfix(codex): run stale-client detection outside the aggregate stack view (#7892)\u201D; \u201Cfix(codex): expose cached-account restart notice outside Stack mode (#8006)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src/components/providers/CodexStaleClientsNotice.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/CodexStaleClientsNotice.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bad6db9529024c0a1f721b21f3916516ac4f77086354e2639b1bafb968a664"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/codex_oauth_models.rs: src-tauri/src/services/codex_oauth_models.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is cc_switch::services::codex_oauth_models::parse_models at line 56), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex): raise OAuth client identity to 0.159.0 for GPT-6.1 Sol (#7806)\u201D; \u201Cfix(codex): raise OAuth client identity to 0.155.0 for GPT-6 Sol/Luna (#7597)\u201D; \u201Cfix(codex): align OAuth client identity for GPT-6 (#7132)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/codex_oauth_models.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/codex_oauth_models.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"90155de62b3e86645a44103ba1d5028eab0c8b0920b5af476377028ab6d696fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/session_usage_agy/native_models.rs: src-tauri/src/services/session_usage_agy/native_models.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is cc_switch::services::session_usage_agy::native_models::read_generations at line 166), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): track sync cursors for Antigravity session transcripts (#9346)\u201D; \u201Cfix(usage): record Antigravity latency and first-token time\u201D; \u201Cfix(ci): make WSL2 checks manual and guard SQLite tests\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_agy/native_models.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_agy/native_models.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce58daf2923b93f4d38376c4b7cd479ed772f5a903f5a4eac81257c09b03cc55"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/webdav_sync/archive.rs: src-tauri/src/services/webdav_sync/archive.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is cc_switch::services::webdav_sync::archive::replace_skills_dir at line 170), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(webdav-sync): preserve file symlink names in skills archives (#9197)\u201D; \u201Cfix(sync): preserve skills recovery snapshots after restore failures (#8155)\u201D; \u201Cfix(skills): raise archive entry limit so large skill repos install (#7489)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/webdav_sync/archive.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/webdav_sync/archive.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"851cf2d570afe09654e26653a99fc580dc74281d28519259e33b6f990ea4ce5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/services/session_usage_mcode.rs: src-tauri/src/services/session_usage_mcode.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is HistoryModels::lookup_legacy at line 254), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(usage): record MiniMax Code latency and first-token time\u201D; \u201Cfix(usage): recover the model name for MiniMax Code usage rows that lack one\u201D; \u201Cfix(usage): bill Claude 1-hour cache writes at the 1h rate (#7653)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 07:28:34 -08:00\u0027 --until=\u00272026-11-13 07:28:34 -08:00\u0027 --full-history --no-merges -- src-tauri/src/services/session_usage_mcode.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_mcode.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9a88af73fecf6a3a3b5ec56ee67b63b34e97f0116f8b625e096f590774c10f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 84 significant file(s) lose their only recent owner: src-tauri/src/codex_history_migration.rs, src/config/claudeDesktopProviderPresets.ts, src-tauri/src/services/provider/codex_direct.rs, src-tauri/src/services/provider/codex_official_models.rs, src/components/mcp/McpFormModal.tsx, src-tauri/src/mode/operation.rs, src-tauri/src/proxy/opaque_state_rectifier.rs, src-tauri/src/services/subscription_grok.rs (\u002B76 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8922cca451f7f493d322174ae1dc411ec4575a75846c796648e70a5da3e1998d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: src-tauri/src/session_manager/providers/codex_items.rs, src/components/sessions/reader/SessionStepDetails.tsx, src/components/ui/ime-safe-input.tsx. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"351b2c82ecf457474456e9dfd0686913d60d5bca1e9f0e944abadd4c69fa2d2d"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (90 single-owned of 704 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 704 of the 873 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src-tauri/src/proxy/providers/transform_codex_chat_moonshot_schema.rs, src-tauri/src/proxy/providers/inline_think.rs, src/components/ui/sliding-indicator.tsx."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// todo\uFF1A\u6761\u76EE\u6570\u3002 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/blocks.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41361828625cb91c29186e890f8f90ce55c3ec1aba8d567832781f723f994d2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060package.json\u0060 makes this repository a deployable product (line 7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f571cc2c2542badcf90ae46e31e24c43d9ca80090c40fca9fd1434a5c34546"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060baseURL\u0060 spells \u0060URL\u0060 where 147 names in the project spell it \u0060Url\u0060: 147 of 149 names in project cc-switch spell the token \u0060Url\u0060 (147 of 149; unit: names in project cc-switch containing \u0060Url\u0060). Peers: UsageScriptModal.detectBalanceProvider(baseUrl) (src/components/UsageScriptModal.tsx:202); ProviderCard.extractApiUrl (src/components/providers/ProviderCard.tsx:208); ClaudeFormFieldsProps.websiteUrl (src/components/providers/forms/ClaudeFormFields.tsx:93); ClaudeFormFieldsProps.baseUrl (src/components/providers/forms/ClaudeFormFields.tsx:130); ClaudeFormFieldsProps.onBaseUrlChange (src/components/providers/forms/ClaudeFormFields.tsx:131). Rename to \u0060baseUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/geminiProviderPresets.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0937ea55f5014479f33ca5941c9409345f9c3d83a3e517e3f7b5e5b0e9c7f7dd"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060baseURL\u0060 spells \u0060URL\u0060 where 147 names in the project spell it \u0060Url\u0060: 147 of 149 names in project cc-switch spell the token \u0060Url\u0060 (147 of 149; unit: names in project cc-switch containing \u0060Url\u0060). Peers: UsageScriptModal.detectBalanceProvider(baseUrl) (src/components/UsageScriptModal.tsx:202); ProviderCard.extractApiUrl (src/components/providers/ProviderCard.tsx:208); ClaudeFormFieldsProps.websiteUrl (src/components/providers/forms/ClaudeFormFields.tsx:93); ClaudeFormFieldsProps.baseUrl (src/components/providers/forms/ClaudeFormFields.tsx:130); ClaudeFormFieldsProps.onBaseUrlChange (src/components/providers/forms/ClaudeFormFields.tsx:131). Rename to \u0060baseUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types.ts"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b34b6ada68e9d767b96114aec87e2abb97a68dfe9a365f547acb52423332505"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060formatJSON\u0060 spells \u0060JSON\u0060 where 22 names in the project spell it \u0060Json\u0060: 22 of 23 names in project cc-switch spell the token \u0060Json\u0060 (22 of 23; unit: names in project cc-switch containing \u0060Json\u0060). Peers: mcpDraft.parseJsonText (src/components/mcp/mcpDraft.ts:323); LocalProxyRequestOverridesFieldProps.headersJson (src/components/providers/forms/LocalProxyRequestOverridesField.tsx:11); LocalProxyRequestOverridesFieldProps.bodyJson (src/components/providers/forms/LocalProxyRequestOverridesField.tsx:12); LocalProxyRequestOverridesFieldProps.onHeadersJsonChange (src/components/providers/forms/LocalProxyRequestOverridesField.tsx:13); LocalProxyRequestOverridesFieldProps.onBodyJsonChange (src/components/providers/forms/LocalProxyRequestOverridesField.tsx:14). Rename to \u0060formatJson\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/formatters.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15e38772da353802b7834d66b2cb93999740399e8787bab87468314d2f5ba5b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Speed Test Endpoints\u0022 repeats the code it sits on: 3 of its 3 words (speed, test, endpoints) are already in \u0060speedTestEndpoints: EndpointCandidate[];\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"213d8b8390e5e346d10ff4e9e8bd7e808461defd8373023f7554939c05c70ccd"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Speed Test Endpoints\u0022 repeats the code it sits on: 3 of its 3 words (speed, test, endpoints) are already in \u0060speedTestEndpoints: EndpointCandidate[];\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8c91e1a0e0f7720e2d21233462f48ed30f15b7947bc45ced97c9c43a3d6a2e"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Speed Test Endpoints\u0022 repeats the code it sits on: 3 of its 3 words (speed, test, endpoints) are already in \u0060speedTestEndpoints: EndpointCandidate[];\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiFormFields.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"576538f401c2cbc9d8bbb64b06a60d678d687f327faca2dd4ba9a2e1825ab726"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060src-tauri\u0060 (322753 LoC, 837 module-visible types across 30 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b80af17e91983c1034578bd073be60d02e93759ec1417122572a1308abdfe0b"},"properties":{"commitSha":"98230c3970f4769a2a631d5119d371db6e17e534"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"de24fb5b2f9808dee7349e0f8b4bf4e8fc0b77a05b8578184e5f23b813b48863"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6bc3b539f953f180f304780b633bbb65e6d2911ce57503f2f0e4a05dfd504060"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ffcc1b724469248fcd864b1901b4fb0cedf5b911fb5d6075b57cf61232c29e8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"28fb95c74cf7e51a3f6e58d6d5d9aaba698bdc10ef21fbd45c72dc90736c26c6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6beb1dbf722dfdeac8e49068fd6c16b05da43c9488627b3c5c02adaf3651ab03"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5ff6c36cc77c52281fa395ac6b9e1e18754b22fb93caffb8d30a7715d1e22e8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49e9df15abb5f92add0830591936c7eef68c563b22208cadcbe80ba32728ab96"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2bbf4db0c0e09606afc98b04e17df3bfe887cdfdd807d54822b0c9b8316e441"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0957cc7f47d1931c56662464cd3ce406765637560a7f96e94ab37853c0558962"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d8137e2843a4d9ace312984d4d1b8b07998cf19f7a31e2c7e904de2ca9c84a6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a70a3ada3bae9a9b4937c8dadf6051d91e207198f3aa5e67fbe9037a6335a0ee"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5d14d01959f8bc74cfb47cedb20165c1651927e69ca7f14db02f6d54f0db1ae"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"57d94ecf1e4e1b67a0a20e1126764020d74cc51d3a14b0d8b3faf921de4f9ffd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3643ff687baaf09e4fa86f24721b381bb8ec583e4fb1bc9174a893ca376bdfb1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2cda12ade2ec2710b7dca5e054f0e71d75819267a9850f73b253c183b256cf29"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3697f1522e19a638b7ef88b7aaf49350d5b9b08b7c831fcbc85b3c68f84dd986"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24bcc8189b69961073a2a81a26475bc0ac4b4627119c2067a001ba82a978dc0a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa971f3908b5ae3caae6932c3089046cd257419067b36b2cc99e2f6c4ec1a08c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dcb3e35b7ceb6e066202e8b0d09947e3c69a91f2942e781ff30459e207796cd0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b045f06583c9b465f808666ab807bb301b75e163408a0670ffe050a381f461f6"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1de4e8df69f8ea88743a72dc79ebdff0df14ccb12667fe14ae5c33266501ddc5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64478662fa5e1544368a8d37a73d78bfc90ea789fe52460bc2794d70b8e273b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a0307a0e95589e470722eaa1f6edefde899ff9d045423b92eaede73ef396b02"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab8d83539c5ebe567cb6deae98d392d6617f9ea4001a34a9a21fb3f393c0be8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"39086e5ee5a71a4df56a831fd2d1fd8e82871b31aa67af0830bb88c87f6cc844"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9402261beb9f69c029f627cf30e4c76b9500d3e120be15515cb43548cddbb332"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2e03f94d2193524776d150a6b6e2fc501350839dee40877207a0d49f9b3a757"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7cf8a78c4a993aecafcb4fe2b18ecb6ff3aced137586a07de2812771fcf18756"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1498825690ee691422757d83c6c8726aaf69040fa62a3b6b71a03075f0880320"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85f99189d964cdde824a816d83f2290af0a3f7efe42feb1d6495743a90e33e22"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51b1b43cea82b2390281f36b703edc5c551cb1681a5ddaa9f0382443d5e4003b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31a34e2a6bc748cd04856f6e8b6a8ace68a42d4f3a2e95ed7e4936950fe48bd5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16c8f8e8cc3644e75c056c7fd60d997537a8461ed1ab2bceff525d6361d4b7b5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c8973c16c6be2bc7f1e0d490da6f5cb536087b7e5387ca2bd54a66662cc6bfa"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d01f2c3f8a536bb3b07d92023cdd505dec4f279c76b02e56c2d6ad338c71e76"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f974e1ad846804a9701d3be45e0ece78db2ac42a15b08bfcd1536ebc6133b66b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e9a3aa8d64a9b412cc184c494f6a5049a6aae4e12e9137b4d67af570ac2937f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d98c8e77d89b0d91cb70c9e88cbd7bca018bfc706cbdf55efca18d1893339147"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e83b5db31d7befc2ef858b595ee0c6a42bf1ae6563af2884da33f352ca41a5bf"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f434842cce7d532bf998dfe81534abaed32986ec169f167cbd5ee8bb0d20fdcc"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8798b16e95a8865a1b2660fca6b0711b8f88e1143d33a35a5373a2e7700266b8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edf30b53dff4a9bafae21ee36e2814a0157c2370fbf7ea971e8785b0e9e135cd"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad38a316e1017aae219317325cd3c9a1cf5d923a5b05879e1fa0164f9d0e591e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7311f40781c4a26ac5a8f3fef44174b0d55f485970cdc3fdbaa632c5a0d6f7b5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"702d8098564a1eb21ef159cf5213d75e75da8df268ab558a356f7a301d597a02"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa7c290fcd62e8e86d26b7cf2a64add840162c536323efd59e489dca08092aac"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"042b87c4cc118e04765405c3f7a5419fda344e29352f5a0ba0f08da1868f169b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bccce81356347e987f4df71daeffe77ead13ffdccdd6d3a452ac99618e057cdf"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be9457027f0f89dc2a6604c4eef40670154531472e77b8d9999b41ce8e1a1c18"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6839cd2b11b54d5e7bbdfb71ffa67d8dcec74e3f791a1664fc3832eb2f440c5c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"679b51de359ac9930f4d75b04cda3d267b78650b5ecba9a48ea611464a84a9d0"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89f25351c85dad73d26e4813f67e67cff8178a039385ce23b9d06722bc3655c8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d6e2c0dd14700be5e2002b9edd2a10f4b55a7ddc4e3e3f2ab79613b5846ccdd2"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"567a630eac2eb4a5fdfb200c914f9dc7332ee37118d71f47ddd93de655e89fb3"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc4ac52d1511dd99ba2f48268ba15d4d314a3c9a6f3151db6228b6e01c9d21b5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"838b2010786880f56496038c849f4a7733b3617c2db6cf60cfc995c8a57665fe"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b4f9b1d9d14d53a663d0e4c0da743da2054545383b61e4f549397b69aeba425"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d98fb5fb4a405b88811a480b5e94d5cecad4f47782dfc40ef06511f653c38aa"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"094eca1ec814cf330c59d497f12678b4a38e16fcc3f4f9f67627e59813f5b5a8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55b8d11f91a0321b95754e14ca380183240f013ec1f7d371bf52c3b2dfb6276f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91fe9a0443aca117930cbfb892be963559142f39c49aaa493883f3e5eb080839"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5fbadeb779a3430e799cf45e7069a3df5947c4efcf7d8dc3a2c5e79a49fd2ed"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"41b7c01684f50f6adac34a811acf1329ec1b382b21f06c36e1d4eebf9b992d3b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a8510e60ca9d43adfeaebf5c1bd23b14a67310683029db6c5395bfd7588d2d7"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9aafcd3573c03572d9691877bb9ef3b8fe5797d9ba6a9208c4c4a9a82724265c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f218b7fece9ed3c425111d817dcb83ff06e054890116aeb3d7570ec7d46ea02"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8cf2f860f3ee1cb0ea2933b38bf13e3c16a27f80646ebe4ffc0e61dce1efa34"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf30da66d720751710d8104d0e285bad0c5681fd3579197e5041d7422eeb2aef"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a389ecba07dcad6f023475314059884413ed171ebb9984610a06d926db77b9d"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e6a7f4ef76b816c10ead48a14e8804d1438196f182b8e0cbf09501bb8bc500cb"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95740b583969c78c7132f35629806263a32606dcd6d14eefa8ad5abaeaae0af3"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e0a6a76e357f79280fe1ed2631220f5ab2288335a7c53507bfa9e530ecbece13"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e6790f47092b3d0481018c6e93a66886cb82ef8c327b22114f7747d22cd53881"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d747cb8bf3b2da5fa230c9399a44a1f94cdb31b1986f66955af8e9a8aa7e428d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0bbd5d809144b6a655347e54fcbc5cf4cd49c3e43f5fb60e65fd39639f40bcde"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2b1324ed907a0dc38b20300bec482ad41f8ffc13c46141d2b0bdf00d1a6bbe0"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78b54caf5874e5d32c0394d78fe6e29650d22a4fa6efffa9cf6e10a194c72e3c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2a1cce7867e2db58534d9fd918d85e1420dc7ec886f8d0de6982f2167996e05"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"431883146ecf57db7f8d99d4708b86169bcce5d3f1c6f4f39d92e7bfe2d6c0fd"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c192d003e6e7c9edfe525adfb091d9bfa8b97d9ffd5d38c54243f70753f04f5b"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc5daf3a98ac2c5911b684d3bee21c694e7697a7ef0246f3f6ee70cbd99a8d70"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4cdf812b96180605eefe09718b159c5594735bb6f038e91e3ba7540071bcf099"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61d73fba021468a4fecad99bbf2eaa94274a69e82c0fa40e7b61d5d092f78e3d"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df4d5e3a467c99176121dbbec4f166e5b3e6ff722d4c860339eab56179512e45"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47ca31933d3bf32bffcf655d0726b824d611156b63311f9c37b6f676e383630f"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc50fb2ebdf9220c2a4d42ab974248081831577b30612da1341aa1dc61429b53"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46c66bf4504433919b258b1dfa6a056780356a5d19099062dd7bd994e4df86e1"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8173bdf7ef09ced79d6729266de465c6e3f79517ada841101366db2de4bbe515"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"541c060c0c7a7b16c6b9387396696bd0af50348521e6883c05419a9a19c55eab"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f56784fe12ded20cc809b5823a40ee85e7ac0b60f709c1b6009d747789c34023"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"da067b6cf1f66537d1e9ba9c2e20a36e3cbc6b40d51587595890d943db8cf19d"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"944caabbf68e22770eb236e78f38a72fb5abd13557d2d58b8ec2cd61d4050457"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2fc2bc29ffe1d0b834cd30335fce3cd523086195d51c07afc11133677becc1e"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd88422fb1c903d1eda65685437a53bf2d42fd608c2362e42a6b2c3ace4c60e2"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d6489bd31a6ad3aa77817cce95ca251967fe25fcb1b607aacdc041717dc2250"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f19ad2fde6604dbae4837ad357de5438190a9717c67618ac3c7dff8a4318978"},"properties":{"dependency":{"package":"zip","version":"2.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61f1ac411bd05901bacc04a8126953e556a2072d5bfb8da099326858eb820adc"},"properties":{"dependency":{"package":"zip","version":"4.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d74aeba34c20ef883320d58ae3a9ebc2ca37676b56ad245f77891a27afcd5d2d"},"properties":{"dependency":{"package":"tinypool","version":"1.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e73274327a59fde3d7525c32eb900b994ffa4778e21ba83ba71c18747bd32c8"},"properties":{"dependency":{"package":"vitest","version":"2.1.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"src/config/codexProviderPresets.test.ts","line":1}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fdfeac75d8675dcab6346a0e4d0d5ee5308974e253b01765a4ac9e5457d43a2"},"properties":{"dependency":{"package":"aws-lc-sys","version":"0.36.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0042","RUSTSEC-2026-0043","RUSTSEC-2026-0044","RUSTSEC-2026-0045","RUSTSEC-2026-0046","RUSTSEC-2026-0047","RUSTSEC-2026-0048"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c175a98fa00a946cd78c8d8875b0fe68a17c1bb8d3df0720efdd70e0220260e5"},"properties":{"dependency":{"package":"openssl","version":"0.10.75","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0463","RUSTSEC-2026-0473","RUSTSEC-2026-0474","RUSTSEC-2026-0475","RUSTSEC-2026-0476","RUSTSEC-2026-0477","RUSTSEC-2026-0478","RUSTSEC-2026-0479"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be1612ee109837b66e079ef50184ddc22217fd876a928f721a7f0d59dfb8ad28"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0185","RUSTSEC-2026-0338","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7e3d9ac9e75067f10192dd4446afd09ac740a952d0eecd5bd393cfd370bcf71"},"properties":{"dependency":{"package":"rmcp","version":"0.8.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0140","RUSTSEC-2026-0189","RUSTSEC-2026-0462"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2482c67acaa16e8d2ececd30a6b398ac640494fd6727529010870d9140cf8d59"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.9","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-111943","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6809","RUSTSEC-2026-0049","RUSTSEC-2026-0098","RUSTSEC-2026-0099","RUSTSEC-2026-0104","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce9bbfea95fe015374ae86e03b9373fd15c82feee84c4ee070b765207d8d9476"},"properties":{"dependency":{"package":"browserslist","version":"4.25.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbba5450c239e0d42bef0bfdb1e409ba1a11708a974ccdafd416c4a9a7391cac"},"properties":{"dependency":{"package":"browserslist","version":"4.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01fc85053279d115ea033564d5712283763a31a120ba4ad4775e78b10049b1a1"},"properties":{"dependency":{"package":"form-data","version":"4.0.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ea65af982fbfa7ee58dbe3fa40bd975ecb648d209c563eae9269b519d2be2a6"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98f5b7f1cc7ab72c7ef988be1ab835626c9ba93796c264fb44a05726fc7d8dd6"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b10420175f791c4b7e1106592d4e51c7b6ddced3c15d8dccd4db298f5f89f93c"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94c6ff14ea54b382a61d2f966f77a9032450e908372d7ab5d8acd1b161983573"},"properties":{"dependency":{"package":"postcss","version":"8.5.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"549bcf508709afd19b2bed6db704d7a1425c76c084a0453fcd8e812b00abc0f5"},"properties":{"dependency":{"package":"rollup","version":"4.46.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0bf997523edcbfd004b0e48079d2d03fc36b5b8058c165442d7b3299bf52fe16"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"626c52e1ea9ab1ffa97ddd9f1b1070a381649f4a04801e809a9274d1d5df56bf"},"properties":{"dependency":{"package":"vite","version":"5.4.19","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"vite.config.ts","line":2}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e317ac27087206f020a75479f26ad1ba57cd8db4221d2f2abe258dfac874be31"},"properties":{"dependency":{"package":"vite","version":"7.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"vite.config.ts","line":2}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"659b17df3a297d0c761f05e64fbd7a7fec481b8fec3425db0f2590512d5583b5"},"properties":{"dependency":{"package":"ws","version":"8.18.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"af3a18cf730f6276ad50ac81337c95bc6659e9de68697e5d39209e4ecd015b5a"},"properties":{"dependency":{"package":"zod","version":"4.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"src/components/providers/forms/McodeProviderForm.tsx","line":2}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa92114692fa14a8856610f437bb4e3185c169f30a6c12b83b2e7887a75fed16"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95d011b57d1e3acb9049abc1cb9c149ef21609277992fa8ac28493d28f2c6847"},"properties":{"dependency":{"package":"event-listener","version":"5.4.1","advisory":"RUSTSEC-2026-0221","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0230707977ef3cb16171aaf84582740a8a2b166fe235f0c0ce7c3d3c8b5a010e"},"properties":{"dependency":{"package":"fxhash","version":"0.2.1","advisory":"RUSTSEC-2025-0057","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"178a00c6c350113153d2347e49d088d7521918be733d1e48af0c286948b18f0f"},"properties":{"dependency":{"package":"glib","version":"0.18.5","advisory":"[GHSA redacted]","aliases":["RUSTSEC-2024-0429"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f517f532eee860192185b6ef21517080594282777732dc0adc79370bbd7575e7"},"properties":{"dependency":{"package":"h2","version":"0.4.13","advisory":"RUSTSEC-2026-0258","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8470d70bebc1d76d706d4345d4dc0223d2edaf5936c81cd6624c7f247ee7efa"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.28.0","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84b3daf13afa867d48007cab16443a81caced42ece77accae2b60fe3677b21c2"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1722511205bee91e20536963bf3df3c1ee66aefe4ab379f2d0248381ee10270"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a480367025272469acdc05c0efeea27e564b6d640cec55746a2ab403b6da8691"},"properties":{"dependency":{"package":"proc-macro-error","version":"1.0.4","advisory":"RUSTSEC-2024-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c483a4a238364a3de471572bed9d40ec0f29eda22e451e9795e6e514df1b4a2"},"properties":{"dependency":{"package":"quick-xml","version":"0.38.4","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ecad5e885a74c39533ded5d3e644d50cf573b6bb2399bf67466f7a660a46ef2"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd292ed29a65e7832b1abc00d7065c1a4fdb702a1ce25bc153284d6700fad200"},"properties":{"dependency":{"package":"rand","version":"0.7.3","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d39934267c2fbd3fc2275a8006d960d4bb32b5000c400684f71fc264475ece7"},"properties":{"dependency":{"package":"rand","version":"0.8.5","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"312cb234928c2b624a6ee8f2e83e56cfef99002204ffa0b47b3b397203349602"},"properties":{"dependency":{"package":"rand","version":"0.9.2","advisory":"RUSTSEC-2026-0097","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09268fa64b4b651a07a938d4049303ea65f00f13fd20fbc3891fbbccf9a59fee"},"properties":{"dependency":{"package":"rkyv","version":"0.7.46","advisory":"RUSTSEC-2026-0235","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be4a7edbfc020620bb9cdc132f5744189ee7ba2c9cc1cee23332c6e28219cbe4"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5b2ef2cf3c8eabf225138bc21001811e8a7225843389975153af4efe45c215bd"},"properties":{"dependency":{"package":"rustls","version":"0.23.37","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d58c90b4dcd1d2f53d1b60714a03af5bb596c7bda6c893a57b08f0bd2d325e8e"},"properties":{"dependency":{"package":"scc","version":"2.4.0","advisory":"RUSTSEC-2026-0205","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf6b7e6cc4cf06b690c81012c0091a404d1364827177d744b4684c007959ef5a"},"properties":{"dependency":{"package":"serde_with","version":"3.17.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc49677326840d5a66474ad6b84f78ba31d49dc5078cde4e429c5961ff23ae71"},"properties":{"dependency":{"package":"tar","version":"0.4.44","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0067","RUSTSEC-2026-0068"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0fe4e7aad31a24f1aa5fb78590da48acdb4e699a9171df7e7a27e49917547d7a"},"properties":{"dependency":{"package":"tauri","version":"2.10.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46a9a2b1fca1f48d4cb1ae80513408cd7eb1e83ad54d0c7c248276e619e88bcd"},"properties":{"dependency":{"package":"tokio","version":"1.50.0","advisory":"RUSTSEC-2026-0386","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"569c2f035842becb9ea9cb57ad1f7635d5d041c83bd2460920e6e284e05f727d"},"properties":{"dependency":{"package":"unic-char-property","version":"0.9.0","advisory":"RUSTSEC-2025-0081","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a449081d1361349444539d82b9e2924a1cf0768d2cad54b07494d086b714e79"},"properties":{"dependency":{"package":"unic-char-range","version":"0.9.0","advisory":"RUSTSEC-2025-0075","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"714ed351af71a3520ae739001b7a8cdee327d0fd0f7f84732c3c692bf4f677b0"},"properties":{"dependency":{"package":"unic-common","version":"0.9.0","advisory":"RUSTSEC-2025-0080","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a70cc7c05c1bfe85d82c6cea50e2042ace91f9f86ff15d52a2226afd97fcc872"},"properties":{"dependency":{"package":"unic-ucd-ident","version":"0.9.0","advisory":"RUSTSEC-2025-0100","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e780dbfd22a09fe81e062c4169c62087872f0be0ea02ed0b69ce8775599c8190"},"properties":{"dependency":{"package":"unic-ucd-version","version":"0.9.0","advisory":"RUSTSEC-2025-0098","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fc116b222ae23c8dbd16889d7c1035e67c607244d6fb5326e217bd4e3004cd9"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db88ca3768c62a6a2bd1c939467e42a85ba6e3f284d3ea4ecc48c2d9b2f062dc"},"properties":{"dependency":{"package":"webpki-root-certs","version":"1.0.6","advisory":"RUSTSEC-2026-0383","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4ab56c0e623562177bf3fc98f3ad3cc9b6b578418b2fadc757c1412a19ab72f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.6","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9567bff849cf836b7115700e3a3dddea664a56c67cb0464f9f9ee20baf8e27a8"},"properties":{"dependency":{"package":"zbus_names","version":"4.3.1","advisory":"RUSTSEC-2026-0371","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"524b21b534c92c68b75cee706e50fcccdb96590a839a7ca375f076f28b4760ed"},"properties":{"dependency":{"package":"zstd","version":"0.13.3","advisory":"RUSTSEC-2026-0391","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa73c54e765b45a3f2128655416d01dde8df96daa810aa0feb8ded533be262d2"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5873d0ce6dbeeee40bbcea4a80d4eb6bbe9c6cb3879f42905c4c8c03532b5e5"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0396","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6fd61d1e9f2a29998293f475d33704bcade398d414b026902bf20269dd63400c"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a6e08ec5ff49b4687a1558fd23a5be44ccd90eb5d7b2ebe42377ce00167eedf"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74ef70636f15d7ea80f9e754c33a1353b14975487522bc0839096e3c7d7f479b"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e2ae2417fcfe301a84cefa5d8f8ebef81daed9ee197711396febf99a2092c51"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c56f64ce9ffa1320e106eff9b87a871351394dd632bee98d875dc357f52b3d80"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b15b5c0a64ed29abe153c097b6571bd65341d6e488578417af0e4024f9a1a4e7"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5966febf7b83d54d42183f103ad989350f5e5faeeb425bf27950d5e8fbf3a99"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0405","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d1533f8da8988901db52b626008e88cbb214b3e4445c031f56889016e485f9a6"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04bdea8ca51aea49ffd2a715e7c6ae25b8360e1c0c52cfa90e99fa339e4e3a6f"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8daaec8e55daca7612f75049b34412a477cb7b04670a2b5dd1adce6bf992a652"},"properties":{"dependency":{"package":"zstd-sys","version":"2.0.16\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c973a2a1e2def2baa74c34b1214fa43f0b4c321572ef9d3ca9744c9c37554e7"},"properties":{"dependency":{"package":"zvariant","version":"5.10.0","advisory":"RUSTSEC-2026-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7332388d8ca187d371348448c920981c6e045ed3bc3c84ab8d48300e4fab2d1e"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.10.0","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10e7ebf2bc6f092b587e1c5c6554560a1e358ae0c03c4a8acfc1fe5df51e8d09"},"properties":{"dependency":{"package":"@vitest/mocker","version":"2.1.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16bc49aac72eafef4ac9a880a9755121d0367a6bdf3e48689c49c4d9d8c09a58"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.8.31","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ff4501a0b6eb84bb92385b6433ad1c9d658a3cd9dbc3a993388fb9e366aa074"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"932a3bfecc4fdb553659a83b676fe51d69a354f33acdb515911e099d90c2a373"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cab2098e551f88d096756eea896ab201fc72ec0275bddc366f276c5eb947889d"},"properties":{"dependency":{"package":"yaml","version":"2.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"src/components/providers/forms/helpers/yamlNode.ts","line":1}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f392b1419f96aa208ac2115d3c34c2f00540ad0c5381e81423f8727e54319f35"},"properties":{"dependency":{"package":"@babel/core","version":"7.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 704 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 704 of the 873 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/lib/requestOverrides.ts, src-tauri/src/database/dao/universal_providers.rs. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/requestOverrides.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed004e8034f1dcaf808e3aeea2080bd19d1cc9804fd608bdb657c79ca92af7e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/database/dao/universal_providers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bc9353199c6a8f84932f45893db9f975e00e64d118203c5aded1c491a2e728"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: claudeProviderPresets.ts \u2194 metadata.ts: \u0060src/config/claudeProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/metadata.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 81% of the time (57 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 57 shared commits counted here, the most recent 3 are \u0060cd15a164\u0060 feat(provider): add Genesis presets for compatible clients (#9269); \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7ecb84a91fb501d056927209c687d718edb5f162259163abb21c63a2d24350"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: claudeProviderPresets.ts \u2194 index.ts: \u0060src/config/claudeProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/index.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 80% of the time (65 of the 81 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 65 shared commits counted here, the most recent 3 are \u0060cd15a164\u0060 feat(provider): add Genesis presets for compatible clients (#9269); \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a949c9f071af5484580f727397e58df97d9515f867ef14bdf058928dfda708fe"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: codexProviderPresets.ts \u2194 metadata.ts: \u0060src/config/codexProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/metadata.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 69% of the time (48 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 48 shared commits counted here, the most recent 3 are \u0060cd15a164\u0060 feat(provider): add Genesis presets for compatible clients (#9269); \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/codexProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5170a92d32538e19cf4f7d04fcc55eb68af94c79d8539c4e285c16b330a36008"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: codexProviderPresets.ts \u2194 index.ts: \u0060src/config/codexProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/index.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 68% of the time (55 of the 81 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 55 shared commits counted here, the most recent 3 are \u0060cd15a164\u0060 feat(provider): add Genesis presets for compatible clients (#9269); \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/codexProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd34233f9fa5c1d23e0d7c051c181873fc3c1104fd90faba579fa7d1c963dc1"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: opencodeProviderPresets.ts \u2194 metadata.ts: \u0060src/config/opencodeProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/metadata.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 66% of the time (46 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 46 shared commits counted here, the most recent 3 are \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets; \u00605a3330c5\u0060 feat(presets): add EveryAPI sponsor presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/opencodeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"163a0e6ad027ee65ebdec470e46e0556a75e50a70caa16aa3782931a481aa3d6"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: opencodeProviderPresets.ts \u2194 index.ts: \u0060src/config/opencodeProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/index.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 64% of the time (52 of the 81 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 52 shared commits counted here, the most recent 3 are \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets; \u00605a3330c5\u0060 feat(presets): add EveryAPI sponsor presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/opencodeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe718198aaffb716a4d857e345521510735d1005958f3d3c8bf63b1a156a1c35"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: openclawProviderPresets.ts \u2194 metadata.ts: \u0060src/config/openclawProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/metadata.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 61% of the time (43 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 43 shared commits counted here, the most recent 3 are \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets; \u00605a3330c5\u0060 feat(presets): add EveryAPI sponsor presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/openclawProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03aa247f3aaa564f991dbba36f351a7b386f3b06e2b17fd265eb64f610c8f1c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: openclawProviderPresets.ts \u2194 index.ts: \u0060src/config/openclawProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/index.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 58% of the time (47 of the 81 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 47 shared commits counted here, the most recent 3 are \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets; \u00605a3330c5\u0060 feat(presets): add EveryAPI sponsor presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/openclawProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a1f4770de3ed36ce3bd9d79d61e5424096260bbdd9cbf06eeb75016e292c2c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: opencodeProviderPresets.ts \u2194 omo.ts: \u0060src/config/opencodeProviderPresets.ts\u0060 (context config) and \u0060src/types/omo.ts\u0060 (context types) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00600877b9e3\u0060 Upgrade default Claude Opus model to 4.8; \u00601684cb32\u0060 feat(presets): migrate all aggregator and Bedrock presets to Claude O\u2026; \u00606a083cdd\u0060 fix(omo): adapt to oh-my-openagent rename with backward compatibility\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/opencodeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff8e6191bf5666650f1d72211c3ba08cacbed6a5c8815b9f0e8a886ae4c1f9a"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: hermesProviderPresets.ts \u2194 metadata.ts: \u0060src/config/hermesProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/metadata.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 53% of the time (37 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 37 shared commits counted here, the most recent 3 are \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets; \u00605a3330c5\u0060 feat(presets): add EveryAPI sponsor presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/hermesProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cedc3c51f232b0ba2be7b582a2c02fbc1b32deddabf7086ada3b20de7472875"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: claudeDesktopProviderPresets.ts \u2194 metadata.ts: \u0060src/config/claudeDesktopProviderPresets.ts\u0060 (context config) and \u0060src/icons/extracted/metadata.ts\u0060 (context icons) sit in DIFFERENT parts of the tree yet change together 53% of the time (37 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 37 shared commits counted here, the most recent 3 are \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u006095e29485\u0060 feat(presets): add ClinePass presets; \u00605a3330c5\u0060 feat(presets): add EveryAPI sponsor presets \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeDesktopProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"548b4cbcfcf867cc9a13725d84740d3ea3f8b6e71b5fc56765d8facf106c1353"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: claudeProviderPresets.ts \u2194 presetSearchAliases.ts: \u0060src/config/claudeProviderPresets.ts\u0060 and \u0060src/config/presetSearchAliases.ts\u0060 change together 100% of the time (10 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060b9fd5d99\u0060 feat(presets): move Mistral AI to Large 4 and unhide it; \u00605c8f4e2e\u0060 feat(presets): add OpenAI API key presets; \u0060645f8fa1\u0060 feat(presets): add Astron MaaS pay-as-you-go preset for Claude Code \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d79bb6ed4c02e374ffbdc3baba19859df0337193646e26e6428d6705e8dda20"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ModelStatsTable.tsx \u2192 usage_stats.rs, ProviderStatsTable.tsx, RequestLogTable.tsx: \u0060src/components/usage/ModelStatsTable.tsx\u0060 changes together with 3 other files \u2014 \u0060src-tauri/src/services/usage_stats.rs\u0060, \u0060src/components/usage/ProviderStatsTable.tsx\u0060, \u0060src/components/usage/RequestLogTable.tsx\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelStatsTable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"832c8ba97626c7c9f279514339daf7858f70798308ffdf8f70c4fd49dd0390e5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ClaudeStackModelsField.tsx \u2194 CodexFormFields.tsx: \u0060src/components/providers/forms/ClaudeStackModelsField.tsx\u0060 and \u0060src/components/providers/forms/CodexFormFields.tsx\u0060 change together 90% of the time (9 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060644b7d5c\u0060 feat(forms): show model parameters in the picker and fill picks quietly; \u0060f7244745\u0060 feat(forms): pick fetched models in a dialog that can also remove them; \u0060e615a6f4\u0060 refactor(forms): make provider form hints follow the app\u0027s actual mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeStackModelsField.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18f4f26a443975c75b922948d4217b8d0f790eac0c955e5f86f0f165ff451b4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ProviderStatsTable.tsx \u2194 RequestLogTable.tsx: \u0060src/components/usage/ProviderStatsTable.tsx\u0060 and \u0060src/components/usage/RequestLogTable.tsx\u0060 change together 85% of the time (11 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060cb3c9fef\u0060 fix(usage): left-align every usage table column and rebalance request\u2026; \u0060a0dd3b39\u0060 feat(usage): show first-token time in stats and estimate it without r\u2026; \u0060dd07b8f4\u0060 fix(usage): show localized names for session-log usage providers \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ProviderStatsTable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"004065708baba4bbb77624e0b98dde3e246ba960c615c4f812c1ff2af3ddb29b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: codexProviderPresets.ts \u2192 claudeDesktopProviderPresets.ts, geminiProviderPresets.ts, hermesProviderPresets.ts, openclawProviderPresets.ts, opencodeProviderPresets.ts, piProviderPresets.ts, presetSearchAliases.ts: \u0060src/config/codexProviderPresets.ts\u0060 changes together with 7 other files \u2014 \u0060src/config/claudeDesktopProviderPresets.ts\u0060, \u0060src/config/geminiProviderPresets.ts\u0060, \u0060src/config/hermesProviderPresets.ts\u0060, \u0060src/config/openclawProviderPresets.ts\u0060, \u0060src/config/opencodeProviderPresets.ts\u0060, \u0060src/config/piProviderPresets.ts\u0060, \u0060src/config/presetSearchAliases.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 7 separate couplings, not 7 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 7."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/codexProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6313b961a0a7a1d01463e36fadaa20f49f440f5013bcb9641f6cc2162f8e8f48"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: settings.rs \u2192 CodexAuthSettings.tsx, GeneralSection.tsx, useSettingsForm.ts, index.ts: \u0060src-tauri/src/settings.rs\u0060 changes together with 4 other files \u2014 \u0060src/components/settings/CodexAuthSettings.tsx\u0060, \u0060src/components/settings/sections/GeneralSection.tsx\u0060, \u0060src/hooks/useSettingsForm.ts\u0060, \u0060src/i18n/index.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/settings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0c1ed286aca9a73275e38cdcf10061afd52abac3e17ea9efe09cc459374b34"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: types.ts \u2192 CodexAuthSettings.tsx, GeneralSection.tsx, index.ts: \u0060src/types.ts\u0060 changes together with 3 other files \u2014 \u0060src/components/settings/CodexAuthSettings.tsx\u0060, \u0060src/components/settings/sections/GeneralSection.tsx\u0060, \u0060src/i18n/index.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25acd89a267b802dcc24c56a374775bee72e14e07a940453ee691181860971e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: openclawProviderPresets.ts \u2192 claudeDesktopProviderPresets.ts, geminiProviderPresets.ts, hermesProviderPresets.ts, opencodeProviderPresets.ts, piProviderPresets.ts, presetSearchAliases.ts: \u0060src/config/openclawProviderPresets.ts\u0060 changes together with 6 other files \u2014 \u0060src/config/claudeDesktopProviderPresets.ts\u0060, \u0060src/config/geminiProviderPresets.ts\u0060, \u0060src/config/hermesProviderPresets.ts\u0060, \u0060src/config/opencodeProviderPresets.ts\u0060, \u0060src/config/piProviderPresets.ts\u0060, \u0060src/config/presetSearchAliases.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/openclawProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd0c9ab4d10db66c8e7d03b535c2031fce6dedb7f4a88ff8d61ce4d00ec44a8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: claudeProviderPresets.ts \u2194 geminiProviderPresets.ts: \u0060src/config/claudeProviderPresets.ts\u0060 and \u0060src/config/geminiProviderPresets.ts\u0060 change together 79% of the time (38 of the 48 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 38 shared commits counted here, the most recent 3 are \u00603494d0d1\u0060 chore(presets): add V-API backup endpoints; \u0060eb69e492\u0060 feat(presets): add XycAi partner preset across all seven apps; \u006030409878\u0060 chore(presets): add PackyCode backup endpoints \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f58adc17c9db168cc245ba7ddfa4589786006fe4322b5b83d2e40999a9ab439"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: hermesProviderPresets.ts \u2192 opencodeProviderPresets.ts, piProviderPresets.ts, presetSearchAliases.ts: \u0060src/config/hermesProviderPresets.ts\u0060 changes together with 3 other files \u2014 \u0060src/config/opencodeProviderPresets.ts\u0060, \u0060src/config/piProviderPresets.ts\u0060, \u0060src/config/presetSearchAliases.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/hermesProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56af0a3c76dce38f6e8670fd819b2210dfc7f1bb803ff36785efd73c9c45af16"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: lib.rs \u2192 index.ts, subscription.ts, usage.ts, vite-env.d.ts: \u0060src-tauri/src/lib.rs\u0060 changes together with 4 other files \u2014 \u0060src/lib/api/index.ts\u0060, \u0060src/lib/api/subscription.ts\u0060, \u0060src/lib/api/usage.ts\u0060, \u0060src/vite-env.d.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c9e147cd396b013ff54f2fa60d95dd51faa5323856bef8ff99af1ba54b0b8d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: claudeDesktopProviderPresets.ts \u2192 hermesProviderPresets.ts, opencodeProviderPresets.ts, piProviderPresets.ts, presetSearchAliases.ts: \u0060src/config/claudeDesktopProviderPresets.ts\u0060 changes together with 4 other files \u2014 \u0060src/config/hermesProviderPresets.ts\u0060, \u0060src/config/opencodeProviderPresets.ts\u0060, \u0060src/config/piProviderPresets.ts\u0060, \u0060src/config/presetSearchAliases.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeDesktopProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec3c34a15bdcee0d7d5256fa697364ab7ac7633c0d4f3d4ff1c151f031cf2f1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: opencodeProviderPresets.ts \u2194 piProviderPresets.ts: \u0060src/config/opencodeProviderPresets.ts\u0060 and \u0060src/config/piProviderPresets.ts\u0060 change together 70% of the time (30 of the 43 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 30 shared commits counted here, the most recent 3 are \u00600103f4c8\u0060 chore(presets): move Qwen pay-as-you-go and Token Plan to the new Maa\u2026; \u00609433caab\u0060 feat(presets): add OspreyAI as a sponsor; \u0060ebdedbee\u0060 feat(presets): add ccswitch channel tracking to StreamLake API key links \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/opencodeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce8b7746219e8b56af7fc144b12bde905f655634669bfeed1e5c4755a690f7e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: provider.rs \u2194 vite-env.d.ts: \u0060src-tauri/src/commands/provider.rs\u0060 and \u0060src/vite-env.d.ts\u0060 change together 70% of the time (23 of the 33 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u00609eb991d0\u0060 feat(ui): add drag-and-drop sorting for provider list (#126) (at that commit the file was still \u0060src-tauri/src/commands.rs\u0060); \u00603b6048b1\u0060 feat(config): migrate app_config_dir to Tauri Store for independent m\u2026 (at that commit the file was still \u0060src-tauri/src/commands.rs\u0060); \u00603e4df2c9\u0060 feat: add provider usage query with JavaScript scripting support (#101) (at that commit the file was still \u0060src-tauri/src/commands.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f898efd1f237b921d5d44021a3731c1ba94e8f9b910ba39b6b128dcd6cfb5a65"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: coding_plan.rs \u2194 codingPlanProviders.ts: \u0060src-tauri/src/services/coding_plan.rs\u0060 and \u0060src/config/codingPlanProviders.ts\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00606837f361\u0060 fix(claude-desktop): use the documented OpenCode Go base URL (#8720); \u0060793e67d9\u0060 feat(provider): add Command Code presets and quota support (#7358); \u0060270a4ff3\u0060 feat(usage): add OpenCode Go subscription usage query via token plan \u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4bec24c1ae56e97690324439c1bd8029af8aaf37c434c616a2d2fb673014b4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: misc.rs \u2194 OpenTerminalDialog.tsx: \u0060src-tauri/src/commands/misc.rs\u0060 and \u0060src/components/providers/OpenTerminalDialog.tsx\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006089409412\u0060 feat(terminal): open a Grok Build terminal for the current provider (\u2026; \u0060ebb00da1\u0060 feat(terminal): let users append extra arguments when opening a terminal; \u00606776bc06\u0060 feat(terminal): open a Codex terminal from a provider card \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/misc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3636a86c776f27497ec9e5bba837b54b80438467b7def60bd964886ef66cf3db"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: geminiProviderPresets.ts \u2194 opencodeProviderPresets.ts: \u0060src/config/geminiProviderPresets.ts\u0060 and \u0060src/config/opencodeProviderPresets.ts\u0060 change together 62% of the time (30 of the 48 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 30 shared commits counted here, the most recent 3 are \u0060eb69e492\u0060 feat(presets): add XycAi partner preset across all seven apps; \u00607f028632\u0060 feat(presets): restore SudoCode.us to coexist with SudoCode.chat sponsor; \u0060618723b4\u0060 feat(presets): promote SudoCode to paid sponsor across six clients \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/geminiProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba4338d8bac9aeeac807a91b96c7e5085361ce6c5d5be26a6d969238b4e70ac"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: session_usage_gemini.rs \u2194 session_usage_opencode.rs: \u0060src-tauri/src/services/session_usage_gemini.rs\u0060 and \u0060src-tauri/src/services/session_usage_opencode.rs\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00600b274ec3\u0060 fix(usage): dedupe Codex request model aliases (#7643); \u0060533055bb\u0060 fix(usage): bill Claude 1-hour cache writes at the 1h rate (#7653); \u0060bcee61be\u0060 perf(usage): incremental byte-cursor scan for Claude session logs \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_gemini.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"643c1c04f686285c0666745add6e497de89dd906153a411080e3afa1e4e1e252"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: settings.rs \u2194 CodexAuthSettings.tsx: \u0060src-tauri/src/commands/settings.rs\u0060 and \u0060src/components/settings/CodexAuthSettings.tsx\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060b0e452ff\u0060 feat(codex): turn quota protection on by default and add a pause for \u2026; \u00602c5e5d2c\u0060 feat(codex): keep moving official sessions into the shared bucket whi\u2026; \u00608641cd1d\u0060 feat(codex): read compressed session rollouts and add a compression t\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/settings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4b140d86232602e973fbf39889e6f80b807df4a3ee6bb8ba1f5a58c95ef730"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: DeepLinkImportDialog.tsx \u2192 parser.rs, provider.rs, tests.rs: \u0060src/components/DeepLinkImportDialog.tsx\u0060 changes together with 3 other files \u2014 \u0060src-tauri/src/deeplink/parser.rs\u0060, \u0060src-tauri/src/deeplink/provider.rs\u0060, \u0060src-tauri/src/deeplink/tests.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fec9ce000301b6879a59a043a4b7b6f8fe93cb95b6dc22710f1c395ae2b628"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: App.tsx \u2192 FullScreenPanel.tsx, PromptFormPanel.tsx, index.ts: \u0060src/App.tsx\u0060 changes together with 3 other files \u2014 \u0060src/components/common/FullScreenPanel.tsx\u0060, \u0060src/components/prompts/PromptFormPanel.tsx\u0060, \u0060src/lib/api/index.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1652aa61b1b75e33134b236ddf2bc57e4130160fbff9212ff10db5501db2a4bf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CodexFormFields.tsx \u2194 useCodexConfigState.ts: \u0060src/components/providers/forms/CodexFormFields.tsx\u0060 and \u0060src/components/providers/forms/hooks/useCodexConfigState.ts\u0060 change together 55% of the time (11 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006062688ab3\u0060 feat(codex): let a card keep the official Fast speed tier on GPT rows; \u0060a9e607c3\u0060 feat(codex): add sub-agent concurrency limit field to the provider fo\u2026; \u0060e70e844c\u0060 feat(codex): let Auto Review use another model \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db40d5a4b2dc0b33b6fd86924063a959323da12333fd2949c804547685d7c26"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PricingConfigPanel.tsx \u2194 RequestLogTable.tsx: \u0060src/components/usage/PricingConfigPanel.tsx\u0060 and \u0060src/components/usage/RequestLogTable.tsx\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060cb3c9fef\u0060 fix(usage): left-align every usage table column and rebalance request\u2026; \u0060ebd9357c\u0060 feat(usage): paginate the request log, provider, model and pricing ta\u2026; \u00606d077f2a\u0060 Revert \u0022feat(usage): paginate the request log, provider, model and pr\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b9a3997850ce6bd3e387f7539c2d87bcb80ffb40e4a7d775a8d14eb2208190"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: usage_stats.rs \u2194 ProviderStatsTable.tsx: \u0060src-tauri/src/services/usage_stats.rs\u0060 and \u0060src/components/usage/ProviderStatsTable.tsx\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060a0dd3b39\u0060 feat(usage): show first-token time in stats and estimate it without r\u2026; \u0060a0be6456\u0060 fix(usage): keep provider stats rows distinct across apps (#8032); \u0060c615c3ee\u0060 feat(usage): show success rate and speed in model stats \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/usage_stats.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd31bbd7f64a530fb084c87ca2b832fcc4adc316aed77eb2c254d60acc8b5d9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: claude_mcp.rs \u2194 codex.rs: \u0060src-tauri/src/claude_mcp.rs\u0060 and \u0060src-tauri/src/mcp/codex.rs\u0060 change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006067bd8f5c\u0060 fix(mcp): correct Codex MCP configuration format to [mcp_servers] (at that commit the file was still \u0060src-tauri/src/mcp.rs\u0060); \u0060bfc27349\u0060 feat(mcp): add SSE (Server-Sent Events) transport type support (at that commit the file was still \u0060src-tauri/src/mcp.rs\u0060); \u0060c985db8f\u0060 feat(mcp): implement unified MCP management for v3.7.0 (at that commit the file was still \u0060src-tauri/src/mcp.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/claude_mcp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1171c9af929daa0ceaa3a0022fe130cdc61ecfcaa3d54ec3f51659f6dc7fffe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: usage.rs \u2194 usage.ts: \u0060src-tauri/src/commands/usage.rs\u0060 and \u0060src/lib/query/usage.ts\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00605d24fdf9\u0060 feat(usage): show all history in the all-time heatmap; \u006031e5ae3f\u0060 feat(sessions): show total tokens and API-price cost in the reader he\u2026; \u0060a75f4795\u0060 feat(usage): lift provider/model filters to dashboard-wide scope \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/usage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae3e00f7cc56bb182d2b8db86056fcfb1696da1e3b3652db7906df69e0ef4b2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HermesFormFields.tsx \u2194 OpenClawFormFields.tsx: \u0060src/components/providers/forms/HermesFormFields.tsx\u0060 and \u0060src/components/providers/forms/OpenClawFormFields.tsx\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ab5d4a12\u0060 fix(ui): trim redundant provider and settings helper copy (#8633); \u00608d7a7415\u0060 fix(models): cap only borrowed GPT windows and warn on oversized entries; \u0060e675d586\u0060 refactor(providers): share models.dev query options and committable refs \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8e4d2f2857dc567c5e3884f6b09f61f8b07daf0e33d534ee3da3ce10cc5467"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: tray.rs \u2194 GeneralSection.tsx: \u0060src-tauri/src/tray.rs\u0060 and \u0060src/components/settings/sections/GeneralSection.tsx\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006051a96e24\u0060 feat(i18n): add German as an eighth UI language; \u0060cdca0984\u0060 feat(i18n): add Russian community localization (#7788); \u0060752998a6\u0060 feat(tray): add a setting to switch between the tray panel and the na\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/tray.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1534f5ceb758b6fd5fd4895b39b85cc451502a22b4e2f210572b1bccc5a429bc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ProviderCard.tsx \u2194 subscription.ts: \u0060src/components/providers/ProviderCard.tsx\u0060 and \u0060src/lib/api/subscription.ts\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006088c878ac\u0060 feat(claude): show the subscription plan on official cards; \u00600d6386ed\u0060 feat(claude): show each bound account\u0027s quota on its card; \u006015d5dbe0\u0060 feat: add Grok official subscription quota query \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecf079c1dcfbd8af62455cd859b98b9b3e004e7f078632a7e43ace6c41c7f92"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SubscriptionQuotaFooter.tsx \u2194 subscription.ts: \u0060src/components/SubscriptionQuotaFooter.tsx\u0060 and \u0060src/lib/api/subscription.ts\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00600d6386ed\u0060 feat(claude): show each bound account\u0027s quota on its card; \u006015d5dbe0\u0060 feat: add Grok official subscription quota query; \u0060c4630b5c\u0060 feat(providers): add Volcengine Ark usage query with AK/SK signing \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16870d73be15b08a9f65c004c70e4ecf405567cbf6de7f41d1406f95ca2772b9"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6eb5a94052c328a9f9d4f3228923a5f2d4d56700f96d3ddbb1b358415402983"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.95: rust-toolchain.toml declares Rust 1.95 as this project\u0027s toolchain file, and Rust 1.95, superseded by 1.96 on 2026-05-28 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-28 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde701f9c40b0b8cb202babf3f8d8da48dda44162595030f1b0a8f7d57710684"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c905c879d05c1e794e6bdc09270a887b2e7a91656e4ba79eeeadc41516584346"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9b95fa5e0f25f97ac8a2b297e73eabc56ce3705ccade5b19edc1fcf3864f4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ead148c74043ac44c3548544d7a0ccb88f318d1bcc38d3d9c4005779c9d3e4"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb70b439d9318a1d7c9ade2770dff58699e3ed166607ccff2597699a1e7cf5ac"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d1261df5a8f9a87c596488e228e7f2f91ea26b45172cb37651c0bb18636ff9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/McpConfirmation.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0700138c1e3e379debebde3494fb16c2ee4e1c2c11734c5bbf55d09a16d898"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/McpConfirmation.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"74963de0ec2bbd639eac452604dcdcd72d0aa3c162418bfe70c61b0d93b759b6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/PromptConfirmation.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1780cedecbdb30b6100662007e2002ae53c4b71c60240a6fcbe05cdd0479dd58"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/PromptConfirmation.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a31b9d1da2ab2e9bcc2b38d3007a83b249eb8e093c2ece2284449a24fb8c8ab"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/PromptConfirmation.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a0cfa846e4a88e5bda8a860855bfb09c27cf60fd0cf473ec9d984e54289e53"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/PromptConfirmation.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e47dc694efb7a9ddd2e0437e6ca3dcf7c00799cdf647ace7b8f4fdd05fa2dae"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/SkillConfirmation.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fbf74db131b6f429384ce04e638a166af42a13474a6234ea9fdaa7701fd963"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/SkillConfirmation.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1968b648b891fbd68d642ef08b98eca3bfe78df124b074385239cfab6d6973f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/deeplink/SkillConfirmation.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72a9488765fdbcf08e91d92a0f4f6947ffac094583f20bf9fcd7de809316fab"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"366c96a0e22fa67ff4ec5d69bf94da2b6d5a06ef16bd36721fc133e1ae5e0774"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e5543741b8cb6f3cfcddac3e7f0aec46d1e984fb8b94ddc83df22fafcac5c3"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/ToolsPanel.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee03cba7bb2b3fa95d9027359a1adebfa22cf9ee7217cecf6c78785177018ac8"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9dc4c3498524808dc022fa874f2c87948c2924984581f9c2f1c7dbda20201c"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef6f3655d6466436c956121e4875c661ff11f88ba0ea7d9d335d837a90ad352"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This select is named only by the placeholder of its value part. Nothing is typed into a select, so the placeholder does not vanish on input: it is shown as the trigger\u0027s text until a value is chosen, and then the chosen value replaces it \u2014 so at no point does the control state what the choice is for, and the trigger\u0027s role (combobox) takes its name from the author, not from that text. Name it: an aria-label on the trigger, or an id on the trigger with a \u003Clabel htmlFor\u003E pointing at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"82db6ec2444f78fee3e99429a082cd40e380cde77a4d74ad618af97261ace354"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec9b533bf5813088ae6990c36525c74a017ba912352f5d8e01c203e052820c8"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This select is named only by the placeholder of its value part. Nothing is typed into a select, so the placeholder does not vanish on input: it is shown as the trigger\u0027s text until a value is chosen, and then the chosen value replaces it \u2014 so at no point does the control state what the choice is for, and the trigger\u0027s role (combobox) takes its name from the author, not from that text. Name it: an aria-label on the trigger, or an id on the trigger with a \u003Clabel htmlFor\u003E pointing at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"240fd2a69848353a76535735bb5d62a09989be4b9302015605b43631fe5ab108"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"24387919835c021d5c2207c93f078ecab97f600e188086a693660534567a1bda"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/EndpointSpeedTest.tsx"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"5445d617598c8f10c2b2319e26a90c55c83bf798412cfb314c82e93adac79747"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61b51067f7b8166eb79cf28ee0506730737cffb1e15449d1bc0c4ff83e96591"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/LocalProxyRequestOverridesField.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22a5e3a301688e584f53c7788ba2807247cb0a87d5b9c2e0bd45aea5275744c"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/LocalProxyRequestOverridesField.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d187e763b503fa3409fa524c2e60aaa2b0b2a0042bff902af50f376e4ecd0689"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cd2192560920b9a56e0e7ab2aacdd05629fa43a3648c9927c3e9fc3ca8eff0"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7f8d1d1bed4f84013b83d88ebbbbd0084377c7ab23f1edc9732a217698de86"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CFolderInput\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e80d0925e6f0627344d121a62f04d899be6c5900e8cc59b24c8f9a2c0ce278"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1ac20b6eae72c5a92e3d9e0052b46d10e35124db9c2fac6f8f2fd41c15ca53"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd9f3247fa2d8537cc72af412e14b7a9905d2aaa55676ae1f8167ccf1a27358"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f4cc6454614b7e849437806944bbc41559ac767be339f833300d105b4562ef"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This select is named only by the placeholder of its value part. Nothing is typed into a select, so the placeholder does not vanish on input: it is shown as the trigger\u0027s text until a value is chosen, and then the chosen value replaces it \u2014 so at no point does the control state what the choice is for, and the trigger\u0027s role (combobox) takes its name from the author, not from that text. Name it: an aria-label on the trigger, or an id on the trigger with a \u003Clabel htmlFor\u003E pointing at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb4e8df64b7474f6e74a8c0576c7574a5c9ef967f16ccf046ede1cdc4b4c0c1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a13be6f8d2ec097daa9fe4bcbd48bf36bf6b98bff9998824426e5cb60030d9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSettingsSheet.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9918761c10b4c077e65f612b797912a55f487855dc2313abab8cb86d47519fd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSubagentFields.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad18d4c6f8d5ea600f9912a652c66be1b667a3fce842b5b8e773018ca3a20d72"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSubagentFields.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f89330c6658c2046143c7af21e059e5e1f5c795ad8867abdbe0cb1db8a271c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb445a06338255f61671cfaab6a805308c3a762ca7f60b7c05ab41c02842f82"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f68b8212b0613ffd6c10bc268e425f6fc5b360814e952ca1d5b3f8e8f25292"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"063a64b066767cc9f3bde62ea919c148a3954e73a897040e1b1f5883eeb34cd4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"51de759d6f45a3799c534a6e04ee4a9462988181905f172eb7d6252c3a4064a3"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac29eb1a4d8060848affaa875cfe25e123e8a8562634e9e120e2118ed007d96"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"867293e8754ec474ce15a228ef863d01072b903d2188ffc803336f27813fa509"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"843589a3d3320bf972baebe63ddab5e92d2adc552ba5e440a6dd650b71459d65"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bf626b855e3fee2978b47ca54889ad6ce2917a0118505a6664bc35353125ae"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"340ba233da6124f0403838c7e544ce5ae312dff5d162fa714a30b345c334680a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"0273d3b2db500a70589f5c4c78052ac767553c02db2a564546164064dd4c9fec"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d84297aed4941912f6b9c00b11207c1445f22c7aff0b3f97c76c484d526ea0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fa8f59d10403a19c54f5a00d96e98661ce864a60e58682259bb07f489c457d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9e10bc307e1b30039b360cd0456308fb5965d1c311e14b52a062476082d0da"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8124bc45afb0df1bfecdb5d1d890ac13f24b7d65169d66d45ee22dcae4d3f92"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c629677f3ad714cabdf8e06ae56330834d19a6fa5ad2e79e9b2f52a39eced7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fd5de65eb6631ebc4b1b8a7fca600f8ee6ba354198818da1f19155d729c2d8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a618c00d755b3f1400c2d6a5517d11b5e60089129a2413221dd39a19e3b969c0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"f488f9312ff6cfe0b1133de425b82c5943d6b464b9d20007815fdcdf7896c250"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17244c87c6ebcef8744d804b91e3550717a7c7ed5e77c0418e3212af8a7b368"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c645fe15ce5d4ab9dc9ec0c71c91abf3f58e29a1aff6aafffbf9f18a8d053a18"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a7b95882fc025fd991ba7cbcdacc3cccc38483e11f7f5540abd19d2d3fc8a0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4776cd5cf2a19c0ad8c2e3c38b47c43127b73b641dc3b722c0548fa920e4398"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1601df33d0c2b8010fa1827ef7c327ef7ba15ca47ff9eecd32809196827a00"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ef19689a1192cb14d048d8910ef6795b131bebe11776aa50894d0cc5ba6cac"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74c2d4cbca4e1b23e351d015fac9e04c43d052c2771d0ab01491bfff756d29a"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevPickerDialog.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"faba12108c73c6e1e230406c0445470ed85cf5657e52afd2f2c85010429086bb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd99eba9ebfcbcc49b6a187d2200f5f855ce95acf4f877cce31e7246e96fb63c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h2 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51bfec266575979de45174e1fe29471c56683d8511c98bf76106999adf4d5e7"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/EndpointSpeedTest.tsx"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"832b3c1996714247805dea84c0a8e27f77f9fa2352865607addc8b1d7bcd433a"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb87b0661d249e23a2a9529e751616bef13adc742be860cdc3d55530a26a616f"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5f7627ef3fe02ca9c006a942c3934983cf8d28c575e7a8055562ba4eb9e981"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022button\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022button\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022button\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevPickerDialog.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6326048961730a6cd36657b32eead908c7bdbb2d8df16e351d0de1515558de0d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ctr\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7abeda80d7ad87ca74d5a872376b0d65d6fb43f6696617988f2e987f03bb751"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDateRangePicker.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4699bd92bf7d5ff7d98ec69cfd4a107d2ad30663c28a0ad29b1ce4efdbca56d9"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"634b2b34df4454886e9058f36a9dca1cffefc5eb7dfb57d6b464f1b643bf3d45"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHero.tsx"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8625aec3a9ec44ad0c005e2459000bdc1363f2be86b8860d91c3963c0ce4074b"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cp\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2dd82da3d16fe9bed4ba86aa0384b0268c7c79e4d82f77028d0bda8b0f3a42"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a \u003Cdiv\u003E nested inside \u003Cbutton\u003E: This \u003Cdiv\u003E carries its own click handler, but it sits inside a \u003Cbutton\u003E that performs a different action. A keyboard user reaches the \u003Cbutton\u003E and activating it runs the \u003Cbutton\u003E\u0027s handler, never this one, so this action has no keyboard path at all. Role and tabindex cannot supply one: HTML forbids a \u003Cbutton\u003E from containing interactive content or any descendant with a tabindex, so the browser will not put this element in the tab order however it is marked up. Move it out of the \u003Cbutton\u003E and make it a sibling \u003Cbutton\u003E, so each action has its own control."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf51488b5f080aa6a9e9dfdfca7948afb1b60e692e6fcb6278dabb05a80e9a7"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a \u003Cdiv\u003E nested inside \u003Cbutton\u003E: This \u003Cdiv\u003E carries its own click handler, but it sits inside a \u003Cbutton\u003E that performs a different action. A keyboard user reaches the \u003Cbutton\u003E and activating it runs the \u003Cbutton\u003E\u0027s handler, never this one, so this action has no keyboard path at all. Role and tabindex cannot supply one: HTML forbids a \u003Cbutton\u003E from containing interactive content or any descendant with a tabindex, so the browser will not put this element in the tab order however it is marked up. Move it out of the \u003Cbutton\u003E and make it a sibling \u003Cbutton\u003E, so each action has its own control."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc35e0c997f9dd3316561ff49ed10d6cbd6d2395c66b625734e529c719cdc70"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cp\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/WorkspaceFilesPanel.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5836b201641a4bf65810db03718fde5894c781cc3a528354676d2d994ee9a928"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.toast\u0060 moves (\u0060animation: tin 200ms cubic-bezier(.4, 0, .2, 1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"721a3f3b87720afb2a7b9629d50cc39a32112fe61679d5a75d07a3f5b92723aa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.6:1): \u0060.btn.solid\u0060 sets color: #ffffff on background-color: #ea580c \u2014 3.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deplink.html"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aaf6630cbb1c1a398d0f651d561a90f407149c3b56f46f25fd89d738171356a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc737176d0e79e51bcf277b4b85e9683f2999283e2e22f8a5e66c5ff1ba8aae"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-spin\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderPanel.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4191c7874793f2faecfb2a397fd18f288c83597e0990e7daf729d2fcb951fa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/TablePagination.tsx"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"600af8b4904a67235cd13ac0e130880158620f0eb102702760ee42e6aed24be0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bad258fe787441ccedace63d62690ecd76ad83c23f8121011932b170e91a502"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060html:not([data-keyboard]) :is(*:not(input, textarea, select, [contenteditable=\u0022true\u0022])):focus-visible\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/index.css"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e321915d7c5b325ef80750980ae29f06a767b9968a4fc82813fbc27b4c31900"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ui-checkbox::before\u0060 moves (\u0060transition: transform 120ms ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/index.css"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ada66f9ce2310961b2bbfc617d0a9fa15f78ed389eae7ed243b77521b5bb07"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pi-thinking-popover[data-state=\u0022open\u0022]\u0060 moves (\u0060animation: pi-thinking-popover-in 260ms cubic-bezier(0.16, 1, 0.3, 1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/index.css"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"4904a7ec00b5f74231a32891885c4550bc8ab625fb5bb746a22857d4d7944d37"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pi-thinking-popover[data-state=\u0022closed\u0022]\u0060 moves (\u0060animation: pi-thinking-popover-out 150ms cubic-bezier(0.4, 0, 1, 1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/index.css"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bac27ab2c06454878ce877142b00843387f4e54d3eb91af508698f877c97e1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060html[data-layout=\u0022floating\u0022] .tp-sub[data-side=\u0022right\u0022]\u0060 moves (\u0060animation: tp-sub-in-right 140ms ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/tray-panel.css"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ab3ed3078267f7330248cf4b6a526cb9889941441248ee498ef1de9200e676"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060html[data-layout=\u0022floating\u0022] .tp-sub[data-side=\u0022left\u0022]\u0060 moves (\u0060animation: tp-sub-in-left 140ms ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/tray-panel.css"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e204476c3e250fc5619b28c08d70eed02237052ea585796baebd6771e8a9d93"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060row.animate()\u0060 moves (\u0060Web Animations API keyframes\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66a8cfffbfb9a4c5f937259cacc828b10100070b0c015836a685429a4156803"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 15 sibling directories (63 clone groups): 63 duplicated blocks under src/components/ have copies in at least two of the sibling directories apps, hermes, mcp, openclaw, profiles, prompts (\u002B9 more sibling(s) not listed) \u2014 30 of them are reported below, and 33 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 63 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 63 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 63 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fcdf8c0b8d16a553c3dc0308da1ce8d82ad1cdbd743f7cd94c4fb2316b3530"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (15 clone groups): 15 duplicated blocks under src/ have copies in at least two of the sibling directories components, config, hooks, lib, tray-panel, utils \u2014 8 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/appConfig.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7619708069058bd97ec178cca024a1926a5077347c87844688f9a62749ba868"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (343 matched lines \u00D7 2 locations): src/components/providers/forms/KimiProviderForm.tsx:98 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:57 \u2014 the two spans are one implementation copied and then locally edited \u2014 1786 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fb361324fec0178b8f79c1b3c5c1528125a2ab0da5fbb3934a7dedcec14560"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (331 matched lines \u00D7 2 locations): src/components/providers/forms/HermesFormFields.tsx:36 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 1753 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"342b2f4b88335de19c67f01cdea03629add1a74bf7b0e19dab0aa19dea1ba368"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (178 matched lines \u00D7 2 locations): src/components/usage/ModelsDevAutoSyncPanel.tsx:105 \u00B7 src/components/usage/ModelsDevPickerDialog.tsx:73 \u2014 the two spans are one implementation copied and then locally edited \u2014 990 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8db2adb9998b86c1b1c89ae31f64da6c3b2c0b205b9adf93bc151107b1620ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (165 matched lines \u00D7 2 locations): src/components/providers/forms/CodexOAuthSection.tsx:133 \u00B7 src/components/providers/forms/CopilotAuthSection.tsx:121 \u2014 the two spans are one implementation copied and then locally edited \u2014 733 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed57fb05b26a8cb5dd52716c53a47e37675d9a3a4ba50b43e41d2f55a5ba8962"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (120 matched lines \u00D7 2 locations): src/components/prompts/PiPromptPanel.tsx:171 \u00B7 src/components/prompts/PromptPanel.tsx:244 \u2014 the two spans are one implementation copied and then locally edited \u2014 729 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6677669f6f400220ed6e3d59280684fcfe6571f5a82fbab5a674e78364fa6ffb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (99 matched lines \u00D7 2 locations): src/components/providers/forms/AgyOAuthSection.tsx:58 \u00B7 src/components/providers/forms/ClaudeOfficialSection.tsx:179 \u2014 the two spans are one implementation copied and then locally edited \u2014 527 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/AgyOAuthSection.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"418737131f047788f9197a98236c59b507b46b5cf0333ca584937f36d30a0db1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (89 matched lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1105 \u00B7 src/components/settings/WebdavSyncSection.tsx:1301 \u2014 the two spans are one implementation copied and then locally edited \u2014 413 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b9275ff79d620bea50fd8ebf27f55598db7fddfa9117a4aa10b37e426e93e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (82 matched lines \u00D7 2 locations): src/components/providers/forms/hooks/useHermesFormState.ts:77 \u00B7 src/components/providers/forms/hooks/useOpenclawFormState.ts:61 \u2014 the two spans are one implementation copied and then locally edited \u2014 531 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useHermesFormState.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"623568438c9e3032bcecdc6ffd4c4d65652b9d419342d37bf0956a625ade15d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (80 identical lines \u00D7 2 files): src/components/usage/ModelStatsTable.tsx:1 \u00B7 src/components/usage/ProviderStatsTable.tsx:1 \u2014 these 2 files are line-for-line copies of one another \u2014 80 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelStatsTable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b134a978bc91c521354dd072370a6d3d25767d95a98d4a083e7d5bec41803d5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1218 \u00B7 src/components/settings/WebdavSyncSection.tsx:1525 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b0b1223d6ca5c1aa8fd0158915ca423c36a359269c574ba1d73d012b61d8c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (56 matched lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:951 \u00B7 src/components/providers/forms/CodexFormFields.tsx:1625 \u2014 the two spans are one implementation copied and then locally edited \u2014 233 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1f7df33bb78b7f946e2217160816e6d109edd0e4d6faecb3e4a8c55cce69d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:744 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:624 \u2014 the two spans are one implementation copied and then locally edited \u2014 282 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"441f96b70177a5a76501a9b7c23eb35696da92fe5ebca6a38183d0bc553d9399"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (52 matched lines \u00D7 2 locations): src/components/providers/forms/RequestHeadersEditor.tsx:36 \u00B7 src/components/providers/forms/StructuredOptionsEditor.tsx:63 \u2014 the two spans are one implementation copied and then locally edited \u2014 284 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/RequestHeadersEditor.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"212c9dd39ce059a7b2fb4f85789be951d352e7c1a5b97847ef8704d93de7ba0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (51 matched lines \u00D7 2 locations): src/components/sessions/reader/SessionFinalReply.tsx:74 \u00B7 src/components/sessions/reader/SessionQuestion.tsx:74 \u2014 the two spans are one implementation copied and then locally edited \u2014 244 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionFinalReply.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d6b03475fd7a3e2ce87268b1617633593de9b3c31de871336716f07202586d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (48 matched lines \u00D7 2 locations): src/components/workspace/DailyMemoryPanel.tsx:439 \u00B7 src/components/workspace/DailyMemoryPanel.tsx:497 \u2014 the two spans are one implementation copied and then locally edited \u2014 242 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60b4372c46fab841c3d7d84298ce491d797c584700c8f37c37302b2b9f671d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:748 \u00B7 src/utils/providerConfigUtils.ts:974 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"059474aa611fa196cad9e48099773d63786deda34d3ffd7b382bd6cea5f2d95a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (45 matched lines \u00D7 2 locations): src/components/prompts/PiNativePromptResources.tsx:664 \u00B7 src/components/prompts/PromptFormPanel.tsx:187 \u2014 the two spans are one implementation copied and then locally edited \u2014 226 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79a7c0dad6c029f73c4ecdaa6562a8bc777a3c6e8171d3a5f4a9064fce00206"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): src/components/providers/forms/GeminiConfigSections.tsx:18 \u00B7 src/components/providers/forms/GeminiConfigSections.tsx:97 \u2014 the two spans are one implementation copied and then locally edited \u2014 235 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiConfigSections.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3dd34afe09aa68a5e0a041d5f00b6686b38482386e8ed89821ef2de528785b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): src/components/providers/forms/OpenClawFormFields.tsx:332 \u00B7 src/components/providers/forms/PiProviderForm.tsx:1768 \u2014 the two spans are one implementation copied and then locally edited \u2014 192 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f4c1fadbd53b31c06d0eef72c3fdbfb03500016a05f9f9dbdf6f5476d8e6c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): src/lib/query/mutations.ts:111 \u00B7 src/lib/query/mutations.ts:266 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f768a94c4e824bce18c3e70ead2d896d96e5f3aacf371f23e624e276adbd6d5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): src/components/providers/forms/KimiProviderForm.tsx:436 \u00B7 src/components/providers/forms/McodeProviderForm.tsx:227 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c137bee6ecad961388e286e32978026c2027cfbd8b3104b3490749afa3b8bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): src/components/openclaw/ToolsPanel.tsx:181 \u00B7 src/components/openclaw/ToolsPanel.tsx:223 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/ToolsPanel.tsx"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ed852c70cce3527d2a731bfbeb9fece9e40e48bb074b5d39ca4b0bbdfe2e0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): src/components/providers/forms/CodexOAuthSection.tsx:434 \u00B7 src/components/providers/forms/XaiOAuthSection.tsx:159 \u2014 the two spans are one implementation copied and then locally edited \u2014 189 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade9be2a3510c396d8fa8d2dd2378cf79f3f56f5a32a1a49d0fb523768d21ee3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1433 \u00B7 src/components/UsageScriptModal.tsx:1524 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3afc27df9144c903a37b95ee2b6ea3e8e1547496ebdf0d5105a25a3779dd43e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): src/config/piProviderPresets.ts:147 \u00B7 src/config/piProviderPresets.ts:205 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17c3105b8748cef2a09abedb05acacefda01141f0a0b1e1bf595db6d2c66ba9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:447 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:472 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a150ed50aa52f8433465daf05c3f5048da2e4c803979eea725d8bf5a41574130"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): src/config/piProviderPresets.ts:3106 \u00B7 src/config/piProviderPresets.ts:3179 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":3106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0564329db66fd1a775b723579f246812e28f545feb1cf1440a711ba9065f29a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1276 \u00B7 src/components/UsageScriptModal.tsx:1358 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8aba75abc335f5b569c7a62f4095daca70b607d6e1af6fc310d5bf63ef6ef4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1397 \u00B7 src/components/UsageScriptModal.tsx:1490 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdd04e641b3c2bab3ad9910014ef5c3ac7fbe35209131183de189abca680fd5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:416 \u00B7 src/components/providers/forms/ClaudeFormFields.tsx:452 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"8825b706f00537d997d837232dc02cecdaeeca121853c6d5cbbf84d106e25da4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1586 \u00B7 src/components/settings/WebdavSyncSection.tsx:1747 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c2196bcd329c6f93a1428ec64387a23347e7200a21357c635ee68eb1752db5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): src/components/universal/UniversalProviderFormModal.tsx:190 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:249 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"287e8f1677df8bbf20c77002f1b22e8e09a75a5f2de91e5edb8b02cb7793bc4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): src/config/codexProviderPresets.ts:3135 \u00B7 src/config/codexProviderPresets.ts:3185 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/codexProviderPresets.ts"},"region":{"startLine":3135}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b847f709402b8ed00f5b5bb933f95ead1d4310615ee852a4d9053854b6b7d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:752 \u00B7 src/components/providers/forms/ProviderForm.tsx:1588 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9276fbde307823e0be412e7a0c7ccf90b4ab5f2fd34c7ee2894c25c775efa3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:516 \u00B7 src/components/settings/WebdavSyncSection.tsx:768 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c666ca81c4c774cb1c0b8f442a09eb9717cbe2224bc944b534ad4b3ab74975"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): src/components/AgyAccountQuotaFooter.tsx:7 \u00B7 src/components/ClaudeAccountQuotaFooter.tsx:8 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/AgyAccountQuotaFooter.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc274e9518e437049f711fe44c29b9e5f562c8066c85d960979a93aeab0885cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:1133 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:1220 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cc49fb36c7395f4a12031c17c2490564cc991f36bef7b926e05a2a9af94ae0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): src/config/piProviderPresets.ts:2968 \u00B7 src/config/piProviderPresets.ts:3023 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe7a88ffc7dc9837ccada30c4164ddcd9cc7bab7c621ba3412bdf42855bdb8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): src/lib/query/mutations.ts:238 \u00B7 src/lib/query/mutations.ts:321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd33dd1595d23bba83fe96e75072835d43bde9394b64f0cb754a4ae72278b69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): src/components/JsonEditor.tsx:157 \u00B7 src/components/JsonEditor.tsx:232 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"312ec2e4d58db760be1cb048ad24cdec13d0464640a3f9e31ea337e00b774353"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3 locations): src/components/providers/forms/AgyOAuthSection.tsx:135 \u00B7 src/components/providers/forms/CodexOAuthSection.tsx:502 \u00B7 src/components/providers/forms/CopilotAuthSection.tsx:449 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/AgyOAuthSection.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a445f931783ed649ff6dda1280180fd797a21dbfe4bf9c541601a56517203a11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:590 \u00B7 src/components/settings/WebdavSyncSection.tsx:807 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8aa67ab28e51cf0b139315ca2b2f22a690973b6119e6900744cc76b30c1234c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (30 matched lines \u00D7 2 locations): src/components/settings/sections/RoutingSection.tsx:285 \u00B7 src/components/settings/sections/RoutingSection.tsx:349 \u2014 the two spans are one implementation copied and then locally edited \u2014 123 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2540205809bb3ca4022712ac8fab2f4981a5dbb9cf399ec064ae3058ba38cf20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): src/lib/query/usage.ts:289 \u00B7 src/lib/query/usage.ts:320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/usage.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"91674c2404ae7a56de4383af02f2d2647636449e345d5b26324f087fe5111b5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): src/hooks/useSettingsForm.ts:121 \u00B7 src/hooks/useSettingsForm.ts:191 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettingsForm.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"611004ffb5bfc208ae617bdc705162ab601492d77d382d3853d4dc3048ea6dcb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (28 matched lines \u00D7 2 locations): src/components/mcp/McpFormModal.tsx:1215 \u00B7 src/components/skills/SkillImportDialog.tsx:216 \u2014 the two spans are one implementation copied and then locally edited \u2014 127 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d508950c9526aa94864227df8e7e985bbb7e14b30569465d64340cfabd2fbadf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): src/components/providers/forms/McodeProviderForm.tsx:438 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:827 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b06dc26dc31a8f97c5478ac68738c40eca52603faa802111020bc90f8a0e931"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): src/components/providers/mode/ModeDialog.tsx:322 \u00B7 src/components/providers/mode/ModeDialog.tsx:435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d9c94b33b812ffbd0be6b116dcde2589d8b7d367d0caf87ff46322864e726"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): src/components/settings/BackupListSection.tsx:414 \u00B7 src/components/settings/BackupListSection.tsx:454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a129580f4a3017b741492433735d1bf93f86f3df9e50372ba39477826baaab3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): src/components/settings/DirectorySettings.tsx:71 \u00B7 src/components/settings/DirectorySettings.tsx:256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/DirectorySettings.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1cdfdb7e82e8517159709ecd1fbda5e89b1cdd17d7ca1b815ac86b4e713fdf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): src/components/AgyAccountQuotaFooter.tsx:7 \u00B7 src/components/CodexOauthQuotaFooter.tsx:8 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/AgyAccountQuotaFooter.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"268b5a2c65f1a3561500810e6af0b8e277abb5027f7045317c65900f5b60cbc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1244 \u00B7 src/components/UsageScriptModal.tsx:1328 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41ef77e77b56a0c6b63dc160cbe2cd9837896a55416c46ed3b5411b223272a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (27 matched lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:210 \u00B7 src/components/providers/ProviderCard.tsx:150 \u2014 the two spans are one implementation copied and then locally edited \u2014 180 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"434a58ba1b229ba69c0f3cb145b7574fc176c4fa0bb57f4097c2e7a482b0b273"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4 locations): src/lib/query/usage.ts:174 \u00B7 src/lib/query/usage.ts:235 \u00B7 src/lib/query/usage.ts:286 \u00B7 src/lib/query/usage.ts:317 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/usage.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bdad97c54ced3bc27945ddf501294c0b80fb4dba09acf294372d43b565167b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): src/components/providers/forms/McodeProviderForm.tsx:145 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:163 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cf00002c49d90fae75bc7827b27e75a51e0cb212905f9eb96e19728e623f9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): src/components/providers/forms/OpenClawFormFields.tsx:482 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:513 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9192a90d0c8723a242e28b143f3b195413c61ab040398b88ddbb505cd3ac61a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:655 \u00B7 src/components/settings/WebdavSyncSection.tsx:867 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab5a267cb989b35accd61201f0c396bedd4bb5ae315630ba5083051324124c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): src/lib/query/subscription.ts:221 \u00B7 src/lib/query/subscription.ts:252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/subscription.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e540c3bb0c9e78a10ed84abded08194f6959182a233178177226c69227eef9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4 locations): src/components/providers/forms/OpenClawFormFields.tsx:548 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:573 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:598 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:623 \u2014 all 4 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8c4c931febf9abffc8403752df9ea25ffb6e2b7ca73fd43909815c9f889007"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): src/components/providers/forms/PiProviderForm.tsx:1913 \u00B7 src/components/providers/forms/PiProviderForm.tsx:1940 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d87de648af8ecf91ee721601286b92b152cd7a094f65aac6bb4582e25e8849a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (25 matched lines \u00D7 2 locations): src/components/skills/SkillImportDialog.tsx:219 \u00B7 src/components/skills/SkillsPage.tsx:917 \u2014 the two spans are one implementation copied and then locally edited \u2014 109 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillImportDialog.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cc6ce828d77f80d1d5a44b0b90a618d20a71883e5aca387bf6ab36de21a979"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:353 \u00B7 src/components/providers/forms/PiProviderForm.tsx:1207 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3bb85a231a6c8281d0cd2ba441f266884c484a5982c2812106c21041db7884"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): src/components/providers/forms/hooks/useSpeedTestEndpoints.ts:46 \u00B7 src/components/providers/forms/hooks/useSpeedTestEndpoints.ts:108 \u2014 the two spans are one implementation copied and then locally edited \u2014 197 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useSpeedTestEndpoints.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"657f289932509e666cd4aab62fb3c0a46a4787e16b0c8ac5b825a2f9dc628550"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): src/components/settings/LogConfigPanel.tsx:22 \u00B7 src/components/settings/PrivacyFilterConfigPanel.tsx:14 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/LogConfigPanel.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7fb567da28f0b09958622a4ec14e863f470834084ee913204418c4ca432919"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/components/mcp/McpFormModal.tsx:1344 \u00B7 src/components/mcp/McpFormModal.tsx:1367 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c4f910df60f499f056ff66fc60540677e56c07932d1ce8d8ff6be4662ce7dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): src/components/usage/UsageDisplaySection.tsx:222 \u00B7 src/components/usage/UsageDisplaySection.tsx:249 \u00B7 src/components/usage/UsageDisplaySection.tsx:278 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"749eb2235ab15ad9af44acce46d8a2d15e174e7c4e5f4c382bed3f3ffd63add9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/hooks/useProxyStatus.ts:40 \u00B7 src/hooks/useProxyStatus.ts:65 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProxyStatus.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7445d404b63e045818db6ff3ea407975de703ff022aad27b3cf0ce34ee89da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/hooks/useSettings.ts:228 \u00B7 src/hooks/useSettings.ts:377 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d06d00a44241fc0b08152001e075d4e980ba92c88201ea0e2d63b3130f6c78d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/hooks/useSettings.ts:281 \u00B7 src/hooks/useSettings.ts:430 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"0723f7895d165da909755027a25ee1e49c4ceb729b375db9879496a1062d500a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:631 \u00B7 src/components/mcp/UnifiedMcpPanel.tsx:783 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc903c5360a92ade377b229d7e80b4d34472564a8e4b93a3f8cd6348c316af26"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:379 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:311 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f594f19a768415a42a71ac1ac5603adcd8f8aeec63995f43e4e5cbcf1310452b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/components/providers/forms/ProviderForm.tsx:1532 \u00B7 src/components/providers/forms/ProviderForm.tsx:1564 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f3440305329b10b4bb446065575d7623d3cf457a5ee3fced2cfc0689c71baf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/components/providers/forms/WorkBuddyProviderForm.tsx:755 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:777 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"21992b22d6e6957c6fcd01e291d90ca43384d60cdefd1bb196da2f1c57b508fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1041 \u00B7 src/components/settings/WebdavSyncSection.tsx:1282 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0ffcf6841f883e65141ff10496e8df4da88a1d0e2621b77f892b8521ba16f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/config/piProviderPresets.ts:1605 \u00B7 src/config/piProviderPresets.ts:1661 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"baae8af85e7fa16888564225aa01647d142b0efe8c4ee79e28cf60afff11ea45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/hooks/useSkills.ts:205 \u00B7 src/hooks/useSkills.ts:476 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSkills.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2849e59029ec5b52d60f0ef89639227d891d34b197b71f7992e1326bfc8e64aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/components/mcp/McpFormModal.tsx:529 \u00B7 src/components/mcp/McpFormModal.tsx:550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b78dbc0ad25470a61109ef83611e2f5765b749a75941d7631fdc7f83e7d448"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/components/prompts/PiNativePromptResources.tsx:232 \u00B7 src/components/prompts/PiNativePromptResources.tsx:622 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"979a752d9214fcab275a3c38ca13d38b976f5db5cb776e13613e4e1b7257b82a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/components/providers/AddProviderDialog.tsx:184 \u00B7 src/components/providers/EditProviderDialog.tsx:90 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01095a40663f39aed7b4e0a03a5e8db3df1322fd75492c6e14afc3f722aa622"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:1111 \u00B7 src/components/providers/forms/PiProviderForm.tsx:2220 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2585e625d71e1ecc9e4842dd7b021627020ba57b225e5e4870fa3a62a292536"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/components/providers/forms/CodexConfigSections.tsx:47 \u00B7 src/components/providers/forms/GeminiConfigSections.tsx:30 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexConfigSections.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7d1cd8e3f05e966a9d4da36abddea10f868b8fd39c9ad3ce040ccedce33b2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): src/components/providers/forms/CopilotProviderForm.tsx:1081 \u00B7 src/components/providers/forms/McodeProviderForm.tsx:445 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:834 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"673fc2b658212f3e2cfa1fa2f6748bf987438022e41642df4c1810feeb10488f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): src/components/ui/dropdown-menu.tsx:15 \u00B7 src/components/ui/dropdown-menu.tsx:68 \u00B7 src/components/ui/dropdown-menu.tsx:142 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/dropdown-menu.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfccac777db6c7dd1a026770d1e2caafc8e91ea41347c536caad4da527f270e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/config/piProviderPresets.ts:1690 \u00B7 src/config/piProviderPresets.ts:1718 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b2578b5f4e43e07dc606caafb2247404e2295d9e20f4352461bb3b227f98f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/components/FirstRunNoticeDialog.tsx:44 \u00B7 src/components/shell/NewLayoutDialog.tsx:106 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FirstRunNoticeDialog.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"200c3ef95ab6b67c49941579c6614416b7862082c3ed6d772980539bb0e99915"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/components/apps/AppsPage.tsx:886 \u00B7 src/components/apps/AppsPage.tsx:906 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef945b407b7ea514eb88e813c399a131ba2c25790de3ce2fa62749eb7de445a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:753 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:1070 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da0f9a75164c30077f5d1b1a3ca38c6b815c3fb7e21d9b7960cdc193bcedec8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/components/providers/forms/BasicFormFields.tsx:134 \u00B7 src/components/providers/forms/BasicFormFields.tsx:157 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/BasicFormFields.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0015cb7a67ada7bde380c2a2d4a87b4a7c60b05592d6a45a3c107d5915e2c65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/components/providers/forms/CodexFormFields.tsx:2201 \u00B7 src/components/providers/forms/CodexFormFields.tsx:2483 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":2201}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca7c3cc13a20e593ea9821cdb02d49765f15f1e56d08ab357453a415bcede22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/components/providers/forms/PiProviderForm.tsx:2102 \u00B7 src/components/providers/forms/PiProviderForm.tsx:2182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d761ed0198e3c36730ef087523cc6c91cdfeb7f0f3577ee4707566d54f106d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): src/components/settings/auth/AccountQuota.tsx:378 \u00B7 src/components/settings/auth/AccountQuota.tsx:416 \u00B7 src/components/settings/auth/AccountQuota.tsx:442 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/AccountQuota.tsx"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be3e9122eba5d4b200d653ba3b076fccb5159aa4e08a0743b60baca3064e5ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/BrandIcons.tsx:12 \u00B7 src/components/BrandIcons.tsx:38 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/BrandIcons.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c0ce872d5ca321e210097943dcc296583bad922711e87b54917803b42cee43"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): src/components/DeepLinkImportDialog.tsx:1019 \u00B7 src/components/settings/ToolUpgradeConfirmDialog.tsx:106 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb8b679f00647817e3a639f6749ee3b43dc498230b3370def5815db1f63eaca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/SubscriptionQuotaFooter.tsx:257 \u00B7 src/components/UsageFooter.tsx:136 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"54713e85491dee31956b05460feadab2efaad3dd5c7878e472f8e293eb1282a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:1362 \u00B7 src/components/providers/forms/ClaudeDesktopProviderForm.tsx:1441 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd072e68a94a663adf1e97109057614399caabae62998294b10191edced423a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:593 \u00B7 src/components/providers/forms/shared/ModelInputWithFetch.tsx:52 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc25683e56191021092160521422b9bb908be22a64069464c94ba41a351dcd9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:712 \u00B7 src/components/providers/forms/CodexFormFields.tsx:1889 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0f380aadb037b410f5c26f14d13feacb319de6d0002aa26a1e1cc07ddaa91f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/providers/forms/CodexFormFields.tsx:2165 \u00B7 src/components/providers/forms/CodexFormFields.tsx:2289 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7879b7e3cb29055a3ea2d436c8fa6d67467679e3bc56cce3fca2da24e8e023b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): src/components/providers/forms/ProviderForm.tsx:1428 \u00B7 src/components/providers/forms/ProviderForm.tsx:1475 \u00B7 src/components/providers/forms/ProviderForm.tsx:1501 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86dabc41ad0d579ca20076cf1b203cdd07d4eb32badf0e55411e9b9f78ab5a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/providers/forms/hooks/useBaseUrlState.ts:122 \u00B7 src/components/providers/forms/hooks/useBaseUrlState.ts:172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3948533015b2b609eae9bd0e57ba821039e84eea6cf25f487a3e2f5a6975bd03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/settings/CodexQuotaProtectionSettings.tsx:70 \u00B7 src/components/settings/CodexQuotaProtectionSettings.tsx:89 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/CodexQuotaProtectionSettings.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad297cf9b79145c7882423c4ddd14ef2dca34047ad6da68698135198f7c33e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1434 \u00B7 src/components/settings/WebdavSyncSection.tsx:1455 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c7504c74d14087e98a543e9c91b2f3defee06b687299be5ed857ae49b410e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/ui/sliding-indicator.tsx:78 \u00B7 src/components/ui/sliding-indicator.tsx:108 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/sliding-indicator.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60ce106c5b448ee460f37426349fc94ed82df2352374771a5527b09b465de06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/usage/PricingEditModal.tsx:200 \u00B7 src/components/usage/PricingEditModal.tsx:220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingEditModal.tsx"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbff6de5b66b9360c4dc38c0f4dbe3ed74e62c666289be976b46d65c4141a4d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/hooks/useSettings.ts:305 \u00B7 src/hooks/useSettings.ts:454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"445d62bd49a4219c2dccd5b14fc7304ccbe5805c340a6af2de95ce72e6c75dc5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/lib/query/failover.ts:126 \u00B7 src/lib/query/failover.ts:162 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"97adce2411b67187cfd85074e87b20be1ad13d9a08976e78931351e756ef7c65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/lib/query/profiles.ts:74 \u00B7 src/lib/query/profiles.ts:94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/profiles.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8965dff38721d5737e3793e43c1cd5b55df949d534f5fa6fa91d72008a416f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/CodexOauthAccountQuota.tsx:26 \u00B7 src/components/settings/auth/AccountQuota.tsx:363 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/CodexOauthAccountQuota.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0aa51b47263dc032e0a193a0123ee362be4dedda0440c7f3d30ed50d0be7c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1558 \u00B7 src/components/UsageScriptModal.tsx:1578 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb2fd7b16f120ed649242f874a9c0a7ae3c788a4e9accff86fddf8a04d2c393"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/mcp/McpFormModal.tsx:972 \u00B7 src/components/mcp/McpFormModal.tsx:1101 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"755f969d7a801e1ff67fff91f8633c350410065bc909f67d45254124087224c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): src/components/mcp/McpFormModal.tsx:1401 \u00B7 src/components/prompts/PiNativePromptResources.tsx:232 \u00B7 src/components/prompts/PiNativePromptResources.tsx:622 \u2014 the 3 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb03d54b9d572cf9fe3dc8765c135da6f457e29cd599ecadf74670f2ee2215e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/providers/AddProviderDialog.tsx:494 \u00B7 src/components/providers/EditProviderDialog.tsx:387 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20ea029a88f883a373b949dfc260ccd85046364d0c5b0456d5834939f76e892"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:1252 \u00B7 src/components/providers/forms/ClaudeFormFields.tsx:1194 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f564fd3d7663f03cc567bc3be13231d34561956e85022361ab695a8d229185"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): src/components/providers/forms/ClaudeFormFields.tsx:1067 \u00B7 src/components/providers/forms/CodexFormFields.tsx:2197 \u00B7 src/components/providers/forms/CodexFormFields.tsx:2479 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c5ac24dbcddde807512cf5892011df2b999d091cdd088a9e9a0acae738c9e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/providers/forms/McodeProviderForm.tsx:327 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:507 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"542dcea7dedf3087ee7b2e73d5c2d276f11a5615af0dac6426ded08ee4323d59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/providers/forms/OmoFormFields.tsx:935 \u00B7 src/components/providers/forms/OmoFormFields.tsx:1027 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3af5a7536f8a4a87c2cf1add60cc8388077381a0a3eb0e80c3455672a93f66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:584 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:646 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb8c951d13f40b9c4b9cc4fbc57227d0af6be3f8fda6b083de9da666d774bef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/proxy/AutoFailoverConfigPanel.tsx:38 \u00B7 src/components/proxy/AutoFailoverConfigPanel.tsx:187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/proxy/AutoFailoverConfigPanel.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd19d0384ee933c90a8b965c58ba89d9299e7d4bb78c2005ebdc62be3c6af765"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4 locations): src/components/settings/WebdavSyncSection.tsx:1663 \u00B7 src/components/settings/WebdavSyncSection.tsx:1736 \u00B7 src/components/settings/WebdavSyncSection.tsx:1803 \u00B7 src/components/settings/WebdavSyncSection.tsx:1855 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7ab8e68931855440cb65ae74072df7fc3c43a5376c44133ebec52fe7db3e04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4 locations): src/components/settings/auth/AccountQuota.tsx:351 \u00B7 src/components/settings/auth/AccountQuota.tsx:380 \u00B7 src/components/settings/auth/AccountQuota.tsx:418 \u00B7 src/components/settings/auth/AccountQuota.tsx:444 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/AccountQuota.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"083209d23488fa3dbb26e2740970fe8f33b0d9037a7210a876905fc0374c39b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/config/piProviderPresets.ts:3153 \u00B7 src/config/piProviderPresets.ts:3233 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c58c99c0bd9c96f02ad9ac56c29da3d74d025588e1ddfcd67dc2e23bf08308"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:824 \u00B7 src/utils/providerConfigUtils.ts:1366 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f578ebeae4c43c01b9f635f087f964c1b2417e365cdc71951d4ce22b467b7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/JsonEditor.tsx:262 \u00B7 src/components/MarkdownEditor.tsx:111 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef10029cf5027a18fe22603d51170bbbaec53bab84329df6c25ce32464513be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:478 \u00B7 src/components/UsageScriptModal.tsx:498 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c0208b2b64017262c8d797df33c546f69cde8dce7ea0888a4965100862a183"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:667 \u00B7 src/components/UsageScriptModal.tsx:799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb53d7aa8ecd53577cd5e6a8cf54f6afad2b3f62fc41f5301fc5de09a814ac5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): src/components/mcp/McpFormModal.tsx:1299 \u00B7 src/components/mcp/McpFormModal.tsx:1339 \u00B7 src/components/mcp/McpFormModal.tsx:1362 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56f7f514bc221fa69831095bc5814730521eb29e964968fd69826b085f38b5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/prompts/PiNativePromptResources.tsx:271 \u00B7 src/components/prompts/PromptFormPanel.tsx:234 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d4fcadba33d64165f1359b9a5d0add7b3e4ed4f8a92784aaead5d50b2d6e56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/providers/forms/CodexFormFields.tsx:1995 \u00B7 src/components/providers/forms/GeminiFormFields.tsx:225 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf1d448de202bbcc2f1fedf224913948db022c268347faa394fb478b02494c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/providers/forms/CodexFormFields.tsx:2146 \u00B7 src/components/providers/forms/CodexFormFields.tsx:2271 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":2146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46bc271a263444ff231204ffe13613a243ed2a13ed0bcce780af73fe3938cf6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:467 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:305 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e35a90fbfe581f39896a5594e49013ae871aea044d076b04204841ac5cab4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): src/components/providers/forms/GeminiFormFields.tsx:98 \u00B7 src/components/providers/forms/HermesFormFields.tsx:153 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:135 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiFormFields.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d65c6e32736e39d6cac46f299e97105401fe562f143eb9a3c84321200f4514"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:1087 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:1170 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d809f80e2ed9c851a9331621f88ead9448180a575e97d381883ec53fe77259"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5 locations): src/components/proxy/AutoFailoverConfigPanel.tsx:313 \u00B7 src/components/proxy/AutoFailoverConfigPanel.tsx:339 \u00B7 src/components/proxy/AutoFailoverConfigPanel.tsx:400 \u00B7 src/components/proxy/AutoFailoverConfigPanel.tsx:426 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/proxy/AutoFailoverConfigPanel.tsx"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d5b6c7d84efcaf36706b1a6dcdca24cc97a435c5b3c2cabf72b32f5773aad9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): src/components/settings/SettingsPage.tsx:571 \u00B7 src/components/usage/ModelsDevAutoSyncPanel.tsx:417 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63626058af9004281f6477387c204ba3a2ecf86f0ff7143bf1b2f256019e606"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): src/components/settings/SettingsPage.tsx:571 \u00B7 src/components/usage/ModelsDevPickerDialog.tsx:322 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab5c82d944c50e16151bfe11d5da98aa10aae6c87584d14d9e97f94e7db2da7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/settings/auth/ManagedAccountsGroup.tsx:430 \u00B7 src/components/settings/auth/ManagedAccountsGroup.tsx:447 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bba3290cfea0e64d85e55cfb55317596a1f16c18254daceaf81a519844562b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5 locations): src/config/piProviderPresets.ts:427 \u00B7 src/config/piProviderPresets.ts:792 \u00B7 src/config/piProviderPresets.ts:820 \u00B7 src/config/piProviderPresets.ts:945 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cfd6bac10dde7af88811568580069441cffd4efd760fdca9326156c8e19c59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/config/piProviderPresets.ts:741 \u00B7 src/config/piProviderPresets.ts:2097 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4aeba2c48127f2a2c98a6c618553a0c3af5194fe2c275b5e4b66d7cc6be9117"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4 locations): src/lib/query/profiles.ts:29 \u00B7 src/lib/query/profiles.ts:59 \u00B7 src/lib/query/profiles.ts:79 \u00B7 src/lib/query/profiles.ts:99 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/profiles.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"03154b4c3499b6669aceb4e1f2c79f73a3a5a0ab9715f5a361feb800c52c8b91"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/lib/query/proxy.ts:261 \u00B7 src/lib/query/proxy.ts:296 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/proxy.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07730235b4cf911b7eaeb62b783825c09da127330f3dbce072214b26f7e6891"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/prompts/PromptFormPanel.tsx:285 \u00B7 src/components/usage/PricingConfigPanel.tsx:253 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4adad2a05de212996e157c7d0dbf0c63844b795933729530c2201f99ced1970"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/prompts/PromptPageFrame.tsx:112 \u00B7 src/components/usage/ModelsDevAutoSyncPanel.tsx:639 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPageFrame.tsx"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"901bd5e00331d4aed5608928537e95b0ad5a69ee115357218c3d2dcf3b95dfcd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:843 \u00B7 src/components/providers/forms/CodexFormFields.tsx:1999 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"361559b2a0cc063f5a4ba158608075bd9ff5d9802dd5202d5f6e1193d8158731"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:541 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:400 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dca7b0c6a1d0690a193f14c8a0d46891dd2a006f3bdc718ea3cecab52dd4dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/providers/forms/McodeProviderForm.tsx:420 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:811 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"58709065e00211ef9967e6e7ba5bea0d36487e5cd0e155a9569203b3275bffbd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:1009 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:1029 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf71c7594e700fc7fe95ddf1c0f849bd6876e54f64d19b1b2411aef1cb260bb7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): src/components/settings/AboutSection.tsx:286 \u00B7 src/components/usage/PricingConfigPanel.tsx:426 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccb9aafd701a9c48e823328524d5ad4dd19844db828572c657401c1e06fd6f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/settings/BackupListSection.tsx:177 \u00B7 src/components/settings/BackupListSection.tsx:232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bde5793234d24a1faa409c7dc1b5b31a37fb29e12506a20dca19b2210e39f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): src/components/settings/WebdavSyncSection.tsx:1333 \u00B7 src/components/settings/WebdavSyncSection.tsx:1350 \u00B7 src/components/settings/WebdavSyncSection.tsx:1390 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b4ee0cad3fe24aadcaec547c0381c3245c698fd4350c8caa7ec9a0d73e4068"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1404 \u00B7 src/components/settings/WebdavSyncSection.tsx:1421 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fb345b96bca3a224726f9c34daf8e1bfcabcb1ff270968c1b65ca1f1afda20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/universal/UniversalProviderFormModal.tsx:528 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:582 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db1afd635ff11a10e6bd7f1aa037c7a297ad80c4abbc0ea14ee90c9479ce0de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/usage/PricingEditModal.tsx:169 \u00B7 src/components/usage/PricingEditModal.tsx:186 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingEditModal.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81cbb680e87ef7a1ab4479633c8b1bb9bcae8d197fe684f4f09d0cf702aa013"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/workspace/DailyMemoryPanel.tsx:319 \u00B7 src/components/workspace/WorkspaceFileEditor.tsx:80 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fcf26a368a9e25326fcd321233605af572ad54e8468115c895577047174bb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4 locations): src/config/piProviderPresets.ts:309 \u00B7 src/config/piProviderPresets.ts:621 \u00B7 src/config/piProviderPresets.ts:1172 \u00B7 src/config/piProviderPresets.ts:1245 \u2014 all 4 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff607c91e9d54605d605044bd6ec512fce6074a9c51b71f54625baac2cfc4eb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/hooks/usePromptActions.ts:148 \u00B7 src/hooks/usePromptActions.ts:174 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/usePromptActions.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2576b77510b4867be0b7f6142b845e2077c7dbe73d14fb052cc869e1331f34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): src/lib/query/queries.ts:283 \u00B7 src/lib/query/subscription.ts:68 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/queries.ts"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfe55faf26e5a81f55f20aed12618bbac6c8859591bd15f4a2a506233aca2a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/App.tsx:816 \u00B7 src/App.tsx:902 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"007d5bdeda24fe12c9d55e8b956a7295cf746f168d7a2d86236a43d7addaebba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): src/components/CopilotQuotaFooter.tsx:126 \u00B7 src/components/SubscriptionQuotaFooter.tsx:316 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/CopilotQuotaFooter.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cd33b5df10926fb33bee5793b41da3c11d07c8bd8d378fde1f97974c82adf5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:217 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:249 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ce50ac477e934aa87f56856c64f4ce5b049a29d42c4bd7286ec62f5c3bca9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/openclaw/AgentsDefaultsPanel.tsx:71 \u00B7 src/components/openclaw/AgentsDefaultsPanel.tsx:98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b418e0139f6ec1461c1a49ee4701fe059e0770f641188fdd42c8312388f6988"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:997 \u00B7 src/components/providers/forms/ClaudeDesktopProviderForm.tsx:1256 \u00B7 src/components/providers/forms/ClaudeFormFields.tsx:1198 \u00B7 src/components/providers/forms/HermesFormFields.tsx:285 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfef4236b5af952d88f49fd0e05a41592a3e598ffaa68f165b377c8bded3dc5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:1024 \u00B7 src/components/providers/forms/GrokBuildProviderForm.tsx:446 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4908890a29f6da08c192e4eac2630df82bbb892d473b4b01099b7f27aeb875"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:713 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:866 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"803e562fc40548a47423e58839c8033949d584a251d5894cccbafd89e93a24f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): src/components/providers/forms/EndpointSpeedTest.tsx:68 \u00B7 src/components/providers/forms/EndpointSpeedTest.tsx:156 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/EndpointSpeedTest.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2001111225d87e71d94320335f4282c8c97d76da2bcbf13085ad1e4ef6c8ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/settings/GlobalProxySettings.tsx:172 \u00B7 src/components/settings/GlobalProxySettings.tsx:187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b47a6eeaa205f54a264ca3245489b3654952a536195344784a06421b05b23c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): src/components/settings/RectifierConfigPanel.tsx:87 \u00B7 src/components/settings/RectifierConfigPanel.tsx:102 \u00B7 src/components/settings/RectifierConfigPanel.tsx:117 \u00B7 src/components/settings/RectifierConfigPanel.tsx:177 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/RectifierConfigPanel.tsx"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe71c4ac7e6ff4ddb1d6deead322d181fc291bf690d1b2111537b75372694c54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/settings/auth/AccountQuota.tsx:430 \u00B7 src/components/settings/auth/AccountQuota.tsx:456 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/AccountQuota.tsx"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b62218b67ece59b0c872abf5f10f15e8708248b63fdbfb337ffb6f586135c1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): src/hooks/useHermes.ts:94 \u00B7 src/hooks/useHermes.ts:128 \u00B7 src/lib/query/failover.ts:118 \u00B7 src/lib/query/failover.ts:154 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useHermes.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a0968cb55c5c4d150ab9f3fac504080c62f65f81d17a9b83ea9e68376fef2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/lib/query/proxy.ts:176 \u00B7 src/lib/query/proxy.ts:210 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/proxy.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68706d66446d15e4d7533fcc45dc0ee0b82a6392bac50f52cf8d41ec86c173e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:853 \u00B7 src/utils/providerConfigUtils.ts:1485 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eff098371301b8be9391b71bd9bb301d9c951bb8a6fbab7aecf27c65a1607c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/App.tsx:477 \u00B7 src/App.tsx:494 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"754256c5ffb2b32fdd648df57bd0a2df95647ed795c7bec5987266a464e4cac8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:888 \u00B7 src/components/UsageScriptModal.tsx:924 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcdc8ca15a8608def569792ec0dceb46052078edcd1272d7743df77660145b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1610 \u00B7 src/components/UsageScriptModal.tsx:1641 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07c55c94ac7f897a1e050e69f9c04bf2bb1aa85e6f213e21174e65d87b05235"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): src/components/WhatsNewDialog.tsx:197 \u00B7 src/components/shell/NewLayoutDialog.tsx:76 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/WhatsNewDialog.tsx"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7818cedfd860bed2ac41bc0868574e063e5970cba31760e0f2d95bc909e935bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/components/apps/AppsPage.tsx:478 \u00B7 src/components/prompts/PromptPageFrame.tsx:112 \u00B7 src/components/usage/ModelsDevAutoSyncPanel.tsx:639 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbebee510ed674d2efd376b0917ab36c14ae7d3c6759297cec1546ef5d23f2e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/apps/ManualUninstallDialog.tsx:108 \u00B7 src/components/apps/ManualUninstallDialog.tsx:138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ManualUninstallDialog.tsx"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0204668a867941b5c9d954505e960724f37074a5f60305afb7d9dfb0ebf43285"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:409 \u00B7 src/components/skills/useSkillsResync.ts:37 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"278bee496ed1716b34d9128b882a7dcbd9608211a086b63273e725532babdd33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/components/openclaw/AgentsDefaultsPanel.tsx:401 \u00B7 src/components/openclaw/EnvPanel.tsx:95 \u00B7 src/components/openclaw/ToolsPanel.tsx:270 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"2879634a981a32d3e7a22a1e9329cf1fc4002a152ad9c715c52ba8f0f0c0f024"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/components/prompts/PiPromptPanel.tsx:103 \u00B7 src/components/prompts/PromptPanel.tsx:86 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:227 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac6b09923fd3473d9b945327c88eb9748bc048c537f093c249d025154ca3a51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/providers/forms/ClaudeFormFields.tsx:577 \u00B7 src/components/providers/forms/shared/ModelInputWithFetch.tsx:35 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36169b7fd61a67770a341b8673636aab10738667b7ce6ef34aabe77a6089cec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/providers/forms/CodexConfigSections.tsx:82 \u00B7 src/components/providers/forms/CodexConfigSections.tsx:326 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexConfigSections.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b591f3ab6ad1045bd52a8a7a52f3d39b0d24046972faa8225be0a0dde91aefc3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/components/providers/forms/CopilotProviderForm.tsx:773 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:703 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:654 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fd50078602e460c83aac050436df7efbec463bd38747649fb425feaf6403ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/components/providers/forms/HermesFormFields.tsx:231 \u00B7 src/components/settings/WebdavSyncSection.tsx:1048 \u00B7 src/components/settings/WebdavSyncSection.tsx:1289 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfd3f5d77c1c8a84bb1d96468b5ac428728eee5dd55d5d060abb8a2c212978a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/providers/forms/McodeProviderForm.tsx:216 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:462 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a24c92337e1e22b40709b637196066671bf3f91ff8bb97c8c92688dadebd12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/providers/forms/ProviderForm.tsx:2416 \u00B7 src/components/providers/forms/ProviderForm.tsx:2442 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":2416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6997b0bfc161e5254290ca31e52b336d797df5a7f2973a28fe43c9e14b582d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/providers/forms/hooks/useManagedAuth.ts:285 \u00B7 src/components/providers/forms/hooks/useManagedAuth.ts:315 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb4227df45b91b622d644ef5e2516ac6e9e3e3e03dd0c1be28c49a978c0fbc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/providers/forms/shared/ModelInputWithFetch.tsx:44 \u00B7 src/components/providers/forms/shared/ModelInputWithFetch.tsx:64 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/shared/ModelInputWithFetch.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb835aa356b504a308984883adf9e461ca163ba49b6306764e8b99616b20b4e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/quota/quotaRules.ts:191 \u00B7 src/components/settings/auth/accountDetails.tsx:13 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/quotaRules.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3317ba8e70fadfb2b9f773a7d9cf17b53953ed03581a5fac75abfebb381e03f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/components/universal/UniversalProviderFormModal.tsx:650 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:666 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:682 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed1c2a7d2a4761f259d84d20d9d4c2da838d9b9ce934b19a8354b442fac298"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9 locations): src/config/piProviderPresets.ts:455 \u00B7 src/config/piProviderPresets.ts:768 \u00B7 src/config/piProviderPresets.ts:3310 \u00B7 src/config/piProviderPresets.ts:3332 \u00B7 \u002B5 more site(s) not listed \u2014 all 9 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"818a863c8a8f4798f167574e117453f3c67ab6d1577c1c2a1fe584b2b7d9fd08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): src/hooks/useTauriEvent.ts:17 \u00B7 src/hooks/useTrayNavigation.ts:64 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useTauriEvent.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb365bc153c96c51d89d1f7a4a1506671921d04349b16604699fb0ca4561702"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/CustomIconNameDialog.tsx:93 \u00B7 src/components/providers/OpenTerminalDialog.tsx:486 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/CustomIconNameDialog.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"566fcaad6c7a3c73b134b2c079e8aa5795c96e18156a290dad8e74cd1de93a28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/openclaw/AgentsDefaultsPanel.tsx:244 \u00B7 src/components/openclaw/AgentsDefaultsPanel.tsx:290 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb428981145d85e25901760dabe228854a4de56edffed5507003e55af2bfbd8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/prompts/PiNativePromptResources.tsx:955 \u00B7 src/components/prompts/PromptListItem.tsx:111 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea76d5254bf704b8d874b297ec02179bf3923fa67637fb992716df8161c3d718"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/prompts/PiPromptPanel.tsx:509 \u00B7 src/components/prompts/PromptPanel.tsx:379 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5037a9e43a5632c5e88cc7425b7a4425a8e2b466c0fe34162a69c433d0ee5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:1199 \u00B7 src/components/providers/forms/ClaudeFormFields.tsx:890 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6e6d5e3741a5d0fbf13fc17ed76641c6539189bd9b02ffbb41a582bf4c7d76"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/forms/ClaudeOfficialSection.tsx:421 \u00B7 src/components/providers/forms/CodexOAuthSection.tsx:259 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8c1f63d242d5ade3f880d6ba17c7d9c375487d8bbb489a87d43fb04f216054"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:1066 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:860 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"29002f991d2e429105ff941d643037b351ca8c3358f589f1cb0a52c709489201"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): src/components/providers/forms/KimiProviderForm.tsx:157 \u00B7 src/components/providers/forms/McodeProviderForm.tsx:160 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:178 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5f9d540f439394d5344cb21d5739dbf50825cf9f6f841d5e3c6a25dc2f6bd1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/forms/hooks/useModelState.ts:56 \u00B7 src/components/providers/forms/hooks/useModelState.ts:72 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useModelState.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"af91da6ae7dfcd047dcfd3f53e1f146a00a2ec983091616f7141f191e38b0ef7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/mode/ModeDialog.tsx:412 \u00B7 src/components/providers/mode/ModeDialog.tsx:500 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"8772a99854622c363bfa63d40c16fc1811581f3718927ed98bc4910b51692e92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/mode/ModeDialog.tsx:463 \u00B7 src/components/providers/mode/ModeDialog.tsx:556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa8592702e88bb5b019b33e7317aa5f0c8035782f2939005a8098af1103b7e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/providers/mode/ModeTabs.tsx:160 \u00B7 src/components/providers/mode/ModeTabs.tsx:174 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeTabs.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a669d065794762ae715e7d35553eba1e974e42f2524707fb260bf9fd318b4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1086 \u00B7 src/components/settings/WebdavSyncSection.tsx:1357 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"abefd8519b9f473049756d2ac17d8ffb7ba352ccf348116ed3da0dc098905c6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): src/components/settings/WebdavSyncSection.tsx:1323 \u00B7 src/components/settings/WebdavSyncSection.tsx:1340 \u00B7 src/components/settings/WebdavSyncSection.tsx:1397 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"500c9c7ba465d7ba7496843eb478e44a321cf35508cddeb3d211e88e7c08a4ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/skills/RepoManagerPanel.tsx:277 \u00B7 src/components/usage/PricingConfigPanel.tsx:543 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/RepoManagerPanel.tsx"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedfe18d79c1032451d4886b24aeec0bede8d18b535e41cbba323ff72c767052"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/skills/SkillsPage.tsx:579 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:1578 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"775d7ca415c523d4bf5d18adb8b668c15cf42c6d31b3888e7feb0f8845bc6e1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/universal/UniversalProviderCard.tsx:57 \u00B7 src/components/universal/UniversalProviderCard.tsx:72 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderCard.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f9c4e191262a87a36354fc487d1aaebde485afdd16c2a3daab411558639dcd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): src/components/usage/UsageDisplaySection.tsx:232 \u00B7 src/components/usage/UsageDisplaySection.tsx:259 \u00B7 src/components/usage/UsageDisplaySection.tsx:288 \u00B7 src/components/usage/UsageSettingsSheet.tsx:220 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1809d4fcc5fc672f6c1bd45284760bf651a6658043643dfc8be056cc4d7a63e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/components/usage/format.ts:285 \u00B7 src/components/usage/format.ts:331 \u2014 the two spans are one implementation copied and then locally edited \u2014 81 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cc288daacf9dacab6e7e31adba8920bc5c68a2ccaa4065da6bf513ff1716c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/hooks/usePromptActions.ts:131 \u00B7 src/hooks/usePromptActions.ts:154 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/usePromptActions.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef19bd49133172840b33993841f6c5aa7f1f9f8d2bd73f1c5fbd91851d02c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/hooks/useSettings.ts:329 \u00B7 src/hooks/useSettings.ts:536 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"deea324e35ae3d9b927366b41147e29ff04855162a67713aaeda4b0dc8639dfe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): src/lib/query/subscription.ts:135 \u00B7 src/lib/query/subscription.ts:222 \u00B7 src/lib/query/subscription.ts:253 \u00B7 src/lib/query/subscription.ts:284 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/subscription.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f164e23c800d659a2edbeb364ef009fde71672371f44b9463a96d026db48dc93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/App.tsx:593 \u00B7 src/App.tsx:609 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"40339e314542d1910a8ee03c9e006711f31ae55a9d7abf640a850f7e766241dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/DeepLinkImportDialog.tsx:441 \u00B7 src/components/DeepLinkImportDialog.tsx:455 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e41c65099b9defed9917836207611932697525a8da1fcb9edf20a65a56a07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/components/FirstRunNoticeDialog.tsx:29 \u00B7 src/components/WhatsNewDialog.tsx:199 \u2014 the two spans are one implementation copied and then locally edited \u2014 63 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FirstRunNoticeDialog.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93f87e1d60b64e6b85f34781cf3fd89f7470c1ce941ab59e46d05063f6ab19b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1139 \u00B7 src/components/UsageScriptModal.tsx:1171 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10ae84d1d94dd775eb5a72595d0ca48c81828696b77514eb24afc408bcb4cd3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:1352 \u00B7 src/components/UsageScriptModal.tsx:1573 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"5569c04077118ce35a09cfe33b7516dc328b30a717d25527d6964f23cc87e19c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/components/openclaw/AgentsDefaultsPanel.tsx:353 \u00B7 src/components/openclaw/AgentsDefaultsPanel.tsx:366 \u00B7 src/components/openclaw/AgentsDefaultsPanel.tsx:379 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26b3d572fc963bc6e640e33fd91d748635a032dc70e2b3bb07fa57a44abdb1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/components/profiles/ProfileSwitcher.tsx:236 \u00B7 src/components/settings/ToolUpgradeConfirmDialog.tsx:107 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/profiles/ProfileSwitcher.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71aececf7936b8f9a06fd7ec6d2112694804e685c5bec4928373802c4537f8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/components/providers/AddProviderDialog.tsx:324 \u00B7 src/components/providers/AddProviderDialog.tsx:352 \u00B7 src/components/providers/AddProviderDialog.tsx:367 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8913a03ddcec03137d2ddd96f7fe2a4ec5661f00ededfee844aa57e04a1752d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/providers/ProviderCard.tsx:250 \u00B7 src/components/providers/ProviderCard.tsx:358 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1406557de2ba2da450fca723899df12a91e73dd8d72ce40b7c2caf1c0c1a47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/providers/forms/ClaudeDesktopProviderForm.tsx:737 \u00B7 src/components/providers/forms/ClaudeDesktopProviderForm.tsx:977 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f045587b7f2c08e9025f642382738b23114604de4aed98b55441823c72677f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/providers/forms/ClaudeOfficialSection.tsx:240 \u00B7 src/components/providers/forms/XaiOAuthSection.tsx:170 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a87f9d5dcb543ba6e905acc1a223fa971ecb83029c0fba065b0ebfbdcae16b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/components/providers/forms/CodexFormFields.tsx:1811 \u00B7 src/components/providers/forms/HermesFormFields.tsx:364 \u00B7 src/components/providers/forms/OpenClawFormFields.tsx:384 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1580beb37e1db90586f9dacd3aae680d39ef8df99c360d944721134ec8f03a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:583 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:427 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be5d16c3a1967ec6184a977557c6dec52a7fda625a0cdba60b76821922f7640"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/providers/forms/hooks/useCodexConfigState.ts:281 \u00B7 src/components/providers/forms/hooks/useCodexConfigState.ts:297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"243ef7953be7f0dfa3320219e2abe837ab100a122c1dc3dd16f5334f1c8fed09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/settings/BackupListSection.tsx:474 \u00B7 src/components/settings/BackupStorageSection.tsx:198 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bc81c123ffa722420355051c2fabef6fadbb897504e5daef9a163e01059af0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:1726 \u00B7 src/components/settings/WebdavSyncSection.tsx:1845 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"3252675d031c5d98caa872014a3f31d2225017455a74ad2685dfddb6341a1e47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/settings/auth/ManagedAccountsGroup.tsx:391 \u00B7 src/components/settings/auth/WorkBuddyAccountSection.tsx:347 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"690ea649d4aaa06344e6512ff494a854e373cdb264f47d9c8f1d5aed478ee319"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/skills/SkillsStorageSheet.tsx:160 \u00B7 src/components/skills/SkillsStorageSheet.tsx:193 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsStorageSheet.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9dc9d9e0bbae3ce5701a7809a8dc7aa3adf13b8edfbd402c4f12d46db674bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/components/ui/select.tsx:62 \u00B7 src/components/ui/select.tsx:95 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/select.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba9f2d446e15f5e3f7f226b7c4a7da67a4e10594640b8d63811a25b85948428"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/usage/UsageDashboard.tsx:401 \u00B7 src/components/usage/UsageDashboard.tsx:425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c100983cffd1641dc5c61306d361ae398e772f6e9edabde9ed7eb6be06da39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/config/piProviderPresets.ts:519 \u00B7 src/config/piProviderPresets.ts:719 \u00B7 src/config/piProviderPresets.ts:893 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1210b1df7375910a207e76f64c7f15fb753344f3d3f30704f04f0775c16099a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/config/piProviderPresets.ts:1347 \u00B7 src/config/piProviderPresets.ts:1370 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b58ed74dacf73d7dab6634a150e652e1d38527a9a1fd6f8e40e9e3aecb65dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/lib/query/failover.ts:35 \u00B7 src/lib/query/failover.ts:127 \u00B7 src/lib/query/failover.ts:163 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4431a7ed3f1ab2fd300db1ce24162686e20e4b025fc6140e477eb2a66065179c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/App.tsx:1601 \u00B7 src/App.tsx:1618 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbdd80e81f14352ec2d12b5089a0b688a83d34ba3d5bf843999d26a58154127"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/DeepLinkImportDialog.tsx:711 \u00B7 src/components/DeepLinkImportDialog.tsx:735 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc1cf6c75e93ce7911706c3bdd0041d762cafa96322bd26c69bdd865587228a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:649 \u00B7 src/components/UsageScriptModal.tsx:679 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"538b3eda39b416ba6501f276821ae4b7075b31e53780a36fda4e9b2ad0e26669"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/apps/useToolManagement.ts:585 \u00B7 src/components/apps/useToolManagement.ts:598 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cde337671b70224f7dab117c42a1a280253e84884981c56cdf78ac7193eb063"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:981 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:1954 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca13d534e3a6ab5a4a048cbeff726bbb94677d879595b1cfd1c5e63f1ce25f2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/prompts/PiNativePromptResources.tsx:647 \u00B7 src/components/prompts/PromptFormPanel.tsx:177 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d088b4d87dd17ebaf34ea589e47864b3a29483cb828e3db18923f77a1bb7ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/providers/AddProviderDialog.tsx:342 \u00B7 src/components/providers/AddProviderDialog.tsx:357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3e4c594eed7acb6606572634e5c83b98e2072343804d6fe9edca908c8d85cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/components/providers/forms/CopilotProviderForm.tsx:485 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:427 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:333 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"3279ac166d6dbe5f3cd7de02eccdb001e6b80b6596fbdeb2c8fd091591fc01e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): src/components/providers/forms/HermesFormFields.tsx:233 \u00B7 src/components/settings/TerminalSettings.tsx:97 \u00B7 src/components/settings/WebdavSyncSection.tsx:1050 \u00B7 src/components/settings/WebdavSyncSection.tsx:1291 \u00B7 \u002B1 more site(s) not listed \u2014 the 4 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2362082666eb079d1326c28d0637c6d075c8ea4b38c071d7705422d748103d27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/components/providers/forms/KimiProviderForm.tsx:286 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:353 \u00B7 src/components/providers/forms/PiProviderForm.tsx:1207 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe6aa7cb8a3a4fab3f816740155e155c61f0e04162ad9521faa45c715726c24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/components/providers/forms/PiProviderForm.tsx:366 \u00B7 src/components/providers/forms/modelMetadataFill.ts:56 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc4d300a2261df5a8d9204c97a938cdfbd2bf9fb3114d60df5592064d1abc6d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/sessions/SessionManagerPage.tsx:218 \u00B7 src/components/usage/UsageDashboard.tsx:565 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4816ddda4f75fc654bd558d60b141a0caae21ee6e3b78272bae1fdd477ad6dd3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/settings/AuthCenterPanel.tsx:161 \u00B7 src/components/settings/SettingsPage.tsx:176 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AuthCenterPanel.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98d1e67762ef566e6ddd0d9e9321c58f202c5e93bfeebcbe4e439db1debfce0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/components/settings/LogConfigPanel.tsx:90 \u00B7 src/components/usage/UsageDisplaySection.tsx:266 \u00B7 src/components/usage/UsageDisplaySection.tsx:295 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/LogConfigPanel.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9847f3393600eb018083f3df6a97e02811b99f2666cdeabb910428a2f4c8df08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): src/components/ui/command.tsx:73 \u00B7 src/components/ui/dropdown-menu.tsx:27 \u00B7 src/components/ui/dropdown-menu.tsx:43 \u00B7 src/components/ui/dropdown-menu.tsx:80 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/command.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"426d117b593d016bd71e23536ebdee6dd64c55e7ffd2559daddaf32a365f3000"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/workspace/DailyMemoryPanel.tsx:245 \u00B7 src/components/workspace/WorkspaceFileEditor.tsx:64 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb5298f37e2811e4e928b90ae2c1a08ea2646dcb2d70b447953ed84b32e3aee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/contexts/UpdateContext.tsx:44 \u00B7 src/contexts/UpdateContext.tsx:73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/contexts/UpdateContext.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0342ec70481972bfea8da46d44461d4734e85816adf0ea4fd9bfb59f494bed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/hooks/useProxyStatus.ts:118 \u00B7 src/lib/query/proxy.ts:246 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProxyStatus.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a7acd1ea05d22edc4c4c7f87153e0a8b701be284f094bfa5e1c22f8bfe4f1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/hooks/useSkills.ts:73 \u00B7 src/hooks/useSkills.ts:227 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSkills.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaf72101a9572cb6df38a7073a50c4e5cc7046bb06d87076af4682438ace5e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/lib/query/subscription.ts:105 \u00B7 src/lib/query/subscription.ts:150 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/subscription.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"897c9220b83851a35c242f7d74b62982f55d8833128caca55c127d0308da3a39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:456 \u00B7 src/utils/providerConfigUtils.ts:1047 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64d339d786b685a7540d557bc54c904e0e142f45c7f36c17086d415a9c5e5c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/components/apps/AppsPage.tsx:336 \u00B7 src/hooks/useDragSort.ts:56 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09ca5831d19f51d56d28ad4ffa8d743c4f95e3deab5a97cd3f6faa8ad466f68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8 locations): src/components/openclaw/EnvPanel.tsx:24 \u00B7 src/components/providers/forms/CodexConfigSections.tsx:41 \u00B7 src/components/providers/forms/CodexConfigSections.tsx:123 \u00B7 src/components/providers/forms/CommonConfigEditor.tsx:54 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/EnvPanel.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea23a653850e58eab6b8839b9ebc3e774b33dfcbe453aa9413d39b773412b08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): src/components/providers/forms/HermesFormFields.tsx:125 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:404 \u00B7 src/components/providers/forms/PiProviderForm.tsx:1194 \u00B7 src/components/sessions/SessionManagerPage.tsx:683 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2508feec36662606446e7e6da76ef2a0657eec29d699d742a6d25648d67799b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): src/components/providers/forms/KimiProviderForm.tsx:271 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:316 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:391 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:323 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa09e848ad302ba55a5c35d9f21d3de5915296b4d6433e3cb27831d134fafed1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:113 \u00B7 src/components/providers/forms/RequestHeadersEditor.tsx:30 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f4b798746f45903ff4d6ad057c3f1752aa61dc547dce0ad38cb1663322cae4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:1062 \u00B7 src/components/providers/forms/PiProviderForm.tsx:2285 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dafb2e2dea7e2d5744d9f206aa2b2b77aade5459a373c458fd6ece9c1e31046"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/components/providers/forms/hooks/useCodexConfigState.ts:223 \u00B7 src/utils/providerConfigUtils.ts:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c21bb43b2877b29acac5b2216ad52bef1ad526663b7b1797d1e3e70765e77c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/providers/mode/CodexPauseOfficialLogin.tsx:36 \u00B7 src/components/providers/mode/StackSettingsSheet.tsx:68 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/CodexPauseOfficialLogin.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6786d99981eec30b0d6abbb16f6111908c42afa524787be8d87fa5642ad376"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/providers/mode/StackSettingsSheet.tsx:138 \u00B7 src/components/providers/mode/StackSubagentFields.tsx:141 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSettingsSheet.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c3e82dd91f2e354b00c21a7968e025ead46bc29964cd28580920be4959c95f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/components/sessions/SessionManagerPage.tsx:621 \u00B7 src/lib/query/mutations.ts:449 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe06378722edb26a25b01748a28f85c29562a3239abe6f8f68c47d739698181"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:737 \u00B7 src/components/settings/WebdavSyncSection.tsx:760 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"488cb92b86f20cf1f445777f1d5a0da0233196c064d6f4d57c723f3bb36e15dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): src/components/universal/UniversalProviderFormModal.tsx:484 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:494 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:504 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2342efd27f436b13585c054f05e73a7218dcd18e2f1f61e00b29e7c1c5af63"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/lib/query/failover.ts:175 \u00B7 src/lib/query/failover.ts:293 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb920ec5f526fdcb5f60269eba7a1dd7b63ec387a8608f55d6110cf8af701bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/lib/query/proxy.ts:290 \u00B7 src/lib/query/proxy.ts:364 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/proxy.ts"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d21c8f80e38bb51598fa03886fe0ea2a9df2c32a3f21a8f647ceab2b563e09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:1297 \u00B7 src/utils/providerConfigUtils.ts:1460 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6636d39aab32391230c7b43b4f3cec49cf01dc424c5bc4da223f1e8188af25"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:1662 \u00B7 src/utils/providerConfigUtils.ts:1725 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d7776eee607ef5cd52328a611172a1e19dcbefa56fe11fa0a5712f288e6965"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/utils/routingReason.ts:22 \u00B7 src/utils/routingReason.ts:32 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/routingReason.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bf9db3b3e1f0c36cbeea8eb081ccec664541c2ddf288f07d3e79472f400686"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/utils/tomlUtils.ts:137 \u00B7 src/utils/tomlUtils.ts:167 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc55c0ec23c3f3661958c03c31fd0765d23a369fad66ed3ad61f38c70123cf1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/UsageScriptModal.tsx:633 \u00B7 src/components/UsageScriptModal.tsx:711 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b414d59e1b3bde534dd95b07f132fb6b011530574ee4c196a59530a68363a8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/apps/AppsPage.tsx:1063 \u00B7 src/components/providers/ProviderList.tsx:758 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b9fe7b6f5db6f464019601840af962f1e646a4ab83371c3be35f09d383080e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:279 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:434 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec35f20173d3c128eaa030c2eef225f516f5109d61b89a312cd3fe09dfb59a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/AddProviderDialog.tsx:267 \u00B7 src/components/providers/EditProviderDialog.tsx:310 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bf9b398fd61a2b9623024c51078c1a21a09c51a853eb9a9c97c6d8831d8ee0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/components/providers/forms/BasicFormFields.tsx:118 \u00B7 src/components/providers/forms/BasicFormFields.tsx:142 \u00B7 src/components/providers/forms/BasicFormFields.tsx:165 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/BasicFormFields.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"71647e549a77f0e78c7b7f750675d1fb04c1a36b3a894d4fb82cad2a32e72f4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/components/providers/forms/ClaudeFormFields.tsx:1144 \u00B7 src/components/providers/forms/KimiProviderForm.tsx:627 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:575 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"753572eb129bd5482e4438f362f67109a14dad1ee9f10403a27a8f65044553f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/CodexConfigSections.tsx:129 \u00B7 src/components/providers/forms/CommonConfigEditor.tsx:60 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexConfigSections.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"210da3f134dd9b4332da90e9e4970d1a879981b84283dd018b323211f8acf5b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/components/providers/forms/CommonConfigEditor.tsx:131 \u00B7 src/components/providers/forms/CommonConfigEditor.tsx:140 \u00B7 src/components/providers/forms/CommonConfigEditor.tsx:149 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CommonConfigEditor.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc3ac0f584578d54eb54b445600937ce99bb49f4d830aff5b83940824e797ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/components/providers/forms/GeminiConfigEditor.tsx:49 \u00B7 src/components/providers/forms/PiProviderForm.tsx:207 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiConfigEditor.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bef978604f346e72022b1f6a168f68822318a38c04318dd850d66ff6c2b837"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/GeminiConfigSections.tsx:109 \u00B7 src/hooks/useDarkMode.ts:19 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiConfigSections.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f60692bb88c5b544985f8e7fc1e60a55396bb302488e10ee8e415e97fe4700"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/KimiProviderForm.tsx:141 \u00B7 src/components/providers/forms/McodeProviderForm.tsx:130 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d072744e4962588f6cfcc7b21768f84fcceb4dc74654d2325b888a377d6348d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/OmoFormFields.tsx:902 \u00B7 src/components/providers/forms/OmoFormFields.tsx:975 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"5489eaefafaae9ee84f79b0843edf8b33f72e5312ca2b41eccf3f5e12d2071b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/OpenCodeFormFields.tsx:673 \u00B7 src/components/providers/forms/RequestHeadersEditor.tsx:79 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"908d51d1e3b718a1139ddf250ff0b7cf59c09478bb35c2c2974e1da34af7bd00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/StructuredOptionsEditor.tsx:246 \u00B7 src/components/providers/forms/StructuredOptionsEditor.tsx:262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/StructuredOptionsEditor.tsx"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e23794df07e2ad924df7680cffb2e73b3a22a1856034e7f68437d62c5e4dca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/providers/forms/hooks/useBaseUrlState.ts:70 \u00B7 src/components/providers/forms/hooks/useBaseUrlState.ts:101 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"024b68512ac1d6c4c75cd2cb25dd04afb42cb80e1e8e80319a06f4d86b302472"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/components/sessions/reader/SessionReaderHeader.tsx:300 \u00B7 src/components/sessions/reader/SessionReaderHeader.tsx:639 \u00B7 src/components/sessions/reader/SessionReaderHeader.tsx:648 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27994154bd82efe8739765772a285180c8d1f21e8450fd8df8a728e7f482c0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/components/sessions/utils.ts:304 \u00B7 src/components/sessions/utils.ts:431 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/utils.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc14559a7a2ea9797e00351d2a3b260aab406cd4a855dfafee91dc1fdd7a8fd6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:687 \u00B7 src/components/settings/WebdavSyncSection.tsx:898 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"9effbd4a182d147c2a9a33a190796a0f1ff6c84965d8e7b607e78e53077bf9da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:968 \u00B7 src/utils/providerConfigUtils.ts:1436 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad61979a1080741a6573e155a8406c526639e0ed048131735bb81f2f492557c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:1358 \u00B7 src/utils/providerConfigUtils.ts:1396 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d607da11b049fb26678c9e26a253d1b5371381066852067dcd3424f27ae471"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/providers/AddProviderDialog.tsx:386 \u00B7 src/components/providers/AddProviderDialog.tsx:404 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba49dc51c39f438786aa8999c33e196fcf9235a093d2d441f7ce7ffb6976b4d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/providers/forms/GrokBuildProviderForm.tsx:334 \u00B7 src/components/providers/forms/GrokBuildProviderForm.tsx:431 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8845d56a43794208d7605d102b60c00a75f99596a4d9bf8d135cd336b835eac6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/components/providers/forms/KimiProviderForm.tsx:244 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:342 \u00B7 src/components/providers/forms/WorkBuddyProviderForm.tsx:288 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e471097c4eea089f7d725666dc617ef63dee27d824145b1ada459dd87b73d476"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/providers/forms/KimiProviderForm.tsx:603 \u00B7 src/components/providers/forms/McodeProviderForm.tsx:353 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9da10060d3e158772f130152543c192fdc39fc9c1dbdaa598a5ddd834b23642"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/components/providers/forms/hooks/useHermesFormState.ts:84 \u00B7 src/components/providers/forms/hooks/useOmoModelSource.ts:66 \u00B7 src/components/providers/forms/hooks/useOpenclawFormState.ts:69 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useHermesFormState.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4770cabd1576b9a10905906f4528f5bb69bb33d32ff8153077acb80c960b5f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/sessions/SessionManagerPage.tsx:963 \u00B7 src/components/sessions/reader/SessionReader.tsx:716 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a880677311a5fecdca07903ff4828535eb336a28f02f8fb55e09c0dac5f6d54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/components/sessions/reader/SessionReader.tsx:332 \u00B7 src/components/sessions/reader/SessionReader.tsx:343 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a1a360b2fe5f9f7ac86338140807ab28fc92d07452bdfd3aaf75708ac62f73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/settings/WebdavSyncSection.tsx:979 \u00B7 src/components/settings/WebdavSyncSection.tsx:993 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f115e1cdb707b5a6e1a430536476373a4a2b6e545240d45f883c94d29262f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/settings/sections/RoutingSection.tsx:121 \u00B7 src/hooks/useSidebarStatus.ts:31 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f4980fa09da57afcb457714eb54d58dada471021fec21b9d2c20438449a142"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12 locations): src/components/ui/command.tsx:40 \u00B7 src/components/ui/command.tsx:64 \u00B7 src/components/ui/command.tsx:79 \u00B7 src/components/ui/dialog.tsx:109 \u00B7 \u002B8 more site(s) not listed \u2014 the 12 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/command.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb22523d3f76cac6072cd77df2ec335d590ab909579329f4f6b7d1d1364afcb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/lib/api/settings.ts:150 \u00B7 src/lib/api/vscode.ts:82 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api/settings.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ba185cdd105854f9c96b63ab5e6500e558e8b2f26b9e0965f9cd0622ea563c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/utils/tomlUtils.ts:76 \u00B7 src/utils/tomlUtils.ts:197 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd42a11b60321d750b6ea0ccf953f211eddfea1f90073ca7c8900b92f350ec6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/utils/tomlUtils.ts:128 \u00B7 src/utils/tomlUtils.ts:162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc9f09116b86fe2232841448ae59a6be12c3d3ca0cd0fbdde8a031502cce848"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/components/providers/forms/CodexFormFields.tsx:714 \u00B7 src/components/providers/forms/GeminiFormFields.tsx:75 \u00B7 src/components/providers/forms/OpenCodeFormFields.tsx:332 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff7a16e6302c5cb0342589316377bc00a6424008815f0fe347c764ac5c98629"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/components/providers/forms/helpers/opencodeFormUtils.ts:401 \u00B7 src/components/providers/forms/helpers/requestHeaders.ts:6 \u00B7 src/components/providers/forms/hooks/useOpencodeFormState.ts:150 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/helpers/opencodeFormUtils.ts"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee31ef8d10615f9aba2b871aeaa5d6da7d21bfabdbe7f352f659b59856f4bf86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/providers/mode/RouteSettingsSheet.tsx:35 \u00B7 src/components/providers/mode/StackSettingsSheet.tsx:93 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/RouteSettingsSheet.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd08c9bd659a1b1577d423d1e838c8b5b869009a0ae91f4ea1ee7dcaa4e534b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/skills/UnifiedSkillsPanel.tsx:701 \u00B7 src/components/skills/UnifiedSkillsPanel.tsx:894 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"847fd7069af4674764992763d8639e512b968176c1bb9f4ee636f2c2fe8b9f41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/apps/AppsPage.tsx:1037 \u00B7 src/components/usage/UsageDashboard.tsx:129 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"464f7cdb905eb5cb3b93b7497e58ca6d4c0b622fae0e2bb904618a175d8663fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/mcp/mcpDraft.ts:204 \u00B7 src/components/mcp/mcpDraft.ts:238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/mcpDraft.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7c5d54c32d0d30612fbf5e5361f9afc0bf3281746c59979bf8f247cbd175dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): src/components/prompts/PromptFormPanel.tsx:66 \u00B7 src/components/settings/GlobalProxySettings.tsx:78 \u00B7 src/components/skills/RepoManagerPanel.tsx:93 \u00B7 src/components/universal/UniversalProviderFormModal.tsx:44 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfb66b225a152114d9b7e5256064668a14f3dae2bb8e9ad8f9ad7cf571ef550"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/providers/forms/CopilotProviderForm.tsx:122 \u00B7 src/components/providers/forms/CopilotProviderForm.tsx:142 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"541af31313a41c311e90c2ec571d65ec976c4c8d723421a41c0f1ca0e078271f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/components/quota/quotaRules.ts:426 \u00B7 src/components/quota/quotaRules.ts:447 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/quotaRules.ts"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf2dce63da27a4e94171be70d6758646ae8c63a14c23fd9d3d84c1d87b610bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/sessions/reader/turns.ts:657 \u00B7 src/components/sessions/reader/turns.ts:686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"2299f28a59e32a04f63cef4902df0a0bb091a77963550e396437d85196515249"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/usage/format.ts:517 \u00B7 src/components/usage/format.ts:532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84ca27e804523395ede37e1887c7e112dc2dbecbcc4bf618088e98bac1438fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): src/lib/modelMetadata.ts:184 \u00B7 src/lib/modelsDevPricing.ts:65 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26baf9fc01771a1d0584c4112792f664bcac578b6fd3d643759267c5230fe65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/utils/providerConfigUtils.ts:540 \u00B7 src/utils/providerConfigUtils.ts:565 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca572b3fa896f7b18706e5eb409228792b10876ae6e469f90757803ab92ce41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): src/components/mcp/McpFormModal.tsx:152 \u00B7 src/components/prompts/PromptPanel.tsx:47 \u00B7 src/components/providers/forms/EndpointSpeedTest.tsx:110 \u00B7 src/components/settings/sections/RoutingSection.tsx:106 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d8086ac35f7c901f63d920d6ed98739c4bc4b4b155132fbdba0860a121939e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/mcp/UnifiedMcpPanel.tsx:156 \u00B7 src/tray-panel/TrayPanel.tsx:547 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"757dc495e644d4818c7622537a366d86c9496d0b18a72e66b9dc581a9b7309a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/openclaw/AgentsDefaultsPanel.tsx:37 \u00B7 src/components/providers/forms/hooks/useGeminiConfigState.ts:18 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"55aa28c656cbcb5ffee2eaf880bf4b5440885d4987b3c70b2a8849e68f4a3792"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/prompts/PiPromptPanel.tsx:63 \u00B7 src/components/settings/sections/RoutingSection.tsx:104 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e5dc0c40b392a7cac65f7be2758a1a45fdea563cc26401d331a3f30f20dfce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/usage/UsageDashboard.tsx:187 \u00B7 src/components/usage/UsageDashboard.tsx:473 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c2c8b017da2350d21768549fbd7855ced100258565a4b9d33effe157b48628"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/lib/modelMetadata.ts:192 \u00B7 src/lib/modelMetadata.ts:304 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b608b49b33277bc8e251c8d6f24d18c9ef0aae35bef11d3bb15d6d6e7c999110"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderFormFull (cyclomatic 181, cognitive 157): ProviderFormFull has cyclomatic complexity 181 and cognitive complexity 157; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72ffffa4fabddba086ce500508548042cc796827e2891ec9cc70c00218f3577"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performSubmit (cyclomatic 156, cognitive 170): performSubmit has cyclomatic complexity 156 and cognitive complexity 170; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"137099fb1aa4d4e4ce8cc6b5d606bcc68845bed757b720f87f72bdfc1e18c027"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderCard (cyclomatic 135, cognitive 118): ProviderCard has cyclomatic complexity 135 and cognitive complexity 118; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"575d48cf96a9696bdcdf132f8d0da5b473f3cf1a3e5761b0cce055b35c42f061"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CodexFormFields (cyclomatic 127, cognitive 98): CodexFormFields has cyclomatic complexity 127 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89611f39ca7f11c62caccb30408cb21e1a0b2bc6e58378d32a873cb33fcf677"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ClaudeFormFields (cyclomatic 92, cognitive 62): ClaudeFormFields has cyclomatic complexity 92 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03b348bead872014336ee658b89ea0340881211244d189272d9db15096d0f2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSubmit (cyclomatic 89, cognitive 124): handleSubmit has cyclomatic complexity 89 and cognitive complexity 124; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40451530113b597023b4fa9a95f34a5d438baf57634d495bf7456232949d047"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DeepLinkImportDialog (cyclomatic 87, cognitive 67): DeepLinkImportDialog has cyclomatic complexity 87 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce74e3b31ffbcabbf63cf66cf9035712ce8be9d9608df2f674e33b13eda50e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageScriptModal (cyclomatic 75, cognitive 67): UsageScriptModal has cyclomatic complexity 75 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"77820685034536c0cc5862e3bf25aee33944fddc5a6ccb078e31070a30d96651"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 74, cognitive 113): (anonymous) has cyclomatic complexity 74 and cognitive complexity 113; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b1fc2a98e22172762a64246ddbc09d9b0f374218979236799d2f808657848a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CopilotProviderForm (cyclomatic 63, cognitive 56): CopilotProviderForm has cyclomatic complexity 63 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aeabd5f3045873cc991e06036ac6138633e02f34497eed4d97757683d3eb652"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ToolRow (cyclomatic 62, cognitive 56): ToolRow has cyclomatic complexity 62 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc332edb0cf03eb6d31ae90ea6d6522e713a523cf287eeffecf2807f115b33c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildAdditiveSections (cyclomatic 61, cognitive 135): buildAdditiveSections has cyclomatic complexity 61 and cognitive complexity 135; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"690445bddaa782912cb27821bfba5103dca884579521edbc525d229627f2b7f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SwitchModePanel (cyclomatic 61, cognitive 56): SwitchModePanel has cyclomatic complexity 61 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d36b0b5ba19ad5677c35148910d3e914fbdf6d0b51bb10fb38b168298ff55ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UnifiedSkillsPanel (cyclomatic 61, cognitive 46): UnifiedSkillsPanel has cyclomatic complexity 61 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"35726ff3185fab1b6d5764b481ef28683758d37e989101d0b69381f4f771858c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McodeProviderForm (cyclomatic 59, cognitive 50): McodeProviderForm has cyclomatic complexity 59 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1823fc7242ec668d3b2aa4c224027ccbc93c324d1930de42fab49eb19b71a750"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handlePresetChange (cyclomatic 58, cognitive 71): handlePresetChange has cyclomatic complexity 58 and cognitive complexity 71; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":2298}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d5570695ace9c622bc464be8cd50ed0a38b3f3904c93d372f4d266dc1c2391"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WebdavSyncSection (cyclomatic 56, cognitive 48): WebdavSyncSection has cyclomatic complexity 56 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"abce8f17326c4c163a258494086846525ee43fbb7bc9dff1d40fe3c4fadc7e4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function KimiProviderForm (cyclomatic 56, cognitive 47): KimiProviderForm has cyclomatic complexity 56 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6955fecabbf0956d996fb9e472f1ceb3cf9735bd631f9e5670f801df715f7b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderList (cyclomatic 55, cognitive 52): ProviderList has cyclomatic complexity 55 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"925ecb43def25d5366bbe53f34d1a1fb9b13e3a0c2c367d137132a5f59d2343f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionItem (cyclomatic 54, cognitive 46): SessionItem has cyclomatic complexity 54 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionItem.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa5f82ccaeca06a1dc6ee86b9e12ca516053052739308e954e2676804c9b97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CodexOAuthSection (cyclomatic 54, cognitive 45): CodexOAuthSection has cyclomatic complexity 54 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e37f1b578cadf01941ddf65a499d8d055d72058b42e8575db09f4b4ce7888db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkBuddyProviderForm (cyclomatic 50, cognitive 41): WorkBuddyProviderForm has cyclomatic complexity 50 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cdb839bb701d7ccc10f962f2a8b01206c24879762d9e4b9bcf2d1f41f848bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSubmit (cyclomatic 49, cognitive 59): handleSubmit has cyclomatic complexity 49 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba041fc9fc87df6dfdb932f4a0a27a80e240d44ae55f1be88377ba5276dd37c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleTest (cyclomatic 47, cognitive 72): handleTest has cyclomatic complexity 47 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd72e74851c8c793f83a479c749b9bf00efd8c3a41a099c5c3e44f8675022e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRow (cyclomatic 47, cognitive 45): renderRow has cyclomatic complexity 47 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec4231592519aaca5f9c94c6f0e193c2546e3e32ab950ec5cd61ab7180bfa18"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDeepLinkConfigPreview (cyclomatic 46, cognitive 67): parseDeepLinkConfigPreview has cyclomatic complexity 46 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deepLinkConfigPreview.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab239478194c2116a6b3cd212b8ece87e7c3b9622bf7987167ef525ba1b026df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionManagerPage (cyclomatic 46, cognitive 42): SessionManagerPage has cyclomatic complexity 46 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"60aaaa4d216d0bef5e5e55c11a25918036b0a285638c9e856bcb0ce8a18da740"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function McpFormModal (cyclomatic 45, cognitive 43): McpFormModal has cyclomatic complexity 45 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9725730a8bc7a3b6c0db620de04d4cff14b315cd3d5b2c0c95ae952ca33007"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ClaudeDesktopProviderForm (cyclomatic 45, cognitive 42): ClaudeDesktopProviderForm has cyclomatic complexity 45 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a474baaca90ac4dc11812b0c9c9fbe333eaf437f8776a4942bf4893d703768f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PiPromptPanel (cyclomatic 45, cognitive 38): PiPromptPanel has cyclomatic complexity 45 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb20daa3fa23f2466189b159d0f9e4b64c98b5ba438ed5b3cf7ed71727b07de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 44, cognitive 26): (anonymous) has cyclomatic complexity 44 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3985c108fadb70e9e9c78c608ade82b21277204754eced24f2b9b2a0524b7b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionReader (cyclomatic 42, cognitive 38): SessionReader has cyclomatic complexity 42 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"08203974ff21cf8b62d2d10d217e6c548cd4f0976e58f4a28dc65663f526af33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UnifiedMcpPanel (cyclomatic 42, cognitive 33): UnifiedMcpPanel has cyclomatic complexity 42 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c9de500571fb2250497dbe9f86a0cb10d6e3a74f4fc11b967e0e079100aa14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 105): (anonymous) has cyclomatic complexity 39 and cognitive complexity 105; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useOmoModelSource.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd342cff86df06249601642fcced04b3d32958799f1220cee7806bd59c0259f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PiProviderForm (cyclomatic 39, cognitive 34): PiProviderForm has cyclomatic complexity 39 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4a3850ec7559c0094f94dd576fa764695cfe387d7add45c111c50abdbd110b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function load (cyclomatic 38, cognitive 48): load has cyclomatic complexity 38 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbffe6ecd5bfa9fb1a0be50612f0fd75f28b8024e764f9de78b43d8ce426bd9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BlockText (cyclomatic 37, cognitive 27): BlockText has cyclomatic complexity 37 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e72e48873aaaaaab76bb0cbb2f44af1c9650ef743736441ce9d0ce64af32e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function App (cyclomatic 36, cognitive 30): App has cyclomatic complexity 36 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb721c5894db0beb4a3893e62e9b62f03687213c868f4b556fcca605d714835"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 44): (anonymous) has cyclomatic complexity 35 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c83109be9336a976ebe1b2019f65d9d4c38b228b1fa2b036f610e0c13d66de8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 35, cognitive 39): submit has cyclomatic complexity 35 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ea8abde9fb0b103f1e2c07c27a3acc5fa343acdc45eadb2d343aeed618c57a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 34): (anonymous) has cyclomatic complexity 35 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a80f107dbf6fa4a324f7f56a59d893dea12b11f1ab5cad2ed574a5c63f266a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AddProviderDialog (cyclomatic 34, cognitive 23): AddProviderDialog has cyclomatic complexity 34 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cf895ba30d7d31c7356a6164639d74204fe800c0d4352d1848118fbe25e75c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageHero (cyclomatic 33, cognitive 32): UsageHero has cyclomatic complexity 33 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHero.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1839abc296b1b718e31ec1af4f3c0fe0a2196b9926ed48e6d85bc87a318812ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 33, cognitive 16): (anonymous) has cyclomatic complexity 33 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorUtils.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7362a7937e6f4b5dfaea9d7dad95ad13bea48688f11d9850d7c79cf4b4e3bd33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 32, cognitive 41): (anonymous) has cyclomatic complexity 32 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useProviderCategory.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfd8f34082c11f6bb9d1a9dc8abf45ae6d6463cced8efc3b9bcafd0bf7ac0f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 32, cognitive 34): (anonymous) has cyclomatic complexity 32 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe077b663ed9812c0e5d490d5339868832e370de5ca187bbfc2b14135230ada8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ManagedAccountsGroup (cyclomatic 32, cognitive 24): ManagedAccountsGroup has cyclomatic complexity 32 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38e0b9144aff0db4c44194beab8678463fa0d087f0232e35cba826a2b7f8004"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleDuplicateProvider (cyclomatic 31, cognitive 41): handleDuplicateProvider has cyclomatic complexity 31 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5f89e400a46965f125ba7aabec76d4e3c81b6cd376e7c2777ad4bc897735dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function EnterBody (cyclomatic 31, cognitive 29): EnterBody has cyclomatic complexity 31 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4534d810ff358eda124fb30af2f6a816ab66093b966ef4796c4f611277115f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageDashboard (cyclomatic 31, cognitive 29): UsageDashboard has cyclomatic complexity 31 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5d44242540437c6677df52233fe66e375fda425c6babcb3845bdac23edd0b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RoutingSection (cyclomatic 30, cognitive 29): RoutingSection has cyclomatic complexity 30 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f6cc6a46bc7cb893518ac27a0dbe8b4251b907b02242fece62129f5fb4ba3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 30, cognitive 27): (anonymous) has cyclomatic complexity 30 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0caa1d3c5897499c21ff7328e758c1973f1f9f1d6491d4acc51ade6fb67a61e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 30, cognitive 25): (anonymous) has cyclomatic complexity 30 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf708948c0d8c1a35454c9729dcf52653748038b878f47feef37477cd06dc504"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function XaiOAuthSection (cyclomatic 29, cognitive 26): XaiOAuthSection has cyclomatic complexity 29 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bdad643c7d010f2d5da9d224aab34f48d5b9ee172cc35d442a2c4fb81a1f17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UniversalProviderFormModal (cyclomatic 29, cognitive 25): UniversalProviderFormModal has cyclomatic complexity 29 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"971cca865b1cd564d4bf5f7be238c44b51fe839d1cb47356cebde99d0c7c6244"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 28, cognitive 30): (anonymous) has cyclomatic complexity 28 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionDiff.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"43832e51a6e6d2f3d40bb7e64eef4f02bf367efd9eb9e4b5c484b98ca9543fc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PiPromptTemplateEditor (cyclomatic 28, cognitive 25): PiPromptTemplateEditor has cyclomatic complexity 28 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"108abbd740639f3743f7e8cb79669a38a34f299cf0f05677f06e8622d70dcadb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DatabaseUpgrade (cyclomatic 28, cognitive 24): DatabaseUpgrade has cyclomatic complexity 28 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DatabaseUpgrade.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea097b77c603149e17b2f9653d6a0937dda155d4f3f3931164187e49f274c35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function useDetailSections (cyclomatic 27, cognitive 40): useDetailSections has cyclomatic complexity 27 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestDetailPanel.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"230ce9792a17e117b204248cdf1e90117c09087163bde85ebb6e48c250cd53ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function load (cyclomatic 27, cognitive 26): load has cyclomatic complexity 27 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcce41658a36379edd6cda95891c2e20e52163e566a0513ed8f5d628d5f854f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AccountRow (cyclomatic 27, cognitive 23): AccountRow has cyclomatic complexity 27 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34d7a03d93f9528eaf3735521ef830b2c2ac9d02f85e86679f84a11bf651a97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function StandardPromptPanel (cyclomatic 27, cognitive 20): StandardPromptPanel has cyclomatic complexity 27 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"423940c9f60aa96e1b35b94ab4f24f648e9f89b2d85a1476a8a4d2bdc37e56e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 35): (anonymous) has cyclomatic complexity 26 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4ce0ccbd9e3a8f13138bc02bd721f234a82ab9584b80c4c150f3b46524736a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GrokBuildProviderForm (cyclomatic 26, cognitive 25): GrokBuildProviderForm has cyclomatic complexity 26 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"879f735c3000bae9a317e5f8822ed62a0ed8c7070fd0b18368e86fe200a7fc6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CopilotAuthSection (cyclomatic 26, cognitive 24): CopilotAuthSection has cyclomatic complexity 26 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5201d5c8c31d92e44b30d44fa3a2b1132d016c60f799dbe01bfc7538b7938b1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeServerConfig (cyclomatic 25, cognitive 41): normalizeServerConfig has cyclomatic complexity 25 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"558faf95f18b70572b000c327d79562bd32f8fcdb80210ade1f6fbaf61896203"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 35): (anonymous) has cyclomatic complexity 25 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"01300ca5dc979d698cecdf03b0cad9855467d00ecf11c42fb58fc928321170f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getRoutingReason (cyclomatic 25, cognitive 25): getRoutingReason has cyclomatic complexity 25 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/routingReason.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"655e5b3403c5b233b0f7897af386f40dbac5a934d2cedaa9189d4842963f23d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function classifyEndpoint (cyclomatic 25, cognitive 17): classifyEndpoint has cyclomatic complexity 25 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deeplinkRisk.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"844004e0f57e2a8626e70f741d1a3bbbaef5054423841f5e48a3801a10cd7bb6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectVisibleTextPieces (cyclomatic 24, cognitive 46): collectVisibleTextPieces has cyclomatic complexity 24 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"095bb5c7ae2693eea9b0d61a815ad32e31515597806d4916eb0b474e6f9e9aea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 44): (anonymous) has cyclomatic complexity 24 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/types/sessionFixtures.test.ts"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e1bcf3c6adf4b6c49a4a55f7b27070fb482ce3beba57fb8b6442cf970618b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeForSerialization (cyclomatic 24, cognitive 32): normalizeForSerialization has cyclomatic complexity 24 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/frontendLogger.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3621b94be0cef93dad1fb09a7d6e8c23078b3bf5b6ac168a6817fe112d04d940"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 23): (anonymous) has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b95cd98886136759c2962b5e207d25657ab905d849039a8da839c57b21c1df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSubmit (cyclomatic 24, cognitive 22): handleSubmit has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebc2ee90855cd4d12b2bb8248183b724a73d81c468059e1b261ddcbf3a83b39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionStepDetails (cyclomatic 24, cognitive 18): SessionStepDetails has cyclomatic complexity 24 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95ab7dfff0efe982f5d4098373b9a3aacb4ad5af8819122ed864ac363fb1416"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onKey (cyclomatic 23, cognitive 28): onKey has cyclomatic complexity 23 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6a3f5d77ef03a59dc1270848ca71f4f3ba7a6bc49a44ad8de6986361c67c63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mutationFn (cyclomatic 23, cognitive 25): mutationFn has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3761151c1d1cfe908ec6160e041b5ee6b448de52aefac890143073734815a3cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 23): (anonymous) has cyclomatic complexity 23 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProviderActions.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"715f727b4d3bef06cc2adfce037954fc757b4b695ce6a30fac8d1e86923321e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NavItem (cyclomatic 23, cognitive 22): NavItem has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"554c915774a91fc2c7a6c67b5d0827240d5eb93f8dcd2789b80ac951b46ab979"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 16): (anonymous) has cyclomatic complexity 23 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dc1201a71e580cbe7cef883cf05263cae010260b62083f23062841c9afd68a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 39): (anonymous) has cyclomatic complexity 22 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f177b79bebd3f156d83de1dec1df8cf420489b03f4aa0fd246be43a3005602"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PromptFormPanel (cyclomatic 22, cognitive 21): PromptFormPanel has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"869a2113f979c7eb3337318b88253a44a4f3a4f6e00b4bb9dd508e124f677493"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderCustomModelRow (cyclomatic 22, cognitive 20): renderCustomModelRow has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40112ccaed1dbb44a3d164642d217611a0df751b052de8ed7d0a30149053bcc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function QuotaLines (cyclomatic 22, cognitive 20): QuotaLines has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebe3cb40892d6c9f22bd5eb17530a4c04222be3c1e9a2fbb3e766bbfb2165bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OpenTerminalDialog (cyclomatic 22, cognitive 18): OpenTerminalDialog has cyclomatic complexity 22 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8212cdee07298e87e6e9569ecc1a9bbd1bdf3133d752eaa7aa5d05a9c345515c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderAppPageHeader (cyclomatic 22, cognitive 16): renderAppPageHeader has cyclomatic complexity 22 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714916fdc88642f346c135a6c6261df6988e42cec4d89f155e0e0052cc9c768"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 38): (anonymous) has cyclomatic complexity 21 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CommonConfigEditor.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32d10e7f7c3c932aabbd60ea300754fa81512918425779d4ea9b229e7088b60"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkBuddyOfficialSection (cyclomatic 21, cognitive 18): WorkBuddyOfficialSection has cyclomatic complexity 21 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyOfficialSection.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"952704f88ee8c42844e242f882fc14fc55bbbf35163255383f2fe44776a25a9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 26): (anonymous) has cyclomatic complexity 20 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20d78c62463aab0c0bd399099528465b3cf5e4decea37f83308a0b2cdb1c911"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionReaderHeader (cyclomatic 20, cognitive 25): SessionReaderHeader has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64aa2146e5f5babeda4bb8bd69aa891cf5756a59994b219a60b719f17287dc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SubscriptionQuotaView (cyclomatic 20, cognitive 24): SubscriptionQuotaView has cyclomatic complexity 20 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SubscriptionQuotaFooter.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93e4a938bec2f262be2d2cfe8a8878b8ad30ad2e4f5ea8814c0d40016ebf3d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderEmptyState (cyclomatic 20, cognitive 13): ProviderEmptyState has cyclomatic complexity 20 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderEmptyState.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6742671a507dca72ca3da9a2406eae8094e26a15004b3e8c19bfb7e0a02046ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function flattenModels (cyclomatic 19, cognitive 36): flattenModels has cyclomatic complexity 19 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelsDevPricing.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e033d2bcbf7dc9c143e92048b408ed193bbf798eb7f8c42f1590b4c55934378"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 24): (anonymous) has cyclomatic complexity 19 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/toolSummary.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db1305b8a2d95015882f1c275db44f2d24b4550ea29acbd0b4fdf4556f2dd62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppNavItem (cyclomatic 19, cognitive 22): AppNavItem has cyclomatic complexity 19 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c26a52e9a7feccdb5599306423ba5e3a6b5cf4d2a0e10c0231c1f2955fc094"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatTokensShort (cyclomatic 19, cognitive 22): formatTokensShort has cyclomatic complexity 19 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c889f6b46ec3de9a1d0c0780dd249a89d4af319d2b7599fe60079605d2b0b8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isOfficialSubscriptionProvider (cyclomatic 19, cognitive 18): isOfficialSubscriptionProvider has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ae1ca24f62a2f18a5e2467fffca8c6eba619d4b63e5728b45c7a403bcdd2f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MatrixColumnHeader (cyclomatic 19, cognitive 18): MatrixColumnHeader has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/AppMatrix.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ea3c5cf3fd4615bd211355c6b52df846b730248ba42289af6f42c727c7d11b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isOfficialProvider (cyclomatic 19, cognitive 18): isOfficialProvider has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aefad3df9121ec32d6c3167bbcfd791e392f856de3fcad12a28b19ab9d6c6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TrayPanel (cyclomatic 19, cognitive 18): TrayPanel has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2109acd3acc5097a4d444762fdd27066d0ca1bc6bb23b51f06a43996c0d4984e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handlePresetChange (cyclomatic 19, cognitive 17): handlePresetChange has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48868fb2c8c02cdd1bd4404862fea1a16b4672e73b33d84fdaa89b151ec3e15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function legacyByokConfig (cyclomatic 19, cognitive 16): legacyByokConfig has cyclomatic complexity 19 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/copilotConfig.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"50903c16fa9ba197b8439344138e20e1d193460e544bf66d4bd56ac92737f86b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionReaderToolbar (cyclomatic 19, cognitive 14): SessionReaderToolbar has cyclomatic complexity 19 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f39354b4085d8c7a27ce95523ffeef5e1051e3018c3f969d6637465455d646e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 14): (anonymous) has cyclomatic complexity 19 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"69458bd64af5197908db38d2d687812081068271226214ef424936cff0305594"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 13): (anonymous) has cyclomatic complexity 19 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff6f78715fd983b4a6bdd627a84846421fbaf5303754bd57ee3a09b62fbdb92"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 38): (anonymous) has cyclomatic complexity 18 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e201a98960ab7dd6a071beb2a29a5a511eeefa798c957d20a8b3295a090ed2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 34): (anonymous) has cyclomatic complexity 18 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/usePromptActions.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"151b3b9dcb409d28c31aee7abcf1bddef325408a1d9e3e9d82e396dcaf0cc036"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleUsePreset (cyclomatic 18, cognitive 29): handleUsePreset has cyclomatic complexity 18 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"8181632b09d2a7c164179a491a0a18a6bbb3b741a728d4cde0744b29952aab4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 20): (anonymous) has cyclomatic complexity 18 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/errorUtils.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0dc8531c3d76a3777474410b5c233d2a23c588b91d5768fdff33f655f874b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateGrokBuildConfig (cyclomatic 18, cognitive 18): updateGrokBuildConfig has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/grokBuildConfig.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"97abc348703b42dbbfe0cb796abec5c7247938813518927d34195a38a2f59858"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FullScreenPanel (cyclomatic 18, cognitive 17): FullScreenPanel has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/FullScreenPanel.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe619336981263ebe70d6b724ec3458e936415be2e771286e786c741972bfdc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseModelsFromConfig (cyclomatic 18, cognitive 17): parseModelsFromConfig has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useModelState.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f85c2213a713211c86a985c13f3b6369964e864a28fe92703a15aefb74a149"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toKimiModel (cyclomatic 18, cognitive 17): toKimiModel has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/kimiProviderPresets.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c924cef85a6353270963f5397e550269da31cc70842a39dac3b6316beec3c8ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerNeedsRouting (cyclomatic 18, cognitive 16): providerNeedsRouting has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d2e2fd67b1a785ca367e6a20e8bfae4b0449b02ebad8a0b1588b2a41e723b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 10): (anonymous) has cyclomatic complexity 18 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionEventRow.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dacff71b4d4d01120244548e45e5f246279ca5dad62bf3fb05a0583202d2456"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleFillAllRecommended (cyclomatic 17, cognitive 23): handleFillAllRecommended has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dc77cf84613152c4e8cd46e98c7d24845387eacef1fe8dcb22deeef4f7fb20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 22): (anonymous) has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"784ca858417f5125cac065b5b2864da2503de36ba28d924d1ba92854dd0774e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleImport (cyclomatic 17, cognitive 21): handleImport has cyclomatic complexity 17 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bfcc92452e59d17e68fd0fae47e0bbb6cf358abdcae21973f831325528ff75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 17, cognitive 19): handleKeyDown has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"1923d83cd5439cf54b4a2afa20dea56e6f0d1afa51f2344dcfdb50174254d6d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillPiModelDraft (cyclomatic 17, cognitive 19): fillPiModelDraft has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"025dc1172ec0709a97916ba385a1a58343e4d49dd92faae738396f71c4e17fa5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageFooter (cyclomatic 17, cognitive 18): UsageFooter has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c203b9215b34f94b544dabec1b231fba436dc5d39efa461dcad88999355246"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromNativeText (cyclomatic 17, cognitive 18): fromNativeText has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9b0b2e96130f54cbfc524a95a1af5d19c4bbe28aa986da123035cc283a4d25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 17): (anonymous) has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd74e88fd97cf39f28c56e742a12ac7835258a1880344a783cec1e10316d535"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppsPage (cyclomatic 17, cognitive 15): AppsPage has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"95304b43b52de93c969f19d26e60da237518540956838503953fba29b9a01b1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 15): (anonymous) has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95cc58560c61b04b040d3ad615d7da4616d587214540585e681555a67a2dac4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AboutSection (cyclomatic 17, cognitive 15): AboutSection has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc3cb9b15529e044d405aa2b75256bceaf27da9b31bf94623fbb67d6a855409"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkBuddyAccountSection (cyclomatic 17, cognitive 14): WorkBuddyAccountSection has cyclomatic complexity 17 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/WorkBuddyAccountSection.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b7729f873ba8c054cf3bb91190c2e70c44c3ce605cdf2a8aad5a41cf1337d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionFinalReply (cyclomatic 17, cognitive 13): SessionFinalReply has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionFinalReply.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b50a3938f3f0525d2c4c8c4d7b1d6e261f0c4c6b89ce841794bd67d92ea62bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProviderList (cyclomatic 17, cognitive 9): renderProviderList has cyclomatic complexity 17 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f27898873421666111049f9d556b325a7b0729ba203415022e6b524d4c7e626"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 24): (anonymous) has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4f04152772d79646d9d587e1b79df554fa0ccc45c4eb2f331cbcb4791fe044"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function comparePre (cyclomatic 16, cognitive 23): comparePre has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/version.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"835eddbc8e4db5b00175fd1a657477c1e19b6d9b8adbac7480da7be5754c1b37"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 20): (anonymous) has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d74401ab3468c37ede22782fa5c7360e43c38f465420c08906c1a64deda715"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 16): (anonymous) has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useModelState.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19ece55331311acc771ba0378bfd042d58919b634c190ca206144f16f8ff364"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCodexOfficialIdentity (cyclomatic 16, cognitive 16): resolveCodexOfficialIdentity has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6593840dea47a57ba31ce211efef164ccef57fbb02d77a65e9d7bd8d41e9b91c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 16): (anonymous) has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14dc9bb49ded42f8e6a4072a3cbc9f51f88a15a83dc65ed0f107bc883545501"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MemoryTabPane (cyclomatic 16, cognitive 15): MemoryTabPane has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/hermes/HermesMemoryPanel.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5312b78dfbe6384b4bbbbe6ed940fb94445b7506ada35335847a1a9777d4ed83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 15): (anonymous) has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e629de85b274af344e1d499f0908f1936b31c2ef864feef47e397cd4e6862d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function KimiAccountLogin (cyclomatic 16, cognitive 15): KimiAccountLogin has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/KimiAccountLogin.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd254fa5a731fd1567043749f154f063d2221e17d06cf3164b472e39036144f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ManagedAccountRemoveDialog (cyclomatic 16, cognitive 15): ManagedAccountRemoveDialog has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ManagedAccountRemoveDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"58322464ef3242e46bfd96ed708015e253b0be35e5b30824814ea50577abf45e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function InstalledRow (cyclomatic 16, cognitive 15): InstalledRow has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"017ec47850c283e061791c9bcc2ac0db7880f9a00c09baf793f2670d013b982b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getLocaleFromLanguage (cyclomatic 16, cognitive 15): getLocaleFromLanguage has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee67e3c7f0a24470b9b2320320f775ce178b3f46fedbdb8868ce1ff89216d41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SubRow (cyclomatic 16, cognitive 15): SubRow has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfce459ef049c618080c3637b2abc922198e8e16c49d330de05cfe413a47614b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 14): (anonymous) has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"d728cc0c965cc3b4fffdeb1b8b42e4d029282300e3418847f041583b40a7dc88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 14): (anonymous) has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7473251d536dfad646c3403907c56c03e4877526e39a3541086e81a1b27bade"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showFetchModelsError (cyclomatic 16, cognitive 14): showFetchModelsError has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api/model-fetch.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e832c78242b36cc4214286d01313a0987f5e4c6484f3ebb2bbb92e4b4a5a8423"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 31): (anonymous) has cyclomatic complexity 15 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95335075a5e36b31d4757dfc53cfa84854731c48c1f580b1d968cef3edc0a47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCustomModelsIntoStore (cyclomatic 15, cognitive 26): mergeCustomModelsIntoStore has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7706b8007e61b553a5aa2becfa8f474152265828cc06d644c7841223b14202"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleFetchManagedModels (cyclomatic 15, cognitive 22): handleFetchManagedModels has cyclomatic complexity 15 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ba6054ec0746223a02eb7f2e7a3be598f648195d911c52e1baa64b20fa0075"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 20): (anonymous) has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/textNormalization.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"14727f4c11c78239a08958c92ae6f8256114115ed0aa3d7d74a49fb2af1cca9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uninstallIds (cyclomatic 15, cognitive 19): uninstallIds has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62301156f4697ee7812a0fd2f9634077b213302ed19a557a8c3a14268e030ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleDeleteConfirm (cyclomatic 15, cognitive 16): handleDeleteConfirm has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbe8a3e268d018c1ecc9cc97d0a3727765cdbc7c8dc81eb86a74adaa4228f85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fed18d189de78d8acdd25ad9f4ebb2d6cf1549c9629ff9f029cf629fc95f6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3967047006294b88f8511c58a16f30f4115acb8ceaa917a49d3d194417431e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function EditProviderDialog (cyclomatic 15, cognitive 14): EditProviderDialog has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33b2643357bc6643732e57e1ab610f23fa0c174726f76bd7097c13151364869"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ClaudeBoundAccountLine (cyclomatic 15, cognitive 14): ClaudeBoundAccountLine has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ee160d953fc04328d8a624d99abfcd82d800464fd828584ce0a0939886226b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionThinkingRow (cyclomatic 15, cognitive 14): SessionThinkingRow has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionThinkingRow.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0662de740681d3fb3c0f220e1456f79be8ec8401b3436460a601077e630aa87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfc1e8659a2a16381ee43775e337d27ac08062a6f7aff76fd429626cee127f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function StackSubagentFields (cyclomatic 15, cognitive 13): StackSubagentFields has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/StackSubagentFields.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"734f016c3c66ab25fa90dbb913c8aeab89544ad6b12bbab782c259842b28635a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function edgeCursor (cyclomatic 15, cognitive 12): edgeCursor has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0a16698bebfd1b2ba628b3a994f14c51d25fb9841497137f320afde9ef9384"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveDisplayUsage (cyclomatic 15, cognitive 12): resolveDisplayUsage has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/queries.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb6801b99169aa09e2801259aa72802de756e0704a540519faf90696ef9094a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 11): (anonymous) has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/common/AppCountBar.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5a6b2807d6cf4fe1e3c125b2dab2452650c40c3502639165d92320ef4105df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 11): (anonymous) has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5aec3fa512f3a61f98f347dcfbe29872ec967a60cb162196368fc46aff0fd01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function indexModelsDev (cyclomatic 14, cognitive 22): indexModelsDev has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ed486e5385af1b338c8aa3750682c7add79f72cf7aa0c8d2da3f0b7168b0d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 21): (anonymous) has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"5917edc6c08faba73b4e866f06f282d64f55a7727bad1d1284c3573376a31b5e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 21): (anonymous) has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/textNormalization.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c08914d47721d0ee2f9776bbc56c933cbda5a19c146aa5f0c30fcd30e29504"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pollOnce (cyclomatic 14, cognitive 19): pollOnce has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d08a4bc08fbb69dff4d7c1b4ffcc8d3498f35a7e9f18e1b0ea35f022fa1034"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 18): (anonymous) has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bd9887456acde6453e04725e6280c3ad65f3282212b5e113acff5e8dad9571"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderEmpty (cyclomatic 14, cognitive 18): renderEmpty has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f44313e227f728cd6afa20195b4cf648507deb409b2ad904ef414cd77c999a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildSwitchSectionsByView (cyclomatic 14, cognitive 17): buildSwitchSectionsByView has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0b5201ddc679cbfafe98682a8e2d62dccade26b5ffa6a3da6a13ce09e81c7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/piPromptTemplate.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7b0851db3822ff3f5c224e3c241a2fa65d51efc9b0b3d3836b69e66330a94b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkBuddyOfficialAccountLine (cyclomatic 14, cognitive 15): WorkBuddyOfficialAccountLine has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/WorkBuddyOfficialAccountLine.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e3b759327b42cd46751a5a27f2d0973d0d0f4552906a80b369dbd335b1b340"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 15): (anonymous) has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0bfb4bcf79e36421fc31cd104d16b4a1f7be8a133bea0620104bd107fb59a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillOpenClawModel (cyclomatic 14, cognitive 14): fillOpenClawModel has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/modelMetadataFill.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7134b599bf814e7fb003fc55c893e4ef209d2e7bd2e48c99936ff40594432fd2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function presetVersionLayout (cyclomatic 14, cognitive 14): presetVersionLayout has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/presetGroups.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c2fa7df3f8ec87e6d57ac9cde2eb8fae0f29c19e6d251b0f56474b3c45a713"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 14): (anonymous) has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionDiff.tsx"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b56ec26fde545d4c7eda3925f28427aa70fe8aade9375aa0bbdf2923189b46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DailyMemoryPanel (cyclomatic 14, cognitive 14): DailyMemoryPanel has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0736d7192a7d7fa53e87899fdf7b1eb32b24536a26f09ce50dff842631063f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebbb2af1da2f43041c5162d6f48729058c1a7e11f5e51f3a8e52a924420f947"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cf9f529a24998c829ec6be0860110dbb75502dbc8c13103e94151c79e609d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onKeyDown (cyclomatic 14, cognitive 13): onKeyDown has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14c63971b23fb619ad9cb553c29625766e4b244e1eb993adc6104c2b0ab9dc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ToolRow (cyclomatic 14, cognitive 13): ToolRow has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStep.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e256cc63747a4ff00b329b274e9880498c8013a9d48d80ecc4d1707fa097bbb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"077f2a2525ba2ac355879d5b677a778bff7d7b705dd14fb89415ef62bae303c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderCardActions (cyclomatic 14, cognitive 12): ProviderCardActions has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCardActions.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd75fae0c0872105f01d04acc8e4b4d09a0f9bbd3b82908cf29d05f6cf3748d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ClaudeAccountSelect (cyclomatic 14, cognitive 12): ClaudeAccountSelect has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7810a64b522cdb9a4676fbeeffd6006400c452f0ce9e42cbfa7468acdd9facc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PresetPicker (cyclomatic 14, cognitive 12): PresetPicker has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4c386a7be84d228aea3c6ea7d37114ddc55c2ad5e9cb337fc02827e0f4e46a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageTab (cyclomatic 14, cognitive 12): UsageTab has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de665d3363abe7401e90dde4bf683f953063f0c6b0012b4efc4ed55174acf9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function piCompletionsThinking (cyclomatic 14, cognitive 11): piCompletionsThinking has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/modelMetadataFill.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e23982ecd0dac01dbfff2d0be145a95a14c5d40c155821869fc899da2c470b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 11): (anonymous) has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/exportMarkdown.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3239d8eaf4863f2bf5667f5a752abc0b187989e43a421c89645218d6b228da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageHeatmap (cyclomatic 14, cognitive 11): UsageHeatmap has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc309090ae749b79fac1b0f8fa36de9a6eeed9064ca7c3af90bac1867de38fb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 23): (anonymous) has cyclomatic complexity 13 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/hooks/useOpenClawModelOptions.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"714759e4229de4a8e8ac4b338b0bd3ffa3669460e008440a3205fd837f6edd01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSave (cyclomatic 13, cognitive 17): handleSave has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e66cb640e97aa136fd7014d35820d23c88abe44d4391fe4d604d48da476bc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeProviderMeta (cyclomatic 13, cognitive 17): mergeProviderMeta has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerMetaUtils.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"75efd4b194b9f360a981517d4a14d545a9a011467581a2bda1a76fd199c7be8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 16): (anonymous) has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa446aa374ce5a64855bddccc7f38513970c2811ae8557787dc4f8d75dbdd95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitSingle (cyclomatic 13, cognitive 15): submitSingle has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"611378bcd85f807b9a3e429ea79c1ce7d26f415007d90d0c337d34d5d5b87685"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb90861c285e1648b623b2ea0281f61c825f20dde3ca203dc0de4b9aa444d7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toQuotaTier (cyclomatic 13, cognitive 13): toQuotaTier has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a138bdf5823421cfda5c713d230556cf58b8acbe663ea9d92126cfa6f3e3eac5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec65103721561ceb822e2bfe7922c6ad38cb5eaab2aa4a6907b099669d6c7d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiConfigFromToml (cyclomatic 13, cognitive 13): kimiConfigFromToml has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/helpers/kimiToml.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e873e55701dbaf8b66857981523c6491d67c7a1de3ba49c4293b4796a590738"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateGrokBuildConfig (cyclomatic 13, cognitive 13): validateGrokBuildConfig has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/grokBuildConfig.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e0cc9dc88543a435f414f3df088870ae08aa5da1a3539e72979568e18f056b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfa512da1443234210974e0f71e6d3d33b62e6763aa4e866f84adedbc7d2c42"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ToolUninstallConfirmDialog (cyclomatic 13, cognitive 12): ToolUninstallConfirmDialog has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/ToolUninstallConfirmDialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"772d62b8db69731266a6497179a9f4a4f09b29dab69582821f315461861cbfeb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleToggle (cyclomatic 13, cognitive 12): handleToggle has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5110cc8845ffa53add4fbbdb28387d4cf0a4dd608f216432b4115f791dca50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OmoFormFields (cyclomatic 13, cognitive 12): OmoFormFields has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d1a4c80a796d13957186251c66fe24aeec45e13977c087de80c1e5ce98fc38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resetCreditsLine (cyclomatic 13, cognitive 12): resetCreditsLine has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/quotaRules.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"70406e0cb259878ddb9c4cd9b34b2aecba3f5d311515ef3769a57e074bb27f31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionTimeline (cyclomatic 13, cognitive 12): SessionTimeline has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionTimeline.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"454288f80d87dc89a6cad6a50af88d7edd8247f101da6b3aa63e24c8f4f11f64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/toolSummary.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4ec972cee3144c5b0543f5b0b9b2b2d2aac7415464a7bf74e6239555dd5d46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AuthCenterPanel.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"174d4f75210c680fa27da209f3a791887f0a92692ab0a4cbb1177a54eb37dc37"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppPageHeader (cyclomatic 13, cognitive 12): AppPageHeader has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/AppPageHeader.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb427b3cb700f1b1d3ce1293f5793792f778e7b1b37b91ae8ecca47dc6541a20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkillsStorageSheet (cyclomatic 13, cognitive 12): SkillsStorageSheet has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsStorageSheet.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a794f9bcb7fa9078bb97580de9bcbe58a3687ae1fb5f24c69099182c0782ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageDisplaySection (cyclomatic 13, cognitive 12): UsageDisplaySection has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDisplaySection.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb412fe52ef44d0006b755e5db7b26678a27cf680034ad5ab20c03267361d87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDragSort.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"07159737eb9b78b68105c0191dc2409721691fd5edf60809f4fc7ed5835d587c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function IconPicker (cyclomatic 13, cognitive 11): IconPicker has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IconPicker.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4c54cb7ccbd71d29dbde458a59aafee147436d35c5c8f7a97f6adcc532d57c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentsDefaultsPanel (cyclomatic 13, cognitive 11): AgentsDefaultsPanel has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/AgentsDefaultsPanel.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8dda13ce1b55c05d041ccbb78ab5c527e54acd2b8e044bda9663baab58a357"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 11): (anonymous) has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec6136eb43863b8b08511b66073b635831a96503e08b9094cc94302a2e98a38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionEventRow (cyclomatic 13, cognitive 11): SessionEventRow has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionEventRow.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3918dfb0c7bf6bdd5aa308e5602d8c79f7eeb7b881ee595e2df43ed8f0beb62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GlobalProxySettings (cyclomatic 13, cognitive 11): GlobalProxySettings has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"353ce68cc4baf828962a7a2905ce7dac6c627b772e9905ef87fc9e09d2c8da88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GeminiFormFields (cyclomatic 13, cognitive 10): GeminiFormFields has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GeminiFormFields.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"236ee3484fa6ec57ec9850c758b96b546ddddd51e77f279f706c951374862482"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RequestLogTable (cyclomatic 13, cognitive 10): RequestLogTable has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c3ec8029e4f2dd44e1bfce06ccebe5b1e4a27a8d5d185b0a804e772a3cb865"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ApiKeySection (cyclomatic 13, cognitive 9): ApiKeySection has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/shared/ApiKeySection.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d795aa1d4854897c7c2b9f3979bbe8eec0b145e1c040c609590a6fc0f0df0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 18): (anonymous) has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb5c27cfe780c81a4bdf41e013795f0e8a4a49dc853e16fb79a4489d6f597f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeOpencodeExtraOptionRows (cyclomatic 12, cognitive 16): mergeOpencodeExtraOptionRows has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/helpers/opencodeFormUtils.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91099b02ba192d9b8779946ad4d6f55058c9588b235e605290dddf26f6c627a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 16): (anonymous) has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc3c7ab1867e0d351fa5452b8fb4717a4b41021350203e9bd7538e5c8f17c40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromOpenCode (cyclomatic 12, cognitive 13): fromOpenCode has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/mcpDraft.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba70377ee53efc3197cc2edbd47dbfd9a4f17f9fa4ceaf19c695f1f653dc074"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSave (cyclomatic 12, cognitive 12): handleSave has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptFormPanel.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea35478c6d9312598add6f041f7a784aea6cac091b351c97109c7ec5de4d07c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyDesktopPreset (cyclomatic 12, cognitive 12): applyDesktopPreset has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b659507e59b84a62f5a125e72bd86a25c55769690283f066ddd44fe50a177ad9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/EndpointSpeedTest.tsx"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"447b79e811a349267e3030a64c70961b7d98d316f6f94493e7f835cfc04dab3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workbuddyCardLines (cyclomatic 12, cognitive 12): workbuddyCardLines has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/workbuddyQuota.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e85d940b535654d20b35472043ecaaf8f32859c829cff53a8f7713052f274e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe73da7b7c61bc7eae32ff0551727e80fadf5622d92043aa7c68f4d37b76400d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderInstalledBody (cyclomatic 12, cognitive 12): renderInstalledBody has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fa28fabbbd70c5e5c1dab32d2d0239771b9fd993c8269524db5cabf888d314"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function planLine (cyclomatic 12, cognitive 11): planLine has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageFooter.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"513e6e30b8ff5478e50b30200d7aa80da1159a7bf1b103a9eae0318d2a3ba3ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSpec (cyclomatic 12, cognitive 11): normalizeSpec has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/mcpDraft.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5321ac436f9869145455ff55715ccc76d4265dd67e209564ba1eec7454503488"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PromptListItem (cyclomatic 12, cognitive 11): PromptListItem has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptListItem.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcd1a6c7edce294b1ba03cc322a3c25097573fdb009b1b3f6937ffa0cb2e39f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"956b5c021ad5e728ca485117782229fc4210354166ce06fff9b8b3dfa89cf2c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderBuiltinModelRow (cyclomatic 12, cognitive 11): renderBuiltinModelRow has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f21e59598086f454e32ef7e112f7696e60cc1347c305682bb8db41933966d20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bae42a03f0a0a1819589207543ee400a5437fb5afd2273089faaf1d2c0fb4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillOpenCodeModel (cyclomatic 12, cognitive 11): fillOpenCodeModel has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/modelMetadataFill.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f82f27789ea6e2a8d06694866a3e024166beae70e137cacd092a60ea47d353"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionOutline.tsx"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0cf80a4dc3ae0e332edb3ffd22f7f2d1a6544316d6b289322108adcefb546f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f753b4c6b6b487da1cea024ce0d0f81f3ee966ad7d8ef8743f1b7f3672654ab8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelsDevAutoSyncPanel (cyclomatic 12, cognitive 11): ModelsDevAutoSyncPanel has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb28645a18c0b5d109ccddc590c5e3977b4469012e9c9a55055bcac4f7dfadb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PerformanceCells (cyclomatic 12, cognitive 11): PerformanceCells has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/statsColumns.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceaacb2c1f147753243ebc783aaf2465a4d3a5b0065b12d18bd5572b34d6f2d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettingsForm.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8b0d0da5f25497e7231af97161986ed5d569327a6b4ed3711805d50258917e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettingsForm.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c80873100871f1881085f7851377e4eb7a83309d6c36a6baf493475dc5e706"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b528501358da1d51d4c95a30a7b846382e9ee4dc5835ba586227bbf4679c3a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1383fce6a7b05d9106736b2df5ca7d4bd43b1a61f26d00c03a77b082491bb419"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageTrendChart (cyclomatic 12, cognitive 10): UsageTrendChart has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed9afe79a0fcb76649a76ed44e792f474ef237f2dcbf5933f843be1cc39a1e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function show (cyclomatic 12, cognitive 10): show has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/toast.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"939cf3eed00b9559e5faacf5f2d11518ddee151a9eee4e4172220ab42b5bec62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function jsonValuesEqual (cyclomatic 12, cognitive 9): jsonValuesEqual has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f95782775149e079dce46ef0306d2d7d990fe5cfca598c4dd02f95f71024a32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleConfirmAction (cyclomatic 11, cognitive 20): handleConfirmAction has cyclomatic complexity 11 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb706136df77ab7887789abf6ae022257e006b4fc28f0025e00d9bf9095d97c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClaudeStackModels (cyclomatic 11, cognitive 18): normalizeClaudeStackModels has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeStackModelsField.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f3fefd6205b6a8d63ec8fb1e47392e384498ef002c94b5f568748602064d6e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseHeaderOverrideJson (cyclomatic 11, cognitive 17): parseHeaderOverrideJson has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/requestOverrides.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b3f96724673dd462017a6ad85a98dcb938a05f4a805cba395dd862fb94ae40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findByVendor (cyclomatic 11, cognitive 16): findByVendor has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaca00bb915817ea26613eace35a87fb8b6e9b1bb1b078fb43f8bcc3646ef42a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"866665dda7b7516fda63ad6941f031e0d0ebb8073931a1d06d026a3cd2e5d72e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useSpeedTestEndpoints.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e13ecee8ca6603c16012ca0ee2a4b52cf1c5e599f176383356075ff4af3c4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workbuddyExpiryLine (cyclomatic 11, cognitive 14): workbuddyExpiryLine has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/workbuddyQuota.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"140fdc9b81354250dceaf2f6d24802355fbc7578d9a24cc309f688935c919047"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 14): (anonymous) has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"229a77b7faf2651bd386a77512b0fe04785ea6b4856abd837a8666ccce9294dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workbuddyQuotaState (cyclomatic 11, cognitive 13): workbuddyQuotaState has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/AccountQuota.tsx"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"39451e89e5bfbfd44ab515b2d19cdacc85b7821071caeae942638ac959ef9b28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useGeminiConfigState.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc54f32c47bb93eb96e891260bb64c982dbe3a14edcb2160609a0850141a65e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function piPresetThinkingFor (cyclomatic 11, cognitive 12): piPresetThinkingFor has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/modelMetadataFill.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c5d09fd56a07eb3e66d6c2f8f5efabbff885be3d2cfaaf4816f52c21e2e280"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/usePromptActions.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8f349033775776dbeed8439d13c869270d6062f938db8b799e724598b07a24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (top-level) (cyclomatic 11, cognitive 11): (top-level) has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/rewrite-updater-manifest.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"633134e1df54f353486d288306a945ee7b3de060edaa6523bd808e25f38d4581"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workbuddyOfficialCard (cyclomatic 11, cognitive 11): workbuddyOfficialCard has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb6f621436f85dc595c32bce326cf131b2037d89eed5529322d3c14baff6167"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncModelsDevPricing (cyclomatic 11, cognitive 11): syncModelsDevPricing has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelsDevAutoSync.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"72850f575f13f5407b90cd005f1d2565c77f48abda9a050a2808ac4ddea8ca08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac4ee4492e3f9115e354215432c6088fd12f959d2b1b109fff714010eee6192"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileSwitcher (cyclomatic 11, cognitive 10): ProfileSwitcher has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/profiles/ProfileSwitcher.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ebb4727d93abe9eb9566599bcdd25bb0562f96614cb58f393ad745b87d8f20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function terminalIsIsolated (cyclomatic 11, cognitive 10): terminalIsIsolated has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"828d96a32161838beb5658dab51a4ca7c836cbe482d859fea2002acf93e98fe8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"133d1cc4c870bd6841f6bae56ab58e8ef827317b1a3419f990f90ec50e73125c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f63eb8dc8538f9c6f0b0cd81c5bac1319edf0b1051a5054c23cf6379495001f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HermesFormFields (cyclomatic 11, cognitive 10): HermesFormFields has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a006589ddc7f8af29ed80350fe8b05bbcffde48e020deb0e978d44237f91af66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"9017c34cc4d93ee9bcba96de6929ef131d49dfd1aa25edea2adb47f74e5d5806"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function animateToggle (cyclomatic 11, cognitive 10): animateToggle has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSidebarCollapsed.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab994b2d31be7759865d18509fc13d1d5a3656be8171f729f309ce6f86a2ab8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function JsonEditor (cyclomatic 11, cognitive 9): JsonEditor has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb4d4e11beab27499f6b6435fa9199835281dbd87f4ac0b72a77eb96d16ebdb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ApiKeyInput (cyclomatic 11, cognitive 9): ApiKeyInput has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ApiKeyInput.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fd5d269f097b505fed672185ee27700111813a5953c20a43f103b4a05744f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PresetBar (cyclomatic 11, cognitive 9): PresetBar has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a50e55f41379d7bd66cd6701da8cdd18fc7937547ae8ef635b4048115814f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/useDesktopConfigMessages.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac9dde92011a2f8b6e357d94509122ea170db0381d1d35a3cd87aaf48a8122e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CodexQuotaProtectionSettings (cyclomatic 11, cognitive 9): CodexQuotaProtectionSettings has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/CodexQuotaProtectionSettings.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e991645b9cd676d8a3c7a5a17cadffd95858e176fcdcc54cc43994e1b750e03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ImportExportSection (cyclomatic 11, cognitive 9): ImportExportSection has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/ImportExportSection.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"99153709f18ab615bc59bc2b63d67f4d5b055541549df8a5239578e1ed9ea1d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SidebarTopBar (cyclomatic 11, cognitive 9): SidebarTopBar has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5259ef299a279f03764f14042fa4c55e7e4f9fa570e2656189e57ec64d64eee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09e1639b272f268b4821c52aa1f15ae143e17e321ca1eeb1798c8dc9c10167d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03f27cbf28f8211c8e5dc8440137c2f68fe0c092e929f0f3a96b1cc37752282"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PricingConfigPanel (cyclomatic 11, cognitive 9): PricingConfigPanel has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cb1737c037c2e7103ee34f72fff843b8f693679496745b24ae2a51f3f5b55f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/openclawProviderPresets.ts: 7430 lines of code: src/config/openclawProviderPresets.ts has 7430 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/openclawProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fe1a1fe41c49a6642cf8663808df0ddcf39254a16eb2691349785d25e53333"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/codexProviderPresets.ts: 5113 lines of code: src/config/codexProviderPresets.ts has 5113 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/codexProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab4454f9f5f8fdd089f69305a4c9b2e779ae6d7ec6ac74268c3260beb443249"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/opencodeProviderPresets.ts: 4922 lines of code: src/config/opencodeProviderPresets.ts has 4922 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/opencodeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaef15bcfe0535bafdfe0ee41daa895dee9a69e4972cb6ab57e921205b9ff48c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/hermesProviderPresets.ts: 4122 lines of code: src/config/hermesProviderPresets.ts has 4122 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/hermesProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71f9940d61c1b332b759f696d9700ae26769fd320bbee7a33f9a8c8d7be71db"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/piProviderPresets.ts: 3507 lines of code: src/config/piProviderPresets.ts has 3507 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66504af8eb4dd090c8fada301ae6071a22fa90431cecb15258c021329875a929"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/claudeProviderPresets.ts: 3237 lines of code: src/config/claudeProviderPresets.ts has 3237 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"784130a9d47e32876bc1d2bb64eda3f4aaa1f056661f24a7beea9a1e947bbfd0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/ProviderForm.tsx: 3104 lines of code: src/components/providers/forms/ProviderForm.tsx has 3104 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f171c2a55d4d44ccecaf507c76a8ee095c6397a97278a77bc183f651fab09fc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/claudeDesktopProviderPresets.ts: 2600 lines of code: src/config/claudeDesktopProviderPresets.ts has 2600 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/claudeDesktopProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b079b2e83200d189a30eb789f32d3c06220a1321f3255b2721f75d6f93d3dfc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/CodexFormFields.tsx: 2439 lines of code: src/components/providers/forms/CodexFormFields.tsx has 2439 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4969ce81f0369fd480b1803babd5431cf3b6df513fcd7e4efd40b8b79b46ab99"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/PiProviderForm.tsx: 2283 lines of code: src/components/providers/forms/PiProviderForm.tsx has 2283 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4eceee252290f69dc844572a0728e522695a0cf6920cbfc9f912d8a973d05ba"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/skills/UnifiedSkillsPanel.tsx: 2059 lines of code: src/components/skills/UnifiedSkillsPanel.tsx has 2059 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/UnifiedSkillsPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b79a834c895841b5ee373c6357ca52be7422437b782f76e1aa8abb28c08d0cd"}},{"ruleId":"R3","level":"warning","message":{"text":"src/App.tsx: 1969 lines of code: src/App.tsx has 1969 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e5e36e6cf14eb68e3613543420a642de8dbc4234a72bca76bab878dca786c9"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/WebdavSyncSection.tsx: 1808 lines of code: src/components/settings/WebdavSyncSection.tsx has 1808 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/WebdavSyncSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a62638f4b775f8d9c5ad9efefe1dacb5e20335b126b54b4be30a34a89cf6f48"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/UsageScriptModal.tsx: 1691 lines of code: src/components/UsageScriptModal.tsx has 1691 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f3ecc11f232de0d9db62372e81a1a6d25bb52196fa59833b8f1fad87b1b8b0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/utils/providerConfigUtils.ts: 1636 lines of code: src/utils/providerConfigUtils.ts has 1636 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4674a8d1727a3a36464e20d1c93af800d1c79f11aedef913a95cab4d47beb0e0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/SessionManagerPage.tsx: 1591 lines of code: src/components/sessions/SessionManagerPage.tsx has 1591 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionManagerPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5f3a59ac9676b5348261502d73ca20d8bcd2acf70a06289102a393e25da2b6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx: 1440 lines of code: src/components/providers/forms/ClaudeDesktopProviderForm.tsx has 1440 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f041484ec5951c6afb64f9421dc3f0351520d3ad5b00a57984fc46653efc73"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/mcp/McpFormModal.tsx: 1399 lines of code: src/components/mcp/McpFormModal.tsx has 1399 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/McpFormModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39812a75a66f9ea1f62c439691bf37bb69518a64e456d8fd43b2ef018edf1c09"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/ClaudeFormFields.tsx: 1301 lines of code: src/components/providers/forms/ClaudeFormFields.tsx has 1301 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fed3ec830ae2c9e93f406d54b9ee3aca67b31ed6a60169c8f606d7eae33b5ff"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/OmoFormFields.tsx: 1259 lines of code: src/components/providers/forms/OmoFormFields.tsx has 1259 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OmoFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f2c84f4bc620f61bc0c0379c626d017a82b05ef34448eca3fe82e643e828e1"}},{"ruleId":"R3","level":"warning","message":{"text":"src/icons/extracted/metadata.ts: 1238 lines of code: src/icons/extracted/metadata.ts has 1238 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/icons/extracted/metadata.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f3b675ed6061ca4bf2e0fa0edada42123ef64c0503c5f95ecbd6bbaf8ab5ab"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/OpenCodeFormFields.tsx: 1202 lines of code: src/components/providers/forms/OpenCodeFormFields.tsx has 1202 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenCodeFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a41c7756e4da2d0e457e3ee78b35d49ba928541f4ce3169fad8e56788ffc9b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/mcp/UnifiedMcpPanel.tsx: 1188 lines of code: src/components/mcp/UnifiedMcpPanel.tsx has 1188 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a70a0a0e761a1f7c88437cd3ce5dd30d80a1abc08c3eb342488edca0d2ceb5"}},{"ruleId":"R3","level":"warning","message":{"text":"src/tray-panel/TrayPanel.tsx: 1152 lines of code: src/tray-panel/TrayPanel.tsx has 1152 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/TrayPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a291f8066cf22f19ebcc447c22dfaa8d7e33421a764b5e39afc57520cb3df26"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/geminiProviderPresets.ts: 1104 lines of code: src/config/geminiProviderPresets.ts has 1104 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/geminiProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d058a23d6fab4ef84c92cc8344fd6a8a7cd1ac6f6c29ac18c3fcd8152b9d8ee"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/presentation.ts: 1094 lines of code: src/components/providers/presentation.ts has 1094 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"562e0ffffdc8611347b298372bb3f2028d8dfec743b901c7d40f4caeea41165b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/apps/useToolManagement.ts: 1088 lines of code: src/components/apps/useToolManagement.ts has 1088 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"795d7b76069f7637c5918053cdec0096ab394198d33e54fd75e1bcbdd755b536"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/CopilotProviderForm.tsx: 1072 lines of code: src/components/providers/forms/CopilotProviderForm.tsx has 1072 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d1c9efa6093d8d96b1f78da9f2d39e72c2730f2ffa890d5d0a800e268bd8b5"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/apps/AppsPage.tsx: 1042 lines of code: src/components/apps/AppsPage.tsx has 1042 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/AppsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5833f45507119b3a0ed9288026c4236e628a0f4817e4d60b39070ce4d06bf45e"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/reader/SessionMarkdown.tsx: 1036 lines of code: src/components/sessions/reader/SessionMarkdown.tsx has 1036 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionMarkdown.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"965571f8f4829e3c52c488ecf431576a831bc818c7d653713def215cb3aed0ae"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/reader/turns.ts: 1022 lines of code: src/components/sessions/reader/turns.ts has 1022 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/turns.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67eec38634d77993986730f9d764844bdbbe38f4c5d220a9c662be94a3c5bc9c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/skills/SkillsPage.tsx: 1022 lines of code: src/components/skills/SkillsPage.tsx has 1022 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/skills/SkillsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd328f5dd1bdb9a1b280fbe0d41b1a3b42649d08f3a7dbe77421460ff096959"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/prompts/PiNativePromptResources.tsx: 1007 lines of code: src/components/prompts/PiNativePromptResources.tsx has 1007 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d45af0f8c3cdc019797651886dd6bb80f8e5be814941accadd0acdddfdab768"}},{"ruleId":"R3","level":"warning","message":{"text":"src/types.ts: 994 lines of code: src/types.ts has 994 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f49cd1c0fd77852d07570fd928be070f2282096234398c3fe608c17af4f382f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/UsageDashboard.tsx: 984 lines of code: src/components/usage/UsageDashboard.tsx has 984 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3546bd8b850db568d00aa3ed8173c6bb92d434a1ef89317be8e798ce751c970"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/DeepLinkImportDialog.tsx: 981 lines of code: src/components/DeepLinkImportDialog.tsx has 981 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DeepLinkImportDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b3161e89ddc85288e6d38eae748961400ec2114782de5b3f75a05e29c2a7e5"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/piModelCatalog.ts: 938 lines of code: src/config/piModelCatalog.ts has 938 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piModelCatalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72961059d01e07da96eb00028c57cd771c268c6d6d6b4f002f0be521f429bd36"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/KimiProviderForm.tsx: 884 lines of code: src/components/providers/forms/KimiProviderForm.tsx has 884 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d782957294b0df6c3f85e2bbc656dbea35ce32c6703ee5993fd4459b6947c6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/ProviderPresetSelector.tsx: 879 lines of code: src/components/providers/forms/ProviderPresetSelector.tsx has 879 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderPresetSelector.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"679ebc0785b474f93e7da75f5f9515ccd7c80b36c3a34b70c5a7e61bd445069b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/grokBuildProviderPresets.ts: 837 lines of code: src/config/grokBuildProviderPresets.ts has 837 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/grokBuildProviderPresets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"092d36715a06e8f655595b114d5642d0e2c265ff5f32388e73d5b4f105dac209"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/WorkBuddyProviderForm.tsx: 830 lines of code: src/components/providers/forms/WorkBuddyProviderForm.tsx has 830 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/WorkBuddyProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a98030a5033c737f0f6ea2c1bb57b660c644b16c45581002cf1076fe83bfa6d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/ProviderCard.tsx: 813 lines of code: src/components/providers/ProviderCard.tsx has 813 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderCard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92cc3bf89a711586b2836056b57dc745f07fb5af000845936327c8effe14e73"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/reader/SessionReaderHeader.tsx: 809 lines of code: src/components/sessions/reader/SessionReaderHeader.tsx has 809 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReaderHeader.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1751c1f5aa6d3e8cf4cb54fc0f358d7fe09031a48d57d018e46c938d40ea03"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/reader/SessionReader.tsx: 796 lines of code: src/components/sessions/reader/SessionReader.tsx has 796 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionReader.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa5b2b30b5364fc72b54652a61c7b9ff9208f53bb0ce4180f17d5dc70e9c18b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/shell/Sidebar.tsx: 745 lines of code: src/components/shell/Sidebar.tsx has 745 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/shell/Sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7255ccde3b5c553949f0f7ca727693b60417af082e12e884fa286d1c66df07"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/ProviderList.tsx: 741 lines of code: src/components/providers/ProviderList.tsx has 741 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/ProviderList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9463c776511e15a344ff1a1ddef3141823ff85d2beae5f259210ead3edc9d3"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/quota/QuotaLines.tsx: 705 lines of code: src/components/quota/QuotaLines.tsx has 705 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaLines.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bf7453482e18380b71586f59a99aef0214c532c12861ea52a699ae34ab8b8c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/auth/ManagedAccountsGroup.tsx: 705 lines of code: src/components/settings/auth/ManagedAccountsGroup.tsx has 705 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/ManagedAccountsGroup.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8fbe76f4d5695d476e3710a3d5c6bb9f620ffffa698247e91c57f4a0a6b00b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/mode/SwitchModePanel.tsx: 699 lines of code: src/components/providers/mode/SwitchModePanel.tsx has 699 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/SwitchModePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9848b9a22eceb9e9d3a61fc05abd6160ac3b09429777414ba793f81a66471b09"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/ModelsDevAutoSyncPanel.tsx: 691 lines of code: src/components/usage/ModelsDevAutoSyncPanel.tsx has 691 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88dc687609b744e42e5d159e387375b2cf0dacafd220c74f8d15c263c6964be"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/RequestLogTable.tsx: 691 lines of code: src/components/usage/RequestLogTable.tsx has 691 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0fdfb37382dc1a15f9fe649f5d432a467a42138c065e6094db0f5ab666f001"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/universal/UniversalProviderFormModal.tsx: 679 lines of code: src/components/universal/UniversalProviderFormModal.tsx has 679 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/universal/UniversalProviderFormModal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be8d91913a2de472e1ac02f8af6133ac72d5c82c34d8fc879772adfb76e261e"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/OpenClawFormFields.tsx: 636 lines of code: src/components/providers/forms/OpenClawFormFields.tsx has 636 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/OpenClawFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cafec666ebbb0e7fe8097a231caff5415825f3d80312c766040d277b18f8f22"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/EndpointSpeedTest.tsx: 595 lines of code: src/components/providers/forms/EndpointSpeedTest.tsx has 595 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/EndpointSpeedTest.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52bf358c6eb19e1d9e9f2d1032d6c96c2ceaa822f98407813a17e234c98acac"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/PricingConfigPanel.tsx: 593 lines of code: src/components/usage/PricingConfigPanel.tsx has 593 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/PricingConfigPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f06db1eabdb6c4357775a030e77f52f93ff984c91061267b5163ea79d1d0404"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/AddProviderDialog.tsx: 585 lines of code: src/components/providers/AddProviderDialog.tsx has 585 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/AddProviderDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb7484abaf1d124913536cdeebccde9770e7d2302bdaf5e17bac71116d42719"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/GrokBuildProviderForm.tsx: 585 lines of code: src/components/providers/forms/GrokBuildProviderForm.tsx has 585 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/GrokBuildProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd22e5a41202548652c22497b52f4d928d09c443763ccfe98b918fae7e3e39d7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/hooks/useSkills.ts: 578 lines of code: src/hooks/useSkills.ts has 578 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSkills.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a12757c9ce506211c230799feaaa8d42524286b86c906113dcbe9f887bc93c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/ClaudeOfficialSection.tsx: 571 lines of code: src/components/providers/forms/ClaudeOfficialSection.tsx has 571 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd751c8efd528ca32b7364c5a9e85f153c650489661069f711eb9fe286b1952b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/SettingsPage.tsx: 564 lines of code: src/components/settings/SettingsPage.tsx has 564 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/SettingsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7008798e26d0c09c4fa6c06486dbf077326a4dc77a95c178c1d1e05dd511f550"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/prompts/PromptPanel.tsx: 562 lines of code: src/components/prompts/PromptPanel.tsx has 562 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PromptPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"272049090299cfb09fc0fff8a19513d90d435871cd3a86212dc56c6fee2983d5"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/auth/AccountQuota.tsx: 560 lines of code: src/components/settings/auth/AccountQuota.tsx has 560 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/AccountQuota.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f987d1c2aed8c322a14f1f76cc8647cd11dc615a1d79e05281cf0c794fd80d4"}},{"ruleId":"R3","level":"warning","message":{"text":"src/hooks/useSettings.ts: 548 lines of code: src/hooks/useSettings.ts has 548 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useSettings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9288e819a7f1ea3521b7ff3635b55ca5b5b2ee3268285bf98ee359fe9a40abd"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/mode/ModeDialog.tsx: 537 lines of code: src/components/providers/mode/ModeDialog.tsx has 537 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/mode/ModeDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cdc67fa965e531fd3f0b2df78e5c8936be4797f7f09aeaac395a4e7d55d2ee"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/prompts/PiPromptPanel.tsx: 530 lines of code: src/components/prompts/PiPromptPanel.tsx has 530 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"592623f343d1e2cf489f8e552bec7e3a70231cc6ab670932713bf6980fb5f148"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/workspace/DailyMemoryPanel.tsx: 526 lines of code: src/components/workspace/DailyMemoryPanel.tsx has 526 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/workspace/DailyMemoryPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b719c17bea9abef910d5f14883b1a5f0a7331ff9aa0c4005d76eda6165dcd49"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/CodexOAuthSection.tsx: 520 lines of code: src/components/providers/forms/CodexOAuthSection.tsx has 520 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0854b16a1fd4261f61b304d8e13d266724e839b330ed8f33658cb20e45cddc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/proxy/AutoFailoverConfigPanel.tsx: 500 lines of code: src/components/proxy/AutoFailoverConfigPanel.tsx has 500 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/proxy/AutoFailoverConfigPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd742ef1986479307aff617180f4f1b9caaa7e2fe34b2a8c7d7f40b40a7edaa"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/HermesFormFields.tsx: 497 lines of code: src/components/providers/forms/HermesFormFields.tsx has 497 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/HermesFormFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"786ab9d93d5d1991367d367de4e348b841be1813061aaf9a51282bf130f3cebc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/format.ts: 495 lines of code: src/components/usage/format.ts has 495 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcc4c5561117e6abcc3828f7dd32a9db318e5a9382e671d6d1fbe60a7a738ae"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/UsageDateRangePicker.tsx: 493 lines of code: src/components/usage/UsageDateRangePicker.tsx has 493 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageDateRangePicker.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4d3d9e9e9829057fa89d867131012325d1bab4880ebc0252e9a2cf717341ea"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/sections/RoutingSection.tsx: 489 lines of code: src/components/settings/sections/RoutingSection.tsx has 489 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/sections/RoutingSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8997a38980e192fc0f6e16e2fe28f4d2c0c116a9edc3999f7a760dec630031da"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/CopilotAuthSection.tsx: 484 lines of code: src/components/providers/forms/CopilotAuthSection.tsx has 484 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2749af855a6174a8c82e48a2c980a9916ba841ab3006c24c3955ac20aa10f6db"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/BackupListSection.tsx: 484 lines of code: src/components/settings/BackupListSection.tsx has 484 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/BackupListSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3219897ca323d66c51bac78cc2fbff92b6d0c0091e38ce01626adc6d7590a96e"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/OpenTerminalDialog.tsx: 480 lines of code: src/components/providers/OpenTerminalDialog.tsx has 480 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e6ed5f7cb42b01a19a56c5ed08b19ad96828b49b4c933a727d19a9847e529e"}},{"ruleId":"R3","level":"warning","message":{"text":"src/hooks/useDirectorySettings.ts: 473 lines of code: src/hooks/useDirectorySettings.ts has 473 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useDirectorySettings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f423367ac3040708aa679437f26deb9e866ab4abd4776be364f43b1c134230c2"}},{"ruleId":"R3","level":"warning","message":{"text":"src/lib/query/mutations.ts: 473 lines of code: src/lib/query/mutations.ts has 473 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/mutations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81941b96d7caf4b913f210d3a29a26484c8f3e5b49f7bb77db92f69622991662"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/XaiOAuthSection.tsx: 470 lines of code: src/components/providers/forms/XaiOAuthSection.tsx has 470 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e4a8715ec5197b229935fa54ca82d5a1a3ab48e2f47650045fc16af74478eb"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/mcp/AppMatrix.tsx: 463 lines of code: src/components/mcp/AppMatrix.tsx has 463 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/AppMatrix.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62924f1a6753dcb203ae9c292561c90c62cc78c6c19deb7bd4bc4abbfde4c557"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/McodeProviderForm.tsx: 463 lines of code: src/components/providers/forms/McodeProviderForm.tsx has 463 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa2f6f7415e4d5e42eb0fe3d8709fddf556b6fdc7a1bcd8d560aed04744a4c0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/hooks/useProviderActions.ts: 458 lines of code: src/hooks/useProviderActions.ts has 458 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useProviderActions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1846e3dcc138c24c4e1a73f0913e4d0e8215018e1d754f6f3b97cf553cb76e61"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/presetGroups.ts: 447 lines of code: src/components/providers/forms/presetGroups.ts has 447 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/presetGroups.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8821e5eb3f19013f41e70c6e89d8f6556bb0a730345b7c746cf865e6046dca9"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/UsageHeatmap.tsx: 447 lines of code: src/components/usage/UsageHeatmap.tsx has 447 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18aafa9c0fd300e0dcd19efba8cdb15cc4cc16bf0fb11ab5289207b04943af0b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/UsageTrendChart.tsx: 444 lines of code: src/components/usage/UsageTrendChart.tsx has 444 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4df00a6d9982a273a671cc9b439a52de79cc4225f9bfb74e3a68452724143d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/hooks/useManagedAuth.ts: 443 lines of code: src/components/providers/forms/hooks/useManagedAuth.ts has 443 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useManagedAuth.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa332420878e8292fc6e5a95c70fac05d7b7ce7b89b02f9d9ae98bc6575d7b7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/quota/quotaRules.ts: 440 lines of code: src/components/quota/quotaRules.ts has 440 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/quotaRules.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"689c60bbf50774c499d8a402dddb066348cb3f70f1238fead7e5f5fab34ddd74"}},{"ruleId":"R3","level":"warning","message":{"text":"src/lib/query/usage.ts: 440 lines of code: src/lib/query/usage.ts has 440 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/usage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f9050b167de60f2882f105300dadb1cd42a21e83f01611eb59c73aafb6fe70"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/settings/auth/WorkBuddyAccountSection.tsx: 437 lines of code: src/components/settings/auth/WorkBuddyAccountSection.tsx has 437 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/WorkBuddyAccountSection.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43cbe0593a6441db90f6e6ae1027513051a57b09cfa5b8146275c33fbc5f184"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/reader/SessionStepDetails.tsx: 428 lines of code: src/components/sessions/reader/SessionStepDetails.tsx has 428 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionStepDetails.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e50147dbac522f61490f140e686b0f420ac928bcccf1cc51448cbaff1c4cca"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/SessionItem.tsx: 426 lines of code: src/components/sessions/SessionItem.tsx has 426 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/SessionItem.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8880fe62b2f7d606f8d12be5cdc326d905baf17bcdac833d1114132981c8e554"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/sessions/reader/toolSummary.ts: 425 lines of code: src/components/sessions/reader/toolSummary.ts has 425 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/toolSummary.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed5b8d941f25aebe2224f1fbc4bb17b79aeed1cd3af273c81205aa4be516a90"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/helpers/opencodeFormUtils.ts: 418 lines of code: src/components/providers/forms/helpers/opencodeFormUtils.ts has 418 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/helpers/opencodeFormUtils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4604764ee1c71cad40c2418e3e9b7d15c01f83fb193faa79beca739e3c935737"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/EditProviderDialog.tsx: 411 lines of code: src/components/providers/EditProviderDialog.tsx has 411 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a436357224e0ff7259dd8aea34ea47842bf17e263e3d9271bc9c992f87e65f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/types/omo.ts: 407 lines of code: src/types/omo.ts has 407 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d303c68296bdcdd5a96c4a013c5b4afb5eb8368e6f687973d292ce57609f58"}},{"ruleId":"R3","level":"warning","message":{"text":"src/lib/api/settings.ts: 404 lines of code: src/lib/api/settings.ts has 404 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api/settings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31324d566e180da48570c28b219c8673c1d94ae2c80c95b2ca4f1cb73d6b66fc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/providers/forms/hooks/useCodexConfigState.ts: 402 lines of code: src/components/providers/forms/hooks/useCodexConfigState.ts has 402 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"013bdac1f1aa67690f909c5433cda26bb76a11fe66b178fe7be503dc889ec749"}},{"ruleId":"R3","level":"warning","message":{"text":"src/tray-panel/UsageTab.tsx: 402 lines of code: src/tray-panel/UsageTab.tsx has 402 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6d9723ed8192c1aa8348ca161714a194f6bdb25b26e3dfb16e71db28b2bd5d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/usage/RequestDetailPanel.tsx: 401 lines of code: src/components/usage/RequestDetailPanel.tsx has 401 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestDetailPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d26f3d51c3da4124b64c8743f9adff589fe3a08e2846b298bedfafe957c23d6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/piThinkingProfiles.ts: 401 lines of code: src/config/piThinkingProfiles.ts has 401 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/piThinkingProfiles.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaab1ef25ce1607dfaf594f3b81df9bc0c837c894f4ab506ad9a900f68c310c2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DatabaseUpgrade.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a46e27b1b127211704f178fc275e96da9bc9a804f7d396c1fb1b2c58c67d5e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/proxy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df892c623b301fd3a10228e6afa92e7c3fc99f01044fe1dfcb5d34c62b1c6f61"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a520f01fcc93262a0d9800408f0663ba9f124a53540e2dfd2d558a23f4dd00a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/sonner.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa5b32316750671c285a4c6fda670b38389c7c2e89440ddb317ef1b5f8feae9"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfd287e26c8cbe1ef180fbd1f76091d1b0f423105eceaecb0927142bb4e986f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/disableContextMenu.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02252307f1b19913d11fbc1fb9b48187cb19e839d97857f05d15aee08f66d77b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027McpIcon\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/BrandIcons.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4af0b84c83edd59aef76044606dab9080288df330993fae538e4af6fda2618"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DatabaseUpgrade.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"36442d721641324a85a78ab747f540b0ceb03182fa05266eff4897ec1334b748"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027PiNativePromptResources\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiNativePromptResources.tsx"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"8596472a9efe20434c4eb1761643d9b1f04735d712918e4f4b1e6bca619b6ea0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/AgyOAuthSection.tsx"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"918aaef1ed6baa76def6dd633c20bb0cfd8dd1e093bcfb89d4614f8e8ff7e229"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de7d04011f12c20a7dd790ebda2306e8f0ce949b02a952f7e577d6786d385f5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"9403ae0eac497cbed7d870a4301561b3db3fe9ca942612256f7329907aceee42"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotAuthSection.tsx"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f0d8812de21c22c3468f2258acde8aaeee072a4b70266fe0e14a0806a4c53c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/XaiOAuthSection.tsx"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1463286d28221c78207b7fd3e1b0310ad593139aa909b2e618b78678a43266ab"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CLAUDE_DESKTOP_DEFAULT_CONFIG\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/helpers/opencodeFormUtils.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef637d45b49ebaf77b843d03afdd21a51dce9a551a0704045a2f0f6eb9f176c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/auth/WorkBuddyAccountSection.tsx"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"857b7be7b40b120e79e7d604d591e2ee37db709e20b89eddec40b202290f9256"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TABLE_PAGE_SIZE\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/TablePagination.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"90498fceedd7b80ea1c2afd6e2a9efa139dccbfa4aa8a3a9abd3440b48d9c8f1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useUpstreamProxyStatus\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useGlobalProxy.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25ae2c6823bd135cd9e3677bdb84d85e2d029180235df30224796dc89365175"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027HERMES_WEB_OFFLINE_ERROR\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useHermes.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"66374bebb46ef0b3cd26a63159f9c589ef6e1e470744626fa3d2d044043556d7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027McpImportResult\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api/deeplink.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"afec5db833c73961e7ebade7e77c7b3d6d60ea8179c6ad0581fe412310c34f1f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027restoreEnvBackup\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api/env.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b8d29f47fc25fbe4bf9c165d91ae6b82cb2dd9192d65e0db87277c3199e5c3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isGlobalPage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/navigation.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ff6c207f4fbe05c6f074e408aff4670024d44e99bc315d95aac387bbcaa882"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027normalizeSettingsSection\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/navigation.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"854f0fe1b0dd1d18d7feb231f821d44ed1b1be9e82fc8495fb3ed036275546da"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useResetCircuitBreaker\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2180c67dac0539707c70efb11be1b92bcedbead4185df7fd2b56b2420ee74587"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useCircuitBreakerConfig\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5d9e8049f35db2db87e9cdb1eb225ebdcd778db0d710c4fe0175f69f5de1cb"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useUpdateCircuitBreakerConfig\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61d1b316b3b69ebe53b4bcd9c54d146ba78edeaa2ede70085af6fd2a97ce2a3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useCircuitBreakerStats\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fe9a3f06f731df76bccb89c062c8dd2d1b8ca63151e39a253e0b98d138cab7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useAvailableProvidersForFailover\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/failover.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ad3343bc0be97d7a1e80a06381cb78390a7317bfd198032c322ef207e2213e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027omoKeys\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/omo.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"341144332e86c42336b5d4a9dbf43ebf6d9b60e29a5e0822991ff0d1a47ff08f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027omoSlimKeys\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/omo.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0955d5eba29b12593b5d13e6c1ba63044711e8fdf89eab64fd682e14c1299df"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027promptAppOf\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/prompts.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9aeba87fb347b8e1bf3f5b22ff3909ec1dc3a7422c56ec630ec5ade24436f3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027usePromptListQuery\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/prompts.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"446617db13a9e6323f32a15e75b6671c2b0990e11dcefcb5ed1c44a0f4a9b87a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027enabledPromptOf\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/query/prompts.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c3c7b69f547a3c439fe7864c2689dc6d6b65efb0508a6f8c996f0c99661592"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027IconPreset\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/icon.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6c9721e63f5f0432f08ce439a3fe8a416fe58189501f54ce75f047f7371684"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_DISABLEABLE_AGENTS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b76bb78802747da668591419630ebcf15f55e7cfc288304f5d75098fa27f37"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_DISABLEABLE_MCPS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a364ab856766cf3fd3e866cdcdcdcdbe5d226a77c62e0e83699afe9f9bb6630"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_DISABLEABLE_HOOKS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8342332d4a173573c44e092dd8305111178756f7e8007dcea59dfe49399af568"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_DISABLEABLE_SKILLS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c372598501725c73fa45873f2482146be9f938240eb5cd5446f258b30074275"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_DEFAULT_SCHEMA_URL\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82c849e9048ba4b2cad59839d99b23335e6764c26fa71a37f69e7a31648cfd9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_SISYPHUS_AGENT_PLACEHOLDER\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ae9f1939025b439542acb192e91e9f2623357aaa12b93985508b3cd369dad6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_LSP_PLACEHOLDER\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1cceb16096e69e2c9558a6e66ec8ece2c052960e7c0805d89e7f856ccdf9fe"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_EXPERIMENTAL_PLACEHOLDER\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abc6792a53fd9ac17c1de189f03bc492e47c0ba7b66d5f713804f10e0fba13e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_BACKGROUND_TASK_PLACEHOLDER\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63e3b0bc2108fa02d6ad7365f244f809714fca33fca307f6dbe8ad526929f6a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_BROWSER_AUTOMATION_PLACEHOLDER\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"e250c33024925a90a5d67c47c2de67117a7fa75abc3dee22774d8f4289782e9a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_CLAUDE_CODE_PLACEHOLDER\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a3ef348c5acd2f0b2deeccaffd3fbc1848f1955a6432be40629b62ff70bce"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_SLIM_DISABLEABLE_MCPS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc65427746b6fc62277359ab06c1d2947e13a3351845c436670b1254908c449"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_SLIM_DISABLEABLE_HOOKS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c289641b4f58ceda6a4b22d0f30a4f36a3f5157f6fe5c7320894b4bfe8fd98"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027OMO_SLIM_DEFAULT_SCHEMA_URL\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/omo.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"da72600860c53981e95884be1e1b63171449d601b44016e4e02a2b07bc24a2c4"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ProxyConfig\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/proxy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5925062783c520f7f9d246ded60336f5ec0dbb2391dd532a6d1e659cda98a7b5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ProviderHealthWithStatus\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/proxy.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca44233232db501acc5fc912d31aff41b4078e33b83b553c557ccd737c26877"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ProxyUsageRecord\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/proxy.ts"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"496400b669f2a140c20c82552aaa302eea8fadde5ac660ade8a6c7d310da3b5e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TokenUsage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/usage.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bb91e6551014e278ad8360e147a1602c95bb32a7512904632ebd73733c0302"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027StatsFilters\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types/usage.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f08f884e536a0d64a34ac32c16b3cbd1bb25062d75b0fca98b1af22fa747e3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027parseSmartMcpJson\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/formatters.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"24928f1e47780fe777fbecd0a04c3c2a4ba2665239aa329088ae242c5033bf5a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027KIMI_OFFICIAL_PROVIDER_ID\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerCapabilities.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90cf5f49fc7d029312e7e5c09653173724ce9f9b4921d9ba60420e720d948dd"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027validateJsonConfig\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"deec2a48f1f002a1e7cb0519a607e8f2dc589206a2ce31dc6330acbc3afbfe82"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getCodexBaseUrl\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6241d227e4ecdc3d2fceb9ee6df53794abb2f2cb62c5b76a4879e91ca434df2e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027normalizeQuotes\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/textNormalization.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aad83a3f27d750833b340fd821a61e5f2f704d61acbd0df5a027cfc3071e680"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027mcpServerToToml\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a08a5e3ac6cd85ceadafcd2b5a9ee411b190cccbc8738708f0a2b0092a0c064"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027extractIdFromToml\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/tomlUtils.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0416d79fcbd74a8c60fdc532b4ed6d76eb56af24ad997a05b31765d4c12a2571"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/components/quota/QuotaBreakdown.tsx \u2192 src/components/quota/QuotaLines.tsx \u2192 src/components/quota/QuotaBreakdown.tsx"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/quota/QuotaBreakdown.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"138ee39b3a76e4db6f474d707866af95650b1ee45413fe8fd7d2a0ebea057668"}},{"ruleId":"S1","level":"note","message":{"text":"Security headers incomplete: Set: Referrer-Policy. Missing: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options \u2014 the four headers that carry the points of this card\u0027s security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each.(\u22122.0 on this card.) The server: \u0060.serve_connection(\u0060 (src-tauri/src/proxy/server.rs:206)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9931804dbad8b1657857c9b88c05b8faeff182b6e2bb88641bd59bac687876e"}},{"ruleId":"X1","level":"warning","message":{"text":"Blocking \u0060thread::sleep\u0060 inside an \u0060async\u0060 body: This \u0060async\u0060 body is polled on an executor\u0027s worker thread, and \u0060std::thread::sleep\u0060 blocks that thread: for the whole delay no other task scheduled on it makes progress \u2014 the Rust form of blocking on a task. Use \u0060tokio::time::sleep(\u2026).await\u0060 (or the runtime\u0027s own timer), which suspends only this task. Where the blocking work is not a sleep but a synchronous call that cannot be made async, move it off the executor with \u0060tokio::task::spawn_blocking(\u2026).await\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/kimi_oauth/lock.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8877d83582a6fd7b9be11f6b02ccb317b1e87bfc5f3ff0d304cd3da3311e5ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!(key in before) \u0026\u0026 key.startsWith(\u0022backup-\u0022)\u0060 appears character-identically in 2 files \u2014 src/components/prompts/PiPromptPanel.tsx, src/components/prompts/PromptPanel.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/prompts/PiPromptPanel.tsx"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c84b06f52504c8ea000417be9145086ec4f0ccee1b14f06125a1637dfd26333"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!baseUrl || (typeof baseUrl === \u0022string\u0022 \u0026\u0026 baseUrl.trim() === \u0022\u0022)\u0060 appears character-identically in 2 files \u2014 src/components/UsageScriptModal.tsx, src/components/providers/ProviderCard.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9235bd6ee8791a74064b5838026ffcfc443e2c121225e83d663c9284462ee3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!bearerToken \u0026\u0026 (!apiKey || (typeof apiKey === \u0022string\u0022 \u0026\u0026 apiKey.trim() === \u0022\u0022))\u0060 appears character-identically in 2 files \u2014 src/components/UsageScriptModal.tsx, src/components/providers/ProviderCard.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9c52dc601c09743e68e82b218ebb6dec688bf97dc557023191789085c240da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isEdit \u0026\u0026 providerKey !== \u0022\u0022 \u0026\u0026 !KEY_PATTERN.test(providerKey)\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/McodeProviderForm.tsx, src/components/providers/forms/WorkBuddyProviderForm.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/McodeProviderForm.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b113ee443792d00b62344c4398085772c35c756e51a59289e487c33abaee7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parsed || typeof parsed !== \u0022object\u0022 || Array.isArray(parsed)\u0060 appears character-identically in 5 files \u2014 src/components/openclaw/utils.ts, src/components/providers/forms/hooks/useCodexConfigState.ts, src/components/providers/forms/hooks/useOpenclawFormState.ts, src/utils/providerConfigUtils.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/utils.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"983198c378b494f637170c880cb6bfe6d4cfe35ebd4f3b10c62855b5e208f944"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!provider || typeof provider !== \u0022object\u0022\u0060 appears character-identically in 2 files \u2014 src/lib/modelMetadata.ts, src/lib/modelsDevPricing.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelMetadata.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe78cbd6ffc47cf7fdc482cf72460a4c21be2623b48ba635373ed6ab02db0c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!settingsConfig || typeof settingsConfig !== \u0022object\u0022\u0060 appears character-identically in 2 files \u2014 src/config/hermesProviderPresets.ts, src/utils/providerConfigUtils.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/hermesProviderPresets.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1521344188881ce24cdc0c6e26d7f8cc9aaa5ed87713cf14f0cca806a2df782"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0022object\u0022 || Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeDesktopProviderForm.tsx, src/config/piThinkingProfiles.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb556934838b06b1e295dddd1c1975ea9563337e94234fd1c82664adba56d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(!apiKey || (typeof apiKey === \u0022string\u0022 \u0026\u0026 apiKey.trim() === \u0022\u0022)) \u0026\u0026 (!baseUrl || (typeof baseUrl === \u0022string\u0022 \u0026\u0026 baseUrl.trim() === \u0022\u0022))\u0060 appears character-identically in 2 files \u2014 src/components/UsageScriptModal.tsx, src/components/providers/ProviderCard.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"18051868c9e86b979364c7e1ae4d1518cff8305a90471f573a89b66941dc0fef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(providerFilter === \u0022all\u0022 || entry.providerId === providerFilter) \u0026\u0026 (!query || entry.modelId.toLowerCase().includes(query) || entry.normali\u2026\u0060 appears character-identically in 2 files \u2014 src/components/usage/ModelsDevAutoSyncPanel.tsx, src/components/usage/ModelsDevPickerDialog.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0f9af5b78fe7423fef1bc9b8674c8a5cb69fa137e2f081e59c576d2df9dcad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(apiKey) || Object.keys(requestHeaders).length \u003E 0\u0060 appears character-identically in 3 files \u2014 src/components/providers/forms/KimiProviderForm.tsx, src/components/providers/forms/OpenCodeFormFields.tsx, src/components/providers/forms/PiProviderForm.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"278db014663daa3b32e3b48efc5916d859842996263c72e1d3d1e4edac146fbe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(value) \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/CopilotProviderForm.tsx, src/config/copilotConfig.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3057b19e88ff67eb56905a61a97821922d4705d37461d7726bf9c2b6aee82ce6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.getFullYear() === b.getFullYear() \u0026\u0026 a.getMonth() === b.getMonth() \u0026\u0026 a.getDate() === b.getDate()\u0060 appears character-identically in 2 files \u2014 src/components/usage/RequestLogTable.tsx, src/components/usage/UsageDateRangePicker.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"82915676fcdda59c60a974089c3c01b469e4fc82001453f3556d6e6d793b5e4d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account.id === accountId \u0026\u0026 !account.requires_reauth\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeDesktopProviderForm.tsx, src/components/providers/forms/ProviderForm.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3c6aa60e60a8b19c5fc8de6fa708c9b65d88305120089a457db4736f7bbd56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060account.id === effectiveAccountId \u0026\u0026 !account.reauth_required\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeDesktopProviderForm.tsx, src/components/providers/forms/ProviderForm.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad6aefd2e5fcbc996b93d6cd9e80a1f8e0918087fdba44c82e3a26c81465e87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060apiFormat === \u0022openai_chat\u0022 || apiFormat === \u0022openai_responses\u0022\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeDesktopProviderForm.tsx, src/components/providers/forms/ClaudeFormFields.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeDesktopProviderForm.tsx"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e22a7c0f3c108b27dad34d3bf14339bcacbdf6ea44df6f668d50d1c95748471"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060category !== \u0022official\u0022 \u0026\u0026 category !== \u0022cloud_provider\u0022\u0060 appears character-identically in 3 files \u2014 src/components/providers/forms/ClaudeFormFields.tsx, src/components/providers/forms/ProviderForm.tsx, src/components/providers/forms/hooks/useApiKeyState.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0076fc16feaa85813f7c6d8dcd0c51e12e5f161c70683c999220a1b59d9d5e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.key !== \u0022Escape\u0022 || event.defaultPrevented\u0060 appears character-identically in 3 files \u2014 src/App.tsx, src/components/sessions/SessionManagerPage.tsx, src/components/skills/UnifiedSkillsPanel.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0b2e96992de6399680edc60fbb1aa2f321e951c417f25bb172dee450820460"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extractErrorMessage(error) || String(error)\u0060 appears character-identically in 7 files \u2014 src/components/apps/useToolManagement.ts, src/components/mcp/UnifiedMcpPanel.tsx, src/components/providers/forms/WorkBuddyOfficialSection.tsx, src/components/providers/useWorkBuddyOfficial.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/apps/useToolManagement.ts"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"2262c1cfb8ecfc48d080ebe33988630cf10339d18c87a5d8ea72f9b63ed72c16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extractErrorMessage(error) || t(\u0022common.unknown\u0022)\u0060 appears character-identically in 6 files \u2014 src/App.tsx, src/components/prompts/promptUtils.tsx, src/components/providers/mode/SwitchModePanel.tsx, src/lib/query/failover.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/App.tsx"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d6c7375240b6e7b006337820e24daa19dbe7f5c0281553ca34f642538dd2d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extractErrorMessage(loadError) || String(loadError)\u0060 appears character-identically in 2 files \u2014 src/components/mcp/UnifiedMcpPanel.tsx, src/components/skills/UnifiedSkillsPanel.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eef81af06960bcaa34bc7cea92c4225f057c0318f51c37376c42efcde6664de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i18n.resolvedLanguage || i18n.language || \u0022en\u0022\u0060 appears character-identically in 9 files \u2014 src/components/usage/RequestLogTable.tsx, src/components/usage/TablePagination.tsx, src/components/usage/UsageDashboard.tsx, src/components/usage/UsageDateRangePicker.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/RequestLogTable.tsx"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dcc215377ef54bc5d7d318aa47161f64a760e834daa5a2aa51d20394030b55"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index \u003C accounts.length - 1 || onManageAccounts\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeOfficialSection.tsx, src/components/providers/forms/CodexOAuthSection.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeOfficialSection.tsx"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd3dee98b4cf1972b632cefbee2fac22634f63ee3e939892040ba034e0d0865"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isAccountLogin \u0026\u0026 (!step || step.step === \u0022form\u0022)\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/KimiProviderForm.tsx, src/components/providers/forms/McodeProviderForm.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/KimiProviderForm.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c4f7e6215fb4a70815c141ac751a9bca1c67e726ef1523db57fb8c3d6b5b8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isBoundCodexOfficial || Boolean(claudeBoundAccountId)\u0060 appears character-identically in 2 files \u2014 src/components/UsageScriptModal.tsx, src/components/providers/ProviderCard.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfbcf73e45aea13838b654dfd97821de4b2c4e3b0f3d33787f96001d41f9bb0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isFullUrl || !!customUserAgent || hasRequestOverrides\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeFormFields.tsx, src/components/providers/forms/CodexFormFields.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"405e85cddb78fdaaab5fdc1830e84788301a08a2d6e2a54a5bd52f7405190ec3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060localProxyHeadersOverride.trim() || localProxyBodyOverride.trim()\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ClaudeFormFields.tsx, src/components/providers/forms/CodexFormFields.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ClaudeFormFields.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0957863f1055bc34cf074e3c1c45e94852d6b778638f37a1855440a7f0e22d6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mode !== \u0022select\u0022 || !selectedAccountId || !onAccountSelect || !isStatusSuccess\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/CodexOAuthSection.tsx, src/components/providers/forms/CopilotAuthSection.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CodexOAuthSection.tsx"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"841ccb2a870159d7b3948f1124c32eded7bd17b63c3e3958b0ea642877105623"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.name?.trim() \u0026\u0026 model.name.trim() !== model.id\u0060 appears character-identically in 2 files \u2014 src/components/providers/presentation.ts, src/config/copilotProviderPresets.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/presentation.ts"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2fd24efc1605de56016c68e635533543006c224bc3259f22a0dcebb308aeb1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022zh\u0022 || normalized.startsWith(\u0022zh-\u0022)\u0060 appears character-identically in 2 files \u2014 src/components/usage/format.ts, src/hooks/useSettingsForm.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/format.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b994b467d0483c49cbb5443eff16a6c43bfabf78ce0f3753d2b79b93388203c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed \u0026\u0026 typeof parsed === \u0022object\u0022 \u0026\u0026 !Array.isArray(parsed)\u0060 appears character-identically in 4 files \u2014 src/components/JsonEditor.tsx, src/components/providers/forms/GeminiConfigEditor.tsx, src/components/providers/forms/PiProviderForm.tsx, src/components/providers/forms/hooks/useGeminiConfigState.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/JsonEditor.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb46525d75aeab8767225730066da5e64f197640afeac1aa059240f2505cacc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060quota.error || t(\u0022subscription.queryFailed\u0022)\u0060 appears character-identically in 3 files \u2014 src/components/CopilotQuotaFooter.tsx, src/components/SubscriptionQuotaFooter.tsx, src/components/settings/auth/AccountQuota.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/CopilotQuotaFooter.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5ec20a87fcec37085f2f09f1b71d9b31507682b5aa08b74743beb9ea639c36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060quota.error || t(\u0022workbuddy.quota.unavailable\u0022)\u0060 appears character-identically in 2 files \u2014 src/components/providers/workbuddyQuota.ts, src/components/settings/auth/AccountQuota.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/workbuddyQuota.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"392243ff2495819a8392195b2897c3234050d666b9a161c89fe157157e3bc7ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060quota.unavailable === \u0022not_running\u0022 \u0026\u0026 quota.current\u0060 appears character-identically in 2 files \u2014 src/components/providers/workbuddyQuota.ts, src/components/settings/auth/AccountQuota.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/workbuddyQuota.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"711aecfad99b886a7a3cffb2444868d82ee05f5a13ad3401fdecdbed5bf77d6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reasoningLevels \u0026\u0026 reasoningLevels.length \u003E 0\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/ProviderForm.tsx, src/components/providers/forms/hooks/useCodexConfigState.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"7409f0f936e46bbbd8402442c44a6221f92c10ee3940312bec05ea737b731070"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolveManagedAccountId(provider.meta, \u0022claude_official\u0022)?.trim() || null\u0060 appears character-identically in 2 files \u2014 src/components/UsageScriptModal.tsx, src/components/providers/ProviderCard.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/UsageScriptModal.tsx"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4eac5a717f583566bfe7045b645c94fab56eca9689550c460b3e77fde9c705"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060search.trim() !== \u0022\u0022 || providerFilter !== \u0022all\u0022\u0060 appears character-identically in 2 files \u2014 src/components/usage/ModelsDevAutoSyncPanel.tsx, src/components/usage/ModelsDevPickerDialog.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/ModelsDevAutoSyncPanel.tsx"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5247c0a96d79b8a0679fd6291e9eb41f6d688a906ecdce8b9cc3272dfc8130f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selectedPresetId \u0026\u0026 selectedPresetId !== \u0022custom\u0022\u0060 appears character-identically in 4 files \u2014 src/components/providers/forms/ProviderForm.tsx, src/components/providers/forms/ProviderPresetSelector.tsx, src/components/providers/forms/hooks/useApiKeyLink.ts, src/components/providers/forms/hooks/useSpeedTestEndpoints.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/ProviderForm.tsx"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96f559f92259078c0557753d9837c7e407eee55020367a2da5cf57aa97bebae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof model.name === \u0022string\u0022 \u0026\u0026 model.name.trim()\u0060 appears character-identically in 2 files \u2014 src/components/openclaw/hooks/useOpenClawModelOptions.ts, src/components/providers/forms/hooks/useOmoModelSource.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/hooks/useOpenClawModelOptions.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb7b444805648cd47b6426713af0f5c0525ba662dc74f82657c3defcb8d12d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof provider.name === \u0022string\u0022 \u0026\u0026 provider.name.trim()\u0060 appears character-identically in 2 files \u2014 src/components/openclaw/hooks/useOpenClawModelOptions.ts, src/components/providers/forms/hooks/useOmoModelSource.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/openclaw/hooks/useOpenClawModelOptions.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b404a1d50daa8a232b0d7bc4c70c664764bb8da814c1671eee3fe32607665e60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value)\u0060 appears character-identically in 2 files \u2014 src/components/providers/forms/PiProviderForm.tsx, src/utils/usageDisplay.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4639be6e98bdcd9fa572bcd4ffe0a0ecac8fe197c64f3f4eb0fb819d7f61b2ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022object\u0022 \u0026\u0026 value !== null \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 5 files \u2014 src/components/providers/EditProviderDialog.tsx, src/components/providers/forms/helpers/kimiToml.ts, src/components/providers/forms/helpers/yamlNode.ts, src/lib/requestOverrides.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/EditProviderDialog.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e4b813e6bdd2ec357a0c5c1bd2032f719cc595c30c85bd17e6fa1b229dbf44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim()\u0060 appears character-identically in 3 files \u2014 src/components/providers/forms/CopilotProviderForm.tsx, src/components/settings/sections/AppConfigSection.tsx, src/lib/modelMetadata.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/CopilotProviderForm.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"51af3fbb33b3ab705b15c79e2f45d5ec7c7e4d1fd393f0e3c0c83c7953f49e1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 src/components/providers/forms/PiProviderForm.tsx, src/components/providers/forms/ProviderForm.tsx, src/utils/grokBuildConfig.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/PiProviderForm.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d1dfb75000359e9f2bfa6ad7b7f12535e3c84bbc1057268c49bca2c46620ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060writeLockRef.current || interactionBlocked\u0060 appears character-identically in 2 files \u2014 src/components/mcp/UnifiedMcpPanel.tsx, src/components/skills/UnifiedSkillsPanel.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c382b388dc8bff42be4e7d74ec247d2aee8bd8c53df33e866752abca4591f77d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060writePending || mutationPending || dialogOpen\u0060 appears character-identically in 2 files \u2014 src/components/mcp/UnifiedMcpPanel.tsx, src/components/skills/UnifiedSkillsPanel.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/mcp/UnifiedMcpPanel.tsx"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c084fd529e55b2e92074cae67f2b3cc0505f66424298141bf8b6a7f7023dbc26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body.get(\u0022type\u0022).and_then(Value::as_str) == Some(\u0022error\u0022) || body.get(\u0022error\u0022).is_some()\u0060 appears character-identically in 2 files \u2014 src-tauri/src/proxy/providers/streaming_codex_anthropic.rs, src-tauri/src/proxy/providers/transform_codex_anthropic.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/streaming_codex_anthropic.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c2c134bc93bd37e1fe718c137e3e1d59082c417daa05d138b1653045660bd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ctx.app_config.auto_failover_enabled \u0026\u0026 ctx.app_config.non_streaming_timeout \u003E 0\u0060 appears character-identically in 2 files \u2014 src-tauri/src/proxy/handlers.rs, src-tauri/src/proxy/response_processor.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/handlers.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"566e5b21ddef6154a4fa482343d9d6924b9a24f99b3c37f9b9a2d545e3802e18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.trim().is_empty() || data.trim() == \u0022[DONE]\u0022\u0060 appears character-identically in 2 files \u2014 src-tauri/src/proxy/providers/codex_chat_history.rs, src-tauri/src/proxy/providers/transform_codex_anthropic.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/codex_chat_history.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc08988f0de7a05f0f11b45f83d2f6b0494fa39902cdc69366f67ef0767aea8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err.contains(\u0022disabled\u0022) || err.contains(\u0022\u672A\u542F\u7528\u0022)\u0060 appears character-identically in 2 files \u2014 src-tauri/src/commands/s3_sync.rs, src-tauri/src/commands/webdav_sync.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/commands/s3_sync.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a91607e16a6a9e363960a2a495d7b69021090bca57626a52057a71eae16bd64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err.to_string().contains(\u0022too large\u0022) || err.to_string().contains(\u0022\u8D85\u8FC7\u0022)\u0060 appears character-identically in 3 files \u2014 src-tauri/src/services/sync_protocol.rs, src-tauri/src/services/webdav.rs, src-tauri/src/services/webdav_sync/archive.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/sync_protocol.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"8526a65ca24bb0a14674942bac27739d9a472ddff049563884c660f389e53e74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session_id.is_some() \u0026\u0026 project_dir.is_some() \u0026\u0026 created_at.is_some() \u0026\u0026 first_user_message.is_some()\u0060 appears character-identically in 2 files \u2014 src-tauri/src/session_manager/providers/claude.rs, src-tauri/src/session_manager/providers/codex.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/claude.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"09624d963e1a462bc09478648d1862460f96c478ba5149af6f002d0bfab6ff9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec.is_object() \u0026\u0026 spec.get(\u0022type\u0022).is_none() \u0026\u0026 spec.get(\u0022command\u0022).is_some()\u0060 appears character-identically in 4 files \u2014 src-tauri/src/mcp/agy.rs, src-tauri/src/mcp/kimi.rs, src-tauri/src/mcp/mcode.rs, src-tauri/src/mcp/pi.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a1e3c7cfcf7954ce670afa6441cd67b0e6f0905214d191edce2bcfc77ecdcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec[\u0022type\u0022] == \u0022streamable-http\u0022 || (spec.is_object() \u0026\u0026 spec.get(\u0022type\u0022).is_none() \u0026\u0026 spec.get(\u0022url\u0022).is_some())\u0060 appears character-identically in 4 files \u2014 src-tauri/src/mcp/agy.rs, src-tauri/src/mcp/kimi.rs, src-tauri/src/mcp/mcode.rs, src-tauri/src/mcp/pi.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mcp/agy.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fb2ddd3e1d95030816d74c01096705c03b1bf0e7dba72d104800006f7e48a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == reqwest::StatusCode::UNAUTHORIZED || status == reqwest::StatusCode::FORBIDDEN\u0060 appears character-identically in 4 files \u2014 src-tauri/src/services/balance.rs, src-tauri/src/services/coding_plan.rs, src-tauri/src/services/subscription.rs, src-tauri/src/services/subscription_grok.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/balance.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"76214112fe6d6ffaf025ba0b0c138e933aaa2ef595e7403c199f618f7af96aaa"}},{"ruleId":"X14","level":"warning","message":{"text":"IP classification is bypassable through an IPv4-in-IPv6 embedding: This function unwraps IPv4-MAPPED IPv6 (\u0060::ffff: (in \u0060extractIpv4Octets\u0060)\u0060, line 130) and rejects \u006010.0.0.0/8\u0060 on its IPv4 path, and it handles some IPv4-in-IPv6 embeddings \u2014 but not IPv4-compatible (\u0060::a.b.c.d\u0060) and 6to4 (\u00602002::/16\u0060): either it never names it, or it names it and returns the verdict its IPv4 path gives public space. So \u0060::10.0.0.1\u0060, \u00602002:0a00:0001::\u0060 name a host inside \u006010.0.0.0/8\u0060, the range this same function declares non-public, and reach the IPv6 decision at line 168 with the opposite verdict. Unwrap every embedding to its IPv4 form before classifying, or reject any IPv6 address carrying an embedded IPv4 outright."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/deeplinkRisk.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c2d7178aafd2aef75334deda5fddef5853c8d7c7847d25d68772d50ba0afc4"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/1 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: copyImage: \u0060copyImage\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/sessions/reader/SessionImageLightbox.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf90ec0830ff6797c9361c81dd7e10a87e4f485fb2e72567568b50229ef2485"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.3 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 50 assertion(s) across the 165023 source line(s) of the 490 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: src/lib/query/sessions.ts (10), src/components/quota/QuotaLines.tsx (4), src/components/sessions/utils.ts (4). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003Cdiv class=\u0022flex h-40 items-center justify-center text-muted-foreground\u0022\u003E\u0060 under \u0060! summary \u0026\u0026 isLoading\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tray-panel/UsageTab.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf7506f3e71aaac82131ece8b695190367c44baf2a96aa66d0c7b9c8b055fab"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003Cdiv class=\u0022flex h-[150px] items-center justify-center\u0022\u003E\u0060 under \u0060isLoading\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageHeatmap.tsx"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a50e8329488e2861db6ea81e759b9bbf79dc95c33016c231a564c2a3126e0d3"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003CLoader2 aria-hidden=\u0022true\u0022 class=\u0022h-4 w-4 text-fg-3 motion-safe:animate-spin\u0022/\u003E\u0060 under \u0060isLoading || ! config\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageSettingsSheet.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c711deeb9972e501f86673a606d0c8b4069a54a0b76cf9659e3445544666dc4e"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003Cdiv class=\u0022flex h-full items-center justify-center\u0022\u003E\u0060 under \u0060isLoading\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/usage/UsageTrendChart.tsx"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"475332c88b37c0dda0d91068614ab39efe9bbb9ec732edb8dcc584713f0441b1"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003CLoader2 class=\u0022h-3 w-3 animate-spin\u0022/\u003E\u0060 under \u0060isLoadingVersion\u0060, but \u0060isLoadingVersion\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1824d497eb3384d04f8041b6c0b5fec57e4670e0d90b79c6c8d5983b3ff06e1d"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003C\u003E\u0060 under \u0060isDownloading\u0060, but \u0060isDownloading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/AboutSection.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca489e98b8ee22d0b70e17d3de88f910206ff0a3aa75c95dc6809460df8e97b"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060\u003Cdiv class=\u0022flex items-center justify-center p-4\u0022\u003E\u0060 under \u0060isLoading \u0026\u0026 savedUrl === undefined\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings/GlobalProxySettings.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9110ad389925a6055109da9ac930cb278f79c14f1b909fdbbfd25f718097e3c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060search\u0060 turns every \u0060Err\u0060 into \u0060\u0022[]\u0022.into()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/search.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1f2e87a6d749179babda8c1b7fbe111472cf5a483d68fb0d306cc3a3af50ed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060trusted_legacy_codex_model_provider_ids_from_config\u0060 turns every \u0060Err\u0060 into \u0060BTreeSet::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/codex_history_migration.rs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c39018edf8aa69fd9d1ef28d85de6e99cff21ebcd4ce387876314ce72d8d12"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060desktop_models\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/mode/stack.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69d080016724f1c2fcde1ef893ee7807a03c1d0e3a66b9f06b7518c98784174"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060chat_error_to_response_error\u0060 turns every \u0060Err\u0060 into \u0060\u0022Upstream error\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/providers/transform_codex_chat.rs"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"8205f288dad7e6b53e2d869ee28b4f566df41c04593938e6e2317e24c28dcbc2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060strip_media_from_tool_value_at_depth\u0060 turns every \u0060Err\u0060 into \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/tool_media.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0509d997c1e92c78a9d19b1e6f8b45a1b8cba031475f7ad6a1532ca3a7186a3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060matched_files\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/backup_storage.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8effdb7c6ebd97d1385f44f32a185cb71237bb3f3f0239e16baca020a3f66c2b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060inactive_fields\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_editor.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bff0381f7c2ef1956b6b46dfd19e860bd4a033171e0cd41b3d2c0e562aa96f2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060split\u0060 (in \u0060compare_versions\u0060) turns every \u0060Err\u0060 into \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/codex_official_models.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ab2b6257c02792d1cc8c9ec6a5463216a075054f50dd04340d24bba0e50dd8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060inactive_fields\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/grok_editor.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2638ad088010a995d5f57c10ac5663ead3ed10ee2fd46b807852d725f9ea33"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060strip_invalid_universal_icons\u0060 turns every \u0060Err\u0060 into \u0060Ok(0)\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/icon.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30df74cfd562257b448abdf71dd7e7b4a02a18e54e97388895b1ac26b1b03c8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060strip_invalid_library_icons\u0060 turns every \u0060Err\u0060 into \u0060Ok(0)\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/provider/icon.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a85472c5ce9fd994abd7fe632d0d3d017204a0e04e4fd34550b0339e665398f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060native_state_fingerprint\u0060 turns every \u0060Err\u0060 into \u0060\u0022none\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/session_usage_agy/native_models.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"911e6c0dd494e7c7ad9569268ce406571718effcdc080272d4f8ba357db5fdc7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_codex_reset_credits\u0060 turns every \u0060Err\u0060 into \u0060Some(None)\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/subscription.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bc58616259dddcbca88318974b7f995b7b9ef2dcc48a4cd48519f03b9656fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060ps_lines\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/mod.rs"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a723ef1b6bc0d44392d04c21a144038ad8d84a3473efead3652ed80a9187e299"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060summary_package_codes\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/workbuddy_account/quota.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e369c74738df741cbea1d70efd99850898c8df71ea90a24843431895773388a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060edge_messages\u0060 turns every \u0060Err\u0060 into \u0060HashMap::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/session_manager/providers/hermes.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4edb3faacc51739964a4bf521e77a3ef59f28aabbb2ad830cf7cf7b1901f04f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readRecent\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b73ea0192d9fc833cfc248cd4cbfe219d82cc37d5567670d3419f9f707a582"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readExtraArgs\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/OpenTerminalDialog.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b977fe72b9d225caf77a52737d8832c9a3b708fd5962fa7f54d046d7148fbd0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060presetDomain\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/presetGroups.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"036acfb307b6e681292bdb9b236b044fd4afbd56ee7d020e24ae8221f8f5eb0f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readEnvUrl\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useBaseUrlState.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb82df49e7c454dcd820dc543334e2753d3d8d6ad548b8f43fae42784523116"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060useCodexConfigState.getCodexAuthApiKey\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/providers/forms/hooks/useCodexConfigState.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6e8392a8ede9739f4e076a876b2e0fd48ce304845fc5744da53024a987345e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getCurrentVersion\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/updater.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b090903fadd11e233902a4df1425aa4de9dab1e7b34254f37407e40160f845a2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readStoredView\u0060 swallows every exception into \u0060return \u0022providers\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/navigation.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8153b73a6ca001d00808127c9b843fca0d2b0239d17eaed3f96d4d1e537daf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getApiKeyFromConfig\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/providerConfigUtils.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"820864ab54115c1607911b9b3c4c3bcb103c46431396201f65db0f2bc68975b1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060withJson\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/msw/handlers.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7638d2047c64acfe0963808a650fd2fbaa26d73d5f12387bcf0ff991968ae44f"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060context.contains(\u0022\u539F\u5B50\u5199\u5165\u5931\u8D25\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060context.contains(\u0022\u539F\u5B50\u5199\u5165\u5931\u8D25\u0022)\u0060 also satisfies \u0060context.contains(\u0022\u5199\u5165\u5931\u8D25\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/tests/import_export_sync.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"4181a37a2d802652afd757844472b23c2a385671370cb72ec17ffbe68eb890e0"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060url.contains(\u0022open.bigmodel.cn\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060url.contains(\u0022open.bigmodel.cn\u0022)\u0060 also satisfies \u0060url.contains(\u0022bigmodel.cn\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8390cf83755697444138c6e745f2bf2f04f7935afcf044e3c6af30d13fb90ce"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060c.contains(\u0022accessdenied\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060c.contains(\u0022accessdenied\u0022)\u0060 also satisfies \u0060c.contains(\u0022denied\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/services/coding_plan.rs"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b994eef31e754ad7f005738b8ba09a1f2bfa56cf60ffa9a56ec106fd829e24c4"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1beta/openai/chat/completions\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1beta/openai/chat/completions\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/openai/chat/completions\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6004a5e814f4f9ffa3673a0c34d5582012dcb0c2998628449445e41e2e53d73"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1beta/openai/responses\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1beta/openai/responses\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/openai/responses\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b1671c775eb186e52bb5a65077101f04bc186954ef3c87afbe5466664995f5"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1/openai/chat/completions\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1/openai/chat/completions\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/openai/chat/completions\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"257fa18fad08f89c54859ebb1d1bd78aaa0ff861ffd50d222a5bd67bdcd495a7"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1/openai/responses\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1/openai/responses\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/openai/responses\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc187762c9127ed4391ade964b9720edbcc74b1f8b1bcece8a132ac36acf7e7"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1beta/models\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1beta/models\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/models\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0ca901094c2940fa804155d1e894130c4b803f10655defafd89aeec6dc7997"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1beta/openai\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1beta/openai\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/openai\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b607fec5beff9a794e6a099f22c1e5aec4ea46807863f55962b26dcc829c5e"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1/models\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1/models\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/models\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a81236f96a75f7aeb71de55ff5f9d3f1661fda62a244c19369e3ce78ffa9268"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060path.ends_with(\u0022/v1/openai\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060path.ends_with(\u0022/v1/openai\u0022)\u0060 also satisfies \u0060path.ends_with(\u0022/openai\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/gemini_url.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"47afd629705972a45fea435cf6f31ea86e1e32e418c672f2c4c39bef29fa265d"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lower.contains(\u0022redacted_thinking\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lower.contains(\u0022redacted_thinking\u0022)\u0060 also satisfies \u0060lower.contains(\u0022thinking\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/thinking_rectifier.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad57b5d36afa6710c4158ae6dcaa01ddb29b49c72c16ec8aeb9547dbbb48fa00"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lower.contains(\u0022redacted_thinking\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lower.contains(\u0022redacted_thinking\u0022)\u0060 also satisfies \u0060lower.contains(\u0022thinking\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/proxy/thinking_rectifier.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ec61033050b1312384a3c6724b35ae29b578383bab68e51f88766038cfee38"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":191,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}